Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 22278d5

Browse files
authored
Merge pull request #39 from gondzo/feature/private_project_results
Calculate private project ratings
2 parents f361ac9 + da7277d commit 22278d5

19 files changed

+998
-59
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
.vscode
3+
bin
4+
build

build_tcs.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@
127127
<pathelement location="${jars.dir}/tcs/ldap_sdk_interface/1.0.2/ldap_sdk_interface.jar"/>
128128
<pathelement location="${jars.dir}/netscape_ldap_sdk.jar"/>
129129
<pathelement location="${jars.dir}/ldap.jar"/>
130+
131+
<!-- jackson and request dependencies -->
132+
<pathelement location="${jars.dir}/jackson-core-2.6.1.jar"/>
133+
<pathelement location="${jars.dir}/jackson-databind-2.6.1.jar"/>
134+
<pathelement location="${jars.dir}/jackson-annotations-2.6.1.jar"/>
135+
<pathelement location="${jars.dir}/fluent-hc-4.5.1.jar"/>
136+
<pathelement location="${jars.dir}/httpclient-4.5.1.jar"/>
137+
<pathelement location="${jars.dir}/httpcore-4.4.3.jar"/>
138+
<pathelement location="${jars.dir}/commons-logging-1.2.jar"/>
139+
130140
</path>
131141

132142
<target name="init">

conf/com/topcoder/dde/util/DWLoad/RatingQubits.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@
44
<Value>com.informix.jdbc.IfxDriver</Value>
55
</Property>
66
<Property name="ConnectionURL">
7-
<Value>jdbc:informix-sqli://63.118.154.190:1526/tcs_catalog:INFORMIXSERVER=devinformix10_shm;user=coder;password=altec</Value>
7+
<Value><![CDATA[jdbc:informix-sqli://127.0.0.1:7000/tcs_catalog:INFORMIXSERVER=commtestoltp_tcp;user=user;password=password]]></Value>
88
</Property>
99
<Property name="HistoryLength">
10-
<Value>50</Value>
10+
<Value>300</Value>
1111
</Property>
12+
<Property name="PhaseIds">
13+
<Value>150</Value>
14+
<Value>149</Value>
15+
</Property>
16+
<Property name="CutOffs">
17+
<Value>06/01/2010 06:06:06</Value>
18+
<Value>NULL</Value>
19+
</Property>
20+
1221
</CMConfig>

lib/jars/commons-logging-1.2.jar

60.4 KB
Binary file not shown.

lib/jars/fluent-hc-4.5.1.jar

30.6 KB
Binary file not shown.

lib/jars/httpclient-4.5.1.jar

716 KB
Binary file not shown.

lib/jars/httpcore-4.4.3.jar

319 KB
Binary file not shown.
45.9 KB
Binary file not shown.

lib/jars/jackson-core-2.6.1.jar

253 KB
Binary file not shown.

lib/jars/jackson-databind-2.6.1.jar

1.11 MB
Binary file not shown.

scripts/dde/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Ratings calculation tool
2+
3+
## Configuration
4+
configuration is stored in `conf/com/topcoder/dde/RatingQubits.xml` and the following values should be updated:
5+
6+
- `ConnectionURL` - should be updated to point to oltp database
7+
-
8+
9+
10+
11+
## Compilation
12+
13+
Make sure your JAVA_HOME points to JDK 1.7 home directory and ANT_HOME points to ant 1.9.15 home directory. Then run the following
14+
15+
`java -Dhttps.protocols=TLSv1.2 -cp %ANT_HOME%/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher compile -f build_tcs.xml`
16+
17+
running ant manually is needed to allow it to download dependencies using https/ssl from maven repository and github
18+
19+
## Running
20+
21+
Update database configuration, move to `scripts/dde/` directory and run `runRatings.sh` script
22+
23+
NOTE: if running on Windows, edit the $SEPARATOR variable in runRatings.sh and set it to `;` instead of `:`
24+

scripts/dde/runRatings.sh

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
BASE=../..
2+
SEPARATOR=":"
23
CP=""
3-
CP=$CP:$BASE/conf
4-
CP=$CP:$BASE/resources
5-
CP=$CP:$BASE/lib/jars/log4j.jar
6-
CP=$CP:$BASE/lib/jars/ifxjdbc.jar
7-
CP=$CP:$BASE/lib/jars/jdbc7.0-1.2.jar
8-
CP=$CP:$BASE/lib/jars/xml/xerces/xercesImpl.jar
9-
CP=$CP:$BASE/build/classes
10-
CP=$CP:$BASE/lib/jars/tcsUtil.jar
11-
CP=$CP:$BASE/lib/jars/configmanager2.jar
12-
CP=$CP:$BASE/lib/jars/jboss/xercesImpl.jar
13-
CP=$CP:$BASE/lib/jars/jboss/xml-apis.jar
4+
CP=$CP$SEPARATOR$BASE/conf
5+
CP=$CP$SEPARATOR$BASE/resources
6+
CP=$CP$SEPARATOR$BASE/lib/jars/log4j.jar
7+
CP=$CP$SEPARATOR$BASE/lib/jars/ifxjdbc.jar
8+
CP=$CP$SEPARATOR$BASE/lib/jars/jdbc7.0-1.2.jar
9+
CP=$CP$SEPARATOR$BASE/lib/jars/xml/xerces/xercesImpl.jar
10+
CP=$CP$SEPARATOR$BASE/build/classes
11+
CP=$CP$SEPARATOR$BASE/lib/jars/tcsUtil.jar
12+
CP=$CP$SEPARATOR$BASE/lib/jars/configmanager2.jar
13+
CP=$CP$SEPARATOR$BASE/lib/jars/jboss/xercesImpl.jar
14+
CP=$CP$SEPARATOR$BASE/lib/jars/jboss/xml-apis.jar
15+
CP=$CP$SEPARATOR$BASE/lib/jars/log4j-1.2.7.jar
16+
CP=$CP$SEPARATOR$BASE/lib/bin/shared.jar
17+
CP=$CP$SEPARATOR$BASE/lib/jars/jackson-core-2.6.1.jar
18+
CP=$CP$SEPARATOR$BASE/lib/jars/jackson-databind-2.6.1.jar
19+
CP=$CP$SEPARATOR$BASE/lib/jars/jackson-annotations-2.6.1.jar
20+
CP=$CP$SEPARATOR$BASE/lib/jars/fluent-hc-4.5.1.jar
21+
CP=$CP$SEPARATOR$BASE/lib/jars/httpclient-4.5.1.jar
22+
CP=$CP$SEPARATOR$BASE/lib/jars/httpcore-4.4.3.jar
23+
CP=$CP$SEPARATOR$BASE/lib/jars/commons-logging-1.2.jar
24+
CP=$CP$SEPARATOR$BASE/lib/jars/ifxjdbc.jar
1425

15-
nohup java -cp $CP com.topcoder.dde.util.DWLoad.RatingQubits >> ./ratings.log 2>&1 &
26+
echo $CP
27+
java -Dhttps.protocols=TLSv1.2 -cp $CP com.topcoder.dde.util.DWLoad.RatingQubits

0 commit comments

Comments
 (0)