Treaties Ideal Point

D 60 completed
Data Tool
unknown / r · medium
1,311
Files
74,043
LOC
0
Frameworks
5
Languages

Pipeline State

completed
Run ID
#360190
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
60.00
Framework unique
Isolation
Last stage change
2026-05-10 03:35:02
Deduplication group #50285
Member of a group with 15 similar repo(s) — canonical #93231 view group →
Top concepts (2)
Project DescriptionDocumentation
Repobility — same analyzer, your code, free for public repos · /scan/

AI Prompt

Create a reproducible data analysis pipeline in R to estimate country ideal points. The goal is to build a dataset using country-year observations based on participation in international organizations and treaties, specifically excluding UNGA/UNSC voting data. The pipeline should process data to generate a single, long-format table containing fields like `country_name`, `year`, `org_or_treaty_name`, `issue_area`, and `participation_status`. The process must be fully reproducible, keeping raw/extracted data in the repository and using separate R scripts for all computations. Also, include necessary Python scripts for data acquisition from sources like WITS tariffs, ensuring environment variables are handled correctly.
r data-analysis reproducible-science international-relations dataset
Generated by gemma4:latest

Catalog Information

Builds a reproducible dataset and analysis pipeline to estimate country ideal points using participation in international organizations and treaty accession/signing, excluding UNGA/UNSC voting.

Description

This project aims to create a clean dataset of MFN tariffs and effectively applied tariffs at the importer-product-partner-year level. It also computes preferential margins to support latent-variable modeling of trade openness. The goal is to distinguish between general (MFN-based, non-discriminatory) openness and discriminatory openness via preferential trade agreements.

الوصف

يهدف هذا المشروع إلى إنشاء dataset نظيف من الرسوم الجمركية المعتمدة و الرسوم التطبيقية الفعلية على مستوى المستورد-المنتج-الشركاء-السنة. كما يคำم الحوافز التفضيلية لدعم النماذج المتوسطة للفتح التجاري. الهدف هو تمييز بين الفتح العام (المعتمد على الرسوم الجمركية، غير المتميز) والفتح التمييزي عبر الاتفاقيات التجارية التفضيلية.

Novelty

7/10

Tags

tariff-data trade-openness preferential-margins country-ideal-points international-organizations treaty-participation

Claude Models

claude-opus-4.6 claude-opus-4.5

Quality Score

D
59.9/100
Structure
50
Code Quality
66
Documentation
55
Testing
40
Practices
61
Security
100
Dependencies
60

Strengths

  • Consistent naming conventions (snake_case)
  • Good security practices \u2014 no major issues detected

Weaknesses

  • No LICENSE file \u2014 legal ambiguity for contributors
  • No CI/CD configuration \u2014 manual testing and deployment
  • 7 files with critical complexity need refactoring
  • 1541 duplicate lines detected \u2014 consider DRY refactoring
  • 3 'god files' with >500 LOC need decomposition

Recommendations

  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency
  • Add a LICENSE file (MIT recommended for open source)
  • Address 34 TODO/FIXME items \u2014 consider tracking them as issues

Security & Health

52.6h
Tech Debt (B)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (2)
All rows above produced by Repobility · https://repobility.com
Unknown
License
35.5%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

r
63.2%
markdown
21.2%
python
11.7%
text
2.4%
cpp
1.5%

Frameworks

None detected

Concepts (2)

Page rendered by Aljefra Mapper · scored by Repobility (https://repobility.com)
CategoryNameDescriptionConfidence
All rows scored by the Repobility analyzer (https://repobility.com)
auto_descriptionProject DescriptionBuild a reproducible dataset and analysis pipeline to estimate country ideal points using participation in international organizations (IOs) and treaty accession/signing, not UNGA/UNSC voting. UN-affiliated bodies (e.g., WIPO, ILO) are included.80%
auto_categoryDocumentationdocs70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/84339.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV