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
3b069538dfe981f0fa7968f67f5bda04646284dd
152,330
py
Python
google/ads/google_ads/v4/types.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v4/types.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v4/types.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
82.698154
167
0.808029
0
0
189
0.001241
0
0
0
0
137,814
0.904707
3b08aa7fb58998cc3b6424f138688be5f547dfe9
15,841
py
Python
minecraftcogs/chatrelay.py
jinkhya/Charfred_Cogs
d6afc4c02e668c046ba40e9a7afae68004658f6d
[ "MIT" ]
null
null
null
minecraftcogs/chatrelay.py
jinkhya/Charfred_Cogs
d6afc4c02e668c046ba40e9a7afae68004658f6d
[ "MIT" ]
null
null
null
minecraftcogs/chatrelay.py
jinkhya/Charfred_Cogs
d6afc4c02e668c046ba40e9a7afae68004658f6d
[ "MIT" ]
null
null
null
import logging import asyncio from concurrent.futures import CancelledError from discord.ext import commands from utils import Config, permission_node log = logging.getLogger('charfred') formats = { 'MSG': '[**{}**] {}: {}', 'STF': '**{}**: {}', 'DTH': '[**{}**] {} {}', 'ME': '[**{}**] {}: {}', 'S...
40.307888
99
0.540496
15,195
0.95922
0
0
8,010
0.50565
13,482
0.851083
5,065
0.31974
3b0aff3db58f48e9ba786715261c204ed5990700
7,504
py
Python
Code/SubwayMap.py
VGarK/Mapz
e09654b261ae25fbc73c677432aff5e26f43e42f
[ "MIT" ]
null
null
null
Code/SubwayMap.py
VGarK/Mapz
e09654b261ae25fbc73c677432aff5e26f43e42f
[ "MIT" ]
null
null
null
Code/SubwayMap.py
VGarK/Mapz
e09654b261ae25fbc73c677432aff5e26f43e42f
[ "MIT" ]
null
null
null
# This file has all the functions required to load the information of a city. # - Definition of the class Station # - Definition of the class CityInfo # - Read functions from files # - Structure of the information # __authors__='TO_BE_FILLED' __group__='DL01' # __________________________________________________________...
41.458564
136
0.597415
2,198
0.29291
0
0
0
0
0
0
2,776
0.369936
3b0ce22e9f3f3849e6cb4645ba1ee7779174285d
5,290
py
Python
deprecated/converters/gw100_converter.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2019-09-13T18:35:56.000Z
2019-09-13T18:35:56.000Z
deprecated/converters/gw100_converter.py
materials-data-facility/connect_server
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
15
2018-11-01T18:08:11.000Z
2021-12-06T17:55:03.000Z
deprecated/converters/gw100_converter.py
materials-data-facility/connect
9ec5b61750bf6fa579bf3ec122f31880d3c049b8
[ "Apache-2.0" ]
1
2020-11-30T17:02:41.000Z
2020-11-30T17:02:41.000Z
import json import sys import os from tqdm import tqdm from mdf_refinery.validator import Validator from mdf_refinery.parsers.tab_parser import parse_tab # VERSION 0.3.0 # This is the converter for the GW100 dataset. # Arguments: # input_path (string): The file or directory where the data resides. # NOTE: D...
31.488095
548
0.520038
0
0
0
0
0
0
0
0
3,169
0.598942
3b0e593188304a562ee695aad90eb0041fcdd4ae
112
py
Python
utils/__init__.py
valschneider/lauzhack2017
36fe0bb043165fa788a28863298332d70a95a57a
[ "MIT" ]
null
null
null
utils/__init__.py
valschneider/lauzhack2017
36fe0bb043165fa788a28863298332d70a95a57a
[ "MIT" ]
null
null
null
utils/__init__.py
valschneider/lauzhack2017
36fe0bb043165fa788a28863298332d70a95a57a
[ "MIT" ]
null
null
null
from abstract_keyboard import KeyData, AbstractKeyboard, Colours from physical_keyboard import PhysicalKeyboard
37.333333
64
0.892857
0
0
0
0
0
0
0
0
0
0
3b1083dfb47666192fcefb6373fe2fcf7bc0a2fb
9,098
py
Python
backend/backend.py
Mishelles/vk-spotify-playlist-transfer
4c15a9e35b1ff9aa81c7d36c53ef69b54d5a6914
[ "MIT" ]
1
2021-04-16T21:48:21.000Z
2021-04-16T21:48:21.000Z
backend/backend.py
Mishelles/vk-spotify-playlist-transfer
4c15a9e35b1ff9aa81c7d36c53ef69b54d5a6914
[ "MIT" ]
8
2021-04-05T17:16:10.000Z
2021-10-12T13:31:19.000Z
backend/backend.py
Mishelles/vk-spotify-playlist-transfer
4c15a9e35b1ff9aa81c7d36c53ef69b54d5a6914
[ "MIT" ]
null
null
null
import os import uuid import json import yaml import re from nltk.tokenize import RegexpTokenizer import requests from fastapi import FastAPI, HTTPException from fastapi.middleware.cors import CORSMiddleware from get_root_access_token_for_sp import get_token from pydantic import BaseModel from vkaudiotoken import (...
30.530201
125
0.62783
163
0.017916
0
0
3,494
0.38404
0
0
2,105
0.23137
3b121f96edfab2bb880eeea95628f1c1be9789b4
8,616
py
Python
src/Noncircular/Calculations/_Appendix13_7_c.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
7
2018-07-17T08:01:34.000Z
2021-06-14T03:33:58.000Z
src/Noncircular/Calculations/_Appendix13_7_c.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
null
null
null
src/Noncircular/Calculations/_Appendix13_7_c.py
thepvguy/calctoys
f7ef4e422d8a27cc387c1a24b5fb6e318d774f57
[ "Unlicense" ]
6
2018-10-01T10:29:58.000Z
2022-01-24T22:34:16.000Z
import math # TODO: Implement acceptibility tests class Appendix13_7_cParams: def __init__( self, internal_pressure, corner_radius, short_side_half_length, long_side_half_length, thickness, eval_at_outer_walls = False): ...
32.636364
163
0.558264
5,676
0.658774
0
0
0
0
0
0
2,928
0.339833
3b1344dd323e948e9f6017df3b1661af235dfa13
1,619
py
Python
tests/api_resources/test_file_link.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
8
2021-05-29T08:57:58.000Z
2022-02-19T07:09:25.000Z
tests/api_resources/test_file_link.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
5
2021-05-31T10:18:36.000Z
2022-01-25T11:39:03.000Z
tests/api_resources/test_file_link.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
1
2021-05-29T13:27:10.000Z
2021-05-29T13:27:10.000Z
from __future__ import absolute_import, division, print_function import stripe import pytest pytestmark = pytest.mark.asyncio TEST_RESOURCE_ID = "link_123" class TestFileLink(object): async def test_is_listable(self, request_mock): resources = await stripe.FileLink.list() request_mock.assert...
33.040816
67
0.683138
1,454
0.898085
0
0
0
0
1,398
0.863496
161
0.099444
3b15a52f6be4dc16088c1fb00a71fbd34c59ea53
762
py
Python
L1Trigger/GlobalTriggerAnalyzer/python/l1GtBeamModeFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1Trigger/GlobalTriggerAnalyzer/python/l1GtBeamModeFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1Trigger/GlobalTriggerAnalyzer/python/l1GtBeamModeFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms l1GtBeamModeFilter = cms.EDFilter("L1GtBeamModeFilter", # input tag for input tag for ConditionInEdm products CondInEdmInputTag = cms.InputTag("conditionsInEdm"), # input tag for the L1 GT EVM product L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"), ...
34.636364
71
0.675853
0
0
0
0
0
0
0
0
463
0.607612
3b165d213b6fd767dcbf91f3605c40167feda0ae
421
py
Python
Livermore/PythonNumpy/kernel_01_hydro.py
quepas/polyglot-scientific-kernels
11012732c923957c5ed54715a32badb12a5527ab
[ "MIT" ]
null
null
null
Livermore/PythonNumpy/kernel_01_hydro.py
quepas/polyglot-scientific-kernels
11012732c923957c5ed54715a32badb12a5527ab
[ "MIT" ]
null
null
null
Livermore/PythonNumpy/kernel_01_hydro.py
quepas/polyglot-scientific-kernels
11012732c923957c5ed54715a32badb12a5527ab
[ "MIT" ]
null
null
null
def kernel_01_hydro(LEN_1D): #! init import numpy as np r = np.random.randn(1) t = np.random.randn(1) q = np.random.randn(1) x = np.zeros(LEN_1D) y = np.random.randn(LEN_1D) zx = np.random.randn(LEN_1D + 11) #! loop for k in range(LEN_1D): x[k] = q + y[k] * (r * zx[k+10...
23.388889
65
0.522565
0
0
0
0
0
0
0
0
25
0.059382
3b168867b6c2192e22d3fb03d5618d1c3ca2e893
3,177
py
Python
python/Day11/seating.py
joelbygger/adventofcode20
35f9f4fa9bf051f420a22400c896bc7d26dc44d7
[ "MIT" ]
null
null
null
python/Day11/seating.py
joelbygger/adventofcode20
35f9f4fa9bf051f420a22400c896bc7d26dc44d7
[ "MIT" ]
null
null
null
python/Day11/seating.py
joelbygger/adventofcode20
35f9f4fa9bf051f420a22400c896bc7d26dc44d7
[ "MIT" ]
null
null
null
import copy def _direction(): # If array index start at 0, 0 and we say that is top left, (x, y) yield -1, -1 # UL yield -1, 0 # L yield -1, 1 # UR yield 0, -1 # U yield 0, 1 # D yield 1, -1 # DL yield 1, 0 # R yield 1, 1 # DR # def _in_matrix(pos, seats): # return 0 <...
28.621622
103
0.537299
2,800
0.881335
258
0.081209
188
0.059175
0
0
233
0.07334
3b1770ba8b608be4e3ab9c20fe2c9cb9f117e749
1,408
py
Python
main.py
LucioC/sortable
4301188933eeec96b7da3f906d80fc35ad154032
[ "Apache-2.0" ]
null
null
null
main.py
LucioC/sortable
4301188933eeec96b7da3f906d80fc35ad154032
[ "Apache-2.0" ]
null
null
null
main.py
LucioC/sortable
4301188933eeec96b7da3f906d80fc35ad154032
[ "Apache-2.0" ]
null
null
null
import os import json from challenge import FileReader, Product, Listing, MatchSearch import challenge reader = FileReader() search = MatchSearch() products = reader.read_products('products.txt'); listings = reader.read_listings('listings.txt'); listings = listings[0:1000] result = search.match_listings(listings, pro...
22.709677
78
0.734375
0
0
0
0
0
0
0
0
235
0.166903
3b17829d2a52135864702c72229a5562364d0705
130
py
Python
src/cascade/input_data/configuration/sex.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/input_data/configuration/sex.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/input_data/configuration/sex.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
SEX_ID_TO_NAME = { 1: "male", 2: "female", 3: "both", } SEX_NAME_TO_ID = {v: k for (k, v) in SEX_ID_TO_NAME.items()}
16.25
60
0.561538
0
0
0
0
0
0
0
0
20
0.153846
3b1818292a74a7d0a408bdab02e5f3c26aa5c07c
1,431
py
Python
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
squidward/tools/download_logs_sftp.py
wirrja/squidward
72945f6898f567e577aa74680b2a518b8e9a2b59
[ "Apache-2.0" ]
null
null
null
import paramiko from django.conf import settings remotepath = settings.SQUID_LOGDIR_REMOTE remotepath_messages = settings.PPTP_LOGDIR_REMOTE username = settings.SQUID_USERNAME password = settings.SQUID_PASSWORD # local path for both log types and programs localpath = settings.SQUID_LOGDIR log_filename = s...
28.62
91
0.639413
0
0
0
0
0
0
0
0
172
0.120196
3b19ff6520a92cbe9bced32400b4df1a8b799dfb
1,057
py
Python
Executables/PythonScriptTakingArguments.py
SimioLLC/RunExecutableStep
377fde62b3ce022a54c7f60d8d1fe70880ce610c
[ "MIT" ]
2
2021-12-12T14:30:51.000Z
2022-02-08T07:31:50.000Z
Executables/PythonScriptTakingArguments.py
SimioLLC/RunExecutableStep
377fde62b3ce022a54c7f60d8d1fe70880ce610c
[ "MIT" ]
2
2021-05-20T17:17:11.000Z
2022-02-09T06:58:22.000Z
Executables/PythonScriptTakingArguments.py
SimioLLC/RunExecutableStep
377fde62b3ce022a54c7f60d8d1fe70880ce610c
[ "MIT" ]
null
null
null
import sys import datetime # Sample program to be initiated by the Simio Step RunExecutable with "Python" ArgumentLogic. # This runs python scripts with argument convention of: 1st arg is the script name, followed # by arguments. All args are surrounded with a double-quote. # The script append-prints the arguments it ...
30.2
93
0.639546
0
0
0
0
0
0
0
0
523
0.494797
3b1a2bad79b0569b3ffa94c11cc30ebadfab7c45
139
py
Python
python/dragonradio/dragonradio/net/__init__.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
8
2020-12-05T20:30:54.000Z
2022-01-22T13:32:14.000Z
python/dragonradio/dragonradio/net/__init__.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
3
2020-10-28T22:15:27.000Z
2021-01-27T14:43:41.000Z
python/dragonradio/dragonradio/net/__init__.py
drexelwireless/dragonradio
885abd68d56af709e7a53737352641908005c45b
[ "MIT" ]
null
null
null
# Copyright 2021 Drexel University # Author: Geoffrey Mainland <mainland@drexel.edu> try: from _dragonradio.net import * except: pass
17.375
49
0.76259
0
0
0
0
0
0
0
0
83
0.597122
3b1ca3b503a037398aebee47693ea3fd4611ebf6
8,712
py
Python
app/handlers/gear_handlers.py
lik33v3n/Tower-of-God
1e6c86939f053739f9e73d56fd1c04d7fb444e8b
[ "MIT" ]
3
2020-06-28T18:04:12.000Z
2022-02-15T19:46:47.000Z
app/handlers/gear_handlers.py
lik33v3n/Tower-of-God
1e6c86939f053739f9e73d56fd1c04d7fb444e8b
[ "MIT" ]
null
null
null
app/handlers/gear_handlers.py
lik33v3n/Tower-of-God
1e6c86939f053739f9e73d56fd1c04d7fb444e8b
[ "MIT" ]
null
null
null
import logging from contextlib import suppress from math import fabs from aiogram.dispatcher import FSMContext from aiogram.types import CallbackQuery, Message, ReplyKeyboardRemove from aiogram.utils.exceptions import (MessageToDeleteNotFound, MessageToEditNotFound) from app.__ma...
44.676923
184
0.609734
0
0
0
0
0
0
8,880
0.928967
2,338
0.244586
3b1ce50f7d1f70a241cbdefb23a5cd91698686da
206
py
Python
Mundo1/ex021-import.playsound.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
Mundo1/ex021-import.playsound.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
Mundo1/ex021-import.playsound.py
YuriBraga/Python_Course
1f72ec02e9fa911ddbf28830542374a419d15a6c
[ "MIT" ]
null
null
null
'''from pygame import mixer mixer.init() mixer.music.load('ex021.mp3') mixer.music.play() input('Agora dá para escutar')''' # Pode ser feito assim também: import playsound playsound.playsound('ex021.mp3')
20.6
33
0.742718
0
0
0
0
0
0
0
0
166
0.798077
3b1d65a917c8c063a1bd09d9e9f6843cb500fb33
701
py
Python
app/project/config.py
caulagi/shakuni
f027810bc72b55da302d6672cd64fdf7c92f1661
[ "MIT" ]
null
null
null
app/project/config.py
caulagi/shakuni
f027810bc72b55da302d6672cd64fdf7c92f1661
[ "MIT" ]
null
null
null
app/project/config.py
caulagi/shakuni
f027810bc72b55da302d6672cd64fdf7c92f1661
[ "MIT" ]
null
null
null
""" project.conf Configuration module holding all the options """ DEBUG = True import os BASE_DIR = os.path.abspath(os.path.dirname(__file__)) MONGO_DBNAME = os.environ.get("MONGOHQ_URL") or "mongodb://localhost:27017/shakuni" THREADS_PER_PAGE = 2 CSRF_ENABLED = True CSRF_SESSION_KEY = "secret" SECRET_KEY = "sec...
21.90625
97
0.723252
0
0
0
0
0
0
0
0
326
0.46505
3b1d776e41dc299f7cabc58c3c4496054743240c
310
py
Python
__init__.py
jamespacileo/packaginator
d4b51ae16e0658fade91e1a6c4ce987ee747b053
[ "MIT" ]
14
2015-10-03T07:34:28.000Z
2021-09-20T07:10:29.000Z
__init__.py
pythonchelle/opencomparison
b39d279e25527520c66335e51455d1f9ba749c9b
[ "MIT" ]
23
2019-10-25T08:47:23.000Z
2022-01-30T02:00:45.000Z
__init__.py
pythonchelle/opencomparison
b39d279e25527520c66335e51455d1f9ba749c9b
[ "MIT" ]
7
2016-10-04T08:10:36.000Z
2021-09-20T07:10:33.000Z
# -*- coding: utf-8 -*- __about__ = """ This project comes with the bare minimum set of applications and templates to get you started. It includes no extra tabs, only the profile and notices tabs are included by default. From here you can add any extra functionality and applications that you would like. """
34.444444
75
0.758065
0
0
0
0
0
0
0
0
295
0.951613
3b1def38d43dac35f2085935c4181e7f579d703d
209
py
Python
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
src/ikazuchi/core/handler/__init__.py
t2y/ikazuchi
7023111e92fa47360c50cfefd1398c554475f2c6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from base import BaseHandler, LanguageHandler, NullHandler from text import SingleSentenceHandler __all__ = [ "LanguageHandler", "NullHandler", "SingleSentenceHandler", ]
19
58
0.717703
0
0
0
0
0
0
0
0
76
0.363636
3b1e0e175fb077fad4c9db8318a631de85c5f035
2,934
py
Python
Script/train_w2v.py
zrfan/Tencent-Ads-Algo-Comp-2020
8b52df4b86b95de581549e61d15a1403f636d530
[ "MIT" ]
null
null
null
Script/train_w2v.py
zrfan/Tencent-Ads-Algo-Comp-2020
8b52df4b86b95de581549e61d15a1403f636d530
[ "MIT" ]
null
null
null
Script/train_w2v.py
zrfan/Tencent-Ads-Algo-Comp-2020
8b52df4b86b95de581549e61d15a1403f636d530
[ "MIT" ]
2
2020-06-18T05:05:55.000Z
2020-12-21T06:30:08.000Z
import os import sys import numpy as np import pandas as pd import logging import gc import tqdm import pickle import json import time import tempfile from gensim.models import Word2Vec cwd = os.getcwd() embed_path = os.path.join(cwd, 'embed_artifact') # Training corpus for w2v model corpus_dic = { 'creative': os.p...
31.212766
130
0.719496
0
0
0
0
0
0
0
0
803
0.273688
3b1f18f1cb1193facb4ab6b88b9e77bb24dc04a6
8,632
py
Python
src/utils.py
huyhoang17/DB_text_minimal
0d1466889b21cb74a0571a0fb3856902739ea523
[ "MIT" ]
30
2020-07-20T12:13:27.000Z
2022-03-08T06:30:31.000Z
src/utils.py
huyhoang17/DB_text_minimal
0d1466889b21cb74a0571a0fb3856902739ea523
[ "MIT" ]
10
2020-08-11T10:21:11.000Z
2022-03-07T15:27:49.000Z
src/utils.py
huyhoang17/DB_text_minimal
0d1466889b21cb74a0571a0fb3856902739ea523
[ "MIT" ]
6
2020-09-02T10:58:00.000Z
2021-08-13T01:43:47.000Z
import os import gc import glob import time import random import imageio import logging from functools import wraps import cv2 import numpy as np import matplotlib.pyplot as plt import torch import torchvision.utils as torch_utils from postprocess import SegDetectorRepresenter # device = torch.device("cuda" if torch...
30.394366
79
0.597544
0
0
0
0
235
0.027224
0
0
900
0.104263
3b1f289d94d22713713a02c29b3bffd65bfda6e1
45,021
py
Python
example/demos/views.py
bashu/django-uncharted
b285b4dfc8310cb62e7535fb39326916e2c81159
[ "MIT" ]
9
2015-06-07T06:50:42.000Z
2020-09-04T05:57:20.000Z
example/demos/views.py
bashu/django-uncharted
b285b4dfc8310cb62e7535fb39326916e2c81159
[ "MIT" ]
1
2015-09-24T08:17:25.000Z
2019-03-31T03:51:00.000Z
example/demos/views.py
bashu/django-uncharted
b285b4dfc8310cb62e7535fb39326916e2c81159
[ "MIT" ]
2
2018-11-13T22:56:05.000Z
2020-11-18T07:18:49.000Z
# -*- coding: utf-8 -*- from random import random from datetime import timedelta from django.conf import settings from django.utils import timezone from django.views.generic import TemplateView from uncharted.chart import * class Area100PercentStacked(TemplateView): template_name = 'area/chart.html' chart...
26.420775
103
0.49046
43,912
0.975367
0
0
367
0.008152
0
0
10,109
0.22454
3b1feff132bdd5118a48fe91a841752101d30350
2,930
py
Python
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
bot.py
ktrieu/idea-bot
ad02dc21d320b73027e09d4d123df8e6ee139f7c
[ "MIT" ]
null
null
null
from dotenv import load_dotenv import os import discord from generator import ( GeneratorProcess, GenerateRequest, StopRequest, ResponseType, ) from multiprocessing import Pipe import util import asyncio load_dotenv() ALLOWED_CHANNELS = {"secret-channel-name", "beyond-ideas"} TEST_SERVER_ID = 74822840...
29.897959
92
0.617747
2,204
0.752218
0
0
0
0
1,513
0.516382
409
0.13959
3b21bc3e72739e8aa2087fd962b62ceaa0418fc1
7,090
py
Python
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
null
null
null
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
3
2021-06-08T22:12:54.000Z
2022-01-13T03:09:06.000Z
jerml/transformers.py
jmann277/jers_ml_tools
faaaa202b1f5406ff47821474bd8eb14bce22f77
[ "MIT" ]
null
null
null
''' This module contains a medley of sklearn transformers which can be integrated into a pipeline. ''' import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from sklearn.decomposition import PCA from scipy.stats import kstat from homcv import betti_numbers class CumulantsExtractor(BaseEstimator...
30.560345
89
0.596474
6,797
0.958674
0
0
0
0
0
0
4,109
0.579549
3b2534c0418b9126bf14031fac35d279d4d24036
2,220
py
Python
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
experiment1_meantime.py
mcsosa121/KSRFILS
75995933771d8338de33cc9bbb5e9416e4242c6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import numpy from krypy.linsys import LinearSystem, Cg from krypy.deflation import DeflatedCg, DeflatedGmres, Ritz from krypy.utils import Arnoldi, ritz, BoundCG from krypy.recycling import RecyclingCg from krypy.recycling.factories import RitzFactory,RitzFactorySimple from k...
32.647059
93
0.644144
0
0
0
0
0
0
0
0
182
0.081982
3b26b3c9eed01d7a7107dd173072da3799bc96a8
417
py
Python
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
catkin_ws/bbinstance/src/bbinstance/robotInstance2.py
fontysrobotics/Blackboard_based_distributed_fleet_manager
a6b44738fe67f4948a69f8d45da58d981c6724e0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #need to point to classes inorder to import import rospy from blackboard.Robot import Robot from blackboard.RosCommunication import Talker from rosnode import rosnode_ping from blackboard.Blackboard import Blackboard from blackboard.Battery import Battery bat = Battery(100,500,100) talker = Talk...
24.529412
68
0.786571
0
0
0
0
0
0
0
0
100
0.239808
3b272c4081ff788cf0e7635f139e4a72c7417fd5
3,935
py
Python
club_crm/api/backend/restaurant.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/api/backend/restaurant.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/api/backend/restaurant.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from datetime import datetime, date from club_crm.club_crm.utils.sms_notification import send_sms from club_crm.club_crm.utils.push_notification import send_push from frappe.utils import getdate, get_time, flt from frappe.utils import escape_html from frappe import ...
34.823009
148
0.581194
0
0
0
0
3,591
0.912579
0
0
870
0.221093
3b28f0284102a05a1095c18ed52c32ed434b06cb
5,448
py
Python
keras_vgg_16.py
henniekim/python_keras_vgg_16
46f86f8737244cf10155b08eaebe0d5232199215
[ "MIT" ]
null
null
null
keras_vgg_16.py
henniekim/python_keras_vgg_16
46f86f8737244cf10155b08eaebe0d5232199215
[ "MIT" ]
null
null
null
keras_vgg_16.py
henniekim/python_keras_vgg_16
46f86f8737244cf10155b08eaebe0d5232199215
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense, Activation from keras.layers.pooling import MaxPooling2D from keras.layers.convolutional import Conv2D from keras.initializers import he_normal from keras.initializers import Zeros from keras.activations import relu from keras.layers import Flatten fro...
34.481013
112
0.606094
0
0
0
0
0
0
0
0
1,334
0.24486
3b2dfadc0723866c776dd2e832a0bd0837f7b239
246
py
Python
run/depla/experiment/__init__.py
KinakomochiBotan/depla
e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca
[ "MIT" ]
null
null
null
run/depla/experiment/__init__.py
KinakomochiBotan/depla
e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca
[ "MIT" ]
null
null
null
run/depla/experiment/__init__.py
KinakomochiBotan/depla
e2c530f7fe5fc8fe185f0f789738fa7fc52bdeca
[ "MIT" ]
null
null
null
from .experiment import Experiment from .experiment1 import Experiment1 from .experiment2 import Experiment21, Experiment22, Experiment23 from .experiment3 import Experiment31, Experiment32, Experiment33, Experiment34, Experiment35, Experiment36
49.2
107
0.861789
0
0
0
0
0
0
0
0
0
0
3b2fc312f99460590373adcc92790f19e8fa24fd
2,149
py
Python
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
posts/migrations/0001_initial.py
yashgo0018/django_blog
c742e632c8657582952fe27589fd8a704c9ebfbf
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-24 05:27 import ckeditor_uploader.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('categories', '0001_initial'), m...
38.375
120
0.579805
1,958
0.911121
0
0
0
0
0
0
356
0.165658
3b3016e674b62043a2e132fe78e7e8b49b36eeef
1,231
py
Python
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
tests/test_user.py
kangangi/blogIP
70494f73e5e89fb3d844c728b8feaeba56397718
[ "MIT" ]
null
null
null
import unittest from app import db from app.models import User class TestUser(unittest.TestCase): ''' Class that tests the User class ''' def setUp(self): self.new_user = User(username = "Diana",fullname = "Diana",email = "diana@gmail.com", bio= "A girl", profile_pic_url="imageurl", password =...
34.194444
155
0.676686
1,166
0.947197
0
0
0
0
0
0
159
0.129163
3b3377ab3bbbbe4087d48dd851a3fad3ecbb9f4d
7,284
py
Python
tests/unit/orders/manual/test_manual_sell_orders.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
tests/unit/orders/manual/test_manual_sell_orders.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
tests/unit/orders/manual/test_manual_sell_orders.py
dastra/hargreaves-sdk-python
8099d775c6a70ac415690c0322fe1b964356f6ff
[ "MIT" ]
null
null
null
import http from pathlib import Path from urllib.parse import urlencode from hargreaves.search.models import InvestmentCategoryTypes from hargreaves.session.mocks import MockSessionClient from hargreaves.orders.manual.clients import ManualOrderClient from hargreaves.orders.manual.models import ManualOrder, ManualOrder...
35.705882
109
0.62905
0
0
0
0
0
0
0
0
1,486
0.204009
3b3429811d85f7005761b8ac7ab0e4ba8f27c361
10,675
py
Python
disco/cli/config_time_series.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
2
2022-03-11T20:04:34.000Z
2022-03-14T22:25:29.000Z
disco/cli/config_time_series.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
4
2022-03-11T17:48:50.000Z
2022-03-17T21:39:47.000Z
disco/cli/config_time_series.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Creates JADE configuration for stage 1 of pydss_simulation pipeline.""" import logging import sys import click from jade.common import CONFIG_FILE from jade.loggers import setup_logging from jade.utils.utils import load_data from PyDSS.reports.pv_reports import PF1_SCENARIO, CONTROL_MODE_SC...
34.214744
102
0.662857
0
0
0
0
5,599
0.524496
0
0
3,329
0.31185
3b342af0c0a09204758f2297725b146938b7b68d
1,236
py
Python
example/client/sampleclient.py
Pizaid/pizaid-controller
b4945d06efe3f12b90f9c917a53a95753ef3c477
[ "MIT" ]
null
null
null
example/client/sampleclient.py
Pizaid/pizaid-controller
b4945d06efe3f12b90f9c917a53a95753ef3c477
[ "MIT" ]
1
2020-04-16T08:12:00.000Z
2020-04-16T08:12:00.000Z
example/client/sampleclient.py
Pizaid/pizaid-controller
b4945d06efe3f12b90f9c917a53a95753ef3c477
[ "MIT" ]
1
2020-04-14T09:48:07.000Z
2020-04-14T09:48:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 : # # Author: Makoto Shimazu <makoto.shimaz@gmail.com> # URL: https://github.com/Pizaid # License: 2-Clause BSD License # Created: 2014-08-09 # import sys sys.path.append('gen-py') from Pizaid import ControllerService from Pizaid.tty...
29.428571
57
0.733819
0
0
0
0
0
0
0
0
543
0.43932
3b34ddac11a67c7eb3731fd10bcd57b32d475cfe
660
py
Python
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
3
2019-07-25T01:56:20.000Z
2020-10-02T22:30:36.000Z
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
null
null
null
moralizer/moralizer.py
npmontgomery/moralizer
3a1d452c273b8a999ec1ce233e74831e1a89c13d
[ "MIT" ]
1
2020-04-17T22:10:24.000Z
2020-04-17T22:10:24.000Z
from auxilliary_functions import * def read_file(filename): """ Reads in a file as utf-8. :param filename: Filepath to the file to be read. """ with open(filename, 'r',encoding='utf-8') as file: return file.read() def moralize(input_text, output_format='pydict'): """ Takes input t...
27.5
101
0.7
0
0
0
0
0
0
0
0
361
0.54697
3b35fe45e80f54b97695c26773ce24d2dd23c8ca
519
py
Python
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
3
2015-09-07T00:16:16.000Z
2019-01-11T20:27:56.000Z
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
convert_shu_json.py
ksiomelo/cubix
cd9e6dda6696b302a7c0d383259a9d60b15b0d55
[ "Apache-2.0" ]
null
null
null
import os import json from pprint import pprint def convert(inputfile,outputfile): json_data=open(inputfile) data = json.load(json_data) #pprint(data) json_data.close() # copy to file f = open(outputfile, 'w') for line in data: f.write(line +'\n') f.close() ...
22.565217
110
0.622351
0
0
0
0
0
0
0
0
192
0.369942
3b36647274e28645db368fe1412571e540dc57c9
1,919
py
Python
vcfp_attack/trainByBayes.py
kenneds6/VCFingerprinting
2de88766e2b2beeed44a4267c370fe755b5db90d
[ "MIT" ]
null
null
null
vcfp_attack/trainByBayes.py
kenneds6/VCFingerprinting
2de88766e2b2beeed44a4267c370fe755b5db90d
[ "MIT" ]
null
null
null
vcfp_attack/trainByBayes.py
kenneds6/VCFingerprinting
2de88766e2b2beeed44a4267c370fe755b5db90d
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import sys import sklearn from sklearn.naive_bayes import GaussianNB from sklearn.externals import joblib import argparse import numpy as np import fileUtils import tools def saveModel(modelData, fpath): joblib.dump(modelData, fpath) def readfile(fpath): tmpList = [] for li...
24.922078
81
0.682126
0
0
0
0
0
0
0
0
143
0.074518
3b3666930d6995caea754b79c0c21bae3db8e9e7
2,472
py
Python
hosting-scripts/leaseweb_invoices.py
sromanenko/hand-tools
50be74f07c8f8f6bb89e6470c4370c62c2fbc2e0
[ "MIT" ]
null
null
null
hosting-scripts/leaseweb_invoices.py
sromanenko/hand-tools
50be74f07c8f8f6bb89e6470c4370c62c2fbc2e0
[ "MIT" ]
null
null
null
hosting-scripts/leaseweb_invoices.py
sromanenko/hand-tools
50be74f07c8f8f6bb89e6470c4370c62c2fbc2e0
[ "MIT" ]
1
2020-10-05T08:11:13.000Z
2020-10-05T08:11:13.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests import gspread import config from oauth2client.service_account import ServiceAccountCredentials as Account api_url = 'https://api.leaseweb.com/invoices/v1/invoices' def api_request(url, headers, params=None): try: conn = requests.get(url=url...
28.413793
77
0.637136
0
0
0
0
0
0
0
0
621
0.246918
3b377d3baccb78698043aba61e68c933edadec23
2,499
py
Python
scrapy_ddiy/utils/common.py
LZC6244/scrapy_ddiy
1bf7cdd382afd471af0bf7069b377fb364dc4730
[ "MIT" ]
9
2021-05-17T02:55:16.000Z
2022-03-28T08:36:50.000Z
scrapy_ddiy/utils/common.py
LZC6244/scrapy_ddiy
1bf7cdd382afd471af0bf7069b377fb364dc4730
[ "MIT" ]
null
null
null
scrapy_ddiy/utils/common.py
LZC6244/scrapy_ddiy
1bf7cdd382afd471af0bf7069b377fb364dc4730
[ "MIT" ]
1
2022-01-23T06:28:31.000Z
2022-01-23T06:28:31.000Z
# -*- coding: utf-8 -*- import ast import redis import socket import hashlib import pymongo from scrapy import Request from w3lib.url import canonicalize_url from scrapy.utils.python import to_bytes def get_str_md5(string: str, encoding='utf-8'): """ 计算字符串的 MD5 值 :param string: :param encoding: :r...
27.163043
113
0.612245
0
0
0
0
0
0
0
0
863
0.325292
3b380e0ffaac00c93adb248541f24f62ceacc3dd
7,392
py
Python
src/ctc/toolbox/amm_utils/cpmm/cpmm_trade.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/toolbox/amm_utils/cpmm/cpmm_trade.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/toolbox/amm_utils/cpmm/cpmm_trade.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import decimal from ctc.toolbox import validate_utils from . import cpmm_spec def trade( x_reserves: int | float, y_reserves: int | float, x_sold: int | float | None = None, x_bought: int | float | None = None, y_sold: int | float | None = None, y_bought: i...
28.875
80
0.597673
0
0
0
0
0
0
0
0
1,354
0.183171
3b38ef2961c998d8a6b7e0cf700fee710c14fe96
4,245
py
Python
part2_streaming/ingestion/load_data.py
jkielbaey/coursera-cloud-computing-capstone
616ac5e9a58140e104b65162ca5073d507792e46
[ "MIT" ]
3
2019-12-26T15:17:54.000Z
2022-03-23T09:54:02.000Z
part2_streaming/ingestion/load_data.py
jkielbaey/coursera-cloud-computing-capstone
616ac5e9a58140e104b65162ca5073d507792e46
[ "MIT" ]
null
null
null
part2_streaming/ingestion/load_data.py
jkielbaey/coursera-cloud-computing-capstone
616ac5e9a58140e104b65162ca5073d507792e46
[ "MIT" ]
2
2019-10-04T08:28:35.000Z
2020-06-27T18:49:45.000Z
#!/usr/bin/env python3 import boto3 import csv import json import re import os import logging from multiprocessing import Pool import sys sys.path.insert(0, './lib') from kafka import KafkaProducer lambda_client = boto3.client('lambda') bucket_name = None kafka_topic = None logging.basicConfig(format='%(levelname)s...
30.321429
75
0.619552
0
0
0
0
0
0
0
0
942
0.221908
3b399f0d24af2651e241a2dbc09d0bd6f463382a
119
py
Python
campus_app/admin.py
VSSantana/APP-Campus-Online-v5.0
19e74832527e5a3beb479d4fe8a595caa319f914
[ "MIT" ]
1
2021-04-12T13:34:00.000Z
2021-04-12T13:34:00.000Z
campus_app/admin.py
VSSantana/APP-Campus-Online-v5.0
19e74832527e5a3beb479d4fe8a595caa319f914
[ "MIT" ]
19
2021-05-14T20:56:29.000Z
2022-02-10T11:59:33.000Z
APP-Campus-Online-v6.0/campus_app/admin.py
Benedito-Medeiros-Neto-UnB/TacProgWeb
c7d795a69524e428988d4ed796f4a1c2ded035e3
[ "MIT" ]
10
2021-05-13T16:18:53.000Z
2021-11-08T14:30:08.000Z
from django.contrib import admin from .models import Noticia # Register your models here. admin.site.register(Noticia)
23.8
32
0.815126
0
0
0
0
0
0
0
0
28
0.235294
3b39d14aa460ee7aad9a34f8b5f86ea2f7ba1e12
5,144
py
Python
main_simV4.py
iexarchos/motion_imitation
ea9004f77405c8eb1e8a53650dffa723f86018d9
[ "Apache-2.0" ]
null
null
null
main_simV4.py
iexarchos/motion_imitation
ea9004f77405c8eb1e8a53650dffa723f86018d9
[ "Apache-2.0" ]
null
null
null
main_simV4.py
iexarchos/motion_imitation
ea9004f77405c8eb1e8a53650dffa723f86018d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 6 14:09:05 2020 @author: yannis """ import torch import random from pdb import set_trace as bp from a2c_ppo_acktr.envs import make_vec_envs from a2c_ppo_acktr.utils import get_vec_normalize import motion_imitation import time import numpy as np ...
32.974359
137
0.565708
0
0
0
0
0
0
0
0
1,038
0.201788
3b3fd98acac07ed593a7ca205f7cd51abad26fa3
1,585
py
Python
setup.py
NaturalCycles/hailstorms
779fb9a2d3d291ec3a51f17302e3c709054aa78a
[ "MIT" ]
2
2018-12-21T12:42:02.000Z
2021-05-12T09:01:22.000Z
setup.py
NaturalCycles/hailstorms
779fb9a2d3d291ec3a51f17302e3c709054aa78a
[ "MIT" ]
null
null
null
setup.py
NaturalCycles/hailstorms
779fb9a2d3d291ec3a51f17302e3c709054aa78a
[ "MIT" ]
1
2018-12-06T10:12:18.000Z
2018-12-06T10:12:18.000Z
# -*- coding: utf-8 -*- import ast import os import re from setuptools import find_packages, setup setup( name='hailstorms', version='1.0.5', description="Distributed load testing framework", long_description="""Hailstorm is a simplified config based, distributed load testing framework""", classif...
33.020833
102
0.603155
0
0
0
0
0
0
0
0
972
0.613249
3b40b53be905051fc29376c809a528f0f56e00ed
3,747
py
Python
distribution/src/assembly/test/test.py
aliyun/alibabacloud-maxcompute-tool-migrate
22ba9d36c0fe9b79b3d91766a22ec43372b6c540
[ "Apache-2.0" ]
19
2019-12-17T10:00:59.000Z
2022-03-20T03:20:42.000Z
distribution/src/assembly/test/test.py
aliyun/alibabacloud-maxcompute-tool-migrate
22ba9d36c0fe9b79b3d91766a22ec43372b6c540
[ "Apache-2.0" ]
73
2020-08-13T10:40:16.000Z
2022-03-21T06:57:36.000Z
distribution/src/assembly/test/test.py
aliyun/alibabacloud-maxcompute-tool-migrate
22ba9d36c0fe9b79b3d91766a22ec43372b6c540
[ "Apache-2.0" ]
6
2020-08-13T10:42:21.000Z
2022-01-13T04:04:24.000Z
# # Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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...
30.966942
76
0.631705
0
0
0
0
0
0
0
0
1,093
0.2917
3b429026656499e942a38341d6e198b9bfc94595
1,740
py
Python
src/muses/search_index/documents/helpers.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
null
null
null
src/muses/search_index/documents/helpers.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
null
null
null
src/muses/search_index/documents/helpers.py
Aincient/cleo
933ef372fa7847d943206d72bfb03c201dbafbd6
[ "Apache-2.0" ]
3
2018-10-01T12:04:36.000Z
2021-01-07T09:30:50.000Z
import csv import logging __all__ = ( 'read_synonyms', ) LOGGER = logging.getLogger(__name__) def read_synonyms(path): """Read synonyms. Read synonyms from the following format: word_id;preferred_EN;variant1;variant2;variant3;variant4;variant5 1;Anatolia;anatolia;anatolie;anatolien;; ...
28.064516
75
0.543678
0
0
0
0
0
0
0
0
848
0.487356
3b46710ce31a8de493b043c80a7fb418b77deda4
5,503
py
Python
GxbManager.py
moonmagian/GxbManager
fb6c31ce6b53f049ca1b40129e57ab04189d1a28
[ "MIT" ]
3
2018-08-31T07:33:12.000Z
2019-06-10T14:21:38.000Z
GxbManager.py
moonmagian/GxbManager
fb6c31ce6b53f049ca1b40129e57ab04189d1a28
[ "MIT" ]
null
null
null
GxbManager.py
moonmagian/GxbManager
fb6c31ce6b53f049ca1b40129e57ab04189d1a28
[ "MIT" ]
2
2018-08-20T14:45:11.000Z
2018-08-24T09:12:47.000Z
from selenium import webdriver import selenium from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.common.exceptions import TimeoutException import re STATUS_OUTPUT = \ '''Video: {0} Status...
32.952096
105
0.652008
330
0.059967
0
0
0
0
0
0
1,390
0.252589
3b46ed8634fc704f45f15531d6f71a175564ad9b
16,090
py
Python
statey/fsm.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
4
2021-02-16T19:34:38.000Z
2022-01-31T16:44:14.000Z
statey/fsm.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
statey/fsm.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
import abc import dataclasses as dc import enum import types as pytypes from collections import Counter from functools import wraps, partial from typing import Sequence, Callable, Type as PyType, Dict, Any, Optional import networkx as nx import statey as st from statey import resource, task, exc from statey.provider ...
32.374245
97
0.636482
13,923
0.86532
0
0
5,441
0.33816
8,066
0.501305
4,631
0.287819
3b4761fe2b3dfb5179be295baf3be2ef36b02d3e
2,555
py
Python
aicup-python/model/unit.py
arijitgupta42/RAIC-2019
e17828a4a6ac7990fe340b56276378be2297397f
[ "MIT" ]
null
null
null
aicup-python/model/unit.py
arijitgupta42/RAIC-2019
e17828a4a6ac7990fe340b56276378be2297397f
[ "MIT" ]
null
null
null
aicup-python/model/unit.py
arijitgupta42/RAIC-2019
e17828a4a6ac7990fe340b56276378be2297397f
[ "MIT" ]
null
null
null
from .vec2_double import Vec2Double from .vec2_double import Vec2Double from .jump_state import JumpState from .weapon import Weapon class Unit: def __init__(self, player_id, id, health, position, size, jump_state, walked_right, stand, on_ground, on_ladder, mines, weapon): self.player_id = player_id ...
37.028986
132
0.585127
2,421
0.947554
0
0
720
0.2818
0
0
43
0.01683
3b4829ba1c98a7bf3d58887a33bd74f5459ae8e5
457
py
Python
tvempresa/src/apps/web/urls.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
tvempresa/src/apps/web/urls.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
tvempresa/src/apps/web/urls.py
ddvloayza/str3am-app
89c844cf8cfcc3c40e696db0feedfd1b21682989
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url from .views import (home, capitulo_detalle, buscador, app, app_ios) from .api import CapitulosList, CapitulosDetail app_name = 'web' urlpatterns = [ url(r'^$', home, name='home'), url(r'^capitulo/(?P<slug>[-\w]+)/$', capitulo_detalle, name='capitulo_det...
26.882353
81
0.68709
0
0
0
0
0
0
0
0
122
0.266958
3b4832ce003abf03eb474b13d67edabb8d78412f
305
py
Python
Python3/Lucky Numbers in a Matrix.py
olma2077/LeetCode
6a229ae23c5a211bc44de51178ced5bef6a44233
[ "MIT" ]
1
2020-04-12T09:34:52.000Z
2020-04-12T09:34:52.000Z
Python3/Lucky Numbers in a Matrix.py
olma2077/LeetCode
6a229ae23c5a211bc44de51178ced5bef6a44233
[ "MIT" ]
null
null
null
Python3/Lucky Numbers in a Matrix.py
olma2077/LeetCode
6a229ae23c5a211bc44de51178ced5bef6a44233
[ "MIT" ]
null
null
null
class Solution: def luckyNumbers (self, matrix: List[List[int]]) -> List[int]: nums = [] for row in matrix: num = min(row) i = row.index(num) if num == max([line[i] for line in matrix]): nums.append(num) return nums
27.727273
66
0.478689
295
0.967213
0
0
0
0
0
0
0
0
3b489c9ebfe89f6bd772777f5f5df11e70f892e2
26,402
py
Python
gmusicapi/metadata_pb2.py
antimatter15/Unofficial-Google-Music-API
4c7531dc49d17f421ec542aec0a43d4fdf5b5acc
[ "BSD-3-Clause" ]
1
2016-11-01T15:24:21.000Z
2016-11-01T15:24:21.000Z
gmusicapi/metadata_pb2.py
odiroot/Unofficial-Google-Music-API
d192908ec636c4a252ffe232d873924eb56e47df
[ "BSD-3-Clause" ]
null
null
null
gmusicapi/metadata_pb2.py
odiroot/Unofficial-Google-Music-API
d192908ec636c4a252ffe232d873924eb56e47df
[ "BSD-3-Clause" ]
1
2018-04-05T18:37:35.000Z
2018-04-05T18:37:35.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! from google.protobuf import descriptor from google.protobuf import message from google.protobuf import reflection from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) DESCRIPTOR = descriptor.FileDescriptor( name='metadata.proto', ...
37.609687
2,401
0.715703
1,985
0.075184
0
0
0
0
0
0
4,967
0.18813
3b48b5c6b0beab4348ea4b329be5dc752fd9b9ac
992
py
Python
tests/pages/mobile/article.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
4
2021-05-17T11:38:08.000Z
2021-08-19T06:42:39.000Z
tests/pages/mobile/article.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
32
2021-04-15T22:35:58.000Z
2022-01-04T21:30:05.000Z
tests/pages/mobile/article.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
3
2020-06-14T06:59:46.000Z
2020-06-15T14:45:56.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from pages.mobile.b...
36.740741
84
0.745968
653
0.658266
0
0
127
0.128024
0
0
242
0.243952
3b4a40f899a77b427cfbccdfdad28f929fa2fc9b
10,008
py
Python
modules/jwtoken/handlers/jwtokenhandler.py
umbros/spid-sp-sapspid
5546aeb2bc968d26537732af8e7aee52d1896e99
[ "MIT" ]
6
2017-09-30T11:10:22.000Z
2022-02-04T19:42:28.000Z
modules/jwtoken/handlers/jwtokenhandler.py
umbros/spid-sp-sapspid
5546aeb2bc968d26537732af8e7aee52d1896e99
[ "MIT" ]
4
2019-01-30T13:38:42.000Z
2021-03-28T14:51:31.000Z
modules/jwtoken/handlers/jwtokenhandler.py
umbros/spid-sp-sapspid
5546aeb2bc968d26537732af8e7aee52d1896e99
[ "MIT" ]
4
2017-10-06T14:17:50.000Z
2021-02-18T08:38:19.000Z
from response import ResponseObj from response import RequestHandler from request import RequestObjNew import tornado.web import traceback import tornado.gen import tornado.ioloop import tornado.concurrent import logging from lib.customException import ApplicationException import globalsObj import re import jwtoken.li...
42.769231
135
0.611511
9,661
0.965328
0
0
0
0
1,213
0.121203
2,113
0.211131
3b4ade8bc607cded2275ae6b39e470674d788698
481
py
Python
chat/routing.py
yccye/CT_AI_web
267553d3aaaef78f7dbdd652c0f1868ec60862c2
[ "MulanPSL-1.0" ]
5
2021-05-25T07:53:36.000Z
2021-11-23T13:04:51.000Z
chat/routing.py
yccye/CT_AI_web
267553d3aaaef78f7dbdd652c0f1868ec60862c2
[ "MulanPSL-1.0" ]
1
2021-11-07T14:41:52.000Z
2021-11-07T15:34:28.000Z
chat/routing.py
yccye/CT_AI_web
267553d3aaaef78f7dbdd652c0f1868ec60862c2
[ "MulanPSL-1.0" ]
2
2021-11-07T13:29:13.000Z
2022-03-10T12:13:04.000Z
"""配置通往consumer的路由,即配置websocket路由""" from django.conf.urls import url from django.urls import path from . import consumers websocket_urlpatterns = [ # url(r'^ws/chat/(?P<room_name>[^/]+)/$', consumers.ChatConsumer), path('ws/chat/<room_name>/', consumers.ChatConsumer), path('wss/chat/<room_name>/', consu...
32.066667
70
0.717256
0
0
0
0
0
0
0
0
230
0.453649
3b4b9354311551bc2bc10d92b23b0b7e560e5d2c
510
py
Python
pylon/aws/ssm.py
ch41rmn/pylon-oss
c9ad06438e4d6c8b496b92eabd07d2b12e661e6e
[ "Apache-2.0" ]
3
2020-09-27T02:09:52.000Z
2022-02-25T02:30:24.000Z
pylon/aws/ssm.py
ch41rmn/pylon-oss
c9ad06438e4d6c8b496b92eabd07d2b12e661e6e
[ "Apache-2.0" ]
8
2020-09-24T07:47:14.000Z
2020-10-16T08:48:38.000Z
pylon/aws/ssm.py
ch41rmn/pylon-oss
c9ad06438e4d6c8b496b92eabd07d2b12e661e6e
[ "Apache-2.0" ]
4
2020-09-24T07:41:23.000Z
2020-09-27T02:07:01.000Z
import boto3 import typing import functools from ._bases import BaseMixin from ..utils import logging @functools.lru_cache(maxsize=1) def ssmClient(): return boto3.client('ssm') class ParameterStore(BaseMixin): def __init__(self): super().__init__(name='') @classmethod def get(cls, key: st...
22.173913
75
0.692157
323
0.633333
0
0
305
0.598039
0
0
56
0.109804
3b4dd016a5a62e889caf8de8f14b9ed9c6e05dee
3,020
py
Python
src/main.py
Maffey/pomelo-discord-bot
22ea6d9547faf086c2eeb669a983fe3fffea0b29
[ "MIT" ]
3
2020-07-02T18:08:02.000Z
2021-12-11T11:08:18.000Z
src/main.py
Maffey/PomeloDiscordBot
7a79d2cfddc46821d216af715933d314c654812b
[ "MIT" ]
1
2022-02-23T21:41:16.000Z
2022-02-23T21:41:16.000Z
src/main.py
Maffey/pomelo-discord-bot
22ea6d9547faf086c2eeb669a983fe3fffea0b29
[ "MIT" ]
null
null
null
import logging import os import sys import traceback from itertools import cycle import discord from discord.ext import commands, tasks # Log information about bot operations. logging.basicConfig(level=logging.INFO) # Get Discord token from environmental variable. DISCORD_BOT_TOKEN = os.getenv("DISCORD_BOT_TOKEN") ...
32.473118
120
0.705629
0
0
0
0
1,599
0.52947
1,533
0.507616
1,521
0.503642
3b54a297ca4333bc469b722207d046594617f664
14,209
py
Python
explainer.py
bohemian-ai/POS-Tag-Humanizer
d95f347cfde36ae3565a7b1d9b7293bf2aa87f44
[ "MIT" ]
null
null
null
explainer.py
bohemian-ai/POS-Tag-Humanizer
d95f347cfde36ae3565a7b1d9b7293bf2aa87f44
[ "MIT" ]
null
null
null
explainer.py
bohemian-ai/POS-Tag-Humanizer
d95f347cfde36ae3565a7b1d9b7293bf2aa87f44
[ "MIT" ]
null
null
null
from termcolor import cprint, colored # Reference: https://ufal.mff.cuni.cz/pdt/Morphology_and_Tagging/Doc/hmptagqr.html # Morphodita online demo: http://lindat.mff.cuni.cz/services/morphodita/ categories = [ {'POS': 'Part of Speech'}, {'SUBPOS': 'Detailed Part of Speech'}, {'GENDER': 'Gender'}, {'NUM...
48.166102
243
0.589767
0
0
0
0
0
0
0
0
10,425
0.729174
3b56c27371d7864fd9724c051669c52b7b5c54a4
1,796
py
Python
humans.py
AlexTaguchi/image-segmentation
a0cff755d5b6478bb70e30c623fb62a676cc851a
[ "MIT" ]
null
null
null
humans.py
AlexTaguchi/image-segmentation
a0cff755d5b6478bb70e30c623fb62a676cc851a
[ "MIT" ]
null
null
null
humans.py
AlexTaguchi/image-segmentation
a0cff755d5b6478bb70e30c623fb62a676cc851a
[ "MIT" ]
null
null
null
# Real-time human segmentation with a web camera # Modules import cv2 import matplotlib.pyplot as plt import numpy as np from PIL import Image import time import torch from torchvision import transforms # Use GPU if available device = 'cuda' if torch.cuda.is_available() else 'cpu' # Load Pretrained DeepLabV3 model =...
26.411765
87
0.678174
0
0
0
0
0
0
0
0
537
0.298998
3b579891ec54a7eaab385d732105f141cf6b521b
2,276
py
Python
telesignenterprise/telebureau.py
Coffee-Meets-Bagel/python_telesign_enterprise
7a9fbed581967c4c2fb9f9d3c1f8853dd67df58d
[ "MIT" ]
3
2021-06-04T22:55:49.000Z
2021-12-29T00:21:00.000Z
telesignenterprise/telebureau.py
Coffee-Meets-Bagel/python_telesign_enterprise
7a9fbed581967c4c2fb9f9d3c1f8853dd67df58d
[ "MIT" ]
2
2019-10-30T20:04:51.000Z
2022-01-04T09:26:18.000Z
telesignenterprise/telebureau.py
Coffee-Meets-Bagel/python_telesign_enterprise
7a9fbed581967c4c2fb9f9d3c1f8853dd67df58d
[ "MIT" ]
1
2021-07-23T23:34:15.000Z
2021-07-23T23:34:15.000Z
from __future__ import unicode_literals from telesign.rest import RestClient TELEBUREAU_CREATE_RESOURCE = "/v1/telebureau/event" TELEBUREAU_RETRIEVE_RESOURCE = "/v1/telebureau/event/{reference_id}" TELEBUREAU_DELETE_RESOURCE = "/v1/telebureau/event/{reference_id}" class TelebureauClient(RestClient): """ Tel...
44.627451
119
0.692882
2,006
0.881371
0
0
0
0
0
0
1,182
0.519332
3b590c3afdc8778783a821b7e7abd8d729518eda
6,099
py
Python
old_combine_chrX.py
nikbaya/chrX
9d7859c60ecf35a5db13b973a7d2e44472a08ca6
[ "MIT" ]
null
null
null
old_combine_chrX.py
nikbaya/chrX
9d7859c60ecf35a5db13b973a7d2e44472a08ca6
[ "MIT" ]
null
null
null
old_combine_chrX.py
nikbaya/chrX
9d7859c60ecf35a5db13b973a7d2e44472a08ca6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 24 11:26:20 2018 @author: nbaya """ import os import glob import re import pandas as pd from subprocess import call from joblib import Parallel, delayed import multiprocessing import sys import numpy as np v3_path = "/Users/nbaya/Documents/lab/u...
42.950704
178
0.61174
0
0
0
0
0
0
0
0
3,820
0.626332
3b59fa3ba836f14bb8c826edd251c3f03ed8f395
120
py
Python
2019_skoltech_ISP/01_beginning/sec03/code/s3/code.py
Lavton/latexLectures
f8491351b2f74884689db24bbce2aa2270fa556a
[ "MIT" ]
5
2019-01-11T08:19:44.000Z
2020-11-24T11:30:48.000Z
2019_skoltech_ISP/01_beginning/sec03/code/s3/code.py
Lavton/latexLectures
f8491351b2f74884689db24bbce2aa2270fa556a
[ "MIT" ]
null
null
null
2019_skoltech_ISP/01_beginning/sec03/code/s3/code.py
Lavton/latexLectures
f8491351b2f74884689db24bbce2aa2270fa556a
[ "MIT" ]
1
2019-01-20T17:52:16.000Z
2019-01-20T17:52:16.000Z
import time def f(x): pass if __name__ == "__main__": # execute only if # run as a script f("oo")
13.333333
26
0.541667
0
0
0
0
0
0
0
0
49
0.408333
3b5c8b09c6cb6d3ec45d0c7c7a5e7ddb300c6483
749
py
Python
Number of Connected Components in an Undirected Graph.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Number of Connected Components in an Undirected Graph.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
Number of Connected Components in an Undirected Graph.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution(object): def countComponents(self, n, edges): """ :type n: int :type edges: List[List[int]] :rtype: int """ id_ = [i for i in xrange(n)] start = 0 for edge in edges: i = self.root(id_, edge[0]) j = self.root...
23.40625
60
0.432577
615
0.821095
0
0
0
0
0
0
93
0.124166
3b5cff844879ff6c055ff9188fef15716ede158b
315
py
Python
0x03-python-data_structures/10-divisible_by_2.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x03-python-data_structures/10-divisible_by_2.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x03-python-data_structures/10-divisible_by_2.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # 10-divisible_by_2.py def divisible_by_2(my_list=[]): """Find all multiples of 2 in a list.""" multiples = [] for i in range(len(my_list)): if my_list[i] % 2 == 0: multiples.append(True) else: multiples.append(False) return (multiples)
21
44
0.574603
0
0
0
0
0
0
0
0
80
0.253968
3b5ddff9ef42a515de33ea1b93647ccd8e085a02
270
py
Python
sema/gen-arm.py
ychen306/vegen
fb979a9d55f95110cc56ac54b1becf88de5ef6d0
[ "MIT" ]
10
2021-05-27T20:31:36.000Z
2022-02-21T20:48:12.000Z
sema/gen-arm.py
ychen306/intrinsics-semantics
517cc090bdec89b254370cf652752e82de19a3f8
[ "MIT" ]
19
2021-05-27T18:58:02.000Z
2021-05-27T18:58:05.000Z
sema/gen-arm.py
ychen306/vegen
fb979a9d55f95110cc56ac54b1becf88de5ef6d0
[ "MIT" ]
6
2021-06-03T05:41:05.000Z
2021-12-24T09:21:36.000Z
import codegen from arm.insts import arm_insts with open('InstSema.arm.cpp', 'w') as f: codegen.emit_instruction_bindings(arm_insts, 'ArmInsts', f) with open('InstWrappers.arm.c', 'w') as f: f.write('#include <arm_neon.h>\n') codegen.emit_wrappers(arm_insts, f)
27
61
0.72963
0
0
0
0
0
0
0
0
79
0.292593
3b5e8dad9b7d75c51ac3e7b6542b8df80237881b
5,045
py
Python
catalyst_utils/views/api.py
uw-it-aca/catalyst-utils
8f529758098021a76c28caa71f78a4b2d3232c1a
[ "Apache-2.0" ]
null
null
null
catalyst_utils/views/api.py
uw-it-aca/catalyst-utils
8f529758098021a76c28caa71f78a4b2d3232c1a
[ "Apache-2.0" ]
107
2021-11-10T01:13:22.000Z
2022-03-31T18:07:49.000Z
catalyst_utils/views/api.py
uw-it-aca/catalyst-utils
8f529758098021a76c28caa71f78a4b2d3232c1a
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.http import HttpResponse from django.views import View from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.core.exceptions import ObjectDoesNotExist ...
36.294964
78
0.619425
4,415
0.875124
0
0
1,337
0.265015
0
0
490
0.097126
3b5ebc48c31589e68720d58ebad1837a1abc4854
19,172
py
Python
src/Common/Constants.py
rpgauthier/ComputationalThematicAnalysisToolkit
b615cd92565dcc197f156c0b792fec6892ffe9a4
[ "MIT" ]
null
null
null
src/Common/Constants.py
rpgauthier/ComputationalThematicAnalysisToolkit
b615cd92565dcc197f156c0b792fec6892ffe9a4
[ "MIT" ]
24
2021-11-15T17:07:31.000Z
2022-02-09T22:38:50.000Z
src/Common/Constants.py
rpgauthier/ComputationalThematicAnalysisToolkit
b615cd92565dcc197f156c0b792fec6892ffe9a4
[ "MIT" ]
null
null
null
'''Constants for MachineThematicAnalysis Toolkit''' import sys import os import shutil import platform import wx #import wx.lib.agw.flatnotebook as FNB import External.wxPython.flatnotebook_fix as FNB CUR_VER = '0.8.11' #Variables to configure GUI FNB_STYLE = FNB.FNB_DEFAULT_STYLE|FNB.FNB_HIDE_ON_SINGLE_TAB|FNB.FNB_N...
38.575453
146
0.573075
0
0
0
0
0
0
0
0
9,960
0.519508
3b5ef9b26978b78dba17bd6822a33ab2c317e67a
2,421
py
Python
src/pylol_simulator/champion.py
ABostrom/pylol-simulator
1e47dd277a1c61782e6eb9a6edc4fd9512431dbe
[ "MIT" ]
1
2021-05-17T17:33:52.000Z
2021-05-17T17:33:52.000Z
src/pylol_simulator/champion.py
ABostrom/pylol-simulator
1e47dd277a1c61782e6eb9a6edc4fd9512431dbe
[ "MIT" ]
null
null
null
src/pylol_simulator/champion.py
ABostrom/pylol-simulator
1e47dd277a1c61782e6eb9a6edc4fd9512431dbe
[ "MIT" ]
1
2021-03-26T14:49:51.000Z
2021-03-26T14:49:51.000Z
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Any from .stats import Stats from functools import partial class Champion: def __init__(self, name, level=1, ad=0, ap=0,base_aspd=0, as_ratio=0, cs=0, csd=175, ar=0, mr=0, hp=0, ad_grow...
34.585714
112
0.64684
1,624
0.670797
0
0
0
0
0
0
257
0.106154
3b5f690aac3be1062b2477233f74cd76f3202d48
2,816
py
Python
plugin.video.unified.search/search_db.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.unified.search/search_db.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
plugin.video.unified.search/search_db.py
mrstealth/kodi-isengard
2f37ba5320c1618fbe635f5683e7329a63195c16
[ "MIT" ]
null
null
null
#!/usr/bin/python # Writer (c) 2012, MrStealth # Rev. 1.1.1 # License: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) # -*- coding: utf-8 -*- import os import sqlite3 as sqlite import xbmcaddon __addon__ = xbmcaddon.Addon(id='plugin.video.unified.search') addon_path = __addon__.getAddonInfo('path...
32.744186
109
0.627486
2,490
0.884233
0
0
0
0
0
0
767
0.272372
3b5f835cc06515c390b13c5d1221de5dc5ebb27d
784
py
Python
examples/longify.py
hmckenzie/tea-lang
d88d63ea600c387d086d19bcb0c9ae54cc78cb68
[ "Apache-2.0" ]
null
null
null
examples/longify.py
hmckenzie/tea-lang
d88d63ea600c387d086d19bcb0c9ae54cc78cb68
[ "Apache-2.0" ]
null
null
null
examples/longify.py
hmckenzie/tea-lang
d88d63ea600c387d086d19bcb0c9ae54cc78cb68
[ "Apache-2.0" ]
null
null
null
''' Author: Eunice Jun (@emjun) Date created: November, 4, 2019 Purpose: Transform a wide format dataset into long format Use: python3 longify.py <data_in_wide_format.csv> ''' import sys import csv import pandas as pd if __name__ == "__main__": if len(sys.argv) != 2: print("Misusing script. Must include...
29.037037
114
0.640306
0
0
0
0
0
0
0
0
408
0.520408
3b607bc698224eb54df1cdcf13257fe7d16f4a93
2,241
py
Python
akhelpers/Resnet_AK.py
sahilparekh/autokeras-models
237b9900fbe83ef8f9882b257f01986289647797
[ "MIT" ]
null
null
null
akhelpers/Resnet_AK.py
sahilparekh/autokeras-models
237b9900fbe83ef8f9882b257f01986289647797
[ "MIT" ]
null
null
null
akhelpers/Resnet_AK.py
sahilparekh/autokeras-models
237b9900fbe83ef8f9882b257f01986289647797
[ "MIT" ]
null
null
null
import autokeras as ak from tensorflow.python.util import nest from tf2cv.models.resnet import ResNet LAYER_OPTIONS = [[1, 1, 1, 1], [2, 1, 1, 1], [2, 2, 1, 1], [2, 2, 2, 1], [2, 2, 2, 2], [3, 3, 3, 3], [3, 4, 6, 3]] class CustomResnetBlock(ak.Block): def __init__(self, in_size=(224, 22...
36.737705
106
0.599732
1,994
0.889781
0
0
0
0
0
0
133
0.059349
3b60d399770654bd26d7c840b7fc93de1223aa09
766
py
Python
Codes/data_convertor/change_text_labels.py
AmiirGholamii/semantic-segmentation
16426afdcf9ef2449d5bc3cb86ca1c269e517dab
[ "MIT" ]
2
2021-05-14T07:44:24.000Z
2021-05-19T04:48:03.000Z
Codes/data_convertor/change_text_labels.py
AmiirGholamii/semantic-segmentation
16426afdcf9ef2449d5bc3cb86ca1c269e517dab
[ "MIT" ]
null
null
null
Codes/data_convertor/change_text_labels.py
AmiirGholamii/semantic-segmentation
16426afdcf9ef2449d5bc3cb86ca1c269e517dab
[ "MIT" ]
null
null
null
import os import cv2 import numpy as np directory = "/home/rider/DataSets/Images/Development/humanoid_soccer_dataset/ScreenshotMasks" for filename in os.listdir(directory): if filename.endswith(".txt"): blank_image = np.zeros((480,640), np.uint8) with open(os.path.join(directory, filename)) as f: ...
38.3
93
0.614883
0
0
0
0
0
0
0
0
144
0.18799
3b63d4b72d8214c1ed9a2a8335427946263ee241
3,524
py
Python
src/python/serif/theory/serif_entity_theory.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
2
2022-03-24T14:37:51.000Z
2022-03-24T19:56:45.000Z
src/python/serif/theory/serif_entity_theory.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
src/python/serif/theory/serif_entity_theory.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
import sys, os from serif.theory.serif_theory import SerifTheory from serif.theory.enumerated_type import MentionType from serif.util.serifxml_utils import CountryIdentifier class SerifEntityTheory(SerifTheory): def num_mentions(self): """Returns the number or mentions in this Entity""" return l...
37.094737
77
0.619467
3,346
0.949489
0
0
0
0
0
0
780
0.221339
3b64724299180dfee117b079d18e0e4f7989c571
169
py
Python
1 - Beginner/2763.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
1
2020-09-09T12:48:09.000Z
2020-09-09T12:48:09.000Z
1 - Beginner/2763.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
1 - Beginner/2763.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
# URI Online Judge CPF = input().split('.') XXX, YYY = CPF[0], CPF[1] ZZZ, DD = CPF[2].split('-')[0], CPF[2].split('-')[1] print(XXX) print(YYY) print(ZZZ) print(DD)
14.083333
52
0.573964
0
0
0
0
0
0
0
0
27
0.159763
3b64d23b87d1099b18fa084331257778ef9465f0
1,655
py
Python
scripts/bing-images-downloader.py
ZZY2357/auto-workflow
bea6f0c67da524fd08cbf282ea72d821f8d1c9ea
[ "MIT" ]
null
null
null
scripts/bing-images-downloader.py
ZZY2357/auto-workflow
bea6f0c67da524fd08cbf282ea72d821f8d1c9ea
[ "MIT" ]
null
null
null
scripts/bing-images-downloader.py
ZZY2357/auto-workflow
bea6f0c67da524fd08cbf282ea72d821f8d1c9ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests from bs4 import BeautifulSoup import os import base64 keyword = input('What do you want? ') save_floder = input('Where do you want to save images?(Default as the current directory) ') if save_floder == '': save_floder = os.getcwd() if not os.path.exists(save_floder): os.mkdir(sa...
34.479167
135
0.647734
0
0
0
0
0
0
0
0
725
0.438066
3b6ac29e4ec13d34dbb79b65c428b5255729e775
7,313
py
Python
webex_adaptive_card.py
oborys/webex_card_bot
823a2a1eca356a5f9e2a1158209c6ce8f715a5cf
[ "MIT" ]
null
null
null
webex_adaptive_card.py
oborys/webex_card_bot
823a2a1eca356a5f9e2a1158209c6ce8f715a5cf
[ "MIT" ]
null
null
null
webex_adaptive_card.py
oborys/webex_card_bot
823a2a1eca356a5f9e2a1158209c6ce8f715a5cf
[ "MIT" ]
null
null
null
from flask import Flask, request import requests import json import configparser from api_interaction import * # read variables from config credential = configparser.ConfigParser() credential.read('cred.prod') # Import credential bearer_bot = credential['Webex']['WEBEX_TEAMS_TOKEN'] botEmail = credential['Webex']['...
41.551136
188
0.633803
0
0
0
0
2,900
0.396554
0
0
2,595
0.354848
3b6b8fe5725c66cf7e2178e79e839a7f75612950
453
py
Python
handlers/file_handler.py
jstriebel/ai-car
9e4a3b10053effa0660077d97f1ad119dcfb0174
[ "MIT" ]
1
2017-08-14T16:22:15.000Z
2017-08-14T16:22:15.000Z
handlers/file_handler.py
jstriebel/ai-car
9e4a3b10053effa0660077d97f1ad119dcfb0174
[ "MIT" ]
1
2017-08-12T16:44:46.000Z
2017-08-13T15:54:00.000Z
handlers/file_handler.py
jstriebel/ai-car
9e4a3b10053effa0660077d97f1ad119dcfb0174
[ "MIT" ]
3
2017-10-07T14:56:30.000Z
2021-04-09T15:47:01.000Z
from aiohttp import web, WSMsgType import asyncio from handlers.handler import Handler class FileHandler(Handler): def __init__(self, file): self.file = file @asyncio.coroutine def handle(self, request): with open(self.file, "rt") as file: return web.Response(text=file.read(),...
22.65
75
0.660044
363
0.801325
0
0
169
0.373068
0
0
15
0.033113
3b6b9817cbd176268a7a34bd88ce4df0849e1e97
798
py
Python
library/ftx/asyncronous/account.py
danyanyam/ftx
32076bc1135e5a1e2bc800f4fff8dff9d7da18f1
[ "MIT" ]
2
2021-09-23T22:59:24.000Z
2021-09-24T05:49:35.000Z
library/ftx/asyncronous/account.py
danyanyam/ftx
32076bc1135e5a1e2bc800f4fff8dff9d7da18f1
[ "MIT" ]
null
null
null
library/ftx/asyncronous/account.py
danyanyam/ftx
32076bc1135e5a1e2bc800f4fff8dff9d7da18f1
[ "MIT" ]
null
null
null
from library.ftx.base import AsyncBaseApiClass class Account(AsyncBaseApiClass): """https://docs.ftx.com/#account""" def __init__(self, api_key: str, secret_key: str, subaccount_name: str = None): super().__init__(api_key, secret_key, subaccount_name) async def get_account_information(self): ...
38
84
0.669173
749
0.938596
0
0
0
0
510
0.639098
247
0.309524
3b709158cf14b1839d6b152a591a9ecf2fc0b0d2
141
py
Python
torchexpo/nlp/sentiment_analysis/__init__.py
torchexpo/torchexpo
88c875358e830065ee23f49f47d4995b5b2d3e3c
[ "Apache-2.0" ]
23
2020-09-08T05:08:46.000Z
2021-08-12T07:16:53.000Z
torchexpo/nlp/sentiment_analysis/__init__.py
torchexpo/torchexpo
88c875358e830065ee23f49f47d4995b5b2d3e3c
[ "Apache-2.0" ]
1
2021-12-05T06:15:18.000Z
2021-12-20T08:10:19.000Z
torchexpo/nlp/sentiment_analysis/__init__.py
torchexpo/torchexpo
88c875358e830065ee23f49f47d4995b5b2d3e3c
[ "Apache-2.0" ]
2
2021-01-12T06:10:53.000Z
2021-07-24T08:21:59.000Z
from torchexpo.nlp.sentiment_analysis.electra import (electra_imdb) from torchexpo.nlp.sentiment_analysis.distilbert import (distilbert_imdb)
70.5
73
0.879433
0
0
0
0
0
0
0
0
0
0
3b70d07c097a322f4e0382c3338d3a649bb81b52
14,185
py
Python
itracker/pipeline/preprocess.py
djpetti/isl-gazecapture
de0d955d25640facc5d72099fa92a4391643b405
[ "MIT" ]
12
2018-04-14T11:27:52.000Z
2020-11-11T09:18:04.000Z
itracker/pipeline/preprocess.py
Misby/isl-gazecapture
de0d955d25640facc5d72099fa92a4391643b405
[ "MIT" ]
6
2018-11-10T22:07:16.000Z
2020-07-23T09:30:18.000Z
itracker/pipeline/preprocess.py
Misby/isl-gazecapture
de0d955d25640facc5d72099fa92a4391643b405
[ "MIT" ]
5
2018-11-10T21:04:43.000Z
2020-08-21T03:14:02.000Z
import collections import copy import tensorflow as tf class Pipeline(object): """ A linear sequence of stages that perform operations on an input. """ # Magic number that we use to differentiate pipeline instances. For our # purposes, if two references point to the same underlying object, they are # the sa...
30.439914
81
0.683609
14,096
0.993726
0
0
0
0
0
0
6,481
0.456891
3b70e4c1e7bc801d960c67b7f02acbf422800456
11,178
py
Python
consensus_and_profile.py
ivanmilevtues/BioInformatic
5cb8f3a51f08d6a39732ec2feecc531e11f97797
[ "MIT" ]
null
null
null
consensus_and_profile.py
ivanmilevtues/BioInformatic
5cb8f3a51f08d6a39732ec2feecc531e11f97797
[ "MIT" ]
null
null
null
consensus_and_profile.py
ivanmilevtues/BioInformatic
5cb8f3a51f08d6a39732ec2feecc531e11f97797
[ "MIT" ]
null
null
null
import pprint def parse_input(data): result = {} for el in data.split('>'): if el =='\n': continue result[el[:14]] = el[14:].strip().replace('\n', '') pprint.pprint(result) return result def make_profile(data): dna_strings = [] for _, v in data.items(): ...
47.364407
60
0.926552
0
0
0
0
0
0
0
0
9,896
0.88531
3b711e81bde81605c4cf014bb035a361cda07ea2
1,083
py
Python
backend/tests/python_api_mulltiuser_check/User.py
prisms-center/materialscommons.org
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
[ "MIT" ]
6
2015-09-25T20:07:30.000Z
2021-03-07T02:41:35.000Z
backend/tests/python_api_mulltiuser_check/User.py
materials-commons/materialscommons.org
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
[ "MIT" ]
770
2015-03-04T17:13:31.000Z
2019-05-03T13:55:57.000Z
backend/tests/python_api_mulltiuser_check/User.py
prisms-center/materialscommons.org
421bd977dc83dc572a60606b5e3c1d8f2b0a7566
[ "MIT" ]
3
2016-06-23T19:36:20.000Z
2020-09-06T12:26:00.000Z
import rethinkdb as r from pbkdf2 import crypt import uuid class User(object): def __init__(self, name, email, password): self.name = name self.email = email self.fullname = name self.password = password self.id = email self.apikey = uuid.uuid1().hex self.bi...
25.785714
62
0.591874
697
0.643583
0
0
0
0
0
0
25
0.023084
3b71296702232873c1e4f5d1eea517c841d75064
2,980
py
Python
slixmpp/plugins/xep_0319/idle.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
86
2016-07-04T13:26:02.000Z
2022-02-19T10:26:21.000Z
slixmpp/plugins/xep_0319/idle.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
10
2016-09-30T18:55:41.000Z
2020-05-01T14:22:47.000Z
slixmpp/plugins/xep_0319/idle.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
45
2016-09-30T18:48:41.000Z
2022-03-18T21:39:33.000Z
# Slixmpp: The Slick XMPP Library # Copyright (C) 2013 Nathanael C. Fritz, Lance J.T. Stout # This file is part of Slixmpp. # See the file LICENSE for copying permission. from datetime import datetime, timezone from typing import Optional from slixmpp import JID from slixmpp.stanza import Presence from slixmpp.plugi...
33.483146
84
0.655034
2,357
0.79094
0
0
0
0
1,130
0.379195
688
0.230872
3b713daf543427117e79a8f8e7805cb3d4baae6c
4,687
py
Python
modules/ImageMagickInterface.py
CollinHeist/TitleCardMaker
a5e90b81177e47d565bb47ed429dbf46d8d696f0
[ "MIT" ]
5
2022-01-09T09:51:39.000Z
2022-03-05T15:00:07.000Z
modules/ImageMagickInterface.py
CollinHeist/TitleCardMaker
a5e90b81177e47d565bb47ed429dbf46d8d696f0
[ "MIT" ]
17
2022-02-14T17:50:51.000Z
2022-03-30T03:44:06.000Z
modules/ImageMagickInterface.py
CollinHeist/TitleCardMaker
a5e90b81177e47d565bb47ed429dbf46d8d696f0
[ "MIT" ]
1
2022-01-14T15:08:08.000Z
2022-01-14T15:08:08.000Z
from shlex import split as command_split from subprocess import Popen, PIPE from modules.Debug import log class ImageMagickInterface: """ This class describes an interface to ImageMagick. If initialized with a valid docker container (name or ID), then all given ImageMagick commands will be run through...
33.241135
82
0.590356
4,575
0.976104
0
0
613
0.130787
0
0
2,904
0.619586
3b71dd0e376b1aea6b14bf0dfc56584ed3214480
3,939
py
Python
domainbed/lib/Dataset_All.py
zhaoxin94/DomainBed
f880b13a6be82829c7b7c519a7cca54439bda524
[ "MIT" ]
null
null
null
domainbed/lib/Dataset_All.py
zhaoxin94/DomainBed
f880b13a6be82829c7b7c519a7cca54439bda524
[ "MIT" ]
null
null
null
domainbed/lib/Dataset_All.py
zhaoxin94/DomainBed
f880b13a6be82829c7b7c519a7cca54439bda524
[ "MIT" ]
null
null
null
import random from math import sqrt import numpy as np from torch.utils.data import ConcatDataset, Dataset from torchvision import transforms class DatasetAll_FDA(Dataset): """ Combine Seperated Datasets """ def __init__(self, data_list, alpha=1.0): self.data = ConcatDataset(data_list) ...
32.553719
117
0.561056
3,790
0.962173
0
0
0
0
0
0
233
0.059152
3b7212e943144c40fd414a0c21cddccd27fe23a0
5,108
py
Python
vision/follow-line/actions.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
4
2022-02-08T21:53:57.000Z
2022-03-27T21:28:20.000Z
vision/follow-line/actions.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
vision/follow-line/actions.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
import math import time from scipy import interpolate from threading import Lock from abc import abstractmethod from library.pid import PID from stack import ActionStack class BaseAction: @abstractmethod def undo(self): pass @staticmethod def is_checkpoint(): return False class Chec...
27.462366
115
0.583594
4,921
0.96226
0
0
309
0.060422
0
0
981
0.191826
3b722402e45e22ead2f85ea3f8f782a3a420b3f1
19,001
py
Python
Main.py
PositivePeriod/Touchable
8ecb69bd72f16bc0c244c2e983316659d2db1eb5
[ "MIT" ]
1
2020-07-24T19:29:24.000Z
2020-07-24T19:29:24.000Z
Main.py
PositivePeriod/Touchable
8ecb69bd72f16bc0c244c2e983316659d2db1eb5
[ "MIT" ]
2
2022-01-13T03:01:41.000Z
2022-03-12T00:40:55.000Z
Main.py
PositivePeriod/Touchable
8ecb69bd72f16bc0c244c2e983316659d2db1eb5
[ "MIT" ]
null
null
null
from Canvas import Canvas from Detector import Detector from GUI import GUI from Tracker import Tracker from Function import * from Video import Video from Pen import Pens from Key import Key from Image import ImageManager import tkinter import tkinter.messagebox import tkinter.font import tkinter.simpledialog import ...
48.471939
131
0.495132
18,634
0.980479
0
0
0
0
0
0
2,026
0.106604
3b735bebda012e00718401bc8e40ce311fbf1c60
2,292
py
Python
backend/app/main.py
jonitoh/anonymizer-standalone
46335e84cfa7e44aef299b087b6b4adad6380169
[ "MIT" ]
null
null
null
backend/app/main.py
jonitoh/anonymizer-standalone
46335e84cfa7e44aef299b087b6b4adad6380169
[ "MIT" ]
null
null
null
backend/app/main.py
jonitoh/anonymizer-standalone
46335e84cfa7e44aef299b087b6b4adad6380169
[ "MIT" ]
null
null
null
"""Main entry point of the application""" from fastapi import FastAPI from fastapi.responses import RedirectResponse from fastapi.staticfiles import StaticFiles from fastapi.middleware.cors import CORSMiddleware from pymongo import MongoClient from app.core.config import get_settings from app.internal import create_ap...
26.964706
86
0.676702
0
0
0
0
215
0.093805
0
0
759
0.331152
3b737ca1f860daa1879d93647b7707dac737931f
1,057
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/wing_fuel_volume.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/wing_fuel_volume.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/wing_fuel_volume.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Geometry-Two_Dimensional-Cross_Section-Planform # wing_fuel_volume.py # # Created: Apr 2014, T. Orra # Modified: Sep 2016, E. Botero # ---------------------------------------------------------------------- # Correlation-based methods for wing fuel capacity estimation # ---------------------------...
25.166667
72
0.545885
0
0
0
0
0
0
0
0
801
0.757805
3b73dd9af423cd6336a9986151cd7a7b2c788948
4,559
py
Python
bycycle/cyclepoints/zerox.py
ryanhammonds/bycycle
c285c5b1bf5de985cea3f0898bf8e2b01171feca
[ "Apache-2.0" ]
48
2019-03-04T22:37:15.000Z
2022-03-28T16:55:52.000Z
bycycle/cyclepoints/zerox.py
ryanhammonds/bycycle
c285c5b1bf5de985cea3f0898bf8e2b01171feca
[ "Apache-2.0" ]
83
2019-02-01T19:09:23.000Z
2022-01-10T20:27:29.000Z
bycycle/cyclepoints/zerox.py
ryanhammonds/bycycle
c285c5b1bf5de985cea3f0898bf8e2b01171feca
[ "Apache-2.0" ]
15
2019-06-04T23:22:37.000Z
2021-12-21T07:49:31.000Z
"""Find zero-crossings for individual cycles.""" from operator import gt, lt import numpy as np ################################################################################################### ################################################################################################### def find_zerox(sig, ...
34.022388
99
0.622286
0
0
0
0
0
0
0
0
3,032
0.665058
3b748dc3c04a8889510b5571b932a02c2a3fcf64
334
py
Python
OpenGLES/GLES/gles1.py
pome-ta/pystaGLES
f52b51dd1364f87b22a12d7527482b76e7fab0bb
[ "MIT" ]
null
null
null
OpenGLES/GLES/gles1.py
pome-ta/pystaGLES
f52b51dd1364f87b22a12d7527482b76e7fab0bb
[ "MIT" ]
null
null
null
OpenGLES/GLES/gles1.py
pome-ta/pystaGLES
f52b51dd1364f87b22a12d7527482b76e7fab0bb
[ "MIT" ]
null
null
null
# coding: utf-8 import ctypes # from objc_util import * #import headers.gl_c #import headers.glext_c from OpenGLES.GLES.headers.gl_c import * from OpenGLES.GLES.headers.glext_c import * #reload(headers.gl_c) # reload(headers.glext_c) # ObjCClass("NSBundle").bundleWithPath_("/System/Library/Frameworks/OpenGLES.framew...
22.266667
95
0.778443
0
0
0
0
0
0
0
0
224
0.670659
3b78751e748e0c28eb4574bc2ceb68edf1932467
209
py
Python
doc/_themes/__init__.py
embedded-devops/Flask-MQTT
bc3a625f14fb4ec8290bf151072c147497f3a0a0
[ "MIT" ]
64
2016-12-10T16:55:32.000Z
2021-01-25T02:15:01.000Z
doc/_themes/__init__.py
embedded-devops/Flask-MQTT
bc3a625f14fb4ec8290bf151072c147497f3a0a0
[ "MIT" ]
2
2017-09-22T09:36:16.000Z
2021-03-22T17:15:52.000Z
doc/_themes/__init__.py
embedded-devops/Flask-MQTT
bc3a625f14fb4ec8290bf151072c147497f3a0a0
[ "MIT" ]
10
2016-12-11T03:19:36.000Z
2021-05-02T14:53:16.000Z
import os __version__ = '1.0.1' def get_path(): return os.path.abspath(os.path.dirname(__file__)) def setup(app): return { 'version': __version__, 'parallel_read_safe': True }
13.933333
53
0.62201
0
0
0
0
0
0
0
0
36
0.172249
3b7983d4fc08bdb8cabe5630c5fbe52bc0adfdab
552
py
Python
Python-Files/PlotConsole2.py
edwinprojects/DotNet-Matplotlib-Wrapper
df5f9a3d2d0bc9d79dfb62e9690b9a12e3676efa
[ "Apache-2.0" ]
1
2018-11-19T21:46:23.000Z
2018-11-19T21:46:23.000Z
Python-Files/PlotConsole2.py
edwinprojects/DotNet-Matplotlib-Wrapper
df5f9a3d2d0bc9d79dfb62e9690b9a12e3676efa
[ "Apache-2.0" ]
null
null
null
Python-Files/PlotConsole2.py
edwinprojects/DotNet-Matplotlib-Wrapper
df5f9a3d2d0bc9d79dfb62e9690b9a12e3676efa
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt fig = plt.figure(facecolor="#979899") ax = plt.gca() ax.set_facecolor("#d1d1d1") plt.xticks([1,2,3,4,5],["11/13\nTue","11/14\nWed","11/15\nThu","11/16\nFri","11/17\nSat"]) plt.yticks([0.0,0.1,0.2,0.3,0.4,0.5],["0 %","0.1 %","0.2 %","0.3 %","0.4 %","0.5 %"]) x = [1,2,3,4,5] y = [0.31,0...
23
90
0.567029
0
0
0
0
0
0
0
0
172
0.311594
3b7ada4d94b476f49373c95f6b93102fb37d26b1
1,327
py
Python
SampleModels/BasicModel/AnalyseDrifters.py
fearghalodonncha/DeepCurrent
8dfb19b701a225ead61d6015d95c703478035ce0
[ "MIT" ]
32
2018-03-31T22:19:25.000Z
2022-03-14T01:35:23.000Z
SampleModels/BasicModel/AnalyseDrifters.py
fearghalodonncha/DeepCurrent
8dfb19b701a225ead61d6015d95c703478035ce0
[ "MIT" ]
2
2020-04-02T06:13:13.000Z
2021-06-10T07:15:07.000Z
SampleModels/BasicModel/AnalyseDrifters.py
fearghalodonncha/DeepCurrent
8dfb19b701a225ead61d6015d95c703478035ce0
[ "MIT" ]
15
2018-06-27T02:55:23.000Z
2021-09-09T07:51:23.000Z
import numpy as np import matplotlib.pyplot as plt def read_drifter(filename): with open(filename) as f: lines = f.readlines() NPD = float(lines[3].split()[0]) ## NPD, number of particles specified on line 4 times_list = lines[4::2] drifter_list = lines[5::2] times_np = np.zeros([len(time...
32.365854
86
0.568953
0
0
0
0
0
0
0
0
73
0.055011
3b7b8443e086f193aae994977d55ad1ff72e4870
9,013
py
Python
src/trading_algorithm.py
Blocksize-Capital-GmbH/Quant-VM---Crypto-Arbitrage-Software
aefdab0a4a2ded2556bbf0289bdeb21a91da0b91
[ "Apache-2.0" ]
1
2022-03-20T14:34:51.000Z
2022-03-20T14:34:51.000Z
src/trading_algorithm.py
Blocksize-Capital-GmbH/Quant-VM---Crypto-Arbitrage-Software
aefdab0a4a2ded2556bbf0289bdeb21a91da0b91
[ "Apache-2.0" ]
null
null
null
src/trading_algorithm.py
Blocksize-Capital-GmbH/Quant-VM---Crypto-Arbitrage-Software
aefdab0a4a2ded2556bbf0289bdeb21a91da0b91
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import json import psycopg2 from typing import Dict, List, Tuple, Union from abc import abstractmethod import src.helpers import src.util from src.base_with_database_logger import BaseWithDatabaseAndLogger from src.client.custom_sdk_client import CustomClient from...
39.704846
167
0.606235
8,640
0.958615
0
0
693
0.076889
0
0
1,202
0.133363
3b7be34d2eae28558aea122046d2a25855c0c455
3,705
py
Python
tests/simulated_population.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
14
2021-05-03T19:59:58.000Z
2022-03-27T18:58:36.000Z
tests/simulated_population.py
samplics-org/samplics
b5f49d075194cc24208f567e6a00e86aa24bec26
[ "MIT" ]
8
2021-06-17T01:13:01.000Z
2022-03-27T18:31:15.000Z
tests/simulated_population.py
survey-methods/samplics
4a0f6ea6168afb74c2ea2c958fb76c7d27dfba83
[ "MIT" ]
2
2020-05-28T20:09:48.000Z
2021-01-19T17:34:22.000Z
import numpy as np population_size = 35000000 admin1_nb = 10 admin1_share = np.array([0.005, 0.020, 0.045, 0.075, 0.095, 0.105, 0.125, 0.130, 0.150, 0.250]) admin1_size = admin1_share * population_size if sum(admin1_share) != 1.000: raise AssertionError("The admin level 1 shares must sum to 1") # admin1 = np.r...
23.449367
96
0.54386
0
0
0
0
0
0
0
0
1,034
0.279082
3b7c8242f0a3f98aedead8405d5ecb15fb807c54
1,656
py
Python
scripts/merge_translations.py
okfde/eucopyright
fb17931eb04f62aac49d5c42a853b85341c00bdd
[ "MIT" ]
1
2020-06-28T21:45:27.000Z
2020-06-28T21:45:27.000Z
scripts/merge_translations.py
okfde/eucopyright
fb17931eb04f62aac49d5c42a853b85341c00bdd
[ "MIT" ]
null
null
null
scripts/merge_translations.py
okfde/eucopyright
fb17931eb04f62aac49d5c42a853b85341c00bdd
[ "MIT" ]
1
2015-01-28T10:04:58.000Z
2015-01-28T10:04:58.000Z
import sys import yaml def persona(old, new, overwrite_language): old_t = old['translations'] new_t = new['translations'] for key in old_t: if key in new_t and overwrite_language in new_t[key]: old_t[key][overwrite_language] = new_t[key][overwrite_language] def questions(old, new, ...
36.8
118
0.650362
0
0
0
0
0
0
0
0
250
0.150966
3b7d46a7d84bbcd253aef586d838c02ab0106a29
449
py
Python
page/views.py
YUND4/standar_herokuapp
a91981c236062721f32b76e4a61145800a481d64
[ "MIT" ]
null
null
null
page/views.py
YUND4/standar_herokuapp
a91981c236062721f32b76e4a61145800a481d64
[ "MIT" ]
null
null
null
page/views.py
YUND4/standar_herokuapp
a91981c236062721f32b76e4a61145800a481d64
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView, CreateView from django.urls import reverse_lazy from .models import Contact class HomeView(TemplateView): template_name = 'page/home.html' class AboutView(TemplateView): template_name = 'page/about.html' class ContactView(CreateView): template_name = 'page...
24.944444
71
0.730512
318
0.708241
0
0
0
0
0
0
103
0.229399