hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
c2e7bb5c6b24c4cca3af7a71c9170adb1f1080ac
1,401
py
Python
cse481wi18/applications/scripts/temp.py
TimAdamson21/access_teleop
4ca4cc3ebc29cb4942cec5c8e3e60b897b80590c
[ "MIT" ]
null
null
null
cse481wi18/applications/scripts/temp.py
TimAdamson21/access_teleop
4ca4cc3ebc29cb4942cec5c8e3e60b897b80590c
[ "MIT" ]
null
null
null
cse481wi18/applications/scripts/temp.py
TimAdamson21/access_teleop
4ca4cc3ebc29cb4942cec5c8e3e60b897b80590c
[ "MIT" ]
null
null
null
#! /usr/bin/env python import fetch_api import rospy import rosbag import numpy as np def wait_for_time(): """Wait for simulated time to begin. """ while rospy.Time().now().to_sec() == 0: pass def main(): rospy.init_node('arm_demo') wait_for_time() pose1 = [1.0, 1.25, 2.0, -2.25, 0, 1...
29.1875
132
0.626695
d6390339522e3fc8abaaa6006454fe4bad2df1e6
2,177
py
Python
DPGAnalysis/SiStripTools/python/overlapproblemtsosanalyzer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DPGAnalysis/SiStripTools/python/overlapproblemtsosanalyzer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DPGAnalysis/SiStripTools/python/overlapproblemtsosanalyzer_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 overlapproblemtsosanalyzer = cms.EDAnalyzer("OverlapProblemTSOSAnalyzer", trajTrackAssoCollection = cms.InputTag("refittedTracks"), onlyValidRecHit = cms.bool(True), ...
98.954545
162
0.595315
0a631180a06f4010b39762de3a4aefcc3f5cf4e1
20,472
py
Python
notebooks/Gentle-Intro-To-HARK.py
JackShiqiLi/DemARK
2cd3de40574e0eb9a9da795307b2b5c97d6e22bd
[ "Apache-2.0" ]
null
null
null
notebooks/Gentle-Intro-To-HARK.py
JackShiqiLi/DemARK
2cd3de40574e0eb9a9da795307b2b5c97d6e22bd
[ "Apache-2.0" ]
null
null
null
notebooks/Gentle-Intro-To-HARK.py
JackShiqiLi/DemARK
2cd3de40574e0eb9a9da795307b2b5c97d6e22bd
[ "Apache-2.0" ]
null
null
null
# --- # jupyter: # jupytext: # cell_metadata_filter: collapsed,code_folding # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.2' # jupytext_version: 1.2.1 # kernelspec: # display_name: Python 3 # language: pyth...
65.197452
757
0.730852
114488f5d72253f9d0ed36e8d866accf7bc63474
734
py
Python
setup.py
djw8605/scitokens
06f27c54f7e2d7456c0f26066376fee90567fbe6
[ "Apache-2.0" ]
null
null
null
setup.py
djw8605/scitokens
06f27c54f7e2d7456c0f26066376fee90567fbe6
[ "Apache-2.0" ]
null
null
null
setup.py
djw8605/scitokens
06f27c54f7e2d7456c0f26066376fee90567fbe6
[ "Apache-2.0" ]
null
null
null
""" Install file for SciTokens project. """ import setuptools setuptools.setup(name="scitokens", version="1.2.0", description="SciToken reference implementation library", author_email="team@scitokens.org", author="Brian Bockelman", ...
33.363636
73
0.472752
c89894d8ad0073cc3e99367b65fd183a9a84e8da
11,751
py
Python
python/src/iceberg/expressions/literals.py
wgzhxy/iceberg
547152cf3dfa5e399351b851c48edd8f916e9c48
[ "Apache-2.0" ]
null
null
null
python/src/iceberg/expressions/literals.py
wgzhxy/iceberg
547152cf3dfa5e399351b851c48edd8f916e9c48
[ "Apache-2.0" ]
null
null
null
python/src/iceberg/expressions/literals.py
wgzhxy/iceberg
547152cf3dfa5e399351b851c48edd8f916e9c48
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed un...
27.013793
120
0.659689
d5ea25777ad8146fced6fa9de729502e5fdec224
4,427
py
Python
bot.py
egor5q/loshadbot
971aeb11c311168779e59a144ecbd3d89b09aaca
[ "MIT" ]
null
null
null
bot.py
egor5q/loshadbot
971aeb11c311168779e59a144ecbd3d89b09aaca
[ "MIT" ]
null
null
null
bot.py
egor5q/loshadbot
971aeb11c311168779e59a144ecbd3d89b09aaca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import redis import os import telebot import math import random import threading import info import test from pymongo import MongoClient from telebot import types from emoji import emojize token = os.environ['TELEGRAM_TOKEN'] bot = telebot.TeleBot(token) pisuks=0 alr=0 spisok=['Ппц', 'Мда.', ...
26.195266
113
0.466004
f74a9e9b08cb1f8c919e8d1ca51905b2b548f308
1,663
gyp
Python
tools/relocation_packer/relocation_packer.gyp
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-01-25T10:18:18.000Z
2021-01-23T15:29:56.000Z
tools/relocation_packer/relocation_packer.gyp
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/relocation_packer/relocation_packer.gyp
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'lib_relocation_packer', 'toolsets': ['host'], 'type': 'static_library', 'dependencies': [ ...
24.820896
72
0.51834
b6c73f50913fb9d89ac60b223d3c7d00698f65e5
1,902
py
Python
pysnmp-with-texts/ATEN-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ATEN-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ATEN-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ATEN-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ATEN-SMI # Produced by pysmi-0.3.4 at Wed May 1 11:30:51 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
100.105263
505
0.774448
5a919cb18a783009cabde095439f56f0008b038d
284
py
Python
chat/urls.py
vsoch/chat
72936adc4a001d22befdbda3223f38fd46f1548a
[ "MIT" ]
1
2017-04-25T10:13:31.000Z
2017-04-25T10:13:31.000Z
chat/urls.py
vsoch/chat
72936adc4a001d22befdbda3223f38fd46f1548a
[ "MIT" ]
null
null
null
chat/urls.py
vsoch/chat
72936adc4a001d22befdbda3223f38fd46f1548a
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from . import views urlpatterns = [ url(r'', views.index), url(r'^about/$', views.about, name='about'), url(r'^new/$', views.new_room, name='new_room'), url(r'^(?P<label>[\w-]{,50})/$', views.chat_room, name='chat_room'), ]
28.4
72
0.612676
508333aded7aa09d83ff0ef79d66d6bcc19678c4
4,447
py
Python
stdplugins/changelog.py
fforius/BotHub
a844a82f6c56caafebf04123955a3901c97de946
[ "Apache-2.0" ]
null
null
null
stdplugins/changelog.py
fforius/BotHub
a844a82f6c56caafebf04123955a3901c97de946
[ "Apache-2.0" ]
null
null
null
stdplugins/changelog.py
fforius/BotHub
a844a82f6c56caafebf04123955a3901c97de946
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # edited by @AvinashReddy3108 # re-edited by @Mayur_Karaniya and @Devpatel_73 to make it work for Uniborg. # """ This mo...
29.450331
96
0.645829
ed7cfa27f29f5f632628a119664344a87dbb8a05
789
py
Python
CS101/Python/ex10.py
Am3ra/CS
b31026280917479b86cf4f1be1261b247513d550
[ "MIT" ]
1
2018-08-22T20:17:01.000Z
2018-08-22T20:17:01.000Z
CS101/Python/ex10.py
Am3ra/CS
b31026280917479b86cf4f1be1261b247513d550
[ "MIT" ]
null
null
null
CS101/Python/ex10.py
Am3ra/CS
b31026280917479b86cf4f1be1261b247513d550
[ "MIT" ]
null
null
null
# Question 10 # Level 2 # # Question: # Write a program that accepts a sequence of whitespace separated words as input and prints the words after removing all duplicate words and sorting them alphanumerically. # Suppose the following input is supplied to the program: # hello world and practice makes perfect and hello w...
37.571429
171
0.746515
d7c5145e9bc340813dd19d38ac0d9e1d887aa9a2
1,226
py
Python
ws/consumers.py
bl146u/asgi
48fcf0fd97be11ab0b326ad70e2442ca40346bf6
[ "Apache-2.0" ]
null
null
null
ws/consumers.py
bl146u/asgi
48fcf0fd97be11ab0b326ad70e2442ca40346bf6
[ "Apache-2.0" ]
null
null
null
ws/consumers.py
bl146u/asgi
48fcf0fd97be11ab0b326ad70e2442ca40346bf6
[ "Apache-2.0" ]
null
null
null
import json from asgiref.sync import async_to_sync from channels.generic.websocket import WebsocketConsumer class ChatConsumer(WebsocketConsumer): def connect(self): self.room_name = self.scope["url_route"]["kwargs"]["room_name"] self.room_group_name = "chat_%s" % self.room_name # Join ro...
30.65
78
0.663948
ceafae40c22ace4dabe0f9878a0d5c669011995c
13,989
py
Python
jgem/bigwig.py
kensugino/JUGEMu
3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f
[ "MIT" ]
null
null
null
jgem/bigwig.py
kensugino/JUGEMu
3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f
[ "MIT" ]
null
null
null
jgem/bigwig.py
kensugino/JUGEMu
3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f
[ "MIT" ]
null
null
null
""" .. module:: bigwig :synopsis: BIGWIG file related stuffs .. moduleauthor:: Ken Sugino <ken.sugino@gmail.com> """ # system import os import subprocess import time import multiprocessing from operator import iadd import logging logging.basicConfig(level=logging.DEBUG) LOG = logging.getLogger(__name__) import...
30.610503
105
0.563943
f83b5b605d44e5d91681fa505b59ef0a4cfaa355
2,107
py
Python
src/ml/speech_rec/LAS/models/listen.py
HayleyO/Senior-Design
853a2d2cdaf10f1614297fc0d9d50359d3757005
[ "MIT" ]
null
null
null
src/ml/speech_rec/LAS/models/listen.py
HayleyO/Senior-Design
853a2d2cdaf10f1614297fc0d9d50359d3757005
[ "MIT" ]
12
2022-01-16T21:21:26.000Z
2022-03-29T23:13:15.000Z
src/ml/speech_rec/LAS/models/listen.py
HayleyO/Senior-Design
853a2d2cdaf10f1614297fc0d9d50359d3757005
[ "MIT" ]
null
null
null
import torch.nn as nn class pBLSTMLayer(nn.Module): def __init__(self, input_feature_dim, hidden_dim): super(pBLSTMLayer, self).__init__() #Because we'll be reducing the time dimensions by 2, we'll need to increase feature dimensions by two self.BLSTM = nn.LSTM(input_feature_dim*2, hidden...
41.313725
140
0.641196
7d8d36488288bd166fcafd4186b28ea2b654a7da
5,307
py
Python
bin/bashthebug-classifications-analyse.py
philipwfowler/bashthebug
8b229078405b9e1f46d3152fcfe7cd9d77c54b30
[ "MIT" ]
null
null
null
bin/bashthebug-classifications-analyse.py
philipwfowler/bashthebug
8b229078405b9e1f46d3152fcfe7cd9d77c54b30
[ "MIT" ]
null
null
null
bin/bashthebug-classifications-analyse.py
philipwfowler/bashthebug
8b229078405b9e1f46d3152fcfe7cd9d77c54b30
[ "MIT" ]
null
null
null
#! /usr/bin/env python import argparse, logging import pandas import bashthebug if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--input",required=True,help="the csv file downloaded from the Zooniverse containing all the classifcations done to date") parser.add_argumen...
58.318681
199
0.751837
42307dbbbf1916f297064ceaf7ac2de21b021620
11,021
py
Python
base_streamlit.py
Washbourne/test
0c118a544867ad3a0deb8f25749205d6d56b29f5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
base_streamlit.py
Washbourne/test
0c118a544867ad3a0deb8f25749205d6d56b29f5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
base_streamlit.py
Washbourne/test
0c118a544867ad3a0deb8f25749205d6d56b29f5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 29 06:34:35 2020 @author: Horri """ import streamlit as st import random as r import numpy as np import pandas as pd # # # # # # # #left_col, right_col = st.beta_columns(2) st.title('WFRP Dice Roller') st.button('Roll!') combat_bool = st.sidebar.checkbox('Combat Roll...
45.920833
379
0.667362
8a28b21e82d15cf1eb1889cd9ba91a69be267ce8
148
py
Python
hikyuu/admin/service/__init__.py
kknet/hikyuu
650814c3e1d32894ccc1263a0fecd6693028d2e3
[ "MIT" ]
1,283
2016-04-06T16:06:46.000Z
2022-03-31T06:37:53.000Z
hikyuu/admin/service/__init__.py
kknet/hikyuu
650814c3e1d32894ccc1263a0fecd6693028d2e3
[ "MIT" ]
47
2017-08-12T10:37:03.000Z
2022-03-28T13:22:21.000Z
hikyuu/admin/service/__init__.py
kknet/hikyuu
650814c3e1d32894ccc1263a0fecd6693028d2e3
[ "MIT" ]
416
2017-05-15T05:28:26.000Z
2022-03-22T07:44:15.000Z
# -*- coding: utf-8 -*- from .restful import login from .assist import AssisService from .user import UserService from .trade import TradeService
18.5
32
0.756757
d2d4ff6c9de958d7407dbd4bdf8564608fe297ae
787
py
Python
cls_pickup_shortdistance.py
naotohori/cafysis
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
2
2022-02-25T17:32:41.000Z
2022-03-31T14:38:55.000Z
cls_pickup_shortdistance.py
naotohori/cafysis
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
2
2020-05-03T08:36:10.000Z
2021-01-27T12:40:50.000Z
cls_pickup_shortdistance.py
naotohori/life-of-py
9d8534121c01ea75ae965cf39a1e307052ff8523
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys if len(sys.argv) != 5: print ('\n Usage: SCRIPT [distance file] [mpvec file] [cutoff] [output vec file]\n') sys.exit(2) f_dist = open(sys.argv[1], 'r') f_mpvec = open(sys.argv[2],'r') cutoff = float(sys.argv[3]) f_out = open(sys.argv[-1],'w') imps_output = [] for line in...
23.147059
88
0.590851
de47b9bb7fe61595f02203dfc79565254c74a622
12,069
py
Python
test/functional/qtumcash_create_eth_op_code.py
qtumcashproject/qtumcash
4f095de839e524c4d43a861769695d199bfd7544
[ "MIT" ]
2
2020-04-30T09:41:04.000Z
2020-05-08T12:03:21.000Z
test/functional/qtumcash_create_eth_op_code.py
qtumcashproject/qtumcash
4f095de839e524c4d43a861769695d199bfd7544
[ "MIT" ]
null
null
null
test/functional/qtumcash_create_eth_op_code.py
qtumcashproject/qtumcash
4f095de839e524c4d43a861769695d199bfd7544
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.qtumcash import * from test_framework.address import * class QtumCashCreateEthOpCodeTest(BitcoinTestFra...
64.540107
2,152
0.768332
5108190a94c6d2f4f523b12b53b6de1c52b1f15e
1,929
py
Python
Examples/basic_example.py
alexbodn/PikaBus
5faf2e48f4d4deecb4428707f94bcf72a81cc3ee
[ "MIT" ]
7
2020-03-21T12:22:18.000Z
2022-02-10T11:43:51.000Z
Examples/basic_example.py
alexbodn/PikaBus
5faf2e48f4d4deecb4428707f94bcf72a81cc3ee
[ "MIT" ]
null
null
null
Examples/basic_example.py
alexbodn/PikaBus
5faf2e48f4d4deecb4428707f94bcf72a81cc3ee
[ "MIT" ]
1
2021-06-21T10:56:56.000Z
2021-06-21T10:56:56.000Z
import pika import datetime from PikaBus.abstractions.AbstractPikaBus import AbstractPikaBus from PikaBus.PikaBusSetup import PikaBusSetup def MessageHandlerMethod(**kwargs): """ A message handler method may simply be a method with som **kwargs. The **kwargs will be given all incoming pipeline data, the b...
35.722222
111
0.734578
9adf548c870586fba41ae3ecfca639b063e3ab89
885
py
Python
tests/test_212.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
tests/test_212.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
tests/test_212.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pytest """ Test 212. Word Search II """ @pytest.fixture(scope="session") def init_variables_212(): from src.leetcode_212_word_search_ii import Solution solution = Solution() def _init_variables_212(): return solution yield _init_variables_212 class TestClass...
22.692308
87
0.479096
9a6bccfd94f7cf0dc190827f885a3a1c09041699
2,033
py
Python
DjangoWebProject/urls.py
nayak16/TartanHacks-2015
e659df9cdd27c69a0619d17d778d578aedc6ecd8
[ "MIT" ]
null
null
null
DjangoWebProject/urls.py
nayak16/TartanHacks-2015
e659df9cdd27c69a0619d17d778d578aedc6ecd8
[ "MIT" ]
null
null
null
DjangoWebProject/urls.py
nayak16/TartanHacks-2015
e659df9cdd27c69a0619d17d778d578aedc6ecd8
[ "MIT" ]
null
null
null
""" Definition of urls for DjangoWebProject. """ from datetime import datetime from django.conf.urls import patterns, url from app.forms import BootstrapAuthenticationForm from django.contrib import admin from django.conf import settings # Uncomment the next lines to enable the admin: # from django.conf.urls import i...
33.327869
105
0.617806
b818753a88d1be6628489960769d797686820012
866
py
Python
miner/rank.py
HeavenDuke/GithubMiner
3d14c40c9cbdee6f22e7ade3493888aff708ad5b
[ "MIT" ]
2
2017-05-22T10:31:15.000Z
2017-05-23T06:52:58.000Z
miner/rank.py
HeavenDuke/GithubMiner
3d14c40c9cbdee6f22e7ade3493888aff708ad5b
[ "MIT" ]
null
null
null
miner/rank.py
HeavenDuke/GithubMiner
3d14c40c9cbdee6f22e7ade3493888aff708ad5b
[ "MIT" ]
null
null
null
from utils.repositories import fetch_accepted_repository_list from utils.Time import Time from py2neo import Graph from recommendation.ranking import RankingCalculator import sys connection = sys.argv[1] username = sys.argv[2] password = sys.argv[3] year = int(sys.argv[4]) month = int(sys.argv[5]) day = int(sys.argv[6...
39.363636
144
0.743649
8ee670680f0b3ab418da29ca24722307f807d86d
3,917
py
Python
audioIO/srnlp.py
kjchavez/jarvis
56eb65d959d82e5643797ad16cda9d7d378d4385
[ "OML", "Apache-1.1" ]
null
null
null
audioIO/srnlp.py
kjchavez/jarvis
56eb65d959d82e5643797ad16cda9d7d378d4385
[ "OML", "Apache-1.1" ]
null
null
null
audioIO/srnlp.py
kjchavez/jarvis
56eb65d959d82e5643797ad16cda9d7d378d4385
[ "OML", "Apache-1.1" ]
null
null
null
import os import time import json import numpy as np import apiai import pyaudio import pocketsphinx from audioIO.pause import PauseDetector class PocketSphinx: CHUNK = 512 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 16000 MODELDIR = "/usr/local/share/pocketsphinx/model" config = pocketsphinx....
31.336
91
0.596885
87b662bc43a049cc6c85adcce35dc8b3c7afc725
646
py
Python
pyccapt/control/devices_test/counter.py
mmonajem/apt_pycontrol
3e2413e19adf69af9f90818016c9d5694185a889
[ "Apache-2.0" ]
null
null
null
pyccapt/control/devices_test/counter.py
mmonajem/apt_pycontrol
3e2413e19adf69af9f90818016c9d5694185a889
[ "Apache-2.0" ]
null
null
null
pyccapt/control/devices_test/counter.py
mmonajem/apt_pycontrol
3e2413e19adf69af9f90818016c9d5694185a889
[ "Apache-2.0" ]
null
null
null
try: import nidaqmx except: print('Please install nidaqmx') import time if __name__ == '__main__': task_counter = nidaqmx.Task() task_counter.ci_channels.add_ci_count_edges_chan("Dev1/ctr0") # if you need to prescale # task.ci_channels[0].ci_prescaler = 8 # reference the terminal you w...
23.925926
65
0.678019
3425d71b9992973eeb04cdfd8d095ef16a356892
137
py
Python
examples/error_messages/app.py
feihong/muffin-playground
beaeaac15727ac581a75da78b2d973632171c150
[ "Apache-2.0" ]
1
2016-10-26T05:14:57.000Z
2016-10-26T05:14:57.000Z
examples/error_messages/app.py
feihong/muffin-playground
beaeaac15727ac581a75da78b2d973632171c150
[ "Apache-2.0" ]
null
null
null
examples/error_messages/app.py
feihong/muffin-playground
beaeaac15727ac581a75da78b2d973632171c150
[ "Apache-2.0" ]
null
null
null
""" To run: muffin app run """ from muffin_playground import Application app = Application() app.register_special_static_route()
11.416667
41
0.737226
05821606a1d151a7671ed55ef5d445b9e0e0031e
23,421
py
Python
trunk/MOPS_CarType.py
n5iln/railmops
f7d3b446435b31bad8cddf343f18ca7efb9eac10
[ "Unlicense" ]
1
2015-03-30T12:10:56.000Z
2015-03-30T12:10:56.000Z
trunk/MOPS_CarType.py
n5iln/railmops
f7d3b446435b31bad8cddf343f18ca7efb9eac10
[ "Unlicense" ]
null
null
null
trunk/MOPS_CarType.py
n5iln/railmops
f7d3b446435b31bad8cddf343f18ca7efb9eac10
[ "Unlicense" ]
null
null
null
''' CarType Class This sub-divides Car Classes into cars with the same characteristics for loading and other purposes Model Operations Processing System. Copyright Brian Fairbairn 2009-2010. Licenced under the EUPL. You may not use this work except in compliance with the Licence. You may obtain a copy of the ...
41.234155
106
0.450792
9a206e93eff36794daf68c2e9e830dfbe8071dac
6,612
py
Python
release/stubs.min/System/Diagnostics/__init__.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Diagnostics/__init__.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Diagnostics/__init__.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
# encoding: utf-8 # module System.Diagnostics calls itself Diagnostics # from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 # by generator 1.145 # no doc # no important # no functions # classes from __init___part...
65.465347
151
0.907139
a8e3f1532e4b59940e70617091eb99c94471de1e
2,177
py
Python
pubsub/messages.py
raymondpoling/rerun-tv
e10122ecad12f8ec427c28317db018be57548f60
[ "MIT" ]
null
null
null
pubsub/messages.py
raymondpoling/rerun-tv
e10122ecad12f8ec427c28317db018be57548f60
[ "MIT" ]
26
2020-03-21T18:26:18.000Z
2020-06-23T13:33:01.000Z
pubsub/messages.py
raymondpoling/rerun-tv
e10122ecad12f8ec427c28317db018be57548f60
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 '''Main application, gets message from redis, and processes the test to run.''' import os import sys import traceback import json import redis import schedule import root_locations import remote_locations import series_playlists import playlist_check import ensure_tags REDIS_SERVER = os.environ....
30.661972
79
0.604042
23aaf45845cec857d9f323a7a0a4d4d64d3c5d4d
1,452
py
Python
app/views/crops.py
aldrinjao/sarai-interactive-maps-backend
ebe8ec54d90c3cd2701c9fd80abffc0f73404bf0
[ "MIT" ]
null
null
null
app/views/crops.py
aldrinjao/sarai-interactive-maps-backend
ebe8ec54d90c3cd2701c9fd80abffc0f73404bf0
[ "MIT" ]
null
null
null
app/views/crops.py
aldrinjao/sarai-interactive-maps-backend
ebe8ec54d90c3cd2701c9fd80abffc0f73404bf0
[ "MIT" ]
null
null
null
# crops.py # # Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> # Licensed under MIT # Version 1.0.0-alpha6 from flask import Blueprint, jsonify, abort from flask_cors import cross_origin from app.gzipped import gzipped from app.models import Crop from app.schema import CropSchema mod = Blueprint('crop...
20.166667
65
0.694904
6ffe55a04cc3bd5b3938ea8512f5ec05886656a4
720
py
Python
cert_issuer/__main__.py
bloxberg-org/cert-issuer
5dbdefaa8423ebf8dffb95c6492fc30ddebfd335
[ "MIT" ]
null
null
null
cert_issuer/__main__.py
bloxberg-org/cert-issuer
5dbdefaa8423ebf8dffb95c6492fc30ddebfd335
[ "MIT" ]
null
null
null
cert_issuer/__main__.py
bloxberg-org/cert-issuer
5dbdefaa8423ebf8dffb95c6492fc30ddebfd335
[ "MIT" ]
1
2021-01-14T10:40:31.000Z
2021-01-14T10:40:31.000Z
#!/usr/bin/env python3 import os.path import sys import cProfile PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) if __package__ is None and not hasattr(sys, 'frozen'): path = os.path.realpath(os.path.abspath(__file__)) sys.path.insert(0, os.path.dirname(os.path.dirname(path))) def cert_is...
25.714286
66
0.720833
5ee69da5489329bd879c3003ba3f808fc5de226a
3,420
py
Python
build_msvc/msvc-autogen.py
cisnes/PINECOIN
a0252cace17ecc1208a07368c0b893d3878459d8
[ "MIT" ]
null
null
null
build_msvc/msvc-autogen.py
cisnes/PINECOIN
a0252cace17ecc1208a07368c0b893d3878459d8
[ "MIT" ]
null
null
null
build_msvc/msvc-autogen.py
cisnes/PINECOIN
a0252cace17ecc1208a07368c0b893d3878459d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import argparse from shutil import copyfile SOURCE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src')) DEFAULT_PLATFORM_TOOLSET = R'v141' libs = [ 'libpinecoin_cli', 'libpinecoin_common', 'libpinecoin_crypto', 'libpinecoin_server', ...
41.707317
141
0.615497
9b4adb447ae02f3cb45509daa402f87c869cdfb4
430
py
Python
tests/strategies/migrations.py
sc-gcoste/brightway2-io
3a1f6d4efeb1b1754343ca7a243c4c1bcaaca40a
[ "BSD-3-Clause" ]
null
null
null
tests/strategies/migrations.py
sc-gcoste/brightway2-io
3a1f6d4efeb1b1754343ca7a243c4c1bcaaca40a
[ "BSD-3-Clause" ]
3
2020-03-10T11:08:18.000Z
2020-03-10T11:09:00.000Z
tests/strategies/migrations.py
brightway-lca/brightway2-io-copy
8383adc2f0cb06852f689fb2aab62d5a29f41130
[ "BSD-3-Clause" ]
null
null
null
import pytest from bw2data.tests import bw2test from bw2io.errors import MissingMigration from bw2io.strategies import migrate_datasets, migrate_exchanges @bw2test def test_migrate_exchanges_missing_migration(): with pytest.raises(MissingMigration): migrate_exchanges([], "foo") @bw2test def test_migrat...
23.888889
64
0.786047
75444c93fa48a93071927879cd5f087148fce54e
917
py
Python
powercmd/commands_dict.py
dextero/powercmd
6d3652e9d1a60d7227e95ce943a9d3a6ec6a25bf
[ "MIT" ]
null
null
null
powercmd/commands_dict.py
dextero/powercmd
6d3652e9d1a60d7227e95ce943a9d3a6ec6a25bf
[ "MIT" ]
8
2017-06-13T15:27:09.000Z
2020-08-19T19:11:08.000Z
powercmd/commands_dict.py
dextero/powercmd
6d3652e9d1a60d7227e95ce943a9d3a6ec6a25bf
[ "MIT" ]
4
2017-06-13T15:01:10.000Z
2020-08-05T10:00:20.000Z
""" Command name -> Command object dictionary able to choose most appropriate command by partial name. """ from powercmd.command import Command from powercmd.exceptions import InvalidInput from powercmd.match_string import match_string class CommandsDict(dict): """ A container for Command objects that allow...
30.566667
73
0.635769
4aecd6240556e59d090cc002c5fa8592212d7805
2,094
py
Python
tap_github/tests/fixtures.py
oviohub/tap-github-1
40edd0536a4080a3d9a67cc264282d76e4bc1c46
[ "Apache-2.0" ]
5
2021-09-03T23:06:35.000Z
2022-01-23T15:05:02.000Z
tap_github/tests/fixtures.py
oviohub/tap-github-1
40edd0536a4080a3d9a67cc264282d76e4bc1c46
[ "Apache-2.0" ]
91
2021-09-03T21:04:37.000Z
2022-03-31T16:37:02.000Z
tap_github/tests/fixtures.py
oviohub/tap-github-meltano
40edd0536a4080a3d9a67cc264282d76e4bc1c46
[ "Apache-2.0" ]
3
2021-09-10T09:28:04.000Z
2021-12-09T20:43:20.000Z
import datetime import pytest @pytest.fixture def search_config(): return { "metrics_log_level": "none", "start_date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"), "searches": [ { "name": "tap_something", "query": "tap-+lan...
27.92
88
0.626552
1750b34adbea5a01029f5daacea4d3ab39e89c0c
3,708
py
Python
aiida/backends/sqlalchemy/alembic_manage.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
aiida/backends/sqlalchemy/alembic_manage.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/sqlalchemy/alembic_manage.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.304348
98
0.627023
25a17b1ea1c5f307e4bc931c973ab1c54677da77
1,905
py
Python
editor/ui/layerwidget.py
JCash/fontcreator
05297452ee18cf574988471e3cca8ddf0681d6e0
[ "Zlib" ]
5
2016-07-27T10:52:53.000Z
2021-02-22T16:03:49.000Z
editor/ui/layerwidget.py
JCash/fontcreator
05297452ee18cf574988471e3cca8ddf0681d6e0
[ "Zlib" ]
null
null
null
editor/ui/layerwidget.py
JCash/fontcreator
05297452ee18cf574988471e3cca8ddf0681d6e0
[ "Zlib" ]
2
2015-01-25T09:56:03.000Z
2016-07-27T10:52:56.000Z
from PySide import QtGui import toolbar import propertyview from properties.propertyclass import property_class from properties.propertytypes import IntProperty def lerp(a,b,t): return (t * b) + ((1.0 - t) * a) class LayerWidget(QtGui.QWidget): def __init__(self, parent=None): sup...
29.307692
126
0.560105
1865fd589b1ef29e0408658d3a1fa3d872ab8cc5
42,987
py
Python
desktop/core/ext-py/SQLAlchemy-1.3.16/test/dialect/mssql/test_compiler.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/SQLAlchemy-1.3.16/test/dialect/mssql/test_compiler.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/SQLAlchemy-1.3.16/test/dialect/mssql/test_compiler.py
e11it/hue-1
436704c40b5fa6ffd30bd972bf50ffeec738d091
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- encoding: utf-8 from sqlalchemy import Column from sqlalchemy import Computed from sqlalchemy import delete from sqlalchemy import extract from sqlalchemy import func from sqlalchemy import Index from sqlalchemy import insert from sqlalchemy import Integer from sqlalchemy import literal from sqlalchemy import lit...
33.8214
79
0.528113
5d748bc8b870f43353e27832136e5f96e0ec99c8
1,173
py
Python
tests/integration/cvm/test_describe_instances.py
QcloudApi/qcloudapi-sdk-python
9b097e4f4089cb6432ada7593999fab92f31fb43
[ "Apache-2.0" ]
212
2015-04-08T14:37:30.000Z
2021-12-24T10:27:13.000Z
tests/integration/cvm/test_describe_instances.py
QcloudApi/qcloudapi-sdk-python
9b097e4f4089cb6432ada7593999fab92f31fb43
[ "Apache-2.0" ]
41
2016-02-23T06:17:41.000Z
2019-06-06T08:30:20.000Z
tests/integration/cvm/test_describe_instances.py
QcloudApi/qcloudapi-sdk-python
9b097e4f4089cb6432ada7593999fab92f31fb43
[ "Apache-2.0" ]
92
2015-07-25T08:53:13.000Z
2020-09-01T09:51:43.000Z
# Copyright 1999-2017 Tencent 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 or agreed to in writ...
33.514286
74
0.685422
e73f05c94d2050b22ef431e3ae6da24eedbbcd4f
1,408
py
Python
numba_dpcomp/mlir/utils.py
Hardcode84/mlir-extensions
19d52fb473d2271224061057918ce337565b4496
[ "Apache-2.0" ]
null
null
null
numba_dpcomp/mlir/utils.py
Hardcode84/mlir-extensions
19d52fb473d2271224061057918ce337565b4496
[ "Apache-2.0" ]
null
null
null
numba_dpcomp/mlir/utils.py
Hardcode84/mlir-extensions
19d52fb473d2271224061057918ce337565b4496
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
28.16
79
0.691761
2a494cce09c35216cc0e1dd3437ebd6270869bd9
352
py
Python
Proj029Pipelines/pipeline_docs/pipeline_report/trackers/Fastqc.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
3
2016-04-04T22:54:14.000Z
2017-04-01T09:37:54.000Z
Proj029Pipelines/pipeline_docs/pipeline_report/trackers/Fastqc.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
Proj029Pipelines/pipeline_docs/pipeline_report/trackers/Fastqc.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
from SphinxReport.Tracker import * class ReadSummary(TrackerSQL): ''' Summarise read counts for each track ''' def __call__(self, track, slice=None): return self.getAll("SELECT * FROM reads_summary") class PerBaseQuality(TrackerImages): ''' representative plots for fastqc quality ...
16.761905
57
0.664773
12bef9ad2f714a7bbaf291a11aa572245d4362f3
1,002
py
Python
src/test/test_norway.py
SoftXperience/astral
4e8433276ed542c2ad34cbc5d6b6f8a290d73cc7
[ "Apache-2.0" ]
152
2016-08-16T22:42:12.000Z
2022-03-16T10:54:13.000Z
src/test/test_norway.py
SoftXperience/astral
4e8433276ed542c2ad34cbc5d6b6f8a290d73cc7
[ "Apache-2.0" ]
64
2016-08-16T22:40:39.000Z
2022-03-07T10:20:11.000Z
src/test/test_norway.py
SoftXperience/astral
4e8433276ed542c2ad34cbc5d6b6f8a290d73cc7
[ "Apache-2.0" ]
43
2016-08-16T22:35:05.000Z
2022-01-24T07:38:02.000Z
from __future__ import unicode_literals import pytest import astral from datetime import datetime, timedelta import pytz from astral import sun def _next_event(obs: astral.Observer, dt: datetime, event: str): for offset in range(0, 365): newdate = dt + timedelta(days=offset) try: t = ...
27.833333
70
0.666667
fad72f138cc1dd95f09b9cdcbb87997c8d2bcf1b
6,298
py
Python
import_wikidata.py
DOsinga/wiki_import
890b65cd13e9a16cd0fca40f2a56f3db7f48f94a
[ "Apache-2.0" ]
12
2016-09-13T12:57:39.000Z
2022-01-02T07:13:44.000Z
import_wikidata.py
DOsinga/wiki_import
890b65cd13e9a16cd0fca40f2a56f3db7f48f94a
[ "Apache-2.0" ]
null
null
null
import_wikidata.py
DOsinga/wiki_import
890b65cd13e9a16cd0fca40f2a56f3db7f48f94a
[ "Apache-2.0" ]
2
2019-06-24T02:07:12.000Z
2020-02-03T23:48:39.000Z
#!/usr/bin/env python from collections import defaultdict import argparse import subprocess import json import psycopg2 from psycopg2 import extras def setup_db(connection_string): conn = psycopg2.connect(connection_string) cursor = conn.cursor() cursor.execute('DROP TABLE IF EXISTS wikidata') curs...
37.266272
127
0.539695
ccf7383ec2f2bb8a3a9863736ff4b8c36fdf495d
3,069
py
Python
nicos_sinq/devices/epics/generic.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_sinq/devices/epics/generic.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_sinq/devices/epics/generic.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
36.105882
79
0.61551
899cebc396f005bebe343ad3023cf19c5738a52b
1,306
py
Python
workspace/app/webapps/auth/route_login.py
r14r/FastAPI_App_Jobboard
a5ed77f51d94e45d4b3f3869a10fa0359aaad2f4
[ "MIT" ]
null
null
null
workspace/app/webapps/auth/route_login.py
r14r/FastAPI_App_Jobboard
a5ed77f51d94e45d4b3f3869a10fa0359aaad2f4
[ "MIT" ]
null
null
null
workspace/app/webapps/auth/route_login.py
r14r/FastAPI_App_Jobboard
a5ed77f51d94e45d4b3f3869a10fa0359aaad2f4
[ "MIT" ]
null
null
null
from apis.version1.route_login import login_for_access_token from db.session import get_db from fastapi import APIRouter from fastapi import Depends from fastapi import HTTPException from fastapi import Request from fastapi.templating import Jinja2Templates from sqlalchemy.orm import Session from webapps.auth.forms imp...
36.277778
83
0.730475
2ebe9b9b23c6ae62a29610d30f7cf65789efe729
4,303
py
Python
youtube8m/utils/metrics/mean_average_precision_calculator.py
twoleggedeye/youtube8m
c640c5052054ef50eb2f040889a341d3afbdf010
[ "MIT" ]
15
2018-09-06T12:52:47.000Z
2021-05-28T08:01:45.000Z
youtube8m/utils/metrics/mean_average_precision_calculator.py
twoleggedeye/youtube8m
c640c5052054ef50eb2f040889a341d3afbdf010
[ "MIT" ]
null
null
null
youtube8m/utils/metrics/mean_average_precision_calculator.py
twoleggedeye/youtube8m
c640c5052054ef50eb2f040889a341d3afbdf010
[ "MIT" ]
2
2019-07-11T19:31:19.000Z
2020-03-10T04:13:52.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.419643
83
0.688125
81b896b6dcd70ef155f3a5ab20b0869292f05c0e
7,633
py
Python
scripts/optimization viz/opossum_log_to_mp4.py
ksteinfe/fresh_eyes
db0cdf2a77d5e2df7157c022aa7a620ec15cac34
[ "MIT" ]
4
2019-09-20T23:43:21.000Z
2021-12-08T15:27:00.000Z
scripts/optimization viz/opossum_log_to_mp4.py
ksteinfe/fresh_eyes
db0cdf2a77d5e2df7157c022aa7a620ec15cac34
[ "MIT" ]
null
null
null
scripts/optimization viz/opossum_log_to_mp4.py
ksteinfe/fresh_eyes
db0cdf2a77d5e2df7157c022aa7a620ec15cac34
[ "MIT" ]
2
2019-09-21T13:56:46.000Z
2020-06-28T01:43:02.000Z
import glob, os, shutil, tempfile, argparse from PIL import Image, ImageFont, ImageDraw from zipfile import ZipFile import imageio import numpy as np frames_per_sec = 24 show_local_best = True LOCAL_BEST_RANGE = frames_per_sec * 3 # range of past iterations to find local best. compare to frames_per_sec FONT = ImageF...
44.9
212
0.635268
dcdda17eaf4447e9a6dfdf8405076df718897cb2
88
py
Python
simplemonitor/version.py
aikitori/simplemonitor
432bdf90d67681f2aed6f51f26546371160f2227
[ "BSD-3-Clause" ]
373
2015-12-21T02:39:21.000Z
2022-03-08T10:49:43.000Z
simplemonitor/version.py
aikitori/simplemonitor
432bdf90d67681f2aed6f51f26546371160f2227
[ "BSD-3-Clause" ]
910
2015-10-13T08:16:38.000Z
2022-03-29T12:16:52.000Z
simplemonitor/version.py
aikitori/simplemonitor
432bdf90d67681f2aed6f51f26546371160f2227
[ "BSD-3-Clause" ]
196
2015-03-24T19:15:42.000Z
2022-02-06T22:39:55.000Z
import pkg_resources VERSION = pkg_resources.get_distribution("simplemonitor").version
22
65
0.852273
3030b091442a66a1758237c47ca2d3b1d6082b1e
368
py
Python
core/models.py
dilshodbekikromov/weatherapp
105ca8c7a142a4afdff9bff7c758896f0335610c
[ "PostgreSQL" ]
1
2021-12-17T05:17:22.000Z
2021-12-17T05:17:22.000Z
core/models.py
GiovannaK/Weather-app-django
3138f03b34baa5866ed63f52dc4b759be6eb7aa4
[ "MIT" ]
null
null
null
core/models.py
GiovannaK/Weather-app-django
3138f03b34baa5866ed63f52dc4b759be6eb7aa4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class City(models.Model): user = models.ManyToManyField(User, default=None,) name = models.CharField(max_length=255, verbose_name="Nome da cidade") def __str__(self): return self.name class Meta: verbose_name = "...
26.285714
74
0.701087
3dd4834d518a47313b12889c0918b820180957d4
2,459
py
Python
ros2_control_demo_bringup/launch/rrbot_system_multi_interface.launch.py
ZhanfengZhou/ros2_control_demos
1db6634a0ad193b130cc07d66f5baee894658bf0
[ "Apache-2.0" ]
null
null
null
ros2_control_demo_bringup/launch/rrbot_system_multi_interface.launch.py
ZhanfengZhou/ros2_control_demos
1db6634a0ad193b130cc07d66f5baee894658bf0
[ "Apache-2.0" ]
null
null
null
ros2_control_demo_bringup/launch/rrbot_system_multi_interface.launch.py
ZhanfengZhou/ros2_control_demos
1db6634a0ad193b130cc07d66f5baee894658bf0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Department of Engineering Cybernetics, NTNU. # # 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 applica...
37.830769
95
0.701911
fb1e981a88abdef24c09b78de9ef8f83ed4324c0
1,328
py
Python
src/dsa/misc/utils/bit_manipulation.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
src/dsa/misc/utils/bit_manipulation.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
src/dsa/misc/utils/bit_manipulation.py
tvatter/dsa
e5ae217e38441d90914a55103e23d86f5821dc2f
[ "MIT" ]
null
null
null
def get_bit(num, bit): return (num & (1 << bit)) != 0 def set_bit(num, bit): return num | (1 << bit) def clear_bit(num, bit): return num & ~(1 << bit) def clear_bits(num, bit, from_msb=True): if from_msb: return num & ~(~0 << bit) else: return num & (~0 << (bit + 1)) # def update_bit(num, bit,...
19.820896
57
0.557982
26cdd5a09abde63d60a8ab294726b07347f2b90f
1,054
py
Python
database/information/KEY_COLUMN_USAGE.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/information/KEY_COLUMN_USAGE.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/information/KEY_COLUMN_USAGE.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.database_schemas import Schemas from sqlalchemy import Column, ForeignKey, Integer, String, DateTime from sqlalchemy.dialects.mysql import BIGINT, SMALLINT, DOUBLE, TIMESTAMP, TINYINT from database.base import Base class KeyColumnUsage(Base): """Maps to KEY_COLUMN_USAGE table in in...
39.037037
82
0.774194
719284a622da8b17f49de3f210bbfab25e7cec98
1,116
py
Python
Backend/config/urls.py
md-msig/Django-React-Blog-1
264c410f9fc31044f125cfc3978e7799eabe0576
[ "Apache-2.0" ]
null
null
null
Backend/config/urls.py
md-msig/Django-React-Blog-1
264c410f9fc31044f125cfc3978e7799eabe0576
[ "Apache-2.0" ]
null
null
null
Backend/config/urls.py
md-msig/Django-React-Blog-1
264c410f9fc31044f125cfc3978e7799eabe0576
[ "Apache-2.0" ]
null
null
null
"""Blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
37.2
79
0.689068
76653c09967ad1b9cde868f188f75ec582c81418
355
py
Python
12_Nguyen_Lam_Manh_Tuyen/1.4.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
12_Nguyen_Lam_Manh_Tuyen/1.4.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
12_Nguyen_Lam_Manh_Tuyen/1.4.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
8
2020-07-10T14:13:54.000Z
2020-08-03T08:17:50.000Z
#Write a program that asks the user for a number n and prints the sum of the numbers 1 to n start=1 print("Please input your number") end=input() sum=0 while end.isdigit()==False: print("Your input is not a valid number, please try again") end=input() for i in range(start,int(end)+1): sum=sum+i print("Sum f...
32.272727
91
0.692958
c6dc7cb74aeb684ffd1c1a5ffb4353ea67b30b0c
25,965
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvm_cmd_add_device.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvm_cmd_add_device.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_dvm_cmd_add_device.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2021 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
37.960526
160
0.342808
90d0d698d28c54365c6b974473404e06d9aff1a7
9,228
py
Python
netbox/extras/views.py
UrosTodorovic/netbox
4a0fd6d230b4d3dd39c2555cf573bf72f824c4bd
[ "Apache-2.0" ]
null
null
null
netbox/extras/views.py
UrosTodorovic/netbox
4a0fd6d230b4d3dd39c2555cf573bf72f824c4bd
[ "Apache-2.0" ]
null
null
null
netbox/extras/views.py
UrosTodorovic/netbox
4a0fd6d230b4d3dd39c2555cf573bf72f824c4bd
[ "Apache-2.0" ]
1
2021-04-09T06:08:21.000Z
2021-04-09T06:08:21.000Z
from __future__ import unicode_literals from django import template from django.contrib import messages from django.contrib.auth.mixins import PermissionRequiredMixin from django.contrib.contenttypes.models import ContentType from django.db.models import Count, Q from django.http import Http404 from django.shortcuts i...
31.71134
117
0.700477
89a8eb9044a1c9782b8f2f1320323629f4d595bc
6,028
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/tests/test_self_paced_overrides.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/tests/test_self_paced_overrides.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/tests/test_self_paced_overrides.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
"""Tests for self-paced course due date overrides.""" import datetime from unittest.mock import patch import pytz from django.test.utils import override_settings from common.djangoapps.student.tests.factories import BetaTesterFactory from lms.djangoapps.courseware.access import has_access from lms.djangoapps.ccx.tes...
43.057143
111
0.712674
22b38406620e76a841e21ded6117cd8f7eaac5e9
1,548
py
Python
Languages/Python/calculator.py
ayushverma0028/Hacktober2021
379832be8adb3a58e87142bad46bb4d0e93942cd
[ "MIT" ]
1
2022-02-01T20:59:35.000Z
2022-02-01T20:59:35.000Z
Languages/Python/calculator.py
ayushverma0028/Hacktober2021
379832be8adb3a58e87142bad46bb4d0e93942cd
[ "MIT" ]
null
null
null
Languages/Python/calculator.py
ayushverma0028/Hacktober2021
379832be8adb3a58e87142bad46bb4d0e93942cd
[ "MIT" ]
null
null
null
# Simple Calculator Python # Enter Choice # 1.Add 2.Subtract 3. Multiply 4.Divide ('1', '2', '3', '4') # Enter Two Values # Get Answer # Next Calculation : (yes/no) # ---------------------------------- # This function adds two numbers def add(x, y): return x + y # This function subtracts two numbers def subtract...
24.571429
70
0.543282
4116d90fa6182401e94186ac528e167141501129
800
py
Python
dev_tools/__init__.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
dev_tools/__init__.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
dev_tools/__init__.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2018 The Cirq Developers # # 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 or agreed to in ...
40
74
0.76625
025801b898e3aea80be11e1b1ffa6e05613ad3ae
2,986
py
Python
source/scripts/aggregatePhyloGenotypeDetailFiles.py
emilydolson/interpreting_the_tape_of_life
48fd46f3cd2a7f07ce4ea1fd6fa120b520e34925
[ "MIT" ]
null
null
null
source/scripts/aggregatePhyloGenotypeDetailFiles.py
emilydolson/interpreting_the_tape_of_life
48fd46f3cd2a7f07ce4ea1fd6fa120b520e34925
[ "MIT" ]
null
null
null
source/scripts/aggregatePhyloGenotypeDetailFiles.py
emilydolson/interpreting_the_tape_of_life
48fd46f3cd2a7f07ce4ea1fd6fa120b520e34925
[ "MIT" ]
null
null
null
''' Script to make a bank of treatment, run_id, org_id, sequence, task profile for all genotype_details-*.dat files in given data directory. ''' import argparse, os, copy, errno, csv, subprocess, sys tasks = ["not", "nand", "and", "ornot", "or", "andnot", "nor", "xor", "equals"] def ParseDetailFile(detail_fpath): ...
38.779221
154
0.600134
5ed7f241755027fb15facd4f2792c4695705498d
3,258
py
Python
components/aws/sagemaker/model/src/create_model.py
kevinbache/pipelines
02f5bc08ffb17ab955d497fde6fbbc1a5d6fcde6
[ "Apache-2.0" ]
3
2019-09-18T01:33:27.000Z
2021-06-09T08:19:10.000Z
components/aws/sagemaker/model/src/create_model.py
kevinbache/pipelines
02f5bc08ffb17ab955d497fde6fbbc1a5d6fcde6
[ "Apache-2.0" ]
12
2020-09-26T01:03:09.000Z
2022-03-03T23:12:24.000Z
components/aws/sagemaker/model/src/create_model.py
kevinbache/pipelines
02f5bc08ffb17ab955d497fde6fbbc1a5d6fcde6
[ "Apache-2.0" ]
5
2020-08-31T08:48:46.000Z
2021-11-26T07:29:04.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
67.875
245
0.760589
2f929dde9f591cec996faeda2cd7a602136c64af
751
py
Python
gcp-bigtable/tests/conftest.py
tsungchih/learning-gcp
30890c5042a89767ece7d0087152b87aa529130c
[ "Apache-2.0" ]
null
null
null
gcp-bigtable/tests/conftest.py
tsungchih/learning-gcp
30890c5042a89767ece7d0087152b87aa529130c
[ "Apache-2.0" ]
null
null
null
gcp-bigtable/tests/conftest.py
tsungchih/learning-gcp
30890c5042a89767ece7d0087152b87aa529130c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import pytest def pytest_addoption(parser): parser.addoption( "--projectid", action="store", help="The project ID on GCP.") parser.addoption( "--instanceid", action="store", help="The instance ID of Bigtable on GCP.") parser.addoption...
21.457143
51
0.640479
82c49bc26a352bdde2cfcbaa57e1408945920896
2,384
py
Python
test_library/users/tests/test_views.py
fr019/test_library
39fa1086b498194e30548c7abe444b346d827ac8
[ "MIT" ]
null
null
null
test_library/users/tests/test_views.py
fr019/test_library
39fa1086b498194e30548c7abe444b346d827ac8
[ "MIT" ]
null
null
null
test_library/users/tests/test_views.py
fr019/test_library
39fa1086b498194e30548c7abe444b346d827ac8
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import AnonymousUser from django.http.response import Http404 from django.test import RequestFactory from test_library.users.models import User from test_library.users.tests.factories import UserFactory from test_library.users.views import ( UserRedirectView, UserU...
29.8
74
0.675336
a304065bcb143e8c672c2c9ff5cce350cc38e0c7
1,428
py
Python
renewable_energy_analysis/cleaning/gdp.py
Batto1300/renewable-energy-analysis
0825f024779a9469ac46175a80069f2e3ae0943a
[ "MIT" ]
1
2018-11-25T14:46:21.000Z
2018-11-25T14:46:21.000Z
renewable_energy_analysis/cleaning/gdp.py
Batto1300/renewable-energy-analysis
0825f024779a9469ac46175a80069f2e3ae0943a
[ "MIT" ]
4
2018-10-10T14:48:54.000Z
2018-11-20T12:10:30.000Z
renewable_energy_analysis/cleaning/gdp.py
Batto1300/renewable-energy-analysis
0825f024779a9469ac46175a80069f2e3ae0943a
[ "MIT" ]
1
2018-12-18T06:38:08.000Z
2018-12-18T06:38:08.000Z
import pandas as pd import file_names as fn # take absolute non os-dependant paths from file_names GDP_PATH = fn.OriginalPaths.GDP C_GDP_PATH = fn.CleanedPaths.GDP YEARS_PATH = fn.CleanedPaths.YEARS COUNTRIES_PATH = fn.CleanedPaths.COUNTRIES # define hardcoded strings IND_COL_NAME = 'IndicatorName' GDP_IND_VALUE = 'Gr...
38.594595
81
0.787115
183c0828160314b2e508721fde5f3001ae274c48
244
py
Python
02.Sort/NY/B1181.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
02.Sort/NY/B1181.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
02.Sort/NY/B1181.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
# 백준 1181 - 단어 정렬 # 후기 # - 더 효과적인 방법이 있나? 흠 N = int(input()) words = [] for i in range (N) : word = input() words.append((len(word), word)) words = list(set(words)) words.sort() for i in range (len(words)) : print(words[i][1])
13.555556
35
0.561475
e4bcccdc3d300dc82a19d549615d703190c2907a
160
py
Python
swagger_server/models/__init__.py
DITAS-Project/data-utility-evaluator
5333454652d16b619239a9cd4d9b3fec3476710e
[ "Apache-2.0" ]
null
null
null
swagger_server/models/__init__.py
DITAS-Project/data-utility-evaluator
5333454652d16b619239a9cd4d9b3fec3476710e
[ "Apache-2.0" ]
null
null
null
swagger_server/models/__init__.py
DITAS-Project/data-utility-evaluator
5333454652d16b619239a9cd4d9b3fec3476710e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa from __future__ import absolute_import # import models into model package from swagger_server.models.blueprint import Blueprint
22.857143
53
0.81875
222b9b8c3fefe22864412328148ff19cde612d11
4,096
py
Python
setup.py
Manikantan22/incubator-superset
ec325c871e60ae2a050aae595b430d6fc2888d1a
[ "Apache-2.0" ]
1
2019-09-12T03:49:22.000Z
2019-09-12T03:49:22.000Z
setup.py
Manikantan22/incubator-superset
ec325c871e60ae2a050aae595b430d6fc2888d1a
[ "Apache-2.0" ]
null
null
null
setup.py
Manikantan22/incubator-superset
ec325c871e60ae2a050aae595b430d6fc2888d1a
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.751938
85
0.617432
14178a0c23ab75d878d0ed16af702b77229abc9f
4,199
py
Python
lnbits/extensions/withdraw/crud.py
taxmeifyoucan/lnbits
19ae1ddf0d50b507135c418af9d5becc336d5ce3
[ "MIT" ]
258
2020-04-27T21:36:21.000Z
2021-10-30T23:24:48.000Z
lnbits/extensions/withdraw/crud.py
taxmeifyoucan/lnbits
19ae1ddf0d50b507135c418af9d5becc336d5ce3
[ "MIT" ]
283
2020-04-27T17:23:12.000Z
2021-11-01T10:07:20.000Z
lnbits/extensions/withdraw/crud.py
taxmeifyoucan/lnbits
19ae1ddf0d50b507135c418af9d5becc336d5ce3
[ "MIT" ]
109
2020-04-28T06:00:17.000Z
2021-10-13T02:48:28.000Z
from datetime import datetime from typing import List, Optional, Union from lnbits.helpers import urlsafe_short_hash from . import db from .models import WithdrawLink, HashCheck async def create_withdraw_link( *, wallet_id: str, title: str, min_withdrawable: int, max_withdrawable: int, uses: ...
26.24375
87
0.577757
3dfcc877f5e66686e87c813ae22785081d1ab526
4,872
py
Python
meerk40t/core/node/elem_line.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
meerk40t/core/node/elem_line.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
meerk40t/core/node/elem_line.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
from copy import copy from meerk40t.core.node.node import Node, Linecap, Linejoin, Fillrule from meerk40t.svgelements import Path class LineNode(Node): """ LineNode is the bootstrapped node type for the 'elem line' type. """ def __init__( self, shape=None, matrix=None, ...
32.697987
80
0.569992
320cea4f657537b91958004f561ae5f843c87c65
18,376
py
Python
vnpy/trader/gateway/futuGateway/futuGateway.py
tanzedan/vnpy
16c616ece1597a5766bf2fb3529f5789958330b6
[ "MIT" ]
4
2018-04-05T15:35:02.000Z
2022-01-04T11:23:19.000Z
vnpy/trader/gateway/futuGateway/futuGateway.py
motw2014/vnpy
16c616ece1597a5766bf2fb3529f5789958330b6
[ "MIT" ]
null
null
null
vnpy/trader/gateway/futuGateway/futuGateway.py
motw2014/vnpy
16c616ece1597a5766bf2fb3529f5789958330b6
[ "MIT" ]
1
2019-03-17T14:36:08.000Z
2019-03-17T14:36:08.000Z
# encoding: UTF-8 ''' 富途证券的gateway接入 ''' import json from collections import OrderedDict from threading import Thread from time import sleep from datetime import datetime from copy import copy import futuquant as ft from futuquant.open_context import (RET_ERROR, RET_OK, StockQuote...
34.73724
98
0.469525
0f7e31cf8fba2c7660a89034458ef83d704f3742
1,788
py
Python
django_before/json_settings.py
alekseyr/django-before
f1981ea332a7caf8bdcb9d214a27a3c1555b4f39
[ "MIT" ]
1
2016-05-20T09:37:39.000Z
2016-05-20T09:37:39.000Z
django_before/json_settings.py
alekseyr/django-before
f1981ea332a7caf8bdcb9d214a27a3c1555b4f39
[ "MIT" ]
null
null
null
django_before/json_settings.py
alekseyr/django-before
f1981ea332a7caf8bdcb9d214a27a3c1555b4f39
[ "MIT" ]
null
null
null
import json from .exceptions import DjangoBeforeImproperlyConfigured, DjangoBeforeNotImplemented def make_json_settings_reader(settings_filename): reader = _JSONSettingsReader(settings_filename) return reader class _JSONSettingsReader(object): def __init__(self, settings_filename): self.settings...
38.869565
121
0.619128
82d40660c9bf06ad163b1c6a34e757abdef25915
93,963
py
Python
modules/pymol/menu.py
kingdavid72/Pymol
91ddc53199f40f12d186dee2a3745cd777a57877
[ "CNRI-Python" ]
null
null
null
modules/pymol/menu.py
kingdavid72/Pymol
91ddc53199f40f12d186dee2a3745cd777a57877
[ "CNRI-Python" ]
null
null
null
modules/pymol/menu.py
kingdavid72/Pymol
91ddc53199f40f12d186dee2a3745cd777a57877
[ "CNRI-Python" ]
null
null
null
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* Copyright (c) Schrodinger, LLC. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* -------...
56.434234
168
0.375573
94e26c07af05ecd3333606dafba9b1a75a2fe459
14,999
py
Python
experimenter/evaluation.py
Forethought-Technologies/experimenter
d3775b405ca1fa06f24478996a4330d43f1e954e
[ "MIT" ]
null
null
null
experimenter/evaluation.py
Forethought-Technologies/experimenter
d3775b405ca1fa06f24478996a4330d43f1e954e
[ "MIT" ]
null
null
null
experimenter/evaluation.py
Forethought-Technologies/experimenter
d3775b405ca1fa06f24478996a4330d43f1e954e
[ "MIT" ]
1
2021-04-23T21:52:31.000Z
2021-04-23T21:52:31.000Z
import logging import numpy as np import torch from experimenter.utils import utils as U class Accuracy: def __call__(self, prediction: torch.Tensor, label: torch.Tensor): """Get accuracy of a multi-class classification for a batch Args: prediction: Batch of shape (batch_size, num_c...
41.093151
99
0.525502
e879737d5c8b5e435e33afc5d6b7e6df34a643ec
3,773
py
Python
utilities/bin_driams.py
BorgwardtLab/maldi-learn
8333b6facde7325e36adb2d065ccb6d4f841b4e3
[ "BSD-3-Clause" ]
11
2020-07-30T15:33:31.000Z
2022-03-18T08:26:20.000Z
utilities/bin_driams.py
BorgwardtLab/maldi-learn
8333b6facde7325e36adb2d065ccb6d4f841b4e3
[ "BSD-3-Clause" ]
1
2021-01-18T04:55:14.000Z
2021-01-19T10:18:34.000Z
utilities/bin_driams.py
BorgwardtLab/maldi-learn
8333b6facde7325e36adb2d065ccb6d4f841b4e3
[ "BSD-3-Clause" ]
1
2021-09-07T04:27:32.000Z
2021-09-07T04:27:32.000Z
"""Bin the DRIAMS data set and save it. The purpose of this script is to perform binning of the DRIAMS data set and store the resulting spectra as preprocessed files. This speeds up a large number of downstream classification tasks. """ import argparse import dotenv import os import pandas as pd from maldi_learn.dr...
30.674797
78
0.594487
34a539c28ec1c5eb50cf43b974a8061039292a86
20,483
py
Python
src/katsdpmetawriter/__init__.py
ska-sa/katsdpmetawriter
80ef5ea910882ea25c1f2ad06a74102f9fb246b8
[ "BSD-3-Clause" ]
null
null
null
src/katsdpmetawriter/__init__.py
ska-sa/katsdpmetawriter
80ef5ea910882ea25c1f2ad06a74102f9fb246b8
[ "BSD-3-Clause" ]
3
2020-06-09T20:08:08.000Z
2021-11-08T14:24:24.000Z
src/katsdpmetawriter/__init__.py
ska-sa/katsdpmetawriter
80ef5ea910882ea25c1f2ad06a74102f9fb246b8
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # Copyright (c) 2018-2020, National Research Foundation (SARAO) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the License at # # ...
41.887526
98
0.645169
0dd0b0e6dc3177a9d89a9cea82157e4d92e5abb2
1,502
py
Python
Tests/interop/net/loadorder/t3a.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
2
2019-09-21T22:22:30.000Z
2020-05-09T12:45:51.000Z
Tests/interop/net/loadorder/t3a.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/interop/net/loadorder/t3a.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
1
2019-09-18T05:37:46.000Z
2019-09-18T05:37:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of t...
29.45098
97
0.64514
6badf5c4f0ad230ab3b44cb7b3de1c008154c278
280,762
py
Python
com/vmware/nsx/node/services_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/nsx/node/services_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/nsx/node/services_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2020 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.nsx.node.services. #----------------------------------------------------------------...
43.725588
144
0.618795
be2366e41173814f53272b867662b8d68ad4cff0
9,743
py
Python
pysat/tests/test_constellation.py
pysat/pysat
4d12a09ea585b88d54560413e03cae9289113718
[ "BSD-3-Clause" ]
68
2019-09-18T19:08:07.000Z
2022-03-28T23:22:04.000Z
pysat/tests/test_constellation.py
iamaSam/pysat
4d12a09ea585b88d54560413e03cae9289113718
[ "BSD-3-Clause" ]
603
2019-09-18T15:24:37.000Z
2022-03-30T20:13:43.000Z
pysat/tests/test_constellation.py
iamaSam/pysat
4d12a09ea585b88d54560413e03cae9289113718
[ "BSD-3-Clause" ]
24
2015-04-08T09:33:51.000Z
2019-09-06T22:01:34.000Z
#!/usr/bin/env python # Full license can be found in License.md # Full author list can be found in .zenodo.json file # DOI:10.5281/zenodo.1199703 # ---------------------------------------------------------------------------- import datetime as dt import pandas as pds import pytest import pysat from pysat import const...
36.490637
79
0.626809
b03ce1807ab1dd43c76d3a20691480d60319e240
373
py
Python
rx/core/abc/disposable.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
rx/core/abc/disposable.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
rx/core/abc/disposable.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
from abc import ABC, abstractmethod class Disposable(ABC): """Disposable abstract base class. Untyped.""" @abstractmethod def dispose(self): raise NotImplementedError def __enter__(self): """Context management protocol.""" def __exit__(self, typ, value, traceback): """Co...
21.941176
50
0.651475
c4cdd0149d036a13946d2e0c851ef613eee225f4
2,892
py
Python
Lib/svpelab/pvsim_manual.py
jayatsandia/svp_energy_lab
5fb7ac244f44e5a4c419ed7bae8b573bf2b7e31c
[ "Apache-2.0" ]
null
null
null
Lib/svpelab/pvsim_manual.py
jayatsandia/svp_energy_lab
5fb7ac244f44e5a4c419ed7bae8b573bf2b7e31c
[ "Apache-2.0" ]
null
null
null
Lib/svpelab/pvsim_manual.py
jayatsandia/svp_energy_lab
5fb7ac244f44e5a4c419ed7bae8b573bf2b7e31c
[ "Apache-2.0" ]
3
2020-04-05T08:28:21.000Z
2020-12-07T22:58:56.000Z
""" Copyright (c) 2017, Sandia National Labs and SunSpec Alliance All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of cond...
37.076923
97
0.743776
605474a43d83f3b4a32d466410dc14e070ac6a5a
18,643
py
Python
util/scripts/recparse.py
Jonathan727/javarosa
6c1c2e62840511430ef22fbb550d3f3f605a1a78
[ "Apache-2.0" ]
10
2017-03-24T20:26:54.000Z
2020-08-28T18:33:34.000Z
util/scripts/recparse.py
grzesiek2010/javarosa
3eb73b5c8c1d56b9bd635b1aca6a8e9ab1051fa9
[ "Apache-2.0" ]
280
2016-06-27T14:46:57.000Z
2022-03-31T14:39:44.000Z
util/scripts/recparse.py
grzesiek2010/javarosa
3eb73b5c8c1d56b9bd635b1aca6a8e9ab1051fa9
[ "Apache-2.0" ]
10
2016-07-19T05:53:07.000Z
2020-10-28T22:02:42.000Z
import struct from datetime import datetime #TODO: if there is an error when deserializing the record, would be VERY nice to return the partial #deserialization of the record up to that point class Datum: def __init__ (self, type, val): self.type = type self.val = val def __repr__ (self): ...
34.207339
155
0.600654
9acba265333cb06442cf3ac8c7f6c48334754143
4,122
py
Python
tests/test_authorized.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
tests/test_authorized.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
tests/test_authorized.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
import pytest from django.contrib.auth import get_user_model from creator.studies.models import Membership from creator.studies.factories import StudyFactory from creator.files.factories import FileFactory User = get_user_model() @pytest.fixture def versions(db, clients, mocker): client = clients.get("Administra...
32.203125
74
0.640708
7f997142897fab82f79b1141697eed4a1abb9ce6
14,400
py
Python
senha_main.py
Joao-vap/Jogo_senha-em-Python
c77f0de177eb6b98341da6da0a3f774cdde4be81
[ "MIT" ]
null
null
null
senha_main.py
Joao-vap/Jogo_senha-em-Python
c77f0de177eb6b98341da6da0a3f774cdde4be81
[ "MIT" ]
null
null
null
senha_main.py
Joao-vap/Jogo_senha-em-Python
c77f0de177eb6b98341da6da0a3f774cdde4be81
[ "MIT" ]
null
null
null
import pygame from pygame import display, event from pygame import image, transform import os import random from time import sleep DIM_TELA_Y = 512 DIM_TELA_X = 1024 DIM_INICIAR = [256, 64] DIM_INST = [138, 50] BOTOES = [x for x in os.listdir('cores') if x[-3:].lower() == 'png'] rodando = True injogo = True # defini...
37.894737
134
0.416597
2dfe8c9b4971547ea426c5fd3db92d9a6cf3575b
4,063
py
Python
src/name.py
silent1mezzo/lightsaber
e470be7fb84b810fe846ff0ede78d06bf69cd5e3
[ "MIT" ]
13
2020-08-12T12:04:19.000Z
2022-03-12T03:53:07.000Z
src/name.py
silent1mezzo/lightsaber
e470be7fb84b810fe846ff0ede78d06bf69cd5e3
[ "MIT" ]
46
2020-09-03T06:00:18.000Z
2022-03-25T10:03:53.000Z
src/name.py
silent1mezzo/lightsaber
e470be7fb84b810fe846ff0ede78d06bf69cd5e3
[ "MIT" ]
3
2021-08-11T19:12:37.000Z
2021-11-09T15:19:59.000Z
NAMES = [ "Sistry Harper", "Montileu Parlayy", "Anna Orion", "Baniss Woodle", "Leten Swiftflight", "Dre Folen", "Aslik Zhagel", "Andros Jien", "Sahdra Chan", "Saalia Sunfell", "Lya Cenvax", "Jauhzmynn Dymos", "Branada Picus", "Faris Hentz", "Cora Josto", "...
19.723301
26
0.547625
406c217b2848b56756a72c1e86a54833b9f74493
18,751
py
Python
django/http/__init__.py
alex/django-old
6f964c8f03e5d25c9e36898a001c8463f82fbb81
[ "BSD-3-Clause" ]
2
2015-11-05T06:07:13.000Z
2019-01-04T07:35:59.000Z
django/http/__init__.py
alex/django-old
6f964c8f03e5d25c9e36898a001c8463f82fbb81
[ "BSD-3-Clause" ]
null
null
null
django/http/__init__.py
alex/django-old
6f964c8f03e5d25c9e36898a001c8463f82fbb81
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import re import time from Cookie import BaseCookie, SimpleCookie, CookieError from pprint import pformat from urllib import urlencode from urlparse import urljoin try: # The mod_python version is more efficient, so try importing it first. from mod_python.util import parse_qsl except I...
35.580645
107
0.627327
629a33dad94b74044a1561f0363c41497213d7fb
135
py
Python
pyActionRec/__init__.py
Tikquuss/anet2016-cuhk
a742e1686fbeef8e35b7d792542f3b89aa46fa24
[ "BSD-2-Clause" ]
1
2020-10-28T08:24:17.000Z
2020-10-28T08:24:17.000Z
pyActionRec/__init__.py
Tikquuss/anet2016-cuhk
a742e1686fbeef8e35b7d792542f3b89aa46fa24
[ "BSD-2-Clause" ]
null
null
null
pyActionRec/__init__.py
Tikquuss/anet2016-cuhk
a742e1686fbeef8e35b7d792542f3b89aa46fa24
[ "BSD-2-Clause" ]
null
null
null
import os import sys sys.path.append(os.path.join(os.environ['ANET_HOME'], "pyActionRec")) from config import ANET_CFG import anet_db
19.285714
69
0.785185
14bb27a4f4c9c220858212df0cad15aefe388d1c
1,769
py
Python
utils/helpers.py
charlesxjyang/DeepGeyser
59f54c67667800f091d7af1805c04bbc36c7624b
[ "Apache-2.0" ]
null
null
null
utils/helpers.py
charlesxjyang/DeepGeyser
59f54c67667800f091d7af1805c04bbc36c7624b
[ "Apache-2.0" ]
null
null
null
utils/helpers.py
charlesxjyang/DeepGeyser
59f54c67667800f091d7af1805c04bbc36c7624b
[ "Apache-2.0" ]
null
null
null
import datetime from keras import models import pandas as pd from sklearn.externals import joblib #loads .tsv file and pickles it in data folder, returns panda dataframes def load_tsv(filename:str): #make sure in data folder if 'tsv' not in filename: filename = filename + '.tsv' if 'data' not in fi...
32.759259
72
0.661391
cdfecc0f536539f965bb5c555f0f12d77739f2be
132,268
py
Python
numpy/core/tests/test_numeric.py
touqir14/numpy
85e2ce980fa4883c1add983be924d5e16d3723ec
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_numeric.py
touqir14/numpy
85e2ce980fa4883c1add983be924d5e16d3723ec
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_numeric.py
touqir14/numpy
85e2ce980fa4883c1add983be924d5e16d3723ec
[ "BSD-3-Clause" ]
null
null
null
import sys import warnings import itertools import platform import pytest import math from decimal import Decimal import numpy as np from numpy.core import umath from numpy.random import rand, randint, randn from numpy.testing import ( assert_, assert_equal, assert_raises, assert_raises_regex, assert_array_equ...
38.205661
95
0.539624
400910476a451a3eb79a2e75b29b7e4856995d5e
3,029
py
Python
api/tacticalrmm/checks/migrations/0027_auto_20220401_2248.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
api/tacticalrmm/checks/migrations/0027_auto_20220401_2248.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
api/tacticalrmm/checks/migrations/0027_auto_20220401_2248.py
v2cloud/tacticalrmm
12f599f9749985f66ff9b559c5e5abd36064b182
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-04-01 22:48 from django.db import migrations, transaction from django.db.utils import IntegrityError from tacticalrmm.constants import CheckType def migrate_check_results(apps, schema_editor): Check = apps.get_model("checks", "Check") CheckResult = apps.get_model("checks...
37.395062
62
0.470782
f5a21ff61b0c9a0578d0621d66e2cf6f0606b510
658
py
Python
test/v0_1/test_base.py
mgorny/logfury
14ffc185d084084b068136a8c14354c38aa8ec8c
[ "BSD-3-Clause" ]
null
null
null
test/v0_1/test_base.py
mgorny/logfury
14ffc185d084084b068136a8c14354c38aa8ec8c
[ "BSD-3-Clause" ]
null
null
null
test/v0_1/test_base.py
mgorny/logfury
14ffc185d084084b068136a8c14354c38aa8ec8c
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from contextlib import contextmanager import logging import platform import six import unittest class TestBase(unittest.TestCase): def setUp(self): self.logger = logging.getLogger(__name__) self.base_logger_name = __name__ def _get_prefix(self): ...
22.689655
65
0.62462
dc5aa82d952e2133942126aaf6d6f4bad33c849b
9,905
py
Python
SMI_LSL/DataStreaming.py
ForSubmission/MailPhys
d11dc04802d69218ca49ef3b3452656197faaabc
[ "MIT" ]
1
2018-06-08T10:26:54.000Z
2018-06-08T10:26:54.000Z
SMI_LSL/DataStreaming.py
ForSubmission/MailPhys
d11dc04802d69218ca49ef3b3452656197faaabc
[ "MIT" ]
null
null
null
SMI_LSL/DataStreaming.py
ForSubmission/MailPhys
d11dc04802d69218ca49ef3b3452656197faaabc
[ "MIT" ]
2
2018-06-11T18:13:57.000Z
2019-05-12T07:26:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------- # # (c) Copyright 1997-2013, SensoMotoric Instruments GmbH, Alto University # # Permission is hereby granted, free of charge, to any person or # organization obtaining a copy of the sof...
37.236842
186
0.640485
dc571f87a1b938e912d0564ecaedb74ad407fd8c
9,430
py
Python
sympy/assumptions/sathandlers.py
ianmasc/sympy
f089bdc70cfa1e2aa6ecfdb6d568f37bd937bd5e
[ "BSD-3-Clause" ]
null
null
null
sympy/assumptions/sathandlers.py
ianmasc/sympy
f089bdc70cfa1e2aa6ecfdb6d568f37bd937bd5e
[ "BSD-3-Clause" ]
null
null
null
sympy/assumptions/sathandlers.py
ianmasc/sympy
f089bdc70cfa1e2aa6ecfdb6d568f37bd937bd5e
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from sympy.assumptions.ask import Q from sympy.core import (Add, Mul, Pow, Number, NumberSymbol, Symbol) from sympy.core.numbers import ImaginaryUnit from sympy.functions.elementary.complexes import Abs from sympy.logic.boolalg import (Equivalent, And, Or, Implies) from sympy.matric...
29.015385
92
0.621103
94d3161ea13718a6932dd7c7562c21b189c6992d
1,563
py
Python
module/module_load.py
hanbule/CPBypass2
b77dad8169679447678611dfe50788233d4115cf
[ "Apache-1.1" ]
110
2021-03-06T14:24:14.000Z
2022-03-20T19:38:13.000Z
module/module_load.py
cashtony/CPBypass2
db336a4f79868261bd5e8e8835f2b858472708d5
[ "Apache-1.1" ]
6
2021-03-08T10:21:39.000Z
2021-05-28T10:16:44.000Z
module/module_load.py
cashtony/CPBypass2
db336a4f79868261bd5e8e8835f2b858472708d5
[ "Apache-1.1" ]
24
2021-03-06T14:24:51.000Z
2022-03-11T14:24:19.000Z
# # Copyright (c) 2019-2020 checkra1n team # This file is part of pongoOS. # # 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 # t...
41.131579
80
0.752399
14c7f392ef4dbbfc9876d16d10c726097f4d9d73
14,161
py
Python
test/unit/test_deps.py
donaldrauscher/dbt
73d0308e3570b25a7a8c8d32fbcdaaf813c94179
[ "Apache-2.0" ]
1
2019-10-18T01:16:33.000Z
2019-10-18T01:16:33.000Z
test/unit/test_deps.py
donaldrauscher/dbt
73d0308e3570b25a7a8c8d32fbcdaaf813c94179
[ "Apache-2.0" ]
null
null
null
test/unit/test_deps.py
donaldrauscher/dbt
73d0308e3570b25a7a8c8d32fbcdaaf813c94179
[ "Apache-2.0" ]
null
null
null
import unittest from unittest import mock import dbt.exceptions from dbt.task.deps import ( GitUnpinnedPackage, LocalUnpinnedPackage, RegistryUnpinnedPackage, LocalPackageContract, GitPackageContract, RegistryPackageContract, resolve_packages ) from dbt.contracts.project import PackageConfig from dbt.semve...
35.850633
100
0.547207
8d7b657f2c0ead05c92eaac01ef7421bf64bac4b
5,018
py
Python
melusine/prepare_email/cleaning.py
AntoineSimoulin/melusine
bd6369d446c9f2c12789ed5fe4465f2f47a74790
[ "Apache-2.0" ]
1
2020-04-09T17:08:04.000Z
2020-04-09T17:08:04.000Z
melusine/prepare_email/cleaning.py
ibrahim85/melusine
bfd0ad7ee9968c247e86ef7ec15ccf363d212141
[ "Apache-2.0" ]
null
null
null
melusine/prepare_email/cleaning.py
ibrahim85/melusine
bfd0ad7ee9968c247e86ef7ec15ccf363d212141
[ "Apache-2.0" ]
null
null
null
""" Cleaning of the body and the header """ import unidecode, unicodedata import re from melusine.config import ConfigJsonReader conf_reader = ConfigJsonReader() config = conf_reader.get_config_file() REGEX_CLEAN = config["regex"]['cleaning'] regex_flags_dict = REGEX_CLEAN["flags_dict"] regex_clean_header_dict = REGE...
26
116
0.645476
34dc60c6ce29961e8308d5bc55714578eaccdfe0
36
py
Python
app/VertebraSegmentation/net/data/__init__.py
z0978916348/Localization_and_Segmentation
1a80d9730dad7ede8c3b92793e85a979915a2fad
[ "Unlicense", "MIT" ]
6
2020-09-17T04:17:32.000Z
2021-09-02T03:40:10.000Z
app/VertebraSegmentation/net/data/__init__.py
z0978916348/Localization_and_Segmentation
1a80d9730dad7ede8c3b92793e85a979915a2fad
[ "Unlicense", "MIT" ]
1
2021-01-25T06:25:14.000Z
2021-02-25T02:33:49.000Z
app/VertebraSegmentation/net/data/__init__.py
z0978916348/Localization_and_Segmentation
1a80d9730dad7ede8c3b92793e85a979915a2fad
[ "Unlicense", "MIT" ]
null
null
null
from .dataset import VertebraDataset
36
36
0.888889
bca437f35cc417538a99c8da65ef38d69f87c64e
27,563
py
Python
mr_uplift/mr_uplift.py
Ibotta/mr_uplift
e1facd39a87683dfdeaf7b08336e0ce781ff87cf
[ "Apache-2.0" ]
48
2020-04-22T16:57:55.000Z
2022-02-02T00:21:13.000Z
mr_uplift/mr_uplift.py
Ibotta/mr_uplift
e1facd39a87683dfdeaf7b08336e0ce781ff87cf
[ "Apache-2.0" ]
6
2020-05-01T18:15:22.000Z
2022-02-21T07:26:18.000Z
mr_uplift/mr_uplift.py
Ibotta/mr_uplift
e1facd39a87683dfdeaf7b08336e0ce781ff87cf
[ "Apache-2.0" ]
4
2020-04-25T08:41:34.000Z
2022-01-08T11:21:23.000Z
import numpy as np import pandas as pd import dill import copy from tensorflow.keras.models import load_model from mr_uplift.keras_model_functionality import train_model_multi_output_w_tmt, gridsearch_mo_optim, get_random_weights, treatments_to_text from mr_uplift.erupt import get_erupts_curves_aupc, get_best_tmts, eru...
42.339478
155
0.64456
3b5f8ab06d6515dcac2ef2f1cf714ba7d9a63841
13,601
py
Python
nova/tests/unit/scheduler/test_weights.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/scheduler/test_weights.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/scheduler/test_weights.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2012 OpenStack Foundation # All Rights Reserved. # # 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...
40.120944
78
0.621793
220a12a51a49e8b0f770419de5da114152a1053a
32,556
py
Python
mne/decoding/transformer.py
joewalter/mne-python
b0629bea7f5e8e94d9e2e889f45a35f9657e6dbc
[ "BSD-3-Clause" ]
null
null
null
mne/decoding/transformer.py
joewalter/mne-python
b0629bea7f5e8e94d9e2e889f45a35f9657e6dbc
[ "BSD-3-Clause" ]
null
null
null
mne/decoding/transformer.py
joewalter/mne-python
b0629bea7f5e8e94d9e2e889f45a35f9657e6dbc
[ "BSD-3-Clause" ]
null
null
null
# Authors: Mainak Jas <mainak@neuro.hut.fi> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Romain Trachel <trachelr@gmail.com> # # License: BSD (3-clause) import numpy as np from .mixin import TransformerMixin from .base import BaseEstimator from .. import pick_types from ..filter...
37.249428
97
0.566378
835ced0050372441aaebf4898848d03008a5c4d1
3,445
py
Python
machine_learning_course/lab03.py
wojdzi1607/MachineLearningCourse
0b883a00c51146863351861c48ed81e571e942c4
[ "MIT" ]
null
null
null
machine_learning_course/lab03.py
wojdzi1607/MachineLearningCourse
0b883a00c51146863351861c48ed81e571e942c4
[ "MIT" ]
null
null
null
machine_learning_course/lab03.py
wojdzi1607/MachineLearningCourse
0b883a00c51146863351861c48ed81e571e942c4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn import model_selection from sklearn import metrics from sklearn import preprocessing from sklearn import svm from sklearn import linear_model from sklearn import tree from sklearn import ensemble from mlxtend.plotting import ...
30.219298
122
0.701597