hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c6e9c16512d69ea6fa5eab9288773894d5292bcf
102
py
Python
garage/utils/LED-on.py
1337DS/SmartGarage
1be4ad010653fc358e59417a26cd34e2146bdbf7
[ "Apache-2.0" ]
1
2022-02-09T10:36:43.000Z
2022-02-09T10:36:43.000Z
garage/utils/LED-on.py
1337DS/SmartGarage
1be4ad010653fc358e59417a26cd34e2146bdbf7
[ "Apache-2.0" ]
null
null
null
garage/utils/LED-on.py
1337DS/SmartGarage
1be4ad010653fc358e59417a26cd34e2146bdbf7
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(26, GPIO.OUT) GPIO.output(26, GPIO.HIGH)
12.75
26
0.735294
0
0
0
0
0
0
0
0
0
0
c6eb3b19d050576ce9764d0276a806ecdcc82b5f
2,456
py
Python
experiments/bayesopt/run_direct_surrogate.py
lebrice/RoBO
0cb58a1622d3a540f7714b239f0cedf048b6fd9f
[ "BSD-3-Clause" ]
455
2015-04-02T06:12:13.000Z
2022-02-28T10:54:29.000Z
experiments/bayesopt/run_direct_surrogate.py
lebrice/RoBO
0cb58a1622d3a540f7714b239f0cedf048b6fd9f
[ "BSD-3-Clause" ]
66
2015-04-07T15:20:55.000Z
2021-06-04T16:40:46.000Z
experiments/bayesopt/run_direct_surrogate.py
lebrice/RoBO
0cb58a1622d3a540f7714b239f0cedf048b6fd9f
[ "BSD-3-Clause" ]
188
2015-04-14T09:42:34.000Z
2022-03-31T21:04:53.000Z
import os import sys import DIRECT import json import numpy as np from hpolib.benchmarks.ml.surrogate_svm import SurrogateSVM from hpolib.benchmarks.ml.surrogate_cnn import SurrogateCNN from hpolib.benchmarks.ml.surrogate_fcnet import SurrogateFCNet run_id = int(sys.argv[1]) benchmark = sys.argv[2] n_iters = 50 n_i...
24.078431
74
0.678339
0
0
0
0
0
0
0
0
563
0.229235
c6eb612c8a8c4eac0f2f977fa8c04f601c65f1a7
1,197
py
Python
calls/delete_call_feedback_summary.py
mickstevens/python3-twilio-sdkv6-examples
aac0403533b35fec4e8483de18d8fde2d783cfb2
[ "MIT" ]
1
2018-11-23T20:11:27.000Z
2018-11-23T20:11:27.000Z
calls/delete_call_feedback_summary.py
mickstevens/python3-twilio-sdkv6-examples
aac0403533b35fec4e8483de18d8fde2d783cfb2
[ "MIT" ]
null
null
null
calls/delete_call_feedback_summary.py
mickstevens/python3-twilio-sdkv6-examples
aac0403533b35fec4e8483de18d8fde2d783cfb2
[ "MIT" ]
null
null
null
# *** Delete Call Feedback Summary *** # Code based on https://www.twilio.com/docs/voice/api/call-quality-feedback # Download Python 3 from https://www.python.org/downloads/ # Download the Twilio helper library from https://www.twilio.com/docs/python/install import os from twilio.rest import Client # from datetime impo...
44.333333
114
0.734336
0
0
0
0
0
0
0
0
833
0.695906
c6f0d37f8bd7df7e6ea000ba0009d2402adc88b8
8,523
py
Python
z42/z42/web/boot/css_js.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
z42/z42/web/boot/css_js.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
z42/z42/web/boot/css_js.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
# coding:utf-8 import _env from os.path import join, dirname, abspath, exists, splitext from os import walk, mkdir, remove, makedirs from collections import defaultdict from hashlib import md5 from glob import glob from base64 import urlsafe_b64encode import envoy import os from tempfile import mktemp from json import...
30.010563
96
0.516837
0
0
0
0
0
0
0
0
1,804
0.211663
c6f1e3f027d95fbea317bf8aa4166e874befc948
5,693
py
Python
controllers/transactions_controller.py
JeremyCodeClan/spentrack_project
455074446b5b335ea77933c80c43745fcad1171c
[ "MIT" ]
null
null
null
controllers/transactions_controller.py
JeremyCodeClan/spentrack_project
455074446b5b335ea77933c80c43745fcad1171c
[ "MIT" ]
null
null
null
controllers/transactions_controller.py
JeremyCodeClan/spentrack_project
455074446b5b335ea77933c80c43745fcad1171c
[ "MIT" ]
null
null
null
from flask import Blueprint, Flask, render_template, request, redirect from models.transaction import Transaction import repositories.transaction_repository as transaction_repo import repositories.merchant_repository as merchant_repo import repositories.tag_repository as tag_repo transactions_blueprint = Blueprint("t...
40.664286
129
0.657298
0
0
0
0
5,336
0.937291
0
0
748
0.131389
c6f1fc0edc1a1464fe8ec814304b412c4369a1d8
86,261
py
Python
Welcomer 6.20/modules/core.py
TheRockettek/Welcomer
60706b4d6eec7d4f2500b3acc37530e42d846532
[ "MIT" ]
12
2019-09-10T21:31:51.000Z
2022-01-21T14:31:05.000Z
Welcomer 6.20/modules/core.py
TheRockettek/Welcomer
60706b4d6eec7d4f2500b3acc37530e42d846532
[ "MIT" ]
null
null
null
Welcomer 6.20/modules/core.py
TheRockettek/Welcomer
60706b4d6eec7d4f2500b3acc37530e42d846532
[ "MIT" ]
1
2021-09-17T09:03:54.000Z
2021-09-17T09:03:54.000Z
import asyncio import copy import csv import io import math from math import inf import os import sys import time import traceback import logging from importlib import reload from datetime import datetime import logging import aiohttp import discord import requests import json import ujson from discord.ext import comm...
42.222712
327
0.48417
83,971
0.973453
0
0
10,273
0.119092
69,497
0.80566
25,247
0.292682
c6f49b93679334772aa9bf531c4d72e0b150e6e1
1,225
py
Python
evalml/tests/data_checks_tests/test_utils.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/data_checks_tests/test_utils.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
1
2022-02-19T12:59:09.000Z
2022-02-19T12:59:09.000Z
evalml/tests/data_checks_tests/test_utils.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
null
null
null
import pytest from evalml.data_checks import DataCheckActionCode from evalml.data_checks.utils import handle_data_check_action_code from evalml.problem_types import ProblemTypes def test_handle_action_code_errors(): with pytest.raises(KeyError, match="Action code 'dropping cols' does not"): handle_data_c...
34.027778
99
0.755102
0
0
0
0
461
0.376327
0
0
291
0.237551
c6f503162b0ef4701efc6276ebdf2a288cdafb1f
3,480
py
Python
figures/bothspectra.py
DanielAndreasen/Paper-updated-nir-linelist
a4094a1d73a58c1ee1597c6df8a11b0b9ce17777
[ "MIT" ]
null
null
null
figures/bothspectra.py
DanielAndreasen/Paper-updated-nir-linelist
a4094a1d73a58c1ee1597c6df8a11b0b9ce17777
[ "MIT" ]
null
null
null
figures/bothspectra.py
DanielAndreasen/Paper-updated-nir-linelist
a4094a1d73a58c1ee1597c6df8a11b0b9ce17777
[ "MIT" ]
null
null
null
from astropy.io import fits import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set_style('ticks') sns.set_context('paper', font_scale=1.7) from plot_fits import get_wavelength, dopplerShift from scipy.interpolate import interp1d plt.rcParams['xtick.direction'] = 'in' """ Compare the spectrum ...
31.926606
70
0.561494
0
0
0
0
0
0
0
0
439
0.126149
c6f5b57e9157f7c17bb6f3082af0b5d89d425e82
298
py
Python
main.py
pesikj/DataAnalysisUsingPython
00269a7a7b5388fbbdcf3ddadd951a80a07f9c3a
[ "MIT" ]
null
null
null
main.py
pesikj/DataAnalysisUsingPython
00269a7a7b5388fbbdcf3ddadd951a80a07f9c3a
[ "MIT" ]
null
null
null
main.py
pesikj/DataAnalysisUsingPython
00269a7a7b5388fbbdcf3ddadd951a80a07f9c3a
[ "MIT" ]
null
null
null
from statistical_hypothesis_testing.plots import plots_z_test from statistical_hypothesis_testing.tails import Tail #plots_z_test.create_critical_region_plot(alphas=[0.1, 0.05, 0.01], tails=Tail.RIGHT_TAILED) plots_z_test.create_p_value_plot(0.5109,alpha=0.05,lang='cs', tails=Tail.RIGHT_TAILED)
42.571429
92
0.842282
0
0
0
0
0
0
0
0
96
0.322148
c6f5b6dd280b07a2399dbf6e91ec39c3acaaae3c
3,471
py
Python
projects/migrations/0001_initial.py
Zefarak/illidius_plan
78dd9cc4da374ff88fc507e4870712d87e9ff6c3
[ "MIT" ]
1
2019-02-18T14:31:57.000Z
2019-02-18T14:31:57.000Z
projects/migrations/0001_initial.py
Zefarak/illidius_plan
78dd9cc4da374ff88fc507e4870712d87e9ff6c3
[ "MIT" ]
null
null
null
projects/migrations/0001_initial.py
Zefarak/illidius_plan
78dd9cc4da374ff88fc507e4870712d87e9ff6c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-07-21 04:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.db.models.manager class Migration(migrations.Migration): initial = True dependencies = [ ] operatio...
47.547945
141
0.589455
3,250
0.93633
0
0
0
0
0
0
679
0.195621
c6f6ce9055d1d8634c3084a055d492122c9b4918
1,818
py
Python
EnumLasso/paper/paper_thaliana.py
t-basa/LassoVariants
ead33ac83de19865a9553dbdda9a28aa5c781e44
[ "MIT" ]
12
2016-11-30T04:39:18.000Z
2021-09-11T13:57:37.000Z
EnumLasso/paper/paper_thaliana.py
t-basa/LassoVariants
ead33ac83de19865a9553dbdda9a28aa5c781e44
[ "MIT" ]
2
2018-03-05T19:01:09.000Z
2019-10-10T00:30:55.000Z
EnumLasso/paper/paper_thaliana.py
t-basa/LassoVariants
ead33ac83de19865a9553dbdda9a28aa5c781e44
[ "MIT" ]
6
2017-08-19T17:49:51.000Z
2022-01-09T07:41:22.000Z
# -*- coding: utf-8 -*- """ @author: satohara """ import sys sys.path.append('../') import codecs import numpy as np import pandas as pd from EnumerateLinearModel import EnumLasso # data - x fn = './data/call_method_32.b' df = pd.read_csv(fn, sep=',', header=None) data_id_x = np.array([int(v) for v in df.ix[1, 2:]])...
24.90411
139
0.593509
0
0
0
0
0
0
0
0
404
0.222222
c6f74625e459f6cfa2aca2f74b48bf8881d4641b
8,309
py
Python
lib/backup_service_client/models/bucket.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
lib/backup_service_client/models/bucket.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
lib/backup_service_client/models/bucket.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
155
2018-11-13T14:57:07.000Z
2022-03-28T11:53:22.000Z
# coding: utf-8 """ Couchbase Backup Service API This is REST API allows users to remotely schedule and run backups, restores and merges as well as to explore various archives for all there Couchbase Clusters. # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://github.com/swagger-api...
25.965625
178
0.563846
7,910
0.95198
0
0
4,095
0.492839
0
0
3,942
0.474425
c6f93b1caf13cee134c81078e57fec4a501c2e10
1,618
py
Python
funciones/app.py
christophermontero/estima-tu-proyecto
19f533be203c9ac2c4383ded5a1664dd1d05d679
[ "MIT" ]
2
2021-05-29T16:57:17.000Z
2021-06-13T18:39:24.000Z
funciones/app.py
christophermontero/estima-tu-proyecto
19f533be203c9ac2c4383ded5a1664dd1d05d679
[ "MIT" ]
22
2021-05-22T18:23:40.000Z
2021-12-18T21:09:59.000Z
funciones/app.py
christophermontero/estima-tu-proyecto
19f533be203c9ac2c4383ded5a1664dd1d05d679
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request from db import db_session, init_db from model import Funcion app = Flask(__name__) app.config["JSONIFY_PRETTYPRINT_REGULAR"] = False init_db() @app.route("/funciones", methods=["POST"]) def create_funcion(): data = request.json if data["nombreFuncion"] is None: ...
25.68254
93
0.685414
0
0
0
0
1,346
0.831377
0
0
365
0.225448
c6f9a9602db33208c1f896b22af13200b9be42d9
309
py
Python
onnx_script/check_onnx_model.py
abyssss52/pytorch-image-models
6ed4124c610a73fc849e7e9567bc36cf5bf38ceb
[ "Apache-2.0" ]
null
null
null
onnx_script/check_onnx_model.py
abyssss52/pytorch-image-models
6ed4124c610a73fc849e7e9567bc36cf5bf38ceb
[ "Apache-2.0" ]
null
null
null
onnx_script/check_onnx_model.py
abyssss52/pytorch-image-models
6ed4124c610a73fc849e7e9567bc36cf5bf38ceb
[ "Apache-2.0" ]
null
null
null
import onnx # Load the ONNX model model = onnx.load("./mobilenetv2_new.onnx") # model = onnx.load("../FaceAnti-Spoofing.onnx") # Check that the IR is well formed onnx.checker.check_model(model) # Print a human readable representation of the graph onnx.helper.printable_graph(model.graph) print(model.graph)
25.75
52
0.76699
0
0
0
0
0
0
0
0
179
0.579288
c6fa00680fcfe377a498032a4d31cbf4682bc376
1,071
py
Python
2015/07/puzzle2.py
jsvennevid/adventofcode
c6d5e3e3a166ffad5e8a7cc829599f49607a1efe
[ "MIT" ]
null
null
null
2015/07/puzzle2.py
jsvennevid/adventofcode
c6d5e3e3a166ffad5e8a7cc829599f49607a1efe
[ "MIT" ]
null
null
null
2015/07/puzzle2.py
jsvennevid/adventofcode
c6d5e3e3a166ffad5e8a7cc829599f49607a1efe
[ "MIT" ]
null
null
null
import re wires = {} for i in open('day7.txt'): set = re.match(r'([a-z0-9]+) -> ([a-z]+)',i) if set: wires[set.group(2)] = set.group(1) op1 = re.match(r'(NOT) ([a-z0-9]+) -> ([a-z]+)',i) if op1: wires[op1.group(3)] = [op1.group(1), op1.group(2)] op2 = re.match(r'([a-z0-9]+) (AND|OR|LSHIFT|RSHIFT) ([a-z0-9]+) ...
31.5
80
0.5845
0
0
0
0
0
0
0
0
181
0.169001
c6fa99e51df1893798f6cb4d6c3cbd2091fbf05a
7,167
py
Python
src/visualization/plot_grid.py
davimnz/boa
0546ad4df0ecabec1fd3beb1264cd0930dce13a9
[ "MIT" ]
null
null
null
src/visualization/plot_grid.py
davimnz/boa
0546ad4df0ecabec1fd3beb1264cd0930dce13a9
[ "MIT" ]
null
null
null
src/visualization/plot_grid.py
davimnz/boa
0546ad4df0ecabec1fd3beb1264cd0930dce13a9
[ "MIT" ]
null
null
null
import matplotlib.patches as mpatches import matplotlib.pyplot as plt import networkx as nx import numpy as np import pandas as pd from math import cos, radians def shift_position(pos, x_shift, y_shift) -> dict: """ Moves nodes' position by (x_shift, y_shift) """ return {n: (x + x_shift, y + y_shift)...
34.960976
76
0.635412
0
0
0
0
0
0
0
0
1,063
0.148277
c6fb2216661678548d14f34f7328e08d3f4c59ba
1,254
py
Python
my_project/urls.py
stripathi669/codepal-sample-login
f553cc7f7794dd20197b1df336ed7953ac7a62dc
[ "MIT" ]
2
2017-04-23T08:54:09.000Z
2017-12-19T17:51:38.000Z
my_project/urls.py
stripathi669/codepal-sample-login
f553cc7f7794dd20197b1df336ed7953ac7a62dc
[ "MIT" ]
null
null
null
my_project/urls.py
stripathi669/codepal-sample-login
f553cc7f7794dd20197b1df336ed7953ac7a62dc
[ "MIT" ]
1
2019-10-01T17:51:13.000Z
2019-10-01T17:51:13.000Z
"""my_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
32.153846
79
0.725678
0
0
0
0
0
0
0
0
800
0.637959
c6fb42ccff41d5e02e75ca92305085547bd5ee39
3,870
py
Python
datascripts/make_placescsv.py
NCI-NAACCR-Zone-Design/Louisiana
42fb1d05c47ae01401ee3ac3cc68ff5e4f5d5c07
[ "MIT" ]
null
null
null
datascripts/make_placescsv.py
NCI-NAACCR-Zone-Design/Louisiana
42fb1d05c47ae01401ee3ac3cc68ff5e4f5d5c07
[ "MIT" ]
1
2020-03-05T23:20:38.000Z
2020-03-10T18:03:31.000Z
datascripts/make_placescsv.py
NCI-NAACCR-Zone-Design/Louisiana
42fb1d05c47ae01401ee3ac3cc68ff5e4f5d5c07
[ "MIT" ]
null
null
null
#!/bin/env python3 from osgeo import ogr import os import csv import settings class PlacesIntersector: def run(self): print("PlacesIntersector") self.reproject(settings.INPUT_ZONESFILE, settings.REPROJECTED_ZONESFILE, settings.CTAZONES_SHAPEFILE_IDFIELD, settings.CTAZONES_SHAPEFILE_NAMEFIELD) ...
39.896907
156
0.62093
3,710
0.958656
0
0
0
0
0
0
1,217
0.31447
c6fd01691eb418ac4d1818fca0bd68461092ddaa
580
py
Python
Google/google_organic_results/google_organic_ads/google_regular_ads/serpapi_scrape_google_ads.py
dimitryzub/blog-posts-archive
0978aaa0c9f0142d6f996b81ce391930c5e3be35
[ "CC0-1.0" ]
null
null
null
Google/google_organic_results/google_organic_ads/google_regular_ads/serpapi_scrape_google_ads.py
dimitryzub/blog-posts-archive
0978aaa0c9f0142d6f996b81ce391930c5e3be35
[ "CC0-1.0" ]
null
null
null
Google/google_organic_results/google_organic_ads/google_regular_ads/serpapi_scrape_google_ads.py
dimitryzub/blog-posts-archive
0978aaa0c9f0142d6f996b81ce391930c5e3be35
[ "CC0-1.0" ]
null
null
null
# scrapes both regular and shopping ads (top, right blocks) from serpapi import GoogleSearch import json, os params = { "api_key": os.getenv("API_KEY"), "engine": "google", "q": "buy coffee", "gl": "us", "hl": "en" } search = GoogleSearch(params) results = search.get_dict() if results.get("ads",...
22.307692
59
0.639655
0
0
0
0
0
0
0
0
194
0.334483
c6fd244b6ad93e904d3cfe0db3dd28977bc63c93
3,316
py
Python
tomomibot/commands/start.py
adzialocha/tomomibot
ed3964223bd63340f28d36daa014865f61aaf571
[ "MIT" ]
28
2018-07-26T09:47:32.000Z
2022-01-24T10:38:13.000Z
tomomibot/commands/start.py
adzialocha/tomomibot
ed3964223bd63340f28d36daa014865f61aaf571
[ "MIT" ]
null
null
null
tomomibot/commands/start.py
adzialocha/tomomibot
ed3964223bd63340f28d36daa014865f61aaf571
[ "MIT" ]
5
2018-08-11T08:07:23.000Z
2021-12-23T14:47:40.000Z
import click from tomomibot.cli import pass_context from tomomibot.runtime import Runtime from tomomibot.utils import check_valid_voice, check_valid_model from tomomibot.const import (INTERVAL_SEC, INPUT_DEVICE, OUTPUT_CHANNEL, INPUT_CHANNEL, OUTPUT_DEVICE, SAMPLE_RATE, ...
39.011765
77
0.596803
0
0
0
0
2,829
0.853136
0
0
1,061
0.319964
059afd391bdb4d5d0ce5e8f183cba9cadeed7065
3,451
py
Python
state/GameState.py
philippehenri-gosselin/tankgame
ceabbee7c348bfd4c95d2ee2ae0015d6d761154b
[ "X11" ]
4
2020-09-15T02:00:39.000Z
2021-05-11T17:23:28.000Z
state/GameState.py
philippehenri-gosselin/tankgame
ceabbee7c348bfd4c95d2ee2ae0015d6d761154b
[ "X11" ]
null
null
null
state/GameState.py
philippehenri-gosselin/tankgame
ceabbee7c348bfd4c95d2ee2ae0015d6d761154b
[ "X11" ]
null
null
null
""" MIT License Copyrights © 2020, Philippe-Henri Gosselin. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
34.51
85
0.654593
2,044
0.590751
0
0
286
0.082659
0
0
1,873
0.541329
059b0412d51d78feb8e9b2b1008cb427fb6c0e11
5,516
py
Python
Bot/commands_handling/group_commands.py
DogsonPl/bot_for_messenger
2d6664b52b59696dc82efb3d361b7700ebb3960b
[ "MIT" ]
19
2021-03-11T12:59:00.000Z
2022-02-12T18:50:58.000Z
Bot/commands_handling/group_commands.py
DogsonPl/bot_for_messenger
2d6664b52b59696dc82efb3d361b7700ebb3960b
[ "MIT" ]
null
null
null
Bot/commands_handling/group_commands.py
DogsonPl/bot_for_messenger
2d6664b52b59696dc82efb3d361b7700ebb3960b
[ "MIT" ]
4
2021-03-10T23:07:13.000Z
2021-09-28T18:55:30.000Z
import fbchat import random as rd from .logger import logger from ..bot_actions import BotActions from ..sql import handling_group_sql BOT_WELCOME_MESSAGE = """👋 Witajcie, jestem botem 🤖 ❓ Jeśli chcesz zobaczyć moje komendy napisz !help""" def check_admin_permission(function): async def wrapper(self, event, ...
41.787879
134
0.676215
4,673
0.831939
0
0
4,494
0.800071
4,654
0.828556
1,087
0.19352
059f84fb457661f2a82136d2fab085f6c614dd8f
1,100
py
Python
util/file_parsing.py
LindaSt/BT-graph-creation
a6aa4d0ca42db4744150f11f17aea7e98d391319
[ "MIT" ]
1
2022-03-09T07:28:14.000Z
2022-03-09T07:28:14.000Z
util/file_parsing.py
LindaSt/BT-graph-creation
a6aa4d0ca42db4744150f11f17aea7e98d391319
[ "MIT" ]
null
null
null
util/file_parsing.py
LindaSt/BT-graph-creation
a6aa4d0ca42db4744150f11f17aea7e98d391319
[ "MIT" ]
null
null
null
import os import xml.etree.ElementTree as ET def parse_xml(file_path) -> dict: tree = ET.parse(file_path) root = tree.getroot() groups_colours = {i.attrib['Name']: i.attrib['Color'] for i in root.iter('Group')} groups = ['hotspot', 'lymphocytes', 'tumorbuds', 'lymphocytesR', 'tumorbudsR'] annotat...
36.666667
106
0.59
0
0
0
0
0
0
0
0
188
0.170909
05a1b225db67c9294be8ffcb48b01e142b5fd38c
51,802
py
Python
python source files/trainer.py
barneyga/A-Recurrent-Model-of-Approximate-Enumeration
8a0ca5094a2e180939c25e55f376f30dfa1095bd
[ "MIT" ]
null
null
null
python source files/trainer.py
barneyga/A-Recurrent-Model-of-Approximate-Enumeration
8a0ca5094a2e180939c25e55f376f30dfa1095bd
[ "MIT" ]
1
2021-12-08T00:52:53.000Z
2021-12-08T00:52:53.000Z
python source files/trainer.py
barneyga/A-Recurrent-Model-of-Approximate-Enumeration
8a0ca5094a2e180939c25e55f376f30dfa1095bd
[ "MIT" ]
null
null
null
import os import time import shutil import pickle import torch import torch.nn.functional as F from tqdm import tqdm from torch.optim.lr_scheduler import ReduceLROnPlateau from tensorboard_logger import configure, log_value import pandas as pd from model import RecurrentAttention from stop_model import StopRecurren...
40.032457
154
0.572661
51,437
0.992954
0
0
24,540
0.473727
0
0
16,618
0.320798
05a68fa246d27153d4fabeb9ddac94a69fd17785
392
py
Python
src/apps/shop/serializers.py
brainfukk/fiuread
7414ec9f580b8bdc78e3ce63bb6ebf1ac7cdc4f8
[ "Apache-2.0" ]
null
null
null
src/apps/shop/serializers.py
brainfukk/fiuread
7414ec9f580b8bdc78e3ce63bb6ebf1ac7cdc4f8
[ "Apache-2.0" ]
null
null
null
src/apps/shop/serializers.py
brainfukk/fiuread
7414ec9f580b8bdc78e3ce63bb6ebf1ac7cdc4f8
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from .models import ShopItem class ShopItemSerializer(serializers.ModelSerializer): buy_method = serializers.SerializerMethodField() class Meta: model = ShopItem fields = ("id", "name", "cost", "source", "buy_method") def get_buy_method(self, obj):...
26.133333
70
0.706633
320
0.816327
0
0
0
0
0
0
75
0.191327
05a722d6a74837776cdd4f147e146b4674a0d013
2,205
py
Python
app.py
limjierui/money-goose-telebot
bf048e27598b9ff6da580ee62309c4ca33eae0c5
[ "MIT" ]
null
null
null
app.py
limjierui/money-goose-telebot
bf048e27598b9ff6da580ee62309c4ca33eae0c5
[ "MIT" ]
null
null
null
app.py
limjierui/money-goose-telebot
bf048e27598b9ff6da580ee62309c4ca33eae0c5
[ "MIT" ]
3
2020-12-21T16:21:45.000Z
2020-12-24T16:21:28.000Z
from flask import Flask, request import telegram from moneyGooseBot.master_mind import mainCommandHandler from moneyGooseBot.credentials import URL, reset_key, bot_token, bot_user_name from web_server import create_app # https://api.telegram.org/bot1359229669:AAEm8MG26qbA9XjJyojVKvPI7jAdMVqAkc8/getMe bot = telegram...
30.625
86
0.686168
0
0
0
0
1,683
0.763265
0
0
974
0.441723
05aa26976885770e54982447eb4735e665e02cf2
3,061
py
Python
final/software_tutorial/tutorial/libopencm3/scripts/data/lpc43xx/yaml_odict.py
mmwvh/ce
162064eeb6668896410c9d176fe75531cd3493fb
[ "MIT" ]
28
2021-04-08T15:59:56.000Z
2022-03-12T20:42:16.000Z
final/software_tutorial/tutorial/libopencm3/scripts/data/lpc43xx/yaml_odict.py
mmwvh/ce
162064eeb6668896410c9d176fe75531cd3493fb
[ "MIT" ]
7
2020-08-25T07:58:01.000Z
2020-09-12T20:44:12.000Z
final/software_tutorial/tutorial/libopencm3/scripts/data/lpc43xx/yaml_odict.py
mmwvh/ce
162064eeb6668896410c9d176fe75531cd3493fb
[ "MIT" ]
13
2020-02-13T18:25:57.000Z
2022-03-01T11:27:12.000Z
import yaml from collections import OrderedDict def construct_odict(load, node): """This is the same as SafeConstructor.construct_yaml_omap(), except the data type is changed to OrderedDict() and setitem is used instead of append in the loop. >>> yaml.load(''' ... !!omap ... - foo: bar ......
37.329268
90
0.613525
0
0
1,648
0.538386
0
0
0
0
1,268
0.414244
05ac654490e3084f2724bef66dfbbee9d64e72f4
10,609
py
Python
app.py
isabella232/arrested-development
ac53eb71a4cacc3793d51ff2c2c3c51a7c384dea
[ "FSFAP" ]
1
2015-03-16T21:22:58.000Z
2015-03-16T21:22:58.000Z
app.py
nprapps/arrested-development
ac53eb71a4cacc3793d51ff2c2c3c51a7c384dea
[ "FSFAP" ]
1
2021-02-24T06:08:41.000Z
2021-02-24T06:08:41.000Z
app.py
isabella232/arrested-development
ac53eb71a4cacc3793d51ff2c2c3c51a7c384dea
[ "FSFAP" ]
2
2015-02-22T23:39:11.000Z
2021-02-23T10:45:05.000Z
#!/usr/bin/env python import json from mimetypes import guess_type import urllib import envoy from flask import Flask, Markup, abort, render_template, redirect, Response import app_config from models import Joke, Episode, EpisodeJoke, JokeConnection from render_utils import flatten_app_config, make_context app = Fl...
33.153125
112
0.624658
0
0
0
0
9,226
0.869639
0
0
2,360
0.222453
05ae582a0fb6d75889c4d858419450e634ed3a1d
12,129
py
Python
json_modify.py
Enacero/yaml-patch
7270d431447c82d665622cc316f0941214e7eee2
[ "MIT" ]
2
2020-04-21T08:49:39.000Z
2020-12-21T07:28:43.000Z
json_modify.py
Enacero/json_modify
7270d431447c82d665622cc316f0941214e7eee2
[ "MIT" ]
null
null
null
json_modify.py
Enacero/json_modify
7270d431447c82d665622cc316f0941214e7eee2
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Oleksii Petrenko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
32.692722
88
0.612252
0
0
0
0
0
0
0
0
4,806
0.39624
05aed2b7bdb2d62afb387bf3fa03ff50f51651b0
43,958
py
Python
serial_scripts/vm_regression/test_vm_serial.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
1
2017-06-13T04:42:34.000Z
2017-06-13T04:42:34.000Z
serial_scripts/vm_regression/test_vm_serial.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
serial_scripts/vm_regression/test_vm_serial.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
import traffic_tests from vn_test import * from vm_test import * from floating_ip import * from policy_test import * from compute_node_test import ComputeNodeFixture from user_test import UserFixture from multiple_vn_vm_test import * from tcutils.wrappers import preposttest_wrapper sys.path.append(os.path.realpath('tcu...
46.125918
140
0.626189
43,106
0.980618
0
0
42,453
0.965763
0
0
13,110
0.298239
05afa4697f046e6af89220c07fb5a8db5f7b4cae
2,466
py
Python
odata/tests/test_context.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
74
2015-04-13T15:12:44.000Z
2022-01-24T08:06:16.000Z
odata/tests/test_context.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
43
2015-04-11T15:08:08.000Z
2021-04-14T16:08:43.000Z
odata/tests/test_context.py
suhrawardi/python-odata
8a8f88329ca0f5b893e114bcf7ab02f3a8106ef0
[ "MIT" ]
63
2016-06-22T03:52:39.000Z
2022-02-25T10:56:34.000Z
# -*- coding: utf-8 -*- import json import base64 import decimal from unittest import TestCase import requests import responses from odata.tests import Service, Product, DemoUnboundAction class TestContext(TestCase): def test_context_query_without_auth(self): def request_callback(request): ...
34.732394
92
0.623277
2,272
0.92133
0
0
0
0
0
0
193
0.078264
05b079948e8c02888049d1f77a57cfcbe4bb8e4b
1,432
py
Python
readouts/basic_readout.py
qbxlvnf11/graph-neural-networks-for-graph-classification
5d69ead58c786aa8e472ab0433156fe09fe6ca4b
[ "MIT" ]
20
2020-09-02T07:07:35.000Z
2022-03-16T15:22:14.000Z
readouts/basic_readout.py
yuexiarenjing/graph-neural-networks-for-graph-classification
5d69ead58c786aa8e472ab0433156fe09fe6ca4b
[ "MIT" ]
2
2021-11-01T08:32:10.000Z
2022-03-25T04:29:35.000Z
readouts/basic_readout.py
yuexiarenjing/graph-neural-networks-for-graph-classification
5d69ead58c786aa8e472ab0433156fe09fe6ca4b
[ "MIT" ]
11
2020-09-02T07:13:46.000Z
2022-03-23T10:38:07.000Z
import torch def readout_function(x, readout, batch=None, device=None): if len(x.size()) == 3: if readout == 'max': return torch.max(x, dim=1)[0].squeeze() # max readout elif readout == 'avg': return torch.mean(x, dim=1).squeeze() # avg readout elif readout == 'sum': return torch.sum(x,...
34.095238
77
0.552374
0
0
0
0
0
0
0
0
162
0.113128
05b273137ad8f8c40be4550bda786ffd468b9e75
362
py
Python
src/ef/external_field_uniform.py
tnakaicode/ChargedPaticle-LowEnergy
47b751bcada2af7fc50cef587a48b1a3c12bcbba
[ "MIT" ]
6
2019-04-14T06:19:40.000Z
2021-09-14T13:46:26.000Z
src/ef/external_field_uniform.py
tnakaicode/ChargedPaticle-LowEnergy
47b751bcada2af7fc50cef587a48b1a3c12bcbba
[ "MIT" ]
31
2018-03-02T12:05:20.000Z
2019-02-20T09:29:08.000Z
src/ef/external_field_uniform.py
tnakaicode/ChargedPaticle-LowEnergy
47b751bcada2af7fc50cef587a48b1a3c12bcbba
[ "MIT" ]
10
2017-12-21T15:16:55.000Z
2020-10-31T23:59:50.000Z
from ef.external_field import ExternalField class ExternalFieldUniform(ExternalField): def __init__(self, name, electric_or_magnetic, uniform_field_vector): super().__init__(name, electric_or_magnetic) self.uniform_field_vector = uniform_field_vector def get_at_points(self, positions, time):...
30.166667
73
0.773481
315
0.870166
0
0
0
0
0
0
0
0
05b2b6ec5edc971fee6f55c38fd27eec4af6014d
11,493
py
Python
plugins/helpers/EFO.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
4
2019-03-26T15:54:35.000Z
2021-05-27T13:18:43.000Z
plugins/helpers/EFO.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
12
2019-04-23T14:45:04.000Z
2022-03-17T09:40:04.000Z
plugins/helpers/EFO.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
2
2019-06-15T17:21:14.000Z
2021-05-14T18:35:18.000Z
import logging import re import json import jsonlines from urllib import parse logger = logging.getLogger(__name__) # EFO # The current implementation is based on the conversion from owl format to json lines format using Apache RIOT # The structure disease_obsolete stores the obsolete terms and it is used to retriev...
40.326316
116
0.59297
11,001
0.957191
0
0
0
0
0
0
2,778
0.241712
05b664d9f22c51662666d538e6f424b0f69a4ea2
948
py
Python
interaction3/mfield/tests/test_transmit_receive_beamplot.py
bdshieh/interaction3
b44c390045cf3b594125e90d2f2f4f617bc2433b
[ "MIT" ]
2
2020-07-08T14:42:52.000Z
2022-03-13T05:25:55.000Z
interaction3/mfield/tests/test_transmit_receive_beamplot.py
bdshieh/interaction3
b44c390045cf3b594125e90d2f2f4f617bc2433b
[ "MIT" ]
null
null
null
interaction3/mfield/tests/test_transmit_receive_beamplot.py
bdshieh/interaction3
b44c390045cf3b594125e90d2f2f4f617bc2433b
[ "MIT" ]
null
null
null
import numpy as np from interaction3 import abstract from interaction3.arrays import matrix from interaction3.mfield.solvers.transmit_receive_beamplot_2 import TransmitReceiveBeamplot2 array = matrix.create(nelem=[2, 2]) simulation = abstract.MfieldSimulation(sampling_frequency=100e6, ...
35.111111
92
0.517932
0
0
0
0
0
0
0
0
16
0.016878
05b7efff7d41c4651007c0d46a051ea437cab70c
16,172
py
Python
scripts/make_plots.py
facebookresearch/mpcfp
cb29797aa4f2ce524dd584ecf47c863fd9f414a6
[ "MIT" ]
5
2020-11-18T23:55:17.000Z
2022-01-14T07:15:35.000Z
scripts/make_plots.py
facebookresearch/mpcfp
cb29797aa4f2ce524dd584ecf47c863fd9f414a6
[ "MIT" ]
null
null
null
scripts/make_plots.py
facebookresearch/mpcfp
cb29797aa4f2ce524dd584ecf47c863fd9f414a6
[ "MIT" ]
2
2021-11-06T14:06:13.000Z
2022-01-14T07:16:29.000Z
#!/usr/bin/env python2 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __fu...
32.539235
79
0.537225
0
0
0
0
0
0
0
0
2,741
0.16949
05b87ef1f9d957ce2aacbc7ba9bf31d3f24627e5
2,782
py
Python
example_backtesting.py
brokenlab/finance4py
839fb4c262c369973c1afaebb23291355f8b4668
[ "MIT" ]
6
2016-12-28T03:40:46.000Z
2017-03-31T12:04:43.000Z
example_backtesting.py
brokenlab/finance4py
839fb4c262c369973c1afaebb23291355f8b4668
[ "MIT" ]
null
null
null
example_backtesting.py
brokenlab/finance4py
839fb4c262c369973c1afaebb23291355f8b4668
[ "MIT" ]
3
2018-04-26T03:14:29.000Z
2021-06-13T16:18:04.000Z
# -*- coding: utf-8 -*- ''' * finance4py * Based on Python Data Analysis Library. * 2016/03/22 by Sheg-Huai Wang <m10215059@csie.ntust.edu.tw> * Copyright (c) 2016, finance4py team * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted ...
35.21519
104
0.727175
0
0
0
0
0
0
0
0
2,332
0.761097
05b8e002f7910268a9002f66a3d07f197f31db7a
1,778
py
Python
utils/cloud/cloud_client/__init__.py
alexfdo/asr_eval
d1573cc3113ce9df1ae64c3b91b5f495e2cff9a3
[ "MIT" ]
3
2020-03-06T17:20:34.000Z
2021-09-09T09:18:48.000Z
utils/cloud/cloud_client/__init__.py
alexfdo/asr_eval
d1573cc3113ce9df1ae64c3b91b5f495e2cff9a3
[ "MIT" ]
1
2020-02-03T18:25:08.000Z
2020-02-03T18:25:08.000Z
utils/cloud/cloud_client/__init__.py
alexfdo/asr_eval
d1573cc3113ce9df1ae64c3b91b5f495e2cff9a3
[ "MIT" ]
1
2020-01-29T19:47:54.000Z
2020-01-29T19:47:54.000Z
# coding: utf-8 # flake8: noqa """ ASR documentation No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0.dev Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import ab...
41.348837
119
0.865017
0
0
0
0
0
0
0
0
368
0.206974
05b95038357172273cd6bf5b94205ef5e3a1bff8
2,818
py
Python
main.py
af12066/cancel-sit
29977bb86927e69ae7f94a160ef4d1fb810f0117
[ "MIT" ]
null
null
null
main.py
af12066/cancel-sit
29977bb86927e69ae7f94a160ef4d1fb810f0117
[ "MIT" ]
null
null
null
main.py
af12066/cancel-sit
29977bb86927e69ae7f94a160ef4d1fb810f0117
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) T. H. import urllib.request import re import urllib.parse import codecs import filecmp import os.path import os from bs4 import BeautifulSoup from slacker import Slacker from datetime import datetime class Slack(object): __slacker = None def __init__(self, token): ...
29.663158
220
0.625621
872
0.251878
0
0
0
0
0
0
1,414
0.408434
05ba89852c4740460e1cce9740e5ab37d0b77443
582
py
Python
minitf/kernel/_numpy_math.py
guocuimi/minitf
f272a6b1546b82aaec41ec7d2c2d34fa40a40385
[ "MIT" ]
7
2020-02-10T08:16:30.000Z
2021-01-31T14:08:02.000Z
minitf/kernel/_numpy_math.py
guocuimi/minitf
f272a6b1546b82aaec41ec7d2c2d34fa40a40385
[ "MIT" ]
1
2020-02-29T01:57:54.000Z
2020-02-29T01:57:54.000Z
minitf/kernel/_numpy_math.py
guocuimi/minitf
f272a6b1546b82aaec41ec7d2c2d34fa40a40385
[ "MIT" ]
null
null
null
import numpy as _np from minitf.kernel.core import notrace_primitive from minitf.kernel.core import primitive # ----- Differentiable functions ----- add = primitive(_np.add) subtract = primitive(_np.subtract) multiply = primitive(_np.multiply) divide = primitive(_np.divide) dot = primitive(_np.dot) square = primitive...
27.714286
48
0.780069
0
0
0
0
0
0
0
0
82
0.140893
05bdd1c7fb73fc917e7e9bacb41962e3873e9769
5,802
py
Python
map/migrations/0001_initial.py
matthewoconnor/mapplot-cdp
19513e6617f878d717ab4e917ffc9d22270edcfe
[ "MIT" ]
null
null
null
map/migrations/0001_initial.py
matthewoconnor/mapplot-cdp
19513e6617f878d717ab4e917ffc9d22270edcfe
[ "MIT" ]
null
null
null
map/migrations/0001_initial.py
matthewoconnor/mapplot-cdp
19513e6617f878d717ab4e917ffc9d22270edcfe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2017-01-10 20:41 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
62.387097
275
0.608239
5,579
0.961565
0
0
0
0
0
0
1,300
0.224061
05be03857ac9bab749c288e65ba7f0f36541df9b
4,561
py
Python
Scripts/simulation/gsi_handlers/object_lost_and_found_service_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/gsi_handlers/object_lost_and_found_service_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/gsi_handlers/object_lost_and_found_service_handlers.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\gsi_handlers\object_lost_and_found_service_handlers.py # Compiled at: 2018-10-26 00:20:22 # Size of ...
44.281553
110
0.70182
0
0
0
0
3,025
0.663232
0
0
709
0.155448
05bf284e1bf49c109f8df75324eddb8540d17a61
685
py
Python
testing/test_pendulum.py
delock/pytorch-a3c-mujoco
82e0c854417ac05e0f414eab1710794d41515591
[ "MIT" ]
null
null
null
testing/test_pendulum.py
delock/pytorch-a3c-mujoco
82e0c854417ac05e0f414eab1710794d41515591
[ "MIT" ]
null
null
null
testing/test_pendulum.py
delock/pytorch-a3c-mujoco
82e0c854417ac05e0f414eab1710794d41515591
[ "MIT" ]
null
null
null
#Importing OpenAI gym package and MuJoCo engine import gym import numpy as np import mujoco_py import matplotlib.pyplot as plt import env #Setting MountainCar-v0 as the environment env = gym.make('InvertedPendulum-down') #Sets an initial state env.reset() print (env.action_space) # Rendering our instance 300 times i =...
25.37037
70
0.706569
0
0
0
0
0
0
0
0
325
0.474453
05bf7c9f0303c517554bb2670af4a9a4baf2a54a
5,317
py
Python
plots/plot_drift_types.py
ChristophRaab/RRSLVQ
e265f62e023bd3ca23273b51e06035fd3c0b7c94
[ "MIT" ]
1
2021-06-22T20:54:03.000Z
2021-06-22T20:54:03.000Z
plots/plot_drift_types.py
ChristophRaab/RRSLVQ
e265f62e023bd3ca23273b51e06035fd3c0b7c94
[ "MIT" ]
5
2020-04-20T09:31:02.000Z
2021-07-10T01:23:36.000Z
plots/plot_drift_types.py
ChristophRaab/RRSLVQ
e265f62e023bd3ca23273b51e06035fd3c0b7c94
[ "MIT" ]
1
2020-07-03T04:00:47.000Z
2020-07-03T04:00:47.000Z
import matplotlib.pyplot as plt import numpy as np from scipy.special import logit import pandas as pd from matplotlib.axes import Axes, Subplot from matplotlib.collections import LineCollection from matplotlib.colors import ListedColormap, BoundaryNorm SMALL = 14 SIZE = 16 plt.rc('font', size=SIZE) # controls defaul...
33.024845
130
0.671995
0
0
0
0
0
0
0
0
924
0.173782
05c1f456776569370085a917d41ee8b850f0a3b7
15,773
py
Python
simulation/src/utils.py
VIDA-NYU/pedestrian-sensing-model
e8f0a6d3e47fc2a2577ac502f607568b3b7f2abf
[ "MIT" ]
2
2020-01-14T12:44:11.000Z
2021-09-29T16:09:37.000Z
simulation/src/utils.py
VIDA-NYU/pedestrian-sensing-model
e8f0a6d3e47fc2a2577ac502f607568b3b7f2abf
[ "MIT" ]
1
2021-09-11T14:13:57.000Z
2021-09-11T14:13:57.000Z
simulation/src/utils.py
VIDA-NYU/pedestrian-sensing-model
e8f0a6d3e47fc2a2577ac502f607568b3b7f2abf
[ "MIT" ]
2
2020-07-13T17:08:25.000Z
2021-03-31T15:10:58.000Z
#!/usr/bin/env python3 import numpy as np import math import random import time import scipy.misc import scipy.signal import multiprocessing import json import itertools import os import pprint from collections import namedtuple from fractions import gcd from optimized import get_distance OBSTACLE = -1 MAX = 21474836...
30.216475
140
0.573131
0
0
0
0
0
0
0
0
5,763
0.365371
05c354eab5a376b1dcdf00dc912ca4e24bdc43ea
2,438
py
Python
luxor/controllers/types.py
sam007961/luxor
31838c937b61bfbc400103d58ec5b5070471767e
[ "MIT" ]
null
null
null
luxor/controllers/types.py
sam007961/luxor
31838c937b61bfbc400103d58ec5b5070471767e
[ "MIT" ]
5
2020-09-06T15:44:13.000Z
2020-11-02T11:30:22.000Z
luxor/controllers/types.py
sam007961/luxor
31838c937b61bfbc400103d58ec5b5070471767e
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Union from luxor.core.events import Event from luxor.controllers.expressions import Var class Int(Var): def __init__(self, value: Number = 0, **kwargs) -> None: super(Int, self).__init__(**kwargs) self.event_prefix = self.name + '.int.' ...
30.098765
73
0.511895
2,259
0.926579
0
0
198
0.081214
0
0
212
0.086957
05c47851eed298a1ca3b5574ee61fdfb8228a592
412
py
Python
Les 1/1_1.py
tloader11/TICT-V1PROG-15
dac7e991dcb11a397082bdceaf60a07b9bbc1a4a
[ "Unlicense" ]
null
null
null
Les 1/1_1.py
tloader11/TICT-V1PROG-15
dac7e991dcb11a397082bdceaf60a07b9bbc1a4a
[ "Unlicense" ]
null
null
null
Les 1/1_1.py
tloader11/TICT-V1PROG-15
dac7e991dcb11a397082bdceaf60a07b9bbc1a4a
[ "Unlicense" ]
null
null
null
5 5 integer 5.0 5.0 float 5 % 2 1 int 5 > 1 True boolean '5' '5' String 5 * 2 10 int '5' * 2 '55' String '5' + '2' '52' String 5 / 2 2.5 float 5 // 2 ...
29.428571
35
0.279126
0
0
0
0
0
0
0
0
23
0.055825
05c54a12ada174aedbee75dcfaa2218242c10ec6
1,270
py
Python
edgecast/command_line.py
ganguera/edgecast
43ab240698a50c1382eb11bdb79acc5683bc10ea
[ "MIT" ]
null
null
null
edgecast/command_line.py
ganguera/edgecast
43ab240698a50c1382eb11bdb79acc5683bc10ea
[ "MIT" ]
null
null
null
edgecast/command_line.py
ganguera/edgecast
43ab240698a50c1382eb11bdb79acc5683bc10ea
[ "MIT" ]
null
null
null
import argparse import arrow import json import config from . import EdgecastReportReader from media_type import PLATFORM def main(): parser = argparse.ArgumentParser( description='EdgeCast Usage Report Reader' ) parser.add_argument('-g', '--granularity', dest='granularity', action='store', type=str, ...
27.608696
108
0.684252
0
0
0
0
0
0
0
0
382
0.300787
05c66e3dcdf2a391e7cb2ae90afaebe8a08c59e9
3,483
py
Python
skeletons/browser/browser.py
gbkim000/wxPython
b1604d71cf04801f9efa8b26b935561a88ef1daa
[ "BSD-2-Clause" ]
80
2018-05-25T00:37:25.000Z
2022-03-13T12:31:02.000Z
skeletons/browser/browser.py
gbkim000/wxPython
b1604d71cf04801f9efa8b26b935561a88ef1daa
[ "BSD-2-Clause" ]
1
2021-01-08T20:22:52.000Z
2021-01-08T20:22:52.000Z
skeletons/browser/browser.py
gbkim000/wxPython
b1604d71cf04801f9efa8b26b935561a88ef1daa
[ "BSD-2-Clause" ]
32
2018-05-24T05:40:55.000Z
2022-03-24T00:32:11.000Z
#!/usr/bin/python """ ZetCode wxPython tutorial This program creates a browser UI. author: Jan Bodnar website: zetcode.com last edited: May 2018 """ import wx from wx.lib.buttons import GenBitmapTextButton class Example(wx.Frame): def __init__(self, *args, **kw): super(Example, self).__init__(*args, *...
27.642857
83
0.584266
3,141
0.901809
0
0
0
0
0
0
423
0.121447
05c7ce421e8fdf3698aad581723528f431eaafbe
1,673
py
Python
model/tds_block.py
SABER-labs/SABERv2
028d403beadec3adebd51582fd8ef896a2fe3696
[ "MIT" ]
1
2022-03-02T02:52:24.000Z
2022-03-02T02:52:24.000Z
model/tds_block.py
SABER-labs/SABERv2
028d403beadec3adebd51582fd8ef896a2fe3696
[ "MIT" ]
null
null
null
model/tds_block.py
SABER-labs/SABERv2
028d403beadec3adebd51582fd8ef896a2fe3696
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class TDSBlock(nn.Module): def __init__(self, channels, kernel_size, width, dropout, right_padding): super().__init__() self.channels = channels self.width = width assert(right_padding >= 0) self.conv_block = nn.Sequential( ...
28.355932
77
0.545129
1,388
0.829647
0
0
0
0
0
0
90
0.053796
05c8724a622688c0f5c093058bd7213a2efddffc
1,968
py
Python
blackcompany/serve/vcs.py
clckwrkbdgr/blackcompany
9164a0db3e9f11878ce12da6ebdf82a300e1c6f4
[ "WTFPL" ]
null
null
null
blackcompany/serve/vcs.py
clckwrkbdgr/blackcompany
9164a0db3e9f11878ce12da6ebdf82a300e1c6f4
[ "WTFPL" ]
null
null
null
blackcompany/serve/vcs.py
clckwrkbdgr/blackcompany
9164a0db3e9f11878ce12da6ebdf82a300e1c6f4
[ "WTFPL" ]
null
null
null
from ._base import Endpoint from ..util._six import Path import bottle from ..util import gitHttpBackend class GitHTTPBackend: """ WSGI git-http-backend interface to actual endpoints. """ def __init__(self, route, repo_root): self.route = route self.repo_root = Path(repo_root) def get(self, path): return sel...
37.846154
143
0.758638
1,251
0.635671
0
0
0
0
0
0
363
0.184451
05cc0547376efd7b3d0398149b11f68433ccaf60
2,999
py
Python
imaginaire/discriminators/cagan.py
zebincai/imaginaire
f5a707f449d93c33fbfe19bcd975a476f2c1dd7a
[ "RSA-MD" ]
null
null
null
imaginaire/discriminators/cagan.py
zebincai/imaginaire
f5a707f449d93c33fbfe19bcd975a476f2c1dd7a
[ "RSA-MD" ]
null
null
null
imaginaire/discriminators/cagan.py
zebincai/imaginaire
f5a707f449d93c33fbfe19bcd975a476f2c1dd7a
[ "RSA-MD" ]
null
null
null
# Copyright (C) 2020 NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md import torch import torch.nn as nn from imaginaire.layers import Conv2dBlock from imaginaire.layers.misc import ApplyNoise...
40.527027
102
0.617206
2,371
0.790597
0
0
0
0
0
0
634
0.211404
05cc10143e791bcc38db23bf914cc748df6a3237
2,959
py
Python
Chapter10/Ch10/server/database.py
henrryyanez/Tkinter-GUI-Programming-by-Example
c8a326d6034b5e54f77605a8ec840cb8fac89412
[ "MIT" ]
127
2018-08-27T16:34:43.000Z
2022-03-22T19:20:53.000Z
Chapter10/Ch10/server/database.py
PiotrAdaszewski/Tkinter-GUI-Programming-by-Example
c8a326d6034b5e54f77605a8ec840cb8fac89412
[ "MIT" ]
8
2019-04-11T06:47:36.000Z
2022-03-11T23:23:42.000Z
Chapter10/Ch10/server/database.py
PiotrAdaszewski/Tkinter-GUI-Programming-by-Example
c8a326d6034b5e54f77605a8ec840cb8fac89412
[ "MIT" ]
85
2018-04-30T19:42:21.000Z
2022-03-30T01:22:54.000Z
import sqlite3 class Database: def __init__(self): self.database = "chat.db" def perform_insert(self, sql, params): conn = sqlite3.connect(self.database) cursor = conn.cursor() cursor.execute(sql, params) conn.commit() conn.close() def perform_select(self,...
30.822917
117
0.630618
2,941
0.993917
0
0
0
0
0
0
620
0.20953
05cea8e33b54e9775229454c04e0071781d3127e
938
py
Python
ad_hoc_scripts/update_by_condition.py
IgorZyktin/MediaStorageSystem
df8d260581cb806eb54f320d63aa674c6175c17e
[ "MIT" ]
2
2021-03-06T16:07:30.000Z
2021-03-17T10:27:25.000Z
ad_hoc_scripts/update_by_condition.py
IgorZyktin/MediaStorageSystem
df8d260581cb806eb54f320d63aa674c6175c17e
[ "MIT" ]
null
null
null
ad_hoc_scripts/update_by_condition.py
IgorZyktin/MediaStorageSystem
df8d260581cb806eb54f320d63aa674c6175c17e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Non user friendly script. """ from mss.core.class_filesystem import Filesystem def update_by_condition(root_path: str, theme: str): """Change records by condition.""" fs = Filesystem() path = fs.join(root_path, theme, 'metainfo') for folder, filename, name, ext in fs.iter_...
26.055556
57
0.590618
0
0
0
0
0
0
0
0
242
0.257996
05cf590b42b6da085a51776ee9e5aa949a057c25
2,555
py
Python
2.ReinforcementLearning/RL_Book/1-gridworld/environment_value_iteration.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
null
null
null
2.ReinforcementLearning/RL_Book/1-gridworld/environment_value_iteration.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
11
2020-01-28T22:33:49.000Z
2022-03-11T23:41:08.000Z
2.ReinforcementLearning/RL_Book/1-gridworld/environment_value_iteration.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
2
2019-06-01T04:14:52.000Z
2020-05-31T08:13:23.000Z
from environment import * import random class ValueIterationGraphicDisplay(GraphicDisplay): def __init__(self, agent, title): self.btn_1_text = "Calculate" self.btn_2_text = "Print Policy" self.btn_1_func = self.calculate_value self.btn_2_func = self.print_optimal_policy sel...
39.307692
94
0.600391
2,514
0.983953
0
0
0
0
0
0
48
0.018787
05cff405e8dd7ef93166ffc63471b8011294be84
8,289
py
Python
csimpy/test.py
dewancse/csimpy
58c32e40e5d991b4ca98df05e6f61020def475a9
[ "Apache-2.0" ]
null
null
null
csimpy/test.py
dewancse/csimpy
58c32e40e5d991b4ca98df05e6f61020def475a9
[ "Apache-2.0" ]
null
null
null
csimpy/test.py
dewancse/csimpy
58c32e40e5d991b4ca98df05e6f61020def475a9
[ "Apache-2.0" ]
null
null
null
from enum import Enum from math import * from scipy import integrate import matplotlib.pyplot as plt from libcellml import * import lxml.etree as ET __version__ = "0.1.0" LIBCELLML_VERSION = "0.2.0" STATE_COUNT = 1 VARIABLE_COUNT = 29 class VariableType(Enum): CONSTANT = 1 COMPUTED_CONSTANT = 2 ALGEBRAI...
42.507692
268
0.68054
86
0.010375
0
0
0
0
0
0
3,233
0.390035
05d337eef8af353471796ace517f3b818298177f
2,342
py
Python
camera_calib/image.py
justinblaber/camera_calib_python
9427ff31d55af7619e7aee74136446a31d10def0
[ "Apache-2.0" ]
3
2020-10-14T10:24:09.000Z
2021-09-19T20:48:40.000Z
camera_calib/image.py
justinblaber/camera_calib_python
9427ff31d55af7619e7aee74136446a31d10def0
[ "Apache-2.0" ]
1
2021-09-28T02:06:42.000Z
2021-09-28T02:06:42.000Z
camera_calib/image.py
justinblaber/camera_calib_python
9427ff31d55af7619e7aee74136446a31d10def0
[ "Apache-2.0" ]
2
2021-01-07T20:13:31.000Z
2021-01-08T18:16:53.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: image.ipynb (unless otherwise specified). __all__ = ['Img', 'FileImg', 'File16bitImg', 'ArrayImg'] # Cell import warnings import numpy as np import torch from PIL import Image from .utils import * # Cell class Img: def exists(self): raise NotImplemented...
32.527778
91
0.61614
2,062
0.880444
0
0
463
0.197694
0
0
479
0.204526
05d462566b4d5254250d288dd86dc436b3f67818
2,144
py
Python
einshape/src/jax/jax_ops.py
LaudateCorpus1/einshape
b1a0e696c20c025074f09071790b97b42754260d
[ "Apache-2.0" ]
38
2021-07-23T12:00:08.000Z
2022-03-18T08:40:33.000Z
einshape/src/jax/jax_ops.py
LaudateCorpus1/einshape
b1a0e696c20c025074f09071790b97b42754260d
[ "Apache-2.0" ]
1
2021-10-05T16:20:23.000Z
2021-10-05T16:20:23.000Z
einshape/src/jax/jax_ops.py
LaudateCorpus1/einshape
b1a0e696c20c025074f09071790b97b42754260d
[ "Apache-2.0" ]
3
2021-08-04T16:18:29.000Z
2021-11-13T14:33:20.000Z
# coding=utf-8 # Copyright 2021 DeepMind Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
33.5
80
0.726213
703
0.327892
0
0
0
0
0
0
1,143
0.533116
05d4760733051270e73120a1ac9a61ea86e6cde5
1,800
py
Python
DOOM.py
ariel139/DOOM-port-scanner
328678b9f79855de472967f1a3e4b3e9181a3706
[ "MIT" ]
6
2020-11-24T06:51:02.000Z
2022-02-26T23:19:46.000Z
DOOM.py
ariel139/DOOM-port-scanner
328678b9f79855de472967f1a3e4b3e9181a3706
[ "MIT" ]
null
null
null
DOOM.py
ariel139/DOOM-port-scanner
328678b9f79855de472967f1a3e4b3e9181a3706
[ "MIT" ]
null
null
null
import socket from IPy import IP print(""" You are using the DOOM Port scanner. This tool is for educational purpose ONLY!!!! 1. You can change the range of the ports you want to scan. 2. You can change the speedof the scan 3. you can scan a list of targets by using ', ' after each target 4. You can sc...
24.657534
111
0.597778
0
0
0
0
0
0
0
0
798
0.443333
05d4a6a91e58732f8757086328fccaf5f8b61a70
9,380
py
Python
finding_models/testing_classifiers.py
NtMalDetect/NtMalDetect
5bf8f35491bf8081d0b721fa1bf90582b410ed74
[ "MIT" ]
10
2018-01-04T07:59:59.000Z
2022-01-17T08:56:33.000Z
finding_models/testing_classifiers.py
NtMalDetect/NtMalDetect
5bf8f35491bf8081d0b721fa1bf90582b410ed74
[ "MIT" ]
2
2020-01-12T19:32:05.000Z
2020-04-11T09:38:07.000Z
finding_models/testing_classifiers.py
NtMalDetect/NtMalDetect
5bf8f35491bf8081d0b721fa1bf90582b410ed74
[ "MIT" ]
1
2018-08-31T04:13:43.000Z
2018-08-31T04:13:43.000Z
from __future__ import print_function import logging import numpy as np from optparse import OptionParser import sys from time import time import matplotlib.pyplot as plt from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from sklearn.feature_extraction.text import HashingVectorizer from skl...
31.059603
150
0.698294
0
0
0
0
0
0
0
0
2,196
0.234115
05d5479edfdc67ed72d1fed7ba706e163051f970
5,953
py
Python
neutron/tests/fullstack/test_firewall.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
1
2018-10-19T01:48:37.000Z
2018-10-19T01:48:37.000Z
neutron/tests/fullstack/test_firewall.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
neutron/tests/fullstack/test_firewall.py
knodir/neutron
ac4e28478ac8a8a0c9f5c5785f6a6bcf532c66b8
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2018 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.908497
79
0.666891
4,727
0.794053
0
0
0
0
0
0
1,547
0.259869
05d679b96fcc27f56541b2f87e6ba4b22f90adbe
709
py
Python
Analysis/pdf_to_txt.py
ashishnitinpatil/resanalysersite
0604d2fed4760be741c4d90b6d230d0f2cd8bf9e
[ "CC-BY-4.0" ]
null
null
null
Analysis/pdf_to_txt.py
ashishnitinpatil/resanalysersite
0604d2fed4760be741c4d90b6d230d0f2cd8bf9e
[ "CC-BY-4.0" ]
null
null
null
Analysis/pdf_to_txt.py
ashishnitinpatil/resanalysersite
0604d2fed4760be741c4d90b6d230d0f2cd8bf9e
[ "CC-BY-4.0" ]
null
null
null
from pdfminer.pdfinterp import PDFResourceManager, process_pdf from pdfminer.converter import TextConverter from pdfminer.layout import LAParams from cStringIO import StringIO def convert_pdf(path): rsrcmgr = PDFResourceManager() retstr = StringIO() codec = 'utf-8' laparams = LAParams() device = T...
27.269231
83
0.712271
0
0
0
0
0
0
0
0
114
0.16079
05d6c824429b4f5fccdfe1433815eb6c96e18c8f
480
py
Python
local/handler/TravisHandler.py
fasterit/supybot-github
37b80046c0f0d5a66b2107a63e380002adbb66f5
[ "MIT" ]
7
2016-07-16T22:16:37.000Z
2021-06-14T20:45:37.000Z
local/handler/TravisHandler.py
fasterit/supybot-github
37b80046c0f0d5a66b2107a63e380002adbb66f5
[ "MIT" ]
30
2015-06-03T22:40:28.000Z
2022-02-11T08:49:44.000Z
local/handler/TravisHandler.py
fasterit/supybot-github
37b80046c0f0d5a66b2107a63e380002adbb66f5
[ "MIT" ]
5
2018-01-12T21:28:50.000Z
2020-10-01T13:44:09.000Z
from ..utility import * def handle(data, theme): if isStatusVisible(data['repository']['url'], data['status_message'].lower()): theme.travis( branch = data['branch'], repo = data['repository']['name'], status = data['status_message'], commitId = data['commit'...
34.285714
82
0.554167
0
0
0
0
0
0
0
0
116
0.241667
05d8328fda38c6d6fda5c13e5f09ac74925e7f3b
10,417
py
Python
pyart/io/tests/test_mdv_radar.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/io/tests/test_mdv_radar.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/io/tests/test_mdv_radar.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
""" Unit Tests for Py-ART's io/mdv_radar.py module. """ import numpy as np from numpy.testing import assert_almost_equal from numpy.ma.core import MaskedArray import pyart ############################################ # read_mdv tests (verify radar attributes) # ############################################ # read in...
29.179272
75
0.707977
0
0
1,703
0.163483
0
0
0
0
2,742
0.263224
05d878ca2e433fc4c0d9802abde19f10dbc8863e
2,430
py
Python
model/UserAccess.py
EmbeddedSoftwareCaiShuPeng/vehicleDispatcher
aacebb1656fe095485041de0bcbb67627e384abc
[ "MIT" ]
1
2016-04-27T14:23:53.000Z
2016-04-27T14:23:53.000Z
model/UserAccess.py
EmbeddedSoftwareCaiShuPeng/vehicleDispatcher
aacebb1656fe095485041de0bcbb67627e384abc
[ "MIT" ]
null
null
null
model/UserAccess.py
EmbeddedSoftwareCaiShuPeng/vehicleDispatcher
aacebb1656fe095485041de0bcbb67627e384abc
[ "MIT" ]
null
null
null
import uuid, json, os, pymongo from models import User def addUser(user): res = {} res['result'] = 1 res['message'] = '' if User.insert_one(user).inserted_id != '': res['message'] = 'success' else: res['result'] = 0 res['message'] = 'Fail to add user in database!' ret...
24.545455
59
0.475309
0
0
0
0
0
0
0
0
747
0.307407
05ddcfc4ce86d56934f5e0733a719cb7c2450e6f
969
py
Python
sdk/python/pulumi_google_native/genomics/v1alpha2/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/genomics/v1alpha2/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/genomics/v1alpha2/_enums.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from enum import Enum __all__ = [ 'DiskType', ] class DiskType(str, Enum): """ Required. The type of the disk to create. """ TYP...
30.28125
136
0.672859
744
0.767802
0
0
0
0
0
0
783
0.80805
05df1e31c5373f19f615a0dfa51f726a3fbefbbb
634
py
Python
plugins/startHelp.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
2
2021-11-12T13:15:03.000Z
2021-11-13T12:17:33.000Z
plugins/startHelp.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
null
null
null
plugins/startHelp.py
REX-BOTZ/MegaUploaderbot-1
025fd97344da388fe607f5db73ad9f4435f51baa
[ "Apache-2.0" ]
1
2022-01-07T09:55:53.000Z
2022-01-07T09:55:53.000Z
#!/usr/bin/env python3 """Importing""" # Importing Common Files from botModule.importCommon import * """Start Handler""" @Client.on_message(filters.private & filters.command("start")) async def start_handler(bot:Update, msg:Message): if await search_user_in_community(bot, msg): await msg.reply_text(BotM...
26.416667
71
0.728707
0
0
0
0
485
0.764984
360
0.567823
123
0.194006
05e108ee92867afb8794b956bcf9b413dc00ac01
206
py
Python
webSys/dbweb/util/__init__.py
Qiumy/FIF
8c9c58504ecab510dc0a96944f0031a3fd513d74
[ "Apache-2.0" ]
2
2018-12-21T02:01:03.000Z
2019-10-17T08:07:04.000Z
webSys/dbweb/util/__init__.py
Qiumy/FIF
8c9c58504ecab510dc0a96944f0031a3fd513d74
[ "Apache-2.0" ]
null
null
null
webSys/dbweb/util/__init__.py
Qiumy/FIF
8c9c58504ecab510dc0a96944f0031a3fd513d74
[ "Apache-2.0" ]
1
2018-06-01T07:56:09.000Z
2018-06-01T07:56:09.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from flask import Blueprint filter_blueprint = Blueprint('filters', __name__) # Register all the filter. from . import time_process, text_process, user_manage
29.428571
53
0.747573
0
0
0
0
0
0
0
0
80
0.38835
05e10cbd60c9a8c4e9d6e849c57e56e13a3dc1f5
3,596
py
Python
Code/network_model_HiCoDe.py
AbinavRavi/Network_Analysis_Eur_Parl
dea84d3375eea07676e0193d575e3deef76312bc
[ "MIT" ]
1
2020-12-15T16:35:20.000Z
2020-12-15T16:35:20.000Z
Code/network_model_HiCoDe.py
AbinavRavi/Network_Analysis_Eur_Parl
dea84d3375eea07676e0193d575e3deef76312bc
[ "MIT" ]
null
null
null
Code/network_model_HiCoDe.py
AbinavRavi/Network_Analysis_Eur_Parl
dea84d3375eea07676e0193d575e3deef76312bc
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp import pandas as pd import ast import itertools from itertools import product from collections import Counter import networkx as nx import network_utils as nu import hicode as hc import matplotlib.pyplot as plt import matplotlib.cm as cm plt.style.use('classic') # ------------...
38.666667
121
0.547553
0
0
0
0
0
0
0
0
1,873
0.520857
05e2589d4291356b8e585fa87a27f0d7fe177954
209
py
Python
py_battlescribe/shared/rules.py
akabbeke/py_battlescribe
7f96d44295d46810268e666394e3e3238a6f2c61
[ "MIT" ]
1
2021-11-17T22:00:21.000Z
2021-11-17T22:00:21.000Z
py_battlescribe/shared/rules.py
akabbeke/py_battlescribe
7f96d44295d46810268e666394e3e3238a6f2c61
[ "MIT" ]
null
null
null
py_battlescribe/shared/rules.py
akabbeke/py_battlescribe
7f96d44295d46810268e666394e3e3238a6f2c61
[ "MIT" ]
null
null
null
from ..bs_node.iterable import BSNodeIterable from ..bs_reference.iter import BSReferenceIter class SharedRules(BSNodeIterable): _tag_name = 'sharedRules' _iter_child_class = BSReferenceIter('Rule')
26.125
47
0.794258
113
0.54067
0
0
0
0
0
0
19
0.090909
05e43c552c5879146cf3f036c106616fa493ebaa
5,487
py
Python
priorgen/pca_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
1
2021-12-09T10:29:20.000Z
2021-12-09T10:29:20.000Z
priorgen/pca_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
null
null
null
priorgen/pca_utils.py
joshjchayes/PriorGen
228be0b06dca29ad2ad33ae216f494eaead6161f
[ "MIT" ]
null
null
null
''' pca_utils.py Module containing functions to run PCAs, and generate diagnostic plots ''' from sklearn.decomposition import PCA import matplotlib.pyplot as plt import numpy as np def run_PCA(parameters, observables, n_components): ''' Runs a principal component analysis to reduce dimensionality of o...
35.862745
111
0.686896
0
0
0
0
0
0
0
0
4,072
0.742118
05e5ab63cfbf61b1260c3430dac86bcf4cae1b06
17,452
py
Python
prompt_tuning/data/super_glue.py
techthiyanes/prompt-tuning
9f4d7082aa6dbd955e38488d6d3fa5a7c039f6c7
[ "Apache-2.0" ]
108
2021-11-05T21:44:27.000Z
2022-03-31T14:19:30.000Z
prompt_tuning/data/super_glue.py
techthiyanes/prompt-tuning
9f4d7082aa6dbd955e38488d6d3fa5a7c039f6c7
[ "Apache-2.0" ]
172
2022-02-01T00:08:39.000Z
2022-03-31T12:44:07.000Z
prompt_tuning/data/super_glue.py
dumpmemory/prompt-tuning
bac77e4f5107b4a89f89c49b14d8fe652b1c5734
[ "Apache-2.0" ]
9
2022-01-16T11:55:18.000Z
2022-03-06T23:26:36.000Z
# Copyright 2022 Google. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
42.77451
80
0.67276
0
0
0
0
0
0
0
0
7,377
0.422702
05e5bab9ff77cdee550c0152d15077d78e190eff
952
py
Python
src/runtime/tasks.py
HitLuca/predict-python
14f2f55cb29f817a5871d4c0b11a3758285301ca
[ "MIT" ]
null
null
null
src/runtime/tasks.py
HitLuca/predict-python
14f2f55cb29f817a5871d4c0b11a3758285301ca
[ "MIT" ]
null
null
null
src/runtime/tasks.py
HitLuca/predict-python
14f2f55cb29f817a5871d4c0b11a3758285301ca
[ "MIT" ]
null
null
null
from django_rq.decorators import job from src.core.core import runtime_calculate from src.jobs.models import JobStatuses from src.jobs.ws_publisher import publish from src.logs.models import Log from src.utils.file_service import get_log @job("default", timeout='1h') def runtime_task(job, model): print("Start ru...
30.709677
65
0.657563
0
0
0
0
710
0.745798
0
0
69
0.072479
05e6f09ddfc0212cb3f08469b5c83b81051137ad
99
py
Python
django_models_from_csv/__init__.py
themarshallproject/django-collaborative
1474b9737eaea35eb11b39380b35c2a801831d9c
[ "MIT" ]
88
2019-05-17T19:52:44.000Z
2022-03-28T19:43:07.000Z
django_models_from_csv/__init__.py
themarshallproject/django-collaborative
1474b9737eaea35eb11b39380b35c2a801831d9c
[ "MIT" ]
65
2019-05-17T20:06:18.000Z
2021-01-13T03:51:07.000Z
django_models_from_csv/__init__.py
themarshallproject/django-collaborative
1474b9737eaea35eb11b39380b35c2a801831d9c
[ "MIT" ]
15
2019-07-09T20:48:14.000Z
2021-07-24T20:45:55.000Z
default_app_config = 'django_models_from_csv.apps.DjangoDynamicModelsConfig' __version__ = "1.1.0"
33
76
0.838384
0
0
0
0
0
0
0
0
62
0.626263
05e70bf4fcafed340bac69f51837c437a43b38d8
93
py
Python
utensor_cgen/backend/utensor/code_generator/__init__.py
uTensor/utensor_cgen
eccd6859028d0b6a350dced25ea72ff02faaf9ad
[ "Apache-2.0" ]
49
2018-01-06T12:57:56.000Z
2021-09-03T09:48:32.000Z
utensor_cgen/backend/utensor/code_generator/__init__.py
uTensor/utensor_cgen
eccd6859028d0b6a350dced25ea72ff02faaf9ad
[ "Apache-2.0" ]
101
2018-01-16T19:24:21.000Z
2021-11-10T19:39:33.000Z
utensor_cgen/backend/utensor/code_generator/__init__.py
uTensor/utensor_cgen
eccd6859028d0b6a350dced25ea72ff02faaf9ad
[ "Apache-2.0" ]
32
2018-02-15T19:39:50.000Z
2020-11-26T22:32:05.000Z
from .legacy import uTensorLegacyCodeGenerator from .rearch import uTensorRearchCodeGenerator
46.5
46
0.903226
0
0
0
0
0
0
0
0
0
0
05ec45e9e0486f8c0920e8e4a6acabaf4897caee
417
py
Python
ch3/ricolisp/token.py
unoti/rico-lisp
367f625dcd086e207515bdeb5561763754a3531c
[ "MIT" ]
null
null
null
ch3/ricolisp/token.py
unoti/rico-lisp
367f625dcd086e207515bdeb5561763754a3531c
[ "MIT" ]
null
null
null
ch3/ricolisp/token.py
unoti/rico-lisp
367f625dcd086e207515bdeb5561763754a3531c
[ "MIT" ]
null
null
null
from collections import UserString from typing import List class Token(UserString): """A string that has additional information about the source code for the string.""" def __init__(self, s: str, line_number:int, character_number: int, filename: str = None): super().__init__(s) self.line_numbe...
37.909091
93
0.717026
356
0.853717
0
0
0
0
0
0
84
0.201439
05ed3bd6a82da190685915c3b42fde3a3b5e118a
2,655
py
Python
utils.py
ali-ramadhan/wxConch
1106ce17d25f96a038ca784029261faafd7cfaf9
[ "MIT" ]
1
2019-03-09T01:10:59.000Z
2019-03-09T01:10:59.000Z
utils.py
ali-ramadhan/weather-prediction-model-consensus
1106ce17d25f96a038ca784029261faafd7cfaf9
[ "MIT" ]
1
2019-08-19T12:26:06.000Z
2019-08-19T12:26:06.000Z
utils.py
ali-ramadhan/weather-prediction-model-consensus
1106ce17d25f96a038ca784029261faafd7cfaf9
[ "MIT" ]
null
null
null
import os import time import math import logging.config from datetime import datetime from subprocess import run from urllib.request import urlopen, urlretrieve from urllib.parse import urlparse, urljoin import smtplib, ssl from os.path import basename from email.mime.application import MIMEApplication from email.mime...
28.858696
98
0.680979
0
0
0
0
0
0
0
0
529
0.199247
05ed9c8e8fd31a9e77da54a3f25437648359aef1
1,987
py
Python
aiida_fleur/cmdline/__init__.py
sphuber/aiida-fleur
df33e9a7b993a52c15a747a4ff23be3e19832b8d
[ "MIT" ]
null
null
null
aiida_fleur/cmdline/__init__.py
sphuber/aiida-fleur
df33e9a7b993a52c15a747a4ff23be3e19832b8d
[ "MIT" ]
null
null
null
aiida_fleur/cmdline/__init__.py
sphuber/aiida-fleur
df33e9a7b993a52c15a747a4ff23be3e19832b8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the AiiDA-FLEUR package. ...
43.195652
85
0.622043
0
0
0
0
252
0.126761
0
0
1,455
0.731891
05efd08ce434309fea6a153caaf4f36da65f692b
243
py
Python
textract/parsers/doc_parser.py
Pandaaaa906/textract
cee75460d3d43f0aa6f4967c6ccf069ee79fc560
[ "MIT" ]
1,950
2015-01-01T18:30:11.000Z
2022-03-30T21:06:41.000Z
textract/parsers/doc_parser.py
nike199000/textract
9d739f807351fd9e430a193eca853f5f2171a82a
[ "MIT" ]
322
2015-01-05T09:54:45.000Z
2022-03-28T17:47:15.000Z
textract/parsers/doc_parser.py
nike199000/textract
9d739f807351fd9e430a193eca853f5f2171a82a
[ "MIT" ]
470
2015-01-14T11:51:42.000Z
2022-03-23T07:05:46.000Z
from .utils import ShellParser class Parser(ShellParser): """Extract text from doc files using antiword. """ def extract(self, filename, **kwargs): stdout, stderr = self.run(['antiword', filename]) return stdout
22.090909
57
0.654321
209
0.860082
0
0
0
0
0
0
64
0.263374
05f2bf19df0a5655faf30da01ad995b33a5ff920
4,674
py
Python
create_multi_langs/command_line.py
mychiux413/ConstConv
6c2190d1bb37ae5cfef8464f88371db97719b032
[ "MIT" ]
null
null
null
create_multi_langs/command_line.py
mychiux413/ConstConv
6c2190d1bb37ae5cfef8464f88371db97719b032
[ "MIT" ]
null
null
null
create_multi_langs/command_line.py
mychiux413/ConstConv
6c2190d1bb37ae5cfef8464f88371db97719b032
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from create_multi_langs.creater.go import CreaterGo from create_multi_langs.creater.python import CreaterPython from create_multi_langs.creater.python_typing import CreaterPythonTyping from create_multi_langs.creater.typescript_backend import CreaterTypeScrip...
37.095238
99
0.627942
0
0
0
0
0
0
0
0
1,176
0.251605
05f359b7dd7f8c17e74d1e4576ab789a5ca9047c
297
py
Python
test_resources/run_tests.py
tud-python-courses/lesson-builder
11b1cc958723e9f75de27cde68daa0fdc18b929f
[ "MIT" ]
null
null
null
test_resources/run_tests.py
tud-python-courses/lesson-builder
11b1cc958723e9f75de27cde68daa0fdc18b929f
[ "MIT" ]
null
null
null
test_resources/run_tests.py
tud-python-courses/lesson-builder
11b1cc958723e9f75de27cde68daa0fdc18b929f
[ "MIT" ]
null
null
null
__author__ = 'Justus Adam' __version__ = '0.1' def main(): import unittest import sys import os m = os.path.dirname(__file__) sys.path = [m, os.path.split(m)[0]] + sys.path import test unittest.main(test) if __name__ == '__main__': main() else: del main
13.5
50
0.606061
0
0
0
0
0
0
0
0
28
0.094276
05f89c6e9f8cabc37acf4ef72901aa6289131ace
15,798
py
Python
parse_to_latex.py
bkolosk1/bkolosk1-CrossLingualKeywords
27cdc5075d1e30b02bb38891933a8fbb51957899
[ "MIT" ]
2
2021-04-19T23:57:58.000Z
2021-11-02T08:40:16.000Z
parse_to_latex.py
bkolosk1/bkolosk1-CrossLingualKeywords
27cdc5075d1e30b02bb38891933a8fbb51957899
[ "MIT" ]
1
2021-11-22T09:05:10.000Z
2021-11-22T09:05:10.000Z
bert/parse_to_latex.py
bkolosk1/Extending-Neural-Keyword-Extraction-with-TF-IDF-tagset-matching
d52b9b9e1fb9130239479b1830b0930161672325
[ "MIT" ]
null
null
null
import re def parse_to_latex(): configs = ['nolm', 'lm', 'maskedlm', 'lm+bp', 'lm+pos', 'lm+rnn', 'lm+bpe+rnn', 'lm+bpe+crf'] datasets = ['kp20k', 'inspec', 'krapivin', 'nus', 'semeval', 'kptimes', 'jptimes', 'duc'] config_dict = {} with open('class_results-FINAL.txt', 'r', encoding='utf8') as file: ...
50.152381
223
0.44993
0
0
0
0
0
0
0
0
10,211
0.646348
05fd8b2f68e0ad751b568376c91ded4488f3dd84
55,975
py
Python
cc_bm_parallel_pyr_dev.py
xdenisx/ice_drift_pc_ncc
f2992329e8509dafcd37596271e80cbf652d14cb
[ "MIT" ]
3
2021-11-10T04:03:10.000Z
2022-02-27T10:36:02.000Z
cc_bm_parallel_pyr_dev.py
xdenisx/ice_drift_pc_ncc
f2992329e8509dafcd37596271e80cbf652d14cb
[ "MIT" ]
1
2021-10-12T17:29:53.000Z
2021-10-12T17:29:53.000Z
cc_bm_parallel_pyr_dev.py
xdenisx/ice_drift_pc_ncc
f2992329e8509dafcd37596271e80cbf652d14cb
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('Agg') # coding: utf-8 # # Ice drift retrieval algorithm based on [1] from a pair of SAR images # [1] J. P. Lewis, "Fast Normalized Cross-Correlation", Industrial Light and Magic. # ################################################## # Last modification: 22 July, 2019 # TODO: # 1) Pyrami...
35.517132
716
0.553318
0
0
0
0
0
0
0
0
20,725
0.370255
05fe79efe59900fb39e193105ec376940b5bbe44
426
py
Python
tests/test_version.py
hsh-nids/python-betterproto
f5d3b48b1aa49fd64513907ed70124b32758ad3e
[ "MIT" ]
708
2019-10-11T06:23:40.000Z
2022-03-31T09:39:08.000Z
tests/test_version.py
hsh-nids/python-betterproto
f5d3b48b1aa49fd64513907ed70124b32758ad3e
[ "MIT" ]
302
2019-11-11T22:09:21.000Z
2022-03-29T11:21:04.000Z
tests/test_version.py
hsh-nids/python-betterproto
f5d3b48b1aa49fd64513907ed70124b32758ad3e
[ "MIT" ]
122
2019-12-04T16:22:53.000Z
2022-03-20T09:31:10.000Z
from betterproto import __version__ from pathlib import Path import tomlkit PROJECT_TOML = Path(__file__).joinpath("..", "..", "pyproject.toml").resolve() def test_version(): with PROJECT_TOML.open() as toml_file: project_config = tomlkit.loads(toml_file.read()) assert ( __version__ == projec...
30.428571
78
0.706573
0
0
0
0
0
0
0
0
107
0.251174
af01a3ec2accdacee77c90151e5eed151050b732
383
py
Python
PythonMundoDois/ex048.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex048.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
PythonMundoDois/ex048.py
HendrylNogueira/CursoPython3
c3d9d4e2a27312b83d744aaf0f8d01b26e6faf4f
[ "MIT" ]
null
null
null
'''Faça um programa que calcule a soma entre todos os números impares que são múltiplos de três e que se encontram no intervalo de 1 até 500. ''' cont = 0 total = 0 for soma in range(1, 501, 2): if soma % 3 == 0: cont += 1 total += soma print(f'Foram encontrados {cont} valores coma as característic...
31.916667
114
0.67624
0
0
0
0
0
0
0
0
262
0.670077
af029a134b4e84a7dca43a17a1ce48c9d78abdd2
9,722
py
Python
Models.py
BradHend/machine_learning_from_scratch
6c83f17d1c48da9ad3df902b3090a8cb2c544f15
[ "MIT" ]
null
null
null
Models.py
BradHend/machine_learning_from_scratch
6c83f17d1c48da9ad3df902b3090a8cb2c544f15
[ "MIT" ]
null
null
null
Models.py
BradHend/machine_learning_from_scratch
6c83f17d1c48da9ad3df902b3090a8cb2c544f15
[ "MIT" ]
null
null
null
"""classes and methods for different model architectures """ #python packages import numpy as np # Machine Learning from Scratch packages from Layers import FullyConnected from utils.optimizers import * class NeuralNet(): """ Linear stack of layers. """ def __init__(self, layers=None): # Add ...
40.508333
123
0.54783
9,516
0.978811
0
0
0
0
0
0
3,923
0.403518
af03e1bca2e6bcaf4e2f161d2b4078d32b20e402
421
py
Python
tests/parser/aggregates.count.assignment.17.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/aggregates.count.assignment.17.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/aggregates.count.assignment.17.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ a(S,T,Z) :- #count{X: r(T,X)} = Z, #count{W: q(W,S)} = T, #count{K: p(K,Y)} = S. q(1,1). q(2,2). r(1,1). r(1,2). r(1,3). r(2,2). r(3,3). p(1,1). p(2,2). %out{ a(2,1,3) } %repository error """ output = """ a(S,T,Z) :- #count{X: r(T,X)} = Z, #count{W: q(W,S)} = T, #count{K: p(K,Y)} = S. q(1,1). q(2,2)...
10.268293
80
0.420428
0
0
0
0
0
0
0
0
402
0.954869
af055ba7a6d6cbe2445070c4e478e7e26c56dad3
1,724
py
Python
ipmi_power_manager.py
spirkaa/ansible-homelab
94138c85ddb132a08dab55b4e9a9b43160d02c76
[ "MIT" ]
null
null
null
ipmi_power_manager.py
spirkaa/ansible-homelab
94138c85ddb132a08dab55b4e9a9b43160d02c76
[ "MIT" ]
null
null
null
ipmi_power_manager.py
spirkaa/ansible-homelab
94138c85ddb132a08dab55b4e9a9b43160d02c76
[ "MIT" ]
null
null
null
import argparse import logging import os import requests import urllib3 from dotenv import load_dotenv logger = logging.getLogger("__name__") logging.basicConfig( format="%(asctime)s [%(levelname)8s] [%(name)s:%(lineno)s:%(funcName)20s()] --- %(message)s", level=logging.INFO, ) logging.getLogger("...
28.262295
101
0.728538
0
0
0
0
0
0
0
0
537
0.311485
af05ab26695bad32472af5a5dde8334bddbea53d
1,572
py
Python
pyhsi/gui/graphics.py
rddunphy/pyHSI
b55c2a49568e04e0a2fb39da01cfe1f129bc86a4
[ "MIT" ]
null
null
null
pyhsi/gui/graphics.py
rddunphy/pyHSI
b55c2a49568e04e0a2fb39da01cfe1f129bc86a4
[ "MIT" ]
null
null
null
pyhsi/gui/graphics.py
rddunphy/pyHSI
b55c2a49568e04e0a2fb39da01cfe1f129bc86a4
[ "MIT" ]
null
null
null
"""Stuff to do with processing images and loading icons""" import importlib.resources as res import cv2 import PySimpleGUI as sg def get_application_icon(): """Get the PyHSI icon for this OS (.ico for Windows, .png otherwise)""" return res.read_binary("pyhsi.gui.icons", "pyhsi.png") def get_icon(icon_name...
31.44
83
0.667939
0
0
0
0
0
0
0
0
395
0.251272
af0729cb1679e26625740cd816c3bcd5296cbb19
315
py
Python
configs/densenet169_lr_0.001.py
FeiYuejiao/NLP_Pretrain
7aa4693c31a7bba9b90f401d2586ef154dd7fb81
[ "MIT" ]
null
null
null
configs/densenet169_lr_0.001.py
FeiYuejiao/NLP_Pretrain
7aa4693c31a7bba9b90f401d2586ef154dd7fb81
[ "MIT" ]
1
2020-12-30T13:49:29.000Z
2020-12-30T13:49:29.000Z
configs/densenet169_lr_0.001.py
FeiYuejiao/NLP_Pretrain
7aa4693c31a7bba9b90f401d2586ef154dd7fb81
[ "MIT" ]
null
null
null
lr = 0.001 model_path = 'model/IC_models/densenet169_lr_0.001/' crop_size = 32 log_step = 10 save_step = 500 num_epochs = 400 batch_size = 256 num_workers = 8 loading = False # lr # Model parameters model = dict( net='densenet169', embed_size=256, hidden_size=512, num_layers=1, resnet=101 )
14.318182
52
0.695238
0
0
0
0
0
0
0
0
74
0.234921
af08ea1d739ab24c301e649fcfca7bffa176fb4c
3,750
py
Python
src/models/metapop.py
TLouf/multiling-twitter
9a39b5b70da53ca717cb74480697f3756a95b8e4
[ "RSA-MD" ]
1
2021-05-09T15:42:04.000Z
2021-05-09T15:42:04.000Z
src/models/metapop.py
TLouf/multiling-twitter
9a39b5b70da53ca717cb74480697f3756a95b8e4
[ "RSA-MD" ]
3
2020-10-21T09:04:03.000Z
2021-06-02T02:05:13.000Z
src/models/metapop.py
TLouf/multiling-twitter
9a39b5b70da53ca717cb74480697f3756a95b8e4
[ "RSA-MD" ]
null
null
null
''' Implements the computation of the time derivatives and associated Jacobian corresponding to the approximated equations in a metapopulation. Added kwargs in every function so that we may reuse the parameter dictionary used in the models, even if some of the parameters it contains are not used in these functions. '''...
37.128713
80
0.553333
0
0
0
0
0
0
0
0
898
0.239467
af0a0e2a3cb4cd7ca612fe33ee2283d0d807bbec
2,759
py
Python
abstract_tiles.py
CompassMentis/towers_of_strength
405af4dc114bd15fed24135b050267a2126c9d52
[ "MIT" ]
null
null
null
abstract_tiles.py
CompassMentis/towers_of_strength
405af4dc114bd15fed24135b050267a2126c9d52
[ "MIT" ]
1
2019-10-12T10:31:24.000Z
2019-10-12T10:31:24.000Z
abstract_tiles.py
CompassMentis/towers_of_strength
405af4dc114bd15fed24135b050267a2126c9d52
[ "MIT" ]
null
null
null
import pygame from settings import Settings from vector import Vector import utils class AbstractTile: pass class AbstractStaticTile(AbstractTile): IMAGE_FOLDER = 'static_tiles' def __init__(self, code, filename, with_sparkle=False): self.code = code self.filename = filename se...
29.98913
119
0.642987
2,666
0.966292
0
0
732
0.265314
0
0
499
0.180863
af0a3c55728ddc9080f992028fc9b392f3c49b8c
657
py
Python
code/examples/classifier_compression/save_weights_cifar10.py
he-actlab/waveq.code
024d55af6d989d4074d3e555d03b76a2f7eac209
[ "CNRI-Python" ]
1
2020-04-09T03:21:32.000Z
2020-04-09T03:21:32.000Z
code/examples/classifier_compression/save_weights_cifar10.py
he-actlab/waveq.code
024d55af6d989d4074d3e555d03b76a2f7eac209
[ "CNRI-Python" ]
4
2020-09-26T00:53:47.000Z
2022-02-10T01:23:34.000Z
code/examples/classifier_compression/save_weights_cifar10.py
sinreq-learn/sinreq-learn.code
a205d3fa22a41d5f4fc1ef1e5698c4f1dbb11e6a
[ "BSD-4-Clause-UC" ]
null
null
null
import torch import numpy as np filename = '2020.01.12-044406' model = torch.load('logs/'+filename+'/checkpoint.pth.tar') k1 = model['state_dict']['module.conv1.weight'].data.cpu().numpy() k2 = model['state_dict']['module.conv2.weight'].data.cpu().numpy() k3 = model['state_dict']['module.fc1.weight'].data.cpu().numpy(...
41.0625
66
0.721461
0
0
0
0
0
0
0
0
346
0.526636
af0ab77a97059c19f88a0b36ce01422819f17356
2,174
py
Python
tests/app/dao/test_marketings_dao.py
kentsanggds/api
651cdf7d496690722d6a4f5b51f04f4be97899d4
[ "MIT" ]
1
2018-10-12T15:04:31.000Z
2018-10-12T15:04:31.000Z
tests/app/dao/test_marketings_dao.py
kentsanggds/api
651cdf7d496690722d6a4f5b51f04f4be97899d4
[ "MIT" ]
169
2017-11-07T00:45:25.000Z
2022-03-12T00:08:59.000Z
tests/app/dao/test_marketings_dao.py
kentsanggds/api
651cdf7d496690722d6a4f5b51f04f4be97899d4
[ "MIT" ]
1
2019-08-15T14:51:31.000Z
2019-08-15T14:51:31.000Z
from sqlalchemy.exc import IntegrityError import pytest from app.dao.marketings_dao import ( dao_update_marketing, dao_get_marketing_by_id, dao_get_marketings ) from app.models import Marketing from tests.db import create_marketing class WhenUsingMarketingsDAO(object): def it_creates_an_marketing(self, db_...
38.821429
95
0.75069
1,933
0.889144
0
0
0
0
0
0
80
0.036799
af0ac97f6ae7709623b9997f5f301e7547049b9a
14,898
py
Python
tracetools_analysis/tracetools_analysis/data_model/ros2.py
christophebedard/tracetools_analysis
1dfb747b62311ee370ed392a0ad4a5cd2d11d3be
[ "Apache-2.0" ]
6
2020-04-02T21:10:09.000Z
2021-06-07T06:56:16.000Z
tracetools_analysis/tracetools_analysis/data_model/ros2.py
christophebedard/tracetools_analysis
1dfb747b62311ee370ed392a0ad4a5cd2d11d3be
[ "Apache-2.0" ]
null
null
null
tracetools_analysis/tracetools_analysis/data_model/ros2.py
christophebedard/tracetools_analysis
1dfb747b62311ee370ed392a0ad4a5cd2d11d3be
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Robert Bosch GmbH # Copyright 2020-2021 Christophe Bedard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
37.716456
94
0.631293
14,130
0.948449
0
0
0
0
0
0
2,794
0.187542
af0d81f9655852ff10a8be8a0499f540fd5bf5d2
1,543
py
Python
setup.py
KunihikoKido/elasticsearch-fabric
5dea163b455f954d31dc685cf2b4fec077aee50a
[ "MIT" ]
10
2016-12-17T03:37:43.000Z
2019-09-09T23:00:40.000Z
setup.py
KunihikoKido/elasticsearch-fabric
5dea163b455f954d31dc685cf2b4fec077aee50a
[ "MIT" ]
null
null
null
setup.py
KunihikoKido/elasticsearch-fabric
5dea163b455f954d31dc685cf2b4fec077aee50a
[ "MIT" ]
null
null
null
# coding=utf-8 import os from distutils.spawn import find_executable from setuptools import setup, find_packages import sys sys.path.append('./test') from esfabric import __version__ with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() if os.path.exists(os.path.join...
32.829787
101
0.695399
0
0
0
0
0
0
0
0
600
0.388853
af0fe57c93b0182742617678b6b627538eed3937
673
py
Python
exhibit/catalogue/migrations/0008_auto_20190809_1822.py
yrhooke/exhibit-proj
899f340390761423f8d2fe7f1edbad4e9f79435e
[ "MIT" ]
null
null
null
exhibit/catalogue/migrations/0008_auto_20190809_1822.py
yrhooke/exhibit-proj
899f340390761423f8d2fe7f1edbad4e9f79435e
[ "MIT" ]
null
null
null
exhibit/catalogue/migrations/0008_auto_20190809_1822.py
yrhooke/exhibit-proj
899f340390761423f8d2fe7f1edbad4e9f79435e
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-08-09 18:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('catalogue', '0007_auto_20190809_1735'), ] operations = [ migrations.AlterField( model_name='artwo...
26.92
130
0.619614
549
0.81575
0
0
0
0
0
0
145
0.215453
af13b442639e939a58e7ab827a12150bdfb1b715
3,455
py
Python
utils.py
cedias/Hierarchical-Sentiment
19dbbae45707839d380f07e09e24f47c8267e72e
[ "MIT" ]
107
2018-01-16T13:57:54.000Z
2022-03-14T14:44:31.000Z
utils.py
cedias/Hierarchical-Sentiment
19dbbae45707839d380f07e09e24f47c8267e72e
[ "MIT" ]
5
2018-07-05T06:01:11.000Z
2019-11-16T13:14:09.000Z
utils.py
cedias/Hierarchical-Sentiment
19dbbae45707839d380f07e09e24f47c8267e72e
[ "MIT" ]
25
2018-02-02T05:46:42.000Z
2021-03-23T17:08:15.000Z
#utils.py import torch from tqdm import tqdm from torch.autograd import Variable from fmtl import FMTL def tuple2var(tensors,data): def copy2tensor(t,data): t.resize_(data.size()).copy_(data,async=True) return Variable(t) return tuple(map(copy2tensor,tensors,data)) def new_tensors(n,cuda,type...
30.848214
121
0.621708
0
0
0
0
0
0
0
0
777
0.224891
af15f4dafca99a33d4cb28c9e33b6eb81ea8619b
2,867
py
Python
Back/ecoreleve_be_server/Models/Import.py
NaturalSolutions/ecoReleve-BE
e120be8236d3f16d4a698058dcf43a4ed8b18e7b
[ "MIT" ]
2
2019-01-22T15:19:48.000Z
2019-07-18T06:55:29.000Z
Back/ecoreleve_be_server/Models/Import.py
NaturalSolutions/ecoReleve-BE
e120be8236d3f16d4a698058dcf43a4ed8b18e7b
[ "MIT" ]
2
2018-04-04T15:48:24.000Z
2018-08-29T11:01:26.000Z
Back/ecoreleve_be_server/Models/Import.py
NaturalSolutions/ecoReleve-BE
e120be8236d3f16d4a698058dcf43a4ed8b18e7b
[ "MIT" ]
2
2018-02-26T11:50:22.000Z
2018-03-13T08:16:42.000Z
# from ..Models import Base, dbConfig # from sqlalchemy import ( # Column, # DateTime, # ForeignKey, # Integer, # Numeric, # String, # Unicode, # text, # Sequence, # orm, # func, # select, # bindparam, # UniqueConstraint, # event) # from sqlalchemy.orm import ...
32.213483
92
0.618068
0
0
0
0
0
0
0
0
2,779
0.969306
af16c33bdba13b28d77f33ac28f80dcfc81a9c64
11,704
py
Python
bin/server.py
tolstoyevsky/blackmagic
0be5f041cbd42d9fb140957f0946d0ac7cb68848
[ "Apache-2.0" ]
null
null
null
bin/server.py
tolstoyevsky/blackmagic
0be5f041cbd42d9fb140957f0946d0ac7cb68848
[ "Apache-2.0" ]
3
2018-12-08T16:51:11.000Z
2020-10-16T09:39:00.000Z
bin/server.py
tolstoyevsky/blackmagic
0be5f041cbd42d9fb140957f0946d0ac7cb68848
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import logging import os import os.path import tornado.web import tornado.options from appleseed import AlpineIndexFile, DebianIndexFile from cdtz import set_time_zone from motor import MotorClient from shirow.ioloop import IOLoop from shirow.server import RPCServer, TOKEN_PATTERN, remote from t...
32.242424
102
0.655161
8,547
0.730263
0
0
6,060
0.517772
6,531
0.558014
1,178
0.100649