hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
6d0f4762cb6c7dadca16cfaf81e5ff75638bee31
561
py
Python
setup.py
ztw33/code-sim
7f81016b2ab005ed826a03ad6833baf831633138
[ "MIT" ]
null
null
null
setup.py
ztw33/code-sim
7f81016b2ab005ed826a03ad6833baf831633138
[ "MIT" ]
null
null
null
setup.py
ztw33/code-sim
7f81016b2ab005ed826a03ad6833baf831633138
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages VERSION = "0.1.0" setup(name="codesim", version=VERSION, description="A tool for measuring the similarity between two c++ code files.", author="Tingwei Zhu", author_email="tingweizhu33@smail.nju.edu.cn", license="MIT", packages=find_packa...
25.5
84
0.597148
6d112c6bc1fae1e06b84d5fca2b108ce3f6c8d0e
3,001
py
Python
wdfn-server/waterdata/tests/commands/lookup_generation/test_wqp_lookups.py
skaymen/waterdataui
3f419360771a007f8b441d631c782cd67a4e78b4
[ "CC0-1.0" ]
null
null
null
wdfn-server/waterdata/tests/commands/lookup_generation/test_wqp_lookups.py
skaymen/waterdataui
3f419360771a007f8b441d631c782cd67a4e78b4
[ "CC0-1.0" ]
null
null
null
wdfn-server/waterdata/tests/commands/lookup_generation/test_wqp_lookups.py
skaymen/waterdataui
3f419360771a007f8b441d631c782cd67a4e78b4
[ "CC0-1.0" ]
null
null
null
from unittest import TestCase, mock import requests from waterdata.commands.lookup_generation.wqp_lookups import ( get_lookup_by_json, is_us_county, get_nwis_state_lookup, get_nwis_county_lookup)
36.597561
114
0.614795
6d132e8c6c61ba288e7191f564d48638877b2dac
6,553
py
Python
src/SPARQL_BAMS_Store_Query_Example.py
rsoscia/BAMS-to-NeuroLex
e6c3b23725e63c0c9a70a7ef8c7a9ca0789ae153
[ "MIT" ]
1
2015-11-10T05:20:20.000Z
2015-11-10T05:20:20.000Z
src/SPARQL_BAMS_Store_Query_Example.py
rsoscia/BAMS-to-NeuroLex
e6c3b23725e63c0c9a70a7ef8c7a9ca0789ae153
[ "MIT" ]
null
null
null
src/SPARQL_BAMS_Store_Query_Example.py
rsoscia/BAMS-to-NeuroLex
e6c3b23725e63c0c9a70a7ef8c7a9ca0789ae153
[ "MIT" ]
null
null
null
#SPARQL_BAMS_Store_Query_Example.py #Accessing Python Interactive Mode: #python -i SPARQL_BAMS_Store_Query_Example.py #This program demonstrates a basic query pulling data out of a persisted SPARQL store #For Parsing import rdflib from rdflib import plugin #for getting the length of the files import os #for working...
29.518018
94
0.53548
6d15f9fd513819715f4bc8c0abb5943c1d4656f1
3,767
py
Python
basic_statistics.py
YitengZhou/cgcnn
e8de8d3c20ba7079314b25a6c5de33cedce4f783
[ "MIT" ]
1
2020-11-25T09:04:49.000Z
2020-11-25T09:04:49.000Z
basic_statistics.py
YitengZhou/cgcnn
e8de8d3c20ba7079314b25a6c5de33cedce4f783
[ "MIT" ]
null
null
null
basic_statistics.py
YitengZhou/cgcnn
e8de8d3c20ba7079314b25a6c5de33cedce4f783
[ "MIT" ]
1
2022-02-20T11:40:51.000Z
2022-02-20T11:40:51.000Z
import csv # # Calculate the proportion of Four types of datasets - energy, piezo, elasticity, diel # # Energy # energy = [] # with open('training/energy/energy.csv', 'r', encoding='utf-8') as en: # reader = csv.reader(en) # for row in reader: # energy.append(row[0]) # print(len(energy)) # # # elas...
26.907143
88
0.581099
6d16bab14e4db8818657f1325e261ff5865d4eae
5,434
py
Python
web2py-appliances-master/SurveyAppFlourish/models/db.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/SurveyAppFlourish/models/db.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/SurveyAppFlourish/models/db.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
######################################################################### # This scaffolding model makes your app work on Google App Engine too # ######################################################################### try: from gluon.contrib.gql import * # if running on Google App Engine except: db...
52.25
148
0.54067
6d17da03232576a3082259035f5775a43856feae
4,407
py
Python
bax_insertion/plots/bax_bax_fret_nbd_release/plot_all_fret_fits.py
johnbachman/bax_insertion_paper
c9a1f7280998a8c3110f65d604afaa2686cda5c3
[ "BSD-2-Clause" ]
null
null
null
bax_insertion/plots/bax_bax_fret_nbd_release/plot_all_fret_fits.py
johnbachman/bax_insertion_paper
c9a1f7280998a8c3110f65d604afaa2686cda5c3
[ "BSD-2-Clause" ]
null
null
null
bax_insertion/plots/bax_bax_fret_nbd_release/plot_all_fret_fits.py
johnbachman/bax_insertion_paper
c9a1f7280998a8c3110f65d604afaa2686cda5c3
[ "BSD-2-Clause" ]
null
null
null
import os import sys import cPickle import itertools import numpy as np from matplotlib import pyplot as plt from bax_insertion.util import set_fig_params_for_publication, format_axis, \ fontsize from bax_insertion.plots.bax_bax_fret_nbd_release.preprocess_data import \ nbd_residues...
38.321739
79
0.551849
6d1cc7830a743e72f8e4afa75122aae3870fb6d8
142
py
Python
Code/htmlfileread.py
coolvikas/pythonHTTPWebServer
2b89be729380473a24d5089717c1890128861828
[ "Apache-2.0" ]
null
null
null
Code/htmlfileread.py
coolvikas/pythonHTTPWebServer
2b89be729380473a24d5089717c1890128861828
[ "Apache-2.0" ]
null
null
null
Code/htmlfileread.py
coolvikas/pythonHTTPWebServer
2b89be729380473a24d5089717c1890128861828
[ "Apache-2.0" ]
null
null
null
#file_html("myfile.html");
15.777778
26
0.676056
6d1f03c1e079c08df6f2724f782ede4a537bd1ea
2,455
py
Python
welib/FEM/fem_model.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
24
2019-07-24T23:37:10.000Z
2022-03-30T20:40:40.000Z
welib/FEM/fem_model.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
null
null
null
welib/FEM/fem_model.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
11
2019-03-14T13:47:04.000Z
2022-03-31T15:47:27.000Z
import numpy as np import pandas as pd from welib.tools.clean_exceptions import * from welib.FEM.graph import Node as GraphNode from welib.FEM.graph import Element as GraphElement from welib.FEM.graph import NodeProperty from welib.FEM.graph import GraphModel if __name__=='__main__': np.set_printoptions(linewidt...
30.308642
114
0.607739
6d1f45a9ce8e28e7011e284064528bb0f1a5eef0
443
py
Python
authentication.py
Daniel-Timothy-Leads/dtleads-api-helper-reference
0206ba796a4df07cf0c1ceca0489c58928cade1e
[ "MIT" ]
null
null
null
authentication.py
Daniel-Timothy-Leads/dtleads-api-helper-reference
0206ba796a4df07cf0c1ceca0489c58928cade1e
[ "MIT" ]
null
null
null
authentication.py
Daniel-Timothy-Leads/dtleads-api-helper-reference
0206ba796a4df07cf0c1ceca0489c58928cade1e
[ "MIT" ]
null
null
null
import dtleads_api_helper dtl = dtleads_api_helper.DanielTimothyLeads() # create instance of DTLeads helper ## Authentication/Authorization results = dtl.authorize_login("<username>", "<password>") token_details = dtl.handle_response(results) print(token_details) ## refresh the token refresh_token = token_details['r...
31.642857
81
0.817156
6d1f4662ef17b1211c1453baf5dff18656b1d69a
296
py
Python
QuizApp/admin.py
mokosaur/legit-quizzes
6ebca333c2cf5188c47f2163284e90feb8c635cb
[ "MIT" ]
1
2019-01-17T08:47:45.000Z
2019-01-17T08:47:45.000Z
QuizApp/admin.py
mokosaur/legit-quizzes
6ebca333c2cf5188c47f2163284e90feb8c635cb
[ "MIT" ]
null
null
null
QuizApp/admin.py
mokosaur/legit-quizzes
6ebca333c2cf5188c47f2163284e90feb8c635cb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Label, Choice, Quiz, Question, Answer, Submit # Register your models here. admin.site.register(Quiz) admin.site.register(Question) admin.site.register(Answer) admin.site.register(Label) admin.site.register(Submit) admin.site.register(Choice)
26.909091
65
0.804054
6d1f7ee88bba8f89e9636269382af6be3f1c523c
1,991
py
Python
utils/bypass_csv.py
WishesFire/TelegramParser-flexible
19cca351dd2bd1357037361577bcb72558c540e6
[ "MIT" ]
1
2021-02-12T21:55:49.000Z
2021-02-12T21:55:49.000Z
utils/bypass_csv.py
WishesFire/TelegramParser-flexible
19cca351dd2bd1357037361577bcb72558c540e6
[ "MIT" ]
null
null
null
utils/bypass_csv.py
WishesFire/TelegramParser-flexible
19cca351dd2bd1357037361577bcb72558c540e6
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from datetime import datetime
31.603175
105
0.620794
6d231af20a05018c0a6b1e05a8b4da554a3d0312
6,672
py
Python
cs15211/CombinationSum.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/CombinationSum.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/CombinationSum.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/combination-sum/description/' # https://github.com/kamyu104/LeetCode/blob/master/Python/combination-sum.py # Time: O(n^m) # Space: O(m) # # Description: Leetcode # 39. Combination Sum # # Given a set of candidate numbers (C) and a target number (T), # find all unique combina...
35.301587
138
0.578537
6d257d0788113ab5fb12a12f65216b5141100b58
3,681
py
Python
apps/qt_kmeans_mysqlventage.py
eavelardev/my-dev-repo
d6c62db4a2ca498bf0bb7c1e97d58ab2036379b7
[ "MIT" ]
null
null
null
apps/qt_kmeans_mysqlventage.py
eavelardev/my-dev-repo
d6c62db4a2ca498bf0bb7c1e97d58ab2036379b7
[ "MIT" ]
null
null
null
apps/qt_kmeans_mysqlventage.py
eavelardev/my-dev-repo
d6c62db4a2ca498bf0bb7c1e97d58ab2036379b7
[ "MIT" ]
1
2021-08-16T07:50:59.000Z
2021-08-16T07:50:59.000Z
import sys import argparse import pandas as pd from random import randrange import numpy as np from PySide2.QtCore import QAbstractTableModel, QModelIndex, QRect, Qt from PySide2.QtGui import QColor, QPainter from PySide2.QtWidgets import (QApplication, QGridLayout, QHeaderView, QTableView, QWidget, QVBoxLayout) f...
30.932773
111
0.679707
6d259ad8652754ae6ba08a88636138de14a40976
15,712
py
Python
api/migrations/0001_initial.py
CraftyGirls/REST-Services
30a435e113953ffe3984f611fcb595b38490e654
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
CraftyGirls/REST-Services
30a435e113953ffe3984f611fcb595b38490e654
[ "MIT" ]
22
2015-09-09T20:02:12.000Z
2016-01-22T03:01:08.000Z
api/migrations/0001_initial.py
CraftyGirls/REST-Services
30a435e113953ffe3984f611fcb595b38490e654
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings
45.542029
430
0.542261
6d287d8d5b728d11db09aec61a52e43199fca9b8
330
py
Python
probe_f8_eps.py
bskinn/list-of-flake8-entrypoints
c38a55106c7e45b24b42aa7204532a343f2699c4
[ "MIT" ]
1
2020-08-04T17:57:34.000Z
2020-08-04T17:57:34.000Z
probe_f8_eps.py
bskinn/list-of-flake8-entrypoints
c38a55106c7e45b24b42aa7204532a343f2699c4
[ "MIT" ]
4
2020-06-14T17:34:41.000Z
2020-06-20T23:45:30.000Z
probe_f8_eps.py
bskinn/list-of-flake8-entrypoints
c38a55106c7e45b24b42aa7204532a343f2699c4
[ "MIT" ]
null
null
null
import importlib.metadata as ilmd from textwrap import dedent if __name__ == "__main__": main()
16.5
53
0.49697
6d28938d79b7e76b2cdfa1de69b81852ef790c7e
3,483
py
Python
app/main.py
jshcrm/weasley-clock
b7c58c7600528080c66ccc89c1ad0cb6d8ea0073
[ "Unlicense" ]
null
null
null
app/main.py
jshcrm/weasley-clock
b7c58c7600528080c66ccc89c1ad0cb6d8ea0073
[ "Unlicense" ]
null
null
null
app/main.py
jshcrm/weasley-clock
b7c58c7600528080c66ccc89c1ad0cb6d8ea0073
[ "Unlicense" ]
null
null
null
import kivy kivy.require('1.0.6') import json import subprocess from datetime import datetime, timedelta from glob import glob from kivy.app import App from kivy.clock import Clock from kivy.core.window import Window from kivy.logger import Logger from kivy.uix.relativelayout import RelativeLayout from kivy.propertie...
28.317073
87
0.633362
6d28cfa083a164bca98c7a991aac15a8a0a3b702
1,107
py
Python
handlers/users/check_for_plagiat.py
sololvey/editorbot
59511f460ad708b1372a506c62117538206a1a1a
[ "MIT" ]
2
2021-09-24T21:45:00.000Z
2021-09-27T15:30:14.000Z
handlers/users/check_for_plagiat.py
vR4eslav/editorbot
59511f460ad708b1372a506c62117538206a1a1a
[ "MIT" ]
null
null
null
handlers/users/check_for_plagiat.py
vR4eslav/editorbot
59511f460ad708b1372a506c62117538206a1a1a
[ "MIT" ]
1
2021-09-17T18:38:05.000Z
2021-09-17T18:38:05.000Z
from aiogram import types from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters import Command from antiplagiat import Antiplagiat from data.config import ADVEGO_TOKEN from loader import dp, _ api = Antiplagiat(ADVEGO_TOKEN)
29.131579
94
0.711834
6d2a10208c314aebb6fd012b6d0972f2ca48afe8
1,344
py
Python
nikkiepy/sockets.py
NikkieDev/nikkiepy
fde9688d53088e25d677d19f675c65933475fddf
[ "MIT" ]
null
null
null
nikkiepy/sockets.py
NikkieDev/nikkiepy
fde9688d53088e25d677d19f675c65933475fddf
[ "MIT" ]
1
2021-09-16T15:02:40.000Z
2021-09-16T15:09:42.000Z
nikkiepy/sockets.py
NikkieCodes/nikkiepy
ddbc6f67cb3aeb104a335ebd39b29cfe7b6ec0ce
[ "MIT" ]
null
null
null
import socket import os
34.461538
144
0.627232
6d2a475caf65d5042e938885f0834e84b1582f23
1,454
py
Python
arjuna-samples/workspace/arjex-new/tests/s01_config_and_selenium_wrapper/y23_dropdown.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
9
2018-11-15T10:09:17.000Z
2021-01-12T05:59:19.000Z
arjuna-samples/workspace/arjex-new/tests/s01_config_and_selenium_wrapper/y23_dropdown.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
2
2019-07-01T15:33:46.000Z
2019-07-12T13:04:08.000Z
arjuna-samples/workspace/arjex-new/tests/s01_config_and_selenium_wrapper/y23_dropdown.py
test-mile/arjuna
21880b41e061e11bac2e600a3614684f8af75b2f
[ "Apache-2.0" ]
4
2018-12-02T15:14:04.000Z
2020-05-28T12:57:24.000Z
''' Testers use 3 approaches for Dropdown controls in web test automation using Selenium. 1. Using Selenium's Select class as it provides higher level methods. 2. Using sendKeys() method of WebElement. 3. (Especially for custom select controls) - Click the drop down control and then click the option. Arjuna tries to ...
33.045455
100
0.817056
6d2a99fecde31a6a4af9bf695cbcd53620a95d2a
1,066
py
Python
ax/benchmark/benchmark_method.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/benchmark/benchmark_method.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/benchmark/benchmark_method.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass from ax.exceptions.core import UserInputError from ax.modelbridge.generation_strategy import GenerationSt...
35.533333
87
0.757974
6d2aea52e87096103562723426f15bc7bd5295bb
730
py
Python
2020/d12/d12.py
adam-blinzler/advent_of_code_2020
a9681c04e1618090913411c24d3872cd97fc6ec9
[ "MIT" ]
null
null
null
2020/d12/d12.py
adam-blinzler/advent_of_code_2020
a9681c04e1618090913411c24d3872cd97fc6ec9
[ "MIT" ]
null
null
null
2020/d12/d12.py
adam-blinzler/advent_of_code_2020
a9681c04e1618090913411c24d3872cd97fc6ec9
[ "MIT" ]
null
null
null
md = [0,0] facing = "E" ############################## for l in open("input.txt"): move(list(l)[0], int(''.join(list(l.strip())[1:]))) print("Manhattan distance =", abs(md[0]) + abs(md[1]))
18.717949
55
0.423288
6d2b3418afb5afe27f7faa195e05cfdac751a8a3
324
py
Python
Codeforces/C_Killjoy.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/C_Killjoy.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/C_Killjoy.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
for _ in range(int(input())): n,x = map(int,input().split()) l = list(map(int,input().split())) flag=2 if len(set(l)) == 1 and l[0] == x: flag=0 elif x in l or sum([i-x for i in l])==0: flag=1 if flag==0: print(0) elif flag==1: print(1) else: print...
21.6
44
0.462963
6d2b49ec034c7246deefff873677796027bac91d
4,062
py
Python
examples/random_points_to_surface.py
YuliangXiu/bvh-distance-queries
c7e2151eb054a1b84f41d2b74d6f77d1ff3eac80
[ "Cube" ]
9
2022-02-07T04:48:47.000Z
2022-03-18T18:34:35.000Z
examples/random_points_to_surface.py
YuliangXiu/bvh-distance-queries
c7e2151eb054a1b84f41d2b74d6f77d1ff3eac80
[ "Cube" ]
1
2022-02-11T03:33:45.000Z
2022-02-11T03:33:45.000Z
examples/random_points_to_surface.py
YuliangXiu/bvh-distance-queries
c7e2151eb054a1b84f41d2b74d6f77d1ff3eac80
[ "Cube" ]
null
null
null
# -*- coding: utf-8 -*- # Max-Planck-Gesellschaft zur Frderung der Wissenschaften e.V. (MPG) is # holder of all proprietary rights on this computer program. # You can only use this computer program if you have closed # a license agreement with MPG or you get the right to use the computer # program from someone who is ...
31.246154
79
0.68513
6d2dfab6aff32aa71e6750ca1bd9b42e41522133
1,130
py
Python
msgcode/index2.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
1
2019-07-09T09:59:39.000Z
2019-07-09T09:59:39.000Z
msgcode/index2.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
null
null
null
msgcode/index2.py
MisterZhouZhou/pythonLearn
8933c7a6d444d3d86a173984e6cf4c08dbf84039
[ "Apache-2.0" ]
null
null
null
import PIL.Image,PIL.ImageDraw,PIL.ImageFont,PIL.ImageFilter import random # #random.randint()65 90,A-Z #chrkk kkascasckk #1 #2 width = 60*4 height = 60 image = PIL.Image.new('RGB', (width, height), (255, 255, 255)) #RGBRGB(G)(B)RGB #font font = PIL.ImageFont.truetype('fonts.ttf', 36) #TrueTypeOpenType->-> #d...
26.904762
116
0.738053
6d2e3eb93bbd63b2ff2e5a5940b520e820248f07
1,211
py
Python
2015/src/Advent2015_12.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
1
2021-12-11T02:19:28.000Z
2021-12-11T02:19:28.000Z
2015/src/Advent2015_12.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
null
null
null
2015/src/Advent2015_12.py
davidxbuck/advent2018
eed5424a8008b9c0829f5872ad6cd469ce9f70b9
[ "MIT" ]
1
2020-12-08T04:31:46.000Z
2020-12-08T04:31:46.000Z
# Advent of Code 2015 # # From https://adventofcode.com/2015/day/12 import json import re filename = '' data = [re.findall(r'(-?\d+)', row.strip()) for row in open(f'../inputs/Advent2015_12{filename}.json', 'r')] print(f"AoC 2015 Day 12, Part 1 answer is {sum(int(x[0]) for x in data if x)}") with open(f'../inputs/A...
29.536585
108
0.572254
6d2ecd14060115d1515992dd57554555f9359bcf
1,381
py
Python
Code/problems/xomo/xomo.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
Code/problems/xomo/xomo.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
9
2015-09-14T21:07:06.000Z
2015-12-08T01:38:08.000Z
Code/problems/xomo/xomo.py
rahlk/Experimental-Algorithms
d04a2d3ec5a4c54ff3ebff5cf003b93d2a983061
[ "MIT" ]
null
null
null
from __future__ import print_function, division import sys, os sys.path.append(os.path.abspath(".")) from problems.problem import * from cocomo import Cocomo __author__ = 'panzer'
28.183673
95
0.597393
6d30715f18b7f5f1c423d6d7d8c6bbe32705a416
2,847
py
Python
laser_align.py
larry12193/triangulation_scanner
5cf81e230886d789527d5112c53f43019c7d6059
[ "BSD-2-Clause" ]
6
2020-04-07T10:41:42.000Z
2020-12-12T18:05:22.000Z
laser_align.py
larry12193/triangulation_scanner
5cf81e230886d789527d5112c53f43019c7d6059
[ "BSD-2-Clause" ]
1
2021-05-11T08:15:21.000Z
2021-05-11T08:15:21.000Z
laser_align.py
larry12193/triangulation_scanner
5cf81e230886d789527d5112c53f43019c7d6059
[ "BSD-2-Clause" ]
3
2020-03-23T07:51:49.000Z
2020-12-10T09:25:07.000Z
#!/usr/bin/env python import sys import time import random import pigpio import cv2 import imutils import numpy as np import math if __name__=='__main__': la = laser_align() la.run()
28.188119
125
0.566561
6d31e720a0395d6ea7884f350148553c622f24df
2,066
py
Python
google/ads/google_ads/v0/proto/services/keyword_view_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/services/keyword_view_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v0/proto/services/keyword_view_service_pb2_grpc.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v0.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_keyword__view__pb2 from google.ads.google_ads.v0.proto.services import keyword_view_service_pb2 as goog...
43.041667
167
0.810745
6d33f0adfd51d3772fb0f2c840325f3f15714598
517
py
Python
web/backend/service/security.py
Vikort/neo4j-platform
03e838673db98e2595293c9052dec02cbd630826
[ "MIT" ]
null
null
null
web/backend/service/security.py
Vikort/neo4j-platform
03e838673db98e2595293c9052dec02cbd630826
[ "MIT" ]
4
2021-10-11T18:26:28.000Z
2021-11-02T11:43:06.000Z
web/backend/service/security.py
Vikort/neo4j-platform
03e838673db98e2595293c9052dec02cbd630826
[ "MIT" ]
2
2021-10-10T20:29:08.000Z
2021-10-12T23:39:23.000Z
from typing import Optional from werkzeug.security import check_password_hash from .models.user import User
23.5
68
0.750484
6d342f939fd9a4230e78c9eb288c6fea2595e21d
7,926
py
Python
Practicas/Practica 3/FuncionesRRD.py
NacxitCotuha/ASR-2022-4CM13
99ea48cdecd631453e237beb077b8a37e1979a5c
[ "MIT" ]
null
null
null
Practicas/Practica 3/FuncionesRRD.py
NacxitCotuha/ASR-2022-4CM13
99ea48cdecd631453e237beb077b8a37e1979a5c
[ "MIT" ]
null
null
null
Practicas/Practica 3/FuncionesRRD.py
NacxitCotuha/ASR-2022-4CM13
99ea48cdecd631453e237beb077b8a37e1979a5c
[ "MIT" ]
null
null
null
import os import time # RRD Librerias import rrdtool from pysnmp.hlapi import * # Extras Librerias from FuncionesExtras import *
37.386792
106
0.602574
6d374b34660addae6755625188158494a9832526
182
py
Python
scripts/python/do_nothing.py
catforward/batch-launcher
35fe0c67ba30f34bba781a5e9efeece3d34bf505
[ "MIT" ]
null
null
null
scripts/python/do_nothing.py
catforward/batch-launcher
35fe0c67ba30f34bba781a5e9efeece3d34bf505
[ "MIT" ]
null
null
null
scripts/python/do_nothing.py
catforward/batch-launcher
35fe0c67ba30f34bba781a5e9efeece3d34bf505
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys print("my id is %s. wrote by %s." % \ (sys.argv[1], os.getenv("PROC_TYPE", default = "unknown"))) sys.exit(0)
20.222222
60
0.571429
6d377b9f0e95cc7da3ba86cd55faed22a2297117
891
py
Python
setup.py
spapas/django-git
a62215d315263bce5d5d0afcfa14152601f76901
[ "MIT" ]
1
2019-03-15T10:32:21.000Z
2019-03-15T10:32:21.000Z
setup.py
spapas/django-git
a62215d315263bce5d5d0afcfa14152601f76901
[ "MIT" ]
null
null
null
setup.py
spapas/django-git
a62215d315263bce5d5d0afcfa14152601f76901
[ "MIT" ]
1
2016-03-25T03:57:49.000Z
2016-03-25T03:57:49.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-git', version='0.1.0', description='Get git information for your django repository', author='Serafeim Papastefanos', author_email='spapas@gmail.com', license='MIT', url='https://github.com/spapas/django-g...
29.7
69
0.62514
6d38cd4a3589344b7d244c1e47bd1f875465bb17
7,883
py
Python
py/legacyanalysis/cosmos-6x.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
32
2015-08-25T00:25:23.000Z
2022-03-04T06:35:54.000Z
py/legacyanalysis/cosmos-6x.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
644
2015-07-08T16:26:28.000Z
2022-03-30T19:09:10.000Z
py/legacyanalysis/cosmos-6x.py
manera/legacypipe
64dfe164fe1def50f5ad53784edd9a63321b0d45
[ "BSD-3-Clause" ]
22
2015-08-24T18:27:36.000Z
2021-12-04T03:10:42.000Z
from __future__ import print_function from astrometry.util.fits import * import pylab as plt import numpy as np from glob import glob from astrometry.util.plotutils import * from astrometry.libkd.spherematch import * from astrometry.util.resample import * from astrometry.util.util import * ps = PlotSequence('cosmos') ...
33.832618
86
0.635672
6d395494c821bd0b349fbd6c23a637634a0b0583
279
py
Python
examples/usage/expressionsB.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
examples/usage/expressionsB.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
examples/usage/expressionsB.py
rmorshea/viewdom
24c528642e9ef0179999936b2e6f3b8a9d770df8
[ "MIT" ]
null
null
null
from viewdom import html, render name = 'viewdom' result = render(html('<div>Hello {make_bigly(name)}</div>')) # '<div>Hello BIGLY: VIEWDOM</div>' # end-before expected = '<div>Hello BIGLY: VIEWDOM</div>'
21.461538
60
0.666667
6d3b00355ab894a2faa97ab1e971ed05c56826d8
7,463
py
Python
legacy/models/resnet/tensorflow2/train_tf2_resnet.py
kevinyang8/deep-learning-models
271ddfa106c99bc131023e8e159c1b8cc903fe0e
[ "Apache-2.0", "MIT" ]
129
2018-07-21T11:51:16.000Z
2022-03-09T07:15:09.000Z
legacy/models/resnet/tensorflow2/train_tf2_resnet.py
kevinyang8/deep-learning-models
271ddfa106c99bc131023e8e159c1b8cc903fe0e
[ "Apache-2.0", "MIT" ]
20
2018-09-13T23:19:56.000Z
2021-05-22T02:12:53.000Z
legacy/models/resnet/tensorflow2/train_tf2_resnet.py
kevinyang8/deep-learning-models
271ddfa106c99bc131023e8e159c1b8cc903fe0e
[ "Apache-2.0", "MIT" ]
74
2018-07-23T12:14:01.000Z
2022-01-21T05:17:13.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # 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...
46.354037
119
0.680825
6d3b123c46b2e5744010847c1dd9cee530962ce8
930
py
Python
luna_ml/api/model_yaml.py
luna-ml/luna-ml
ff44eefe52ae85334ee51a51cbc488000ab73b1c
[ "Apache-2.0" ]
5
2021-04-12T02:51:50.000Z
2021-11-10T11:27:08.000Z
luna_ml/api/model_yaml.py
luna-ml/luna-ml
ff44eefe52ae85334ee51a51cbc488000ab73b1c
[ "Apache-2.0" ]
null
null
null
luna_ml/api/model_yaml.py
luna-ml/luna-ml
ff44eefe52ae85334ee51a51cbc488000ab73b1c
[ "Apache-2.0" ]
1
2021-11-10T11:27:12.000Z
2021-11-10T11:27:12.000Z
import yaml
21.627907
95
0.480645
6d3b196b1b9ee7730b26944c0ced83c8485223e9
790
py
Python
torchpq/CustomModule.py
francisr/TorchPQ
cb851053ac01a64b9fa374c9985c354f6249a628
[ "MIT" ]
null
null
null
torchpq/CustomModule.py
francisr/TorchPQ
cb851053ac01a64b9fa374c9985c354f6249a628
[ "MIT" ]
null
null
null
torchpq/CustomModule.py
francisr/TorchPQ
cb851053ac01a64b9fa374c9985c354f6249a628
[ "MIT" ]
null
null
null
import torch import torch.nn as nn
34.347826
97
0.589873
6d3b68e07d86851fe5e0a884e7544b6d16b3b476
206
py
Python
faketests/slowtests/test_3.py
Djailla/pytest-sugar
6ac4a1fa18a51e67c7a759bc11a9264cb78619e4
[ "BSD-3-Clause" ]
418
2019-08-30T00:41:51.000Z
2022-03-21T09:31:54.000Z
faketests/slowtests/test_3.py
Djailla/pytest-sugar
6ac4a1fa18a51e67c7a759bc11a9264cb78619e4
[ "BSD-3-Clause" ]
62
2019-08-27T16:50:36.000Z
2022-03-11T07:03:32.000Z
faketests/slowtests/test_3.py
Djailla/pytest-sugar
6ac4a1fa18a51e67c7a759bc11a9264cb78619e4
[ "BSD-3-Clause" ]
25
2019-11-27T15:58:16.000Z
2022-03-21T09:31:56.000Z
import time import pytest
22.888889
61
0.68932
6d3b89d7e2be00a2238a2e44ed78c4b9050bf029
2,450
py
Python
ex09-pg/ex09-pg.py
s0tt/rl-course
e2094b3d4d6f4401c5eaee1f283dae9ddf516716
[ "MIT" ]
null
null
null
ex09-pg/ex09-pg.py
s0tt/rl-course
e2094b3d4d6f4401c5eaee1f283dae9ddf516716
[ "MIT" ]
null
null
null
ex09-pg/ex09-pg.py
s0tt/rl-course
e2094b3d4d6f4401c5eaee1f283dae9ddf516716
[ "MIT" ]
null
null
null
import gym import numpy as np import matplotlib.pyplot as plt def policy(state, theta): """ TODO: return probabilities for actions under softmax action selection """ h = state @ theta return np.exp(h)/np.sum(np.exp(h)) def generate_episode(env, theta, display=False): """ enerates one episode and ret...
29.518072
128
0.59551
6d3dea70d27480b04ab234ec6603df5eec45e0a3
1,425
py
Python
Bite 105. Slice and dice.py
Guznin/PyBites
4a683a1d3aa6e742d28e96e8dfe5de7dd1f61e4a
[ "MIT" ]
1
2019-07-16T15:51:19.000Z
2019-07-16T15:51:19.000Z
Bite 105. Slice and dice.py
Guznin/PyBites
4a683a1d3aa6e742d28e96e8dfe5de7dd1f61e4a
[ "MIT" ]
null
null
null
Bite 105. Slice and dice.py
Guznin/PyBites
4a683a1d3aa6e742d28e96e8dfe5de7dd1f61e4a
[ "MIT" ]
2
2019-10-02T07:30:17.000Z
2020-04-07T20:38:58.000Z
""" Take the block of text provided and strip off the whitespace at both ends. Split the text by newline (\n) using split. Loop through the lines and if the first character of each (stripped) line is lowercase, split the line into words and add the last word to the (given) results list, stripping the trailing dot (.)...
39.583333
246
0.687719
6d3ec069650a07875b8e93b882c63f60bc92401c
1,809
py
Python
main/migrations/0009_auto_20180512_1403.py
jfilter/MDMA
90feb5cf351787b1590a556764c4528daabfe051
[ "MIT" ]
4
2018-06-14T15:33:37.000Z
2019-02-25T09:23:45.000Z
main/migrations/0009_auto_20180512_1403.py
jfilter/MDMA
90feb5cf351787b1590a556764c4528daabfe051
[ "MIT" ]
1
2020-02-11T22:26:49.000Z
2020-02-11T22:26:49.000Z
main/migrations/0009_auto_20180512_1403.py
jfilter/MDMA
90feb5cf351787b1590a556764c4528daabfe051
[ "MIT" ]
1
2019-02-25T09:23:48.000Z
2019-02-25T09:23:48.000Z
# Generated by Django 2.0.5 on 2018-05-12 14:03 import django.core.validators from django.db import migrations, models import main.models
34.132075
164
0.610835
6d4062683b884798ed07b82edb1e9d86a003556b
21,319
py
Python
recipes/Python/577462_A_Buttonbar_program_with_color_/recipe-577462.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/577462_A_Buttonbar_program_with_color_/recipe-577462.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/577462_A_Buttonbar_program_with_color_/recipe-577462.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
''' ;#template` {-path} {-menu} {-s1} {-s2} {-s3} ;#option`-path`Path to controlling file`F`c:\source\python\projects\menu\buttonbar.py` ;#option`-menu`Path to menu file`F`c:\source\python\projects\menu\test.ini` ;#option`-s1`First section`X`info` ;#option`-s2`Second section`X`help` ;#option`-s3`Third section`X`data` ;...
39.045788
140
0.506262
6d4066a1425f074c566a49541275b469d942ae98
2,125
py
Python
main.py
kaankarakoc42/neutron-tk
0ce61ef378e0b0f1476eb745f4c57326df53cbdf
[ "MIT" ]
null
null
null
main.py
kaankarakoc42/neutron-tk
0ce61ef378e0b0f1476eb745f4c57326df53cbdf
[ "MIT" ]
null
null
null
main.py
kaankarakoc42/neutron-tk
0ce61ef378e0b0f1476eb745f4c57326df53cbdf
[ "MIT" ]
null
null
null
from Neutron import NeutronApp,tk,Rotate,Translate,Painter from PIL import Image,ImageTk color="#1c1d22" maincolor="#1c1c1d" imagepath="image.png" image = Image.open(imagepath) app=NeutronApp(800,400) if __name__ == "__main__": app.run()
42.5
135
0.719059
6d40792fa1fedb6ee87c31e6fb93bfa09365633c
13,551
py
Python
ghostwriter/ghtest/test_postarticle.py
arthurmco/ghostwriter
f6040846c28a08bf1b39de19bd2470772eb89080
[ "MIT" ]
null
null
null
ghostwriter/ghtest/test_postarticle.py
arthurmco/ghostwriter
f6040846c28a08bf1b39de19bd2470772eb89080
[ "MIT" ]
4
2017-07-23T02:12:39.000Z
2017-10-01T03:55:02.000Z
ghostwriter/ghtest/test_postarticle.py
arthurmco/ghostwriter
f6040846c28a08bf1b39de19bd2470772eb89080
[ "MIT" ]
null
null
null
import unittest from ghostwriter import app, mm # # Post basic test fixture(?) # Copyright (C) 2017 Arthur M # # # Post composition # # Post search tests
36.23262
278
0.590436
6d42d200de04bf75125a5f7cac6051062bfeb40b
1,414
py
Python
getting_started.py
amit-timalsina/Generative-Python-Transformer
9353cccb084f7c01be5355eedf69094f91d30433
[ "MIT" ]
null
null
null
getting_started.py
amit-timalsina/Generative-Python-Transformer
9353cccb084f7c01be5355eedf69094f91d30433
[ "MIT" ]
null
null
null
getting_started.py
amit-timalsina/Generative-Python-Transformer
9353cccb084f7c01be5355eedf69094f91d30433
[ "MIT" ]
null
null
null
<<<<<<< HEAD from curtsies.fmtfuncs import cyan, bold ======= >>>>>>> 9a201987d7a6490e552e7d03d8281330895ef733 from github import Github import time from datetime import datetime import os ACCESS_TOKEN = open('token.txt', 'r').read() g = Github(ACCESS_TOKEN) print(g.get_user()) <<<<<<< HEAD end_time = time.time() - ...
30.73913
103
0.687412
6d440d089fb7b9e358b4bdec26af74927f52dd64
1,470
py
Python
docs/meta/update_doc.py
ZhihongShao/cotk
252ebc20c9ce175327e3721a9ddbdbb0bffd2744
[ "Apache-2.0" ]
null
null
null
docs/meta/update_doc.py
ZhihongShao/cotk
252ebc20c9ce175327e3721a9ddbdbb0bffd2744
[ "Apache-2.0" ]
null
null
null
docs/meta/update_doc.py
ZhihongShao/cotk
252ebc20c9ce175327e3721a9ddbdbb0bffd2744
[ "Apache-2.0" ]
null
null
null
import os import path if __name__ == "__main__": for filename in os.listdir("./"): if not filename.endswith(".md") and not filename.endswith(".rst"): continue print(filename) file = open(filename, "r", encoding='utf-8').read() locations = get_location(file) fo...
27.222222
80
0.505442
6d451b82a61be9c8cca43334325abb31306bcadf
760
py
Python
sessions/session 4/queue_publish_read.py
IceCrew-Source/BachelorDIM-Lectures-Algorithms-2020
95d2761883feebada25f62c20bdfe405a1353f61
[ "MIT" ]
null
null
null
sessions/session 4/queue_publish_read.py
IceCrew-Source/BachelorDIM-Lectures-Algorithms-2020
95d2761883feebada25f62c20bdfe405a1353f61
[ "MIT" ]
null
null
null
sessions/session 4/queue_publish_read.py
IceCrew-Source/BachelorDIM-Lectures-Algorithms-2020
95d2761883feebada25f62c20bdfe405a1353f61
[ "MIT" ]
null
null
null
import argparse import os import pika from decouple import config import importlib simple_queue_read = importlib.import_module('simple_queue_read') simple_queue_publish = importlib.import_module('simple_queue_publish') URL = config('URL') url = os.environ.get('CLOUDAMQP_URL', URL) params = pika.URLParameters(url) pa...
27.142857
70
0.794737
6d47aacf1b36329cbd49360860e849074b4c7ea2
2,341
py
Python
src/plex_posters/__dev/__init__.py
dtomlinson91/plex_posters
a79b95eb285f96cea26b863e6dc6d33af3816c9a
[ "MIT" ]
null
null
null
src/plex_posters/__dev/__init__.py
dtomlinson91/plex_posters
a79b95eb285f96cea26b863e6dc6d33af3816c9a
[ "MIT" ]
1
2021-06-02T00:43:37.000Z
2021-06-02T00:43:37.000Z
src/plex_posters/__dev/__init__.py
dtomlinson91/plex_posters
a79b95eb285f96cea26b863e6dc6d33af3816c9a
[ "MIT" ]
null
null
null
from __future__ import annotations from .__version__ import __version__ # noqa from .lib import export from typing import Type, TypeVar, List, Dict import praw # type: ignore import requests __all__ = [] # type: List __header__ = 'plex_posters' # __section__ = 'module' T_movie_poster_porn_scraper = TypeVar( '...
24.904255
74
0.574968
6d4b0371bbc405789746fc2f894683115042f998
1,186
py
Python
translate.py
KTH1234/deep_summ
f242733f55e0b42c4fe3ac469142f9586102599d
[ "MIT" ]
null
null
null
translate.py
KTH1234/deep_summ
f242733f55e0b42c4fe3ac469142f9586102599d
[ "MIT" ]
null
null
null
translate.py
KTH1234/deep_summ
f242733f55e0b42c4fe3ac469142f9586102599d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division, unicode_literals import argparse from onmt.translate.Translator import make_translator import onmt.io import onmt.translate import onmt import onmt.ModelConstructor import onmt.modules import onmt.opts import timeit if __name__ == "__main__": parser = argpa...
27.581395
112
0.724283
6d4b6d9bc6438881c86aba43447624f736ef090a
3,447
py
Python
test/aftershock_unittest.py
uofuseismo/shakemap-aqms
228dc31fa987c71e48c70896946c54677497ce4a
[ "CC0-1.0" ]
null
null
null
test/aftershock_unittest.py
uofuseismo/shakemap-aqms
228dc31fa987c71e48c70896946c54677497ce4a
[ "CC0-1.0" ]
3
2021-02-04T00:58:05.000Z
2021-02-08T21:54:43.000Z
test/aftershock_unittest.py
uofuseismo/shakemap-aqms
228dc31fa987c71e48c70896946c54677497ce4a
[ "CC0-1.0" ]
2
2021-01-27T15:20:38.000Z
2021-01-29T22:23:03.000Z
#!/usr/bin/env python """aftershock_unittest runs unit tests on the aftershock script in shakemap-aqms""" import os import unittest import time import logging import sqlite3 from aftershock import aftershockDB from shakemap.utils.config import get_config_paths from shakemap_aqms.util import (get_aqms_config, ...
43.632911
130
0.668697
6d4e191efc3419a7a996c235bf6de8f939ba944e
492
py
Python
app/measurement/migrations/0018_auto_20201013_2006.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
6
2019-11-07T09:32:43.000Z
2021-09-02T22:37:14.000Z
app/measurement/migrations/0018_auto_20201013_2006.py
pnsn/squacapi
e330a925aff38937656983841e495ba3824c11e1
[ "MIT" ]
196
2019-10-04T17:03:36.000Z
2022-03-31T17:54:59.000Z
app/measurement/migrations/0018_auto_20201013_2006.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-10-13 20:06 from django.db import migrations
22.363636
51
0.613821
6d4e1c612f0259f7f3638caf74ccb8db92fe0856
7,093
py
Python
src/lava/lib/dl/slayer/neuron/norm.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
37
2021-09-30T16:47:15.000Z
2022-03-07T22:29:21.000Z
src/lava/lib/dl/slayer/neuron/norm.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
36
2021-11-04T16:54:55.000Z
2022-03-31T02:26:29.000Z
src/lava/lib/dl/slayer/neuron/norm.py
timcheck/lava-dl
e680722071129fde952ea0d744984aa2a038797a
[ "BSD-3-Clause" ]
20
2021-10-29T22:55:58.000Z
2022-03-22T17:27:16.000Z
# Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """Neuron normalization methods.""" import torch
30.705628
79
0.565064
6d4e696d020c5cc19c2a78065f0bfe86189cfbb6
476
py
Python
src/streaming-programs/01-wordsplit_map.py
gofore/aws-emr
31c70abc92aa84cfa93841be59f546809310fe6c
[ "MIT" ]
2
2017-02-12T07:14:37.000Z
2019-08-12T19:13:40.000Z
src/streaming-programs/01-wordsplit_map.py
gofore/aws-emr
31c70abc92aa84cfa93841be59f546809310fe6c
[ "MIT" ]
1
2021-05-07T05:47:27.000Z
2021-05-07T05:47:27.000Z
src/streaming-programs/01-wordsplit_map.py
gofore/aws-emr
31c70abc92aa84cfa93841be59f546809310fe6c
[ "MIT" ]
7
2015-02-23T18:57:52.000Z
2019-11-06T09:31:24.000Z
#!/usr/bin/python import sys import re # Test application to check whether EMR pipeline and reading the data works # This code is from the EMR example: # https://s3.amazonaws.com/elasticmapreduce/samples/wordcount/wordSplitter.py if __name__ == "__main__": main(sys.argv)
28
77
0.67437
6d4ed1f29076811117c1ee8af17b2c9fb71cec92
2,596
py
Python
domonic/constants/keyboard.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
1
2022-03-09T03:39:04.000Z
2022-03-09T03:39:04.000Z
domonic/constants/keyboard.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
domonic/constants/keyboard.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
""" domonic.constants.keyboard ==================================== """
20.768
54
0.373267
6d5062c8e3235dd5b1d309a37505fc11bcdff8b7
370
py
Python
setup.py
jeffFranklin/linkbot
8696061bb03d80ff70a5436a967be02df0e7a938
[ "Apache-2.0" ]
1
2018-10-11T16:48:19.000Z
2018-10-11T16:48:19.000Z
setup.py
jeffFranklin/linkbot
8696061bb03d80ff70a5436a967be02df0e7a938
[ "Apache-2.0" ]
null
null
null
setup.py
jeffFranklin/linkbot
8696061bb03d80ff70a5436a967be02df0e7a938
[ "Apache-2.0" ]
1
2018-03-30T16:32:30.000Z
2018-03-30T16:32:30.000Z
from setuptools import setup install_requires = ['beautifulsoup4', 'simplejson', 'slacker', 'jira', 'requests', 'websocket-client'] setup(name='linkbot', install_requires=install_requires, description='slac...
28.461538
72
0.543243
6d510036057cee60385a3f7350a0e31d6ad3aa8a
589
py
Python
tests/__init__.py
hmpf/easydmp
650b241fedd839635335c1044f2d695f9c076e4c
[ "MIT" ]
5
2018-09-25T15:48:39.000Z
2020-06-04T11:56:36.000Z
tests/__init__.py
hmpf/easydmp
650b241fedd839635335c1044f2d695f9c076e4c
[ "MIT" ]
233
2018-01-10T17:28:41.000Z
2022-03-30T09:38:03.000Z
tests/__init__.py
hmpf/easydmp
650b241fedd839635335c1044f2d695f9c076e4c
[ "MIT" ]
2
2019-02-07T10:34:09.000Z
2019-03-12T07:25:09.000Z
import django # Now this is ugly. # The django.db.backend.features that exist changes per version and per db :/ if django.VERSION[:2] == (2, 2): has_sufficient_json_support = ('has_jsonb_agg',) if django.VERSION[:2] == (3, 2): # This version of EasyDMP is not using Django's native JSONField # implementatio...
42.071429
77
0.724958
6d5163ff7afac2854217dc08a8bc7b2702ea0ae5
1,550
py
Python
query_research/bound_variables.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
query_research/bound_variables.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
query_research/bound_variables.py
sjuenger/WikiMETA
13ed293b4bda8ff0fc10b532907ca35c24a12616
[ "MIT" ]
null
null
null
import glob import json # to hand over the bound variables of a quuery # e.g. ["var4", "<http://www.w3.org/ns/prov#wasDerivedFrom>"] # for : #SELECT ?var1 ?var2Label ?var3 #WHERE { # BIND ( <http://www.w3.org/ns/prov#wasDerivedFrom> AS ?var4 ). # ?var5 ?var6 ?var4 . # ?var5 <http://www.w3.org/1999/02/22-rdf...
36.046512
107
0.58129
6d520b7ec88266cce313daeeffbe58a78a8cd7b3
337
py
Python
metaci/build/migrations/0030_build_priority.py
sfdc-qbranch/MetaCI
78ac0d2bccd2db381998321ebd71029dd5d9ab39
[ "BSD-3-Clause" ]
48
2018-10-24T14:52:06.000Z
2022-03-25T21:14:50.000Z
metaci/build/migrations/0030_build_priority.py
sfdc-qbranch/MetaCI
78ac0d2bccd2db381998321ebd71029dd5d9ab39
[ "BSD-3-Clause" ]
2,034
2018-10-31T20:59:16.000Z
2022-03-22T21:38:03.000Z
metaci/build/migrations/0030_build_priority.py
sfdc-qbranch/MetaCI
78ac0d2bccd2db381998321ebd71029dd5d9ab39
[ "BSD-3-Clause" ]
27
2018-12-24T18:16:23.000Z
2021-12-15T17:57:27.000Z
# Generated by Django 2.2.5 on 2019-10-01 15:52 from django.db import migrations, models
22.466667
85
0.661721
6d537aafddd30273e1241cbf12d001f8b117f913
3,392
py
Python
work/MTRIX/submit_to_queue3.py
youdar/work
d5f32015e7be1d58ede255eeadbd1d12acb3f270
[ "MIT" ]
null
null
null
work/MTRIX/submit_to_queue3.py
youdar/work
d5f32015e7be1d58ede255eeadbd1d12acb3f270
[ "MIT" ]
null
null
null
work/MTRIX/submit_to_queue3.py
youdar/work
d5f32015e7be1d58ede255eeadbd1d12acb3f270
[ "MIT" ]
null
null
null
from __future__ import division from libtbx.command_line import easy_qsub from misc_scripts import helpers from misc_scripts.r_factor_calc import * from iotbx import pdb import cPickle as pickle import os ''' Submit to queue all files with good MTRIX records that also havestracture factor files ''' def get_file_name...
40.86747
121
0.721403
6d53cf11b98a0029c282fbe3850d3f6d77b73010
3,824
py
Python
server/controllers/invites.py
omerk2511/dropbox
8d7ff4b74b412d2fc10a3450b7648f973d5f961b
[ "MIT" ]
4
2020-05-14T12:03:07.000Z
2020-12-22T14:25:54.000Z
server/controllers/invites.py
omerk2511/dropbox
8d7ff4b74b412d2fc10a3450b7648f973d5f961b
[ "MIT" ]
null
null
null
server/controllers/invites.py
omerk2511/dropbox
8d7ff4b74b412d2fc10a3450b7648f973d5f961b
[ "MIT" ]
null
null
null
import functools import sqlite3 as lite from common import Codes, Message from controller import controller from validators import validator, existing_group from auth import authenticated, group_owner from ..models import Groups, Users, UsersGroups, Invites INVITE_PAYLOAD = [ ('group', [int]), ('username', [s...
24.356688
89
0.606433
6d53fe4563e41a0f241cdbdebf80e81f575c14ec
1,130
py
Python
pandas/tests/indexes/timedeltas/test_partial_slicing.py
k-fillmore/pandas
67d4cae17bec45e84b9cf51bcf4fb5bbe293b26f
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2022-02-02T02:05:28.000Z
2022-02-02T02:09:37.000Z
pandas/tests/indexes/timedeltas/test_partial_slicing.py
k-fillmore/pandas
67d4cae17bec45e84b9cf51bcf4fb5bbe293b26f
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-02-16T06:43:48.000Z
2021-03-19T00:07:02.000Z
pandas/tests/indexes/timedeltas/test_partial_slicing.py
k-fillmore/pandas
67d4cae17bec45e84b9cf51bcf4fb5bbe293b26f
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-10-28T03:32:40.000Z
2020-10-28T03:32:40.000Z
import numpy as np from pandas import Series, timedelta_range import pandas._testing as tm
28.25
72
0.60354
6d540b98a72ab68cdb241761ec9a3d49ae2599e1
426
py
Python
czsc/__init__.py
vercity/czsc
7a372baa3a550b18ff319008ac3fcab0f3faa684
[ "MIT" ]
1
2022-02-22T06:31:40.000Z
2022-02-22T06:31:40.000Z
czsc/__init__.py
vercity/czsc
7a372baa3a550b18ff319008ac3fcab0f3faa684
[ "MIT" ]
1
2021-09-25T02:32:39.000Z
2021-09-25T02:32:39.000Z
czsc/__init__.py
vercity/czsc
7a372baa3a550b18ff319008ac3fcab0f3faa684
[ "MIT" ]
null
null
null
# coding: utf-8 from .analyze import CZSC from .traders.advanced import CzscAdvancedTrader from .utils.ta import SMA, EMA, MACD, KDJ from .objects import Freq, Operate, Direction, Signal, Factor, Event, RawBar, NewBar from . import aphorism __version__ = "0.8.17" __author__ = "zengbin93" __email__ = "zeng_bin8888@163...
23.666667
84
0.758216
6d546d1dc2cae3ea649edcb8b4f5382cc4bc67ee
334
py
Python
restaurant/migrations/0004_remove_recipe_ingreiends.py
turgayh/Recipe-Share
858eb3e0e21c11b62249fbc9490cd7bb1f244b9e
[ "MIT" ]
1
2021-01-20T20:52:47.000Z
2021-01-20T20:52:47.000Z
restaurant/migrations/0004_remove_recipe_ingreiends.py
turgayh/Recipe-Share
858eb3e0e21c11b62249fbc9490cd7bb1f244b9e
[ "MIT" ]
null
null
null
restaurant/migrations/0004_remove_recipe_ingreiends.py
turgayh/Recipe-Share
858eb3e0e21c11b62249fbc9490cd7bb1f244b9e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-25 19:30 from django.db import migrations
18.555556
49
0.598802
6d573bc453dd58a54c399a376e1f87e3d35c0f8e
11,488
py
Python
smirk/migrations/0001_initial.py
ahmsayat/CyberSeed
1c9368eb3849ec3e0e02c600bdf813cedcaa88c7
[ "MIT" ]
null
null
null
smirk/migrations/0001_initial.py
ahmsayat/CyberSeed
1c9368eb3849ec3e0e02c600bdf813cedcaa88c7
[ "MIT" ]
5
2017-09-26T05:12:06.000Z
2017-10-27T05:32:27.000Z
smirk/migrations/0001_initial.py
ahmsayat/CyberSeed
1c9368eb3849ec3e0e02c600bdf813cedcaa88c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-10-08 01:12 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
56.591133
327
0.613945
6d574c23e31223710983173b31daded06d3575c8
1,176
py
Python
hargreaves/session/__init__.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
hargreaves/session/__init__.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
hargreaves/session/__init__.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
import logging from requests_tracker.session import WebSessionFactory from requests_tracker.storage import ICookieStorage from ..config.models import ApiConfiguration from ..utils.cookies import HLCookieHelper from ..session.shared import LoggedInSession logging.getLogger(__name__).addHandler(logging.NullHandler()) ...
30.153846
71
0.705782
6d5b5843a99ae892b0a5c5a29a23c571243bb918
76
py
Python
todo/settings/develop.py
bzd111/todolist
9fcbc12e115c3b43118367c90902a2268ef598ac
[ "MIT" ]
null
null
null
todo/settings/develop.py
bzd111/todolist
9fcbc12e115c3b43118367c90902a2268ef598ac
[ "MIT" ]
6
2020-06-06T00:58:31.000Z
2022-02-10T09:05:44.000Z
todo/settings/develop.py
bzd111/todolist
9fcbc12e115c3b43118367c90902a2268ef598ac
[ "MIT" ]
null
null
null
from .base import * ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]
15.2
53
0.605263
6d5b9db2ef3c280e75f116340f39ee60fd487560
1,035
py
Python
api server/server/routes/front_routes.py
rabo452/flipbook
f892d568fd4acff84414098dfbad17867fc0fc7b
[ "MIT" ]
null
null
null
api server/server/routes/front_routes.py
rabo452/flipbook
f892d568fd4acff84414098dfbad17867fc0fc7b
[ "MIT" ]
null
null
null
api server/server/routes/front_routes.py
rabo452/flipbook
f892d568fd4acff84414098dfbad17867fc0fc7b
[ "MIT" ]
null
null
null
# routes for front-end part of project from flask import url_for, render_template, request from server import app
32.34375
110
0.675362
6d5cef5c79576f1d75365dd8f354f0ce37652ed8
2,670
py
Python
osp/graphs/osp_graph.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
osp/graphs/osp_graph.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
osp/graphs/osp_graph.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import networkx as nx import random from osp.common.utils import query_bar from osp.graphs.graph import Graph from osp.citations.models import Text, Citation, Text_Index from osp.corpus.models import Document from itertools import combinations from peewee import fn from clint.textui import progress
23.421053
65
0.539326
6d5ea38576f25db53776c642414c54041033cdde
7,525
py
Python
Project/src/uff/ic/mell/sentimentembedding/modelos/modelo_transformer.py
MeLL-UFF/tuning_sentiment
cb8683be115f694e02c12f8e1a90529a08c7d1d6
[ "MIT" ]
2
2021-09-23T18:06:10.000Z
2021-09-23T18:15:11.000Z
Project/src/uff/ic/mell/sentimentembedding/modelos/modelo_transformer.py
MeLL-UFF/tuning_sentiment
cb8683be115f694e02c12f8e1a90529a08c7d1d6
[ "MIT" ]
null
null
null
Project/src/uff/ic/mell/sentimentembedding/modelos/modelo_transformer.py
MeLL-UFF/tuning_sentiment
cb8683be115f694e02c12f8e1a90529a08c7d1d6
[ "MIT" ]
null
null
null
from uff.ic.mell.sentimentembedding.utils.data_converstion_utils import convert_tensor2array from uff.ic.mell.sentimentembedding.modelos.modelo import Modelo import pandas as pd import numpy as np import torch from enum import Enum from tokenizers import ByteLevelBPETokenizer
47.626582
154
0.612226
6d5f77bccd5162155079b37338363a35a130b2e2
901
py
Python
service/src/service/edit_distance.py
xuqiongkai/ALTER
a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7
[ "MIT" ]
8
2019-09-18T01:14:07.000Z
2022-02-05T03:43:24.000Z
service/src/service/edit_distance.py
xuqiongkai/ALTER
a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7
[ "MIT" ]
4
2019-11-15T03:09:52.000Z
2022-03-24T15:01:55.000Z
service/src/service/edit_distance.py
xuqiongkai/ALTER
a9ec98c0ed576a68f14711eeff6f1c7d2d34c6f7
[ "MIT" ]
4
2019-09-17T22:17:30.000Z
2022-02-05T03:43:28.000Z
import editdistance
26.5
100
0.521643
6d60650cd762f88755f54feccc523154dd54bfa9
485
py
Python
tf_rl/test/utils_test/memory_save_test.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
8
2020-01-13T03:29:50.000Z
2021-11-19T00:59:42.000Z
tf_rl/test/utils_test/memory_save_test.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
5
2020-11-13T17:40:40.000Z
2022-03-12T00:11:33.000Z
tf_rl/test/utils_test/memory_save_test.py
Rowing0914/TF2_RL
c1b7f9b376cbecf01deb17f76f8e761035ed336a
[ "MIT" ]
1
2021-04-02T13:42:39.000Z
2021-04-02T13:42:39.000Z
import gym from tf_rl.common.memory import ReplayBuffer size = 100000 env = gym.make("CartPole-v0") memory = ReplayBuffer(size=size, traj_dir="./traj/") state = env.reset() action = env.action_space.sample() next_state, reward, done, info = env.step(action) env.close() for _ in range(size): memory.add(state, acti...
25.526316
71
0.736082
6d60d1c4abd2129f815bdb0880d24a4bef820a4f
2,586
py
Python
stacking/1.binary/stack_xgb_lgb.py
huseinzol05/Machine-Learning-Data-Science-Reuse
83f967a94254eb71ae021dccbc13f861d50c64f0
[ "MIT" ]
26
2018-02-09T04:57:19.000Z
2021-10-03T13:06:18.000Z
stacking/1.binary/stack_xgb_lgb.py
huseinzol05/Machine-Learning-Data-Science-Reuse
83f967a94254eb71ae021dccbc13f861d50c64f0
[ "MIT" ]
null
null
null
stacking/1.binary/stack_xgb_lgb.py
huseinzol05/Machine-Learning-Data-Science-Reuse
83f967a94254eb71ae021dccbc13f861d50c64f0
[ "MIT" ]
26
2018-03-04T08:10:03.000Z
2021-08-04T08:05:49.000Z
import numpy as np import pandas as pd from sklearn.model_selection import StratifiedKFold import lightgbm as lgb import xgboost as xgb # read dataset df_train = pd.read_csv('train.csv') df_test = pd.read_csv('test.csv') # gini function # define fold number kfold = 5 skf = StratifiedKFold(n_splits=kfold, random_stat...
31.925926
146
0.660866
6d61115da86ee25dd4b72746264e5411b0609670
7,889
py
Python
sdk/python/pulumi_ovh/get_vps.py
legitbee/pulumi-ovh
23205a76a958edfbfcd96242d9663b3d7c81ccd9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_ovh/get_vps.py
legitbee/pulumi-ovh
23205a76a958edfbfcd96242d9663b3d7c81ccd9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_ovh/get_vps.py
legitbee/pulumi-ovh
23205a76a958edfbfcd96242d9663b3d7c81ccd9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
34.3
263
0.63316
6d61124fdff6342f0f0ec0bd44dc8339e788d4a2
901
py
Python
config_projector.py
edmcdonagh/drumminhands_projector
bcb32ccfd9b18889ea87b01e6ad32a6298e89fdb
[ "MIT" ]
6
2016-11-19T21:15:57.000Z
2020-03-07T13:26:38.000Z
config_projector.py
edmcdonagh/drumminhands_projector
bcb32ccfd9b18889ea87b01e6ad32a6298e89fdb
[ "MIT" ]
null
null
null
config_projector.py
edmcdonagh/drumminhands_projector
bcb32ccfd9b18889ea87b01e6ad32a6298e89fdb
[ "MIT" ]
2
2017-11-30T07:59:21.000Z
2019-02-09T22:29:43.000Z
#!/usr/bin/env python # configure these settings to change projector behavior server_mount_path = '//192.168.42.11/PiShare' # shared folder on other pi user_name = 'pi' # shared drive login user name user_password = 'raspberry' # shared drive login password client_mount_path = '/mnt/pishare' # where to find the shared...
56.3125
88
0.758047
6d657cc1dbf7a0067d9d527dfd593e28370c316c
12,213
py
Python
quest/util/misc.py
sdc50/quest
95fee57e6fb177c4d32c5e6cffbde61333f81b7d
[ "BSD-3-Clause" ]
12
2018-03-26T19:59:54.000Z
2022-02-02T01:21:09.000Z
quest/util/misc.py
sdc50/quest
95fee57e6fb177c4d32c5e6cffbde61333f81b7d
[ "BSD-3-Clause" ]
110
2018-02-08T19:56:15.000Z
2019-05-30T20:55:09.000Z
quest/util/misc.py
sdc50/quest
95fee57e6fb177c4d32c5e6cffbde61333f81b7d
[ "BSD-3-Clause" ]
10
2018-02-08T20:31:43.000Z
2020-08-05T18:45:01.000Z
import os import re import warnings from uuid import uuid4, UUID import shapely.geometry import geopandas as gpd import pandas as pd import numpy as np from geojson import LineString, Point, Polygon, Feature, FeatureCollection, MultiPolygon try: import simplejson as json except ImportError: import json from ...
28.940758
117
0.630558
6d66395e3f57acd1f4192653cc17454599adfcee
27,335
py
Python
xvqa2.py
frkl/SOBERT-XVQA-demo
c99d2f36d9ed275dfd3ba25c200019bbde197d4f
[ "Apache-2.0" ]
2
2021-07-25T12:44:29.000Z
2021-07-27T08:55:48.000Z
xvqa2.py
frkl/SOBERT-XVQA-demo
c99d2f36d9ed275dfd3ba25c200019bbde197d4f
[ "Apache-2.0" ]
null
null
null
xvqa2.py
frkl/SOBERT-XVQA-demo
c99d2f36d9ed275dfd3ba25c200019bbde197d4f
[ "Apache-2.0" ]
1
2021-07-25T12:44:30.000Z
2021-07-25T12:44:30.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torchvision.models import torchvision.datasets.folder import torchvision.transforms as transforms import torchvision.transforms.functional as Ft from pytorch_transformers import BertTokenizer import os import db from PIL import Image import cv2 i...
39.788937
201
0.548601
ed8e12d1428a72d4ab6140f65c41158afee78887
3,455
py
Python
fzutils/memory_utils.py
superonesfazai/fzutils
a8aafaacd94af0001af2ab139f0aa8cbcb8b5eda
[ "MIT" ]
11
2018-08-04T08:14:27.000Z
2021-09-03T09:00:33.000Z
fzutils/memory_utils.py
superonesfazai/fzutils
a8aafaacd94af0001af2ab139f0aa8cbcb8b5eda
[ "MIT" ]
null
null
null
fzutils/memory_utils.py
superonesfazai/fzutils
a8aafaacd94af0001af2ab139f0aa8cbcb8b5eda
[ "MIT" ]
8
2018-08-04T08:16:17.000Z
2019-05-05T09:17:35.000Z
# coding:utf-8 ''' @author = super_fazai @File : memory_utils.py @connect : superonesfazai@gmail.com ''' """ memory utils """ from pprint import pprint from weakref import WeakKeyDictionary from functools import wraps from inspect import stack as inspect_stack from traceback import extract_stack from sys import _...
27.420635
92
0.592185
ed8e6ab269e092f762ee8df541cc82f929c9e8fd
283
py
Python
molecule/default/tests/test_default.py
tottoto/ansible-role-kubectl
a6df49ffa401b4bde930feda75fb28abc484cb16
[ "MIT" ]
null
null
null
molecule/default/tests/test_default.py
tottoto/ansible-role-kubectl
a6df49ffa401b4bde930feda75fb28abc484cb16
[ "MIT" ]
4
2020-02-26T20:19:31.000Z
2021-09-23T23:33:14.000Z
molecule/default/tests/test_default.py
tottoto/ansible-role-kubectl
a6df49ffa401b4bde930feda75fb28abc484cb16
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
23.583333
63
0.791519
ed8eb07399ef5dd6cfc37f643159fffdc078a9b3
636
py
Python
lisa/web_api/producer.py
benbenwt/lisa_docker
0b851223dbaecef9b27c418eae05890fea752d49
[ "Apache-2.0" ]
null
null
null
lisa/web_api/producer.py
benbenwt/lisa_docker
0b851223dbaecef9b27c418eae05890fea752d49
[ "Apache-2.0" ]
1
2021-12-17T00:14:27.000Z
2021-12-17T00:14:27.000Z
lisa/web_api/producer.py
benbenwt/lisa_docker
0b851223dbaecef9b27c418eae05890fea752d49
[ "Apache-2.0" ]
null
null
null
from kafka import KafkaProducer, KafkaConsumer from kafka.errors import kafka_errors import traceback import json if __name__=='__main__': produce("lisa",r"C:\Users\guo\Desktop\input1")
28.909091
58
0.668239
ed9031f0183c6a80b06e2ca7c92c8e983422b804
1,847
py
Python
lightgallery_caption.py
kellpossible/lightgallery-markdown-caption
dc7771fc06591add0a6c8a7300f1f5fdd4d512e6
[ "MIT" ]
null
null
null
lightgallery_caption.py
kellpossible/lightgallery-markdown-caption
dc7771fc06591add0a6c8a7300f1f5fdd4d512e6
[ "MIT" ]
null
null
null
lightgallery_caption.py
kellpossible/lightgallery-markdown-caption
dc7771fc06591add0a6c8a7300f1f5fdd4d512e6
[ "MIT" ]
null
null
null
from markdown import Extension from markdown.treeprocessors import Treeprocessor from markdown.util import etree import re def makeExtension(configs={}): return LightGalleryExtension(configs=configs)
37.693878
86
0.543584
ed9138a01663758b17298e639488cbf64b28b95b
1,247
py
Python
core/screen/screenshot_image.py
echim/pySteps
c33ac3446593b545aece475062d140527dcb443c
[ "MIT" ]
8
2018-05-15T21:20:40.000Z
2021-08-19T00:25:18.000Z
core/screen/screenshot_image.py
echim/pySteps
c33ac3446593b545aece475062d140527dcb443c
[ "MIT" ]
null
null
null
core/screen/screenshot_image.py
echim/pySteps
c33ac3446593b545aece475062d140527dcb443c
[ "MIT" ]
2
2018-09-12T01:33:54.000Z
2021-01-25T02:21:58.000Z
import cv2 import numpy as np from pyautogui import screenshot from pyautogui import size as get_screen_size from core.screen.screen_rectangle import ScreenRectangle
31.974359
119
0.709703
ed94af084e037eae274541880d7fd4eaccace6d8
21
py
Python
detection/models/__init__.py
DoomsdayT/Raspberry-Pi-Fall-Detection
ca1216e1e23ccf3484ea8365fac0b10e5bc8eb2a
[ "MIT" ]
1
2020-09-08T08:08:56.000Z
2020-09-08T08:08:56.000Z
detection/models/__init__.py
DoomsdayT/Raspberry-Pi-Fall-Detection
ca1216e1e23ccf3484ea8365fac0b10e5bc8eb2a
[ "MIT" ]
null
null
null
detection/models/__init__.py
DoomsdayT/Raspberry-Pi-Fall-Detection
ca1216e1e23ccf3484ea8365fac0b10e5bc8eb2a
[ "MIT" ]
1
2022-01-24T06:03:54.000Z
2022-01-24T06:03:54.000Z
from . import expert
10.5
20
0.761905
ed96d61d5cbb65d06584f7cebce259b1a0c9688c
2,930
py
Python
tests/port_tests/utils.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
1
2021-01-20T05:49:13.000Z
2021-01-20T05:49:13.000Z
tests/port_tests/utils.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
1
2020-11-20T18:21:24.000Z
2020-11-20T18:21:37.000Z
tests/port_tests/utils.py
synapticarbors/wagyu
b98354611dceda8888f2951e9704f843a4e88c27
[ "MIT" ]
2
2020-11-20T18:17:31.000Z
2021-01-20T14:58:22.000Z
from typing import (List, Tuple) from tests.utils import (RawPointsList, RawPolygon, enum_to_values) from wagyu.bound import Bound as PortedBound from wagyu.box import Box as PortedBox from wagyu.edge import Edge as PortedEdge from wagyu.enums impor...
41.267606
76
0.740956
ed9896d9b85e134af17c775461c25784086c7535
4,181
py
Python
django_oneskyapp/management/commands/pullonesky.py
goteamup/django-oneskyapp
8220b93f6faec1193e6d2263b3b42dc065ddae5f
[ "MIT" ]
null
null
null
django_oneskyapp/management/commands/pullonesky.py
goteamup/django-oneskyapp
8220b93f6faec1193e6d2263b3b42dc065ddae5f
[ "MIT" ]
null
null
null
django_oneskyapp/management/commands/pullonesky.py
goteamup/django-oneskyapp
8220b93f6faec1193e6d2263b3b42dc065ddae5f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.core import management from django_oneskyapp.utils import OneSkyApiClientException, OneSkyApiClient import os
51.617284
243
0.729012
ed99622ae1dd4a334318cf1ef4a3d20d64828d4e
29
py
Python
sparksetup/__init__.py
PKPDAI/PKDocClassifier
f37e6623185f3388c64322fc47fe6aaa8a597939
[ "MIT" ]
10
2021-03-12T17:01:14.000Z
2022-03-26T02:02:56.000Z
sparksetup/__init__.py
PKPDAI/PKDocClassifier
f37e6623185f3388c64322fc47fe6aaa8a597939
[ "MIT" ]
1
2021-02-10T19:09:07.000Z
2021-02-10T19:09:07.000Z
sparksetup/__init__.py
fgh95/PKDocClassifier
f37e6623185f3388c64322fc47fe6aaa8a597939
[ "MIT" ]
3
2021-03-18T12:37:39.000Z
2022-01-11T02:35:10.000Z
from .sparkconf import spark
14.5
28
0.827586
ed99cd98ac2a8832973daebcd0b8516c9f800d03
751
py
Python
setup/patch-install-rdf.py
BearerPipelineTest/zotero-better-bibtex
67985f6a8bd5d56297ec56c9558ffe1bfb417843
[ "MIT" ]
null
null
null
setup/patch-install-rdf.py
BearerPipelineTest/zotero-better-bibtex
67985f6a8bd5d56297ec56c9558ffe1bfb417843
[ "MIT" ]
null
null
null
setup/patch-install-rdf.py
BearerPipelineTest/zotero-better-bibtex
67985f6a8bd5d56297ec56c9558ffe1bfb417843
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import glob import json import xml.dom.minidom as minidom import json install = minidom.parse('build/install.rdf') ta = install.getElementsByTagNameNS('*', 'targetApplication')[0] with open('schema/supported.json') as f: min_version = json.load(f) for client, version in min_version.items():...
32.652174
106
0.724368
ed9a1bc4040b9471e3562acd05d761a9d49742e8
410
py
Python
python/import-data-url.py
wizzardz/vehicle-statistics-india
a54f84460ce3129d170510ce2c33799008b1a7a6
[ "Apache-2.0" ]
null
null
null
python/import-data-url.py
wizzardz/vehicle-statistics-india
a54f84460ce3129d170510ce2c33799008b1a7a6
[ "Apache-2.0" ]
null
null
null
python/import-data-url.py
wizzardz/vehicle-statistics-india
a54f84460ce3129d170510ce2c33799008b1a7a6
[ "Apache-2.0" ]
null
null
null
import urllib.request import json import sys import os data = '' url = sys.argv[1] output_folder = sys.argv[2] file_name = sys.argv[3] with urllib.request.urlopen(url) as response: data = response.read().decode('utf-8') index = 1 filename = output_folder + '/' + file_name + '.json' os.makedirs(os.path.dirname(fil...
20.5
53
0.719512
ed9aa65300cd780d6505d47d777d1fe467511db5
1,777
py
Python
opt.py
ArmandB/RITnet
afe9524fdd795982c7e52761da68af2dfda589ea
[ "MIT" ]
null
null
null
opt.py
ArmandB/RITnet
afe9524fdd795982c7e52761da68af2dfda589ea
[ "MIT" ]
null
null
null
opt.py
ArmandB/RITnet
afe9524fdd795982c7e52761da68af2dfda589ea
[ "MIT" ]
3
2021-03-05T04:49:42.000Z
2022-02-16T20:20:33.000Z
from pprint import pprint import argparse if __name__ == '__main__': opt = parse_args() print('opt[\'dataset\'] is ', opt.dataset)
43.341463
112
0.694429
ed9af6a143012b913881d84d203843d4df5a3ae6
2,988
py
Python
Face Cluster/Project/Validation folder/FaceDetection.py
adius0711/CVIP
c8fe00c607cd69260ec48eeeb7baee6ef28cd898
[ "Apache-2.0" ]
null
null
null
Face Cluster/Project/Validation folder/FaceDetection.py
adius0711/CVIP
c8fe00c607cd69260ec48eeeb7baee6ef28cd898
[ "Apache-2.0" ]
null
null
null
Face Cluster/Project/Validation folder/FaceDetection.py
adius0711/CVIP
c8fe00c607cd69260ec48eeeb7baee6ef28cd898
[ "Apache-2.0" ]
null
null
null
import cv2 import argparse import os import numpy as np import json from colab import files image_types = (".jpg", ".jpeg", ".png", ".bmp", ".tif", ".tiff") ap = argparse.ArgumentParser() ap.add_argument("-C", "--confidence", type=float, default=0.58, help="minimum probability to filt...
36.888889
106
0.614458
ed9ba2f7e9dbbd66c02c15b827c7a04d2ac3b61b
11,678
py
Python
concept/tools/decorator.py
Nachtfeuer/concept-py
64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f
[ "MIT" ]
2
2019-03-02T18:50:24.000Z
2019-12-19T14:15:42.000Z
concept/tools/decorator.py
Nachtfeuer/concept-py
64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f
[ "MIT" ]
10
2015-07-27T03:24:57.000Z
2017-03-31T18:11:26.000Z
concept/tools/decorator.py
Nachtfeuer/concept-py
64e1f82de144f959cdf3c6dcf0f692bbc0ceb20f
[ "MIT" ]
null
null
null
""" Decorator tools. .. module:: decorator :platform: Unix, Windows :synopis: decorator tools. .. moduleauthor:: Thomas Lehmann <thomas.lehmann.private@googlemail.com> ======= License ======= Copyright (c) 2015 Thomas Lehmann Permission is hereby granted, free of charge, to any person obt...
35.822086
93
0.60721
ed9c653527a279116750d849e9b13b625dcbc002
4,827
py
Python
reframe/core/schedulers/torque.py
stevenvdb/reframe
be9de13dc16d2c9fb4b760e07ac986b04f8ed880
[ "BSD-3-Clause" ]
null
null
null
reframe/core/schedulers/torque.py
stevenvdb/reframe
be9de13dc16d2c9fb4b760e07ac986b04f8ed880
[ "BSD-3-Clause" ]
null
null
null
reframe/core/schedulers/torque.py
stevenvdb/reframe
be9de13dc16d2c9fb4b760e07ac986b04f8ed880
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause # # Torque backend # # - Initial version submitted by Samuel Moors, Vrije Universiteit Brussel (VUB) # import re import os imp...
34.478571
79
0.549617
ed9cd937ba522f2f4faa679769f731bbd4fc5628
4,623
py
Python
env/lib/python3.8/site-packages/unidecode/x09a.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
82
2020-03-28T02:24:38.000Z
2022-03-30T04:18:42.000Z
venv/lib/python3.6/site-packages/unidecode/x09a.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
392
2015-07-30T14:37:05.000Z
2022-03-21T16:56:09.000Z
venv/lib/python3.6/site-packages/unidecode/x09a.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
30
2020-06-20T15:31:53.000Z
2022-03-06T06:23:55.000Z
data = ( 'E ', # 0x00 'Cheng ', # 0x01 'Xin ', # 0x02 'Ai ', # 0x03 'Lu ', # 0x04 'Zhui ', # 0x05 'Zhou ', # 0x06 'She ', # 0x07 'Pian ', # 0x08 'Kun ', # 0x09 'Tao ', # 0x0a 'Lai ', # 0x0b 'Zong ', # 0x0c 'Ke ', # 0x0d 'Qi ', # 0x0e 'Qi ', # 0x0f 'Yan ', # 0x10 'Fei '...
17.849421
20
0.389358
ed9ced796a1b1297b457584a21018d8e45918e30
879
py
Python
test_series_size.py
soothingjennyg/pandasTestingProject
c1bf9ec30723316c992f57dd9e2c5e2215dbe595
[ "MIT" ]
null
null
null
test_series_size.py
soothingjennyg/pandasTestingProject
c1bf9ec30723316c992f57dd9e2c5e2215dbe595
[ "MIT" ]
null
null
null
test_series_size.py
soothingjennyg/pandasTestingProject
c1bf9ec30723316c992f57dd9e2c5e2215dbe595
[ "MIT" ]
1
2021-12-08T20:59:09.000Z
2021-12-08T20:59:09.000Z
import pandas as pd import unittest if __name__ == '__main__': unittest.main()
30.310345
114
0.653015
ed9e989e3ecf6c7b2201afc78dfc1d0c1fbdb7cf
12,325
py
Python
dqn.py
justinmilner1/Connect4-master
9cd16b1c23c5a0de07177dd332e53d4574269d28
[ "MIT" ]
null
null
null
dqn.py
justinmilner1/Connect4-master
9cd16b1c23c5a0de07177dd332e53d4574269d28
[ "MIT" ]
null
null
null
dqn.py
justinmilner1/Connect4-master
9cd16b1c23c5a0de07177dd332e53d4574269d28
[ "MIT" ]
null
null
null
import random import logging import numpy as np import tensorflow as tf
61.625
156
0.618093
eda0102bee225153a9a9c699f2932d3638a5b5ac
192
py
Python
Test.py
pgDora56/MakeVirtualBlogArticle
17de05ace2dfc85566563796553cde212b647749
[ "MIT" ]
null
null
null
Test.py
pgDora56/MakeVirtualBlogArticle
17de05ace2dfc85566563796553cde212b647749
[ "MIT" ]
null
null
null
Test.py
pgDora56/MakeVirtualBlogArticle
17de05ace2dfc85566563796553cde212b647749
[ "MIT" ]
null
null
null
import MeCab with open(r"output\417\001.txt", encoding="utf-8") as f: s = f.read() m = MeCab.Tagger().parse(s) print(m) m = MeCab.Tagger().parse("[NEWLINE]") print(m)
17.454545
57
0.572917
eda26997e04dad71a5345443c6618c67bd6570e5
613
py
Python
oops_fhir/r4/value_set/contact_point_system.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/contact_point_system.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/contact_point_system.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.contact_point_system import ( ContactPointSystem as ContactPointSystem_, ) __all__ = ["ContactPointSystem"] _resource = _ValueSet.parse_file(Path(__file__).wit...
19.774194
69
0.748777
eda269eeba1002830ddb7feba1403352015b2168
3,367
py
Python
django_db_meter/views.py
djangothon/django-db-meter
2a96b32b5cc1a926832316841afd5da7d90a0b8f
[ "Apache-2.0" ]
null
null
null
django_db_meter/views.py
djangothon/django-db-meter
2a96b32b5cc1a926832316841afd5da7d90a0b8f
[ "Apache-2.0" ]
null
null
null
django_db_meter/views.py
djangothon/django-db-meter
2a96b32b5cc1a926832316841afd5da7d90a0b8f
[ "Apache-2.0" ]
null
null
null
import json from django.conf import settings from django.core.urlresolvers import reverse from django.http import HttpResponse from django.db.models import get_apps, get_models from django.shortcuts import render from django.core.serializers.json import DjangoJSONEncoder from django_db_meter.models import DBQueryMetr...
33.67
101
0.703594
eda4d5314c384a7c541d66c7886698d6c0355864
1,109
py
Python
demo.py
smartninja/smartninja-mongo
5d9bd1bdf81db79560b71688b4ec0795014e5804
[ "MIT" ]
null
null
null
demo.py
smartninja/smartninja-mongo
5d9bd1bdf81db79560b71688b4ec0795014e5804
[ "MIT" ]
null
null
null
demo.py
smartninja/smartninja-mongo
5d9bd1bdf81db79560b71688b4ec0795014e5804
[ "MIT" ]
null
null
null
import datetime from smartninja_mongo.bson import ObjectId from smartninja_mongo.connection import MongoClient from smartninja_mongo.odm import Model client = MongoClient('mongodb://localhost:27017/') db = client.my_database collection = db.users user_id = collection.insert_one({"first_name": "Matej", "last_name":...
23.595745
97
0.724977
eda65be31fd3ddf73831bba093f8142205944ce0
6,629
py
Python
scripts/extract_coll_format.py
therosko/Thesis-NER-in-English-novels
7988c3aa4f904e91b1e674090dbdc6487b4ad042
[ "Apache-2.0" ]
null
null
null
scripts/extract_coll_format.py
therosko/Thesis-NER-in-English-novels
7988c3aa4f904e91b1e674090dbdc6487b4ad042
[ "Apache-2.0" ]
null
null
null
scripts/extract_coll_format.py
therosko/Thesis-NER-in-English-novels
7988c3aa4f904e91b1e674090dbdc6487b4ad042
[ "Apache-2.0" ]
null
null
null
#################################################################################################################################################### # Flair Dekker import pandas as pd import os import csv # import own script from hyphens import * from patch_flair_parsing import * from calculate_metrics import * fi...
53.459677
292
0.610348
edaa2e6e59e705770a65843fb484ab08934862e0
148
py
Python
ml_model_evaluation/__init__.py
nkaenzig/ml_model_evaluation
0064a223b3a6362b7e281d9241cb9ffe97247bb0
[ "MIT" ]
null
null
null
ml_model_evaluation/__init__.py
nkaenzig/ml_model_evaluation
0064a223b3a6362b7e281d9241cb9ffe97247bb0
[ "MIT" ]
null
null
null
ml_model_evaluation/__init__.py
nkaenzig/ml_model_evaluation
0064a223b3a6362b7e281d9241cb9ffe97247bb0
[ "MIT" ]
null
null
null
"""Top-level package for ML Model Evaluation Toolkit.""" __author__ = """Nicolas Kaenzig""" __email__ = "nkaenzig@gmail.com" __version__ = "0.1.0"
24.666667
56
0.709459