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
64d944653978f4300eb65aebe5ed000c73c7f7d4
6,840
py
Python
is_data_handler.py
AlexanderFengler/nn_likelihoods
2d0f63a63eb50f026b9492acba14708b23dfcaa4
[ "MIT" ]
2
2019-08-19T15:48:01.000Z
2020-03-13T12:47:23.000Z
is_data_handler.py
AlexanderFengler/nn_likelihoods
2d0f63a63eb50f026b9492acba14708b23dfcaa4
[ "MIT" ]
null
null
null
is_data_handler.py
AlexanderFengler/nn_likelihoods
2d0f63a63eb50f026b9492acba14708b23dfcaa4
[ "MIT" ]
6
2019-06-13T04:46:51.000Z
2021-01-27T18:26:59.000Z
import os import pickle import numpy as np import re from string import ascii_letters from datetime import datetime import argparse import gzip def collect_datasets_is(folder = [], model = [], ndata = [], nsubsample = []): # Load in param...
44.705882
213
0.575585
0
0
0
0
0
0
0
0
2,350
0.343567
64da409d0683b2127b58982d077ae000d035597d
9,239
py
Python
apps/api/tests/test_user.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
null
null
null
apps/api/tests/test_user.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
9
2021-03-19T11:43:09.000Z
2022-03-12T00:38:43.000Z
apps/api/tests/test_user.py
onyxhealth/safhir-vmi
60ba90e9e8ba00347e0dc32e3061da5285df4ade
[ "Apache-2.0" ]
null
null
null
from datetime import date from django.contrib.auth import get_user_model from django.test import Client from oauth2_provider.models import get_application_model, get_access_token_model from apps.accounts.models import UserProfile from .base import BaseTestCase User = get_user_model() Application = get_application_mode...
39.652361
98
0.535556
8,873
0.960385
0
0
0
0
0
0
2,901
0.313995
64da5c521fe950343aab3131bdce93d575050b5a
478
py
Python
privacydates/mixins.py
EMPRI-DEVOPS/django-privacydates
609ccd312a2d682575f229a4825670cfc97cd1a3
[ "BSD-3-Clause" ]
null
null
null
privacydates/mixins.py
EMPRI-DEVOPS/django-privacydates
609ccd312a2d682575f229a4825670cfc97cd1a3
[ "BSD-3-Clause" ]
null
null
null
privacydates/mixins.py
EMPRI-DEVOPS/django-privacydates
609ccd312a2d682575f229a4825670cfc97cd1a3
[ "BSD-3-Clause" ]
null
null
null
class VanishingDateMixIn(): """The VanishingMixIn is used to register Signals for deletion events, so all registered VanishingDateTime will be deleted. Inherit it in every class/Model where VanishingDateTime is used. Otherwise the VanishingDateTime-Instances are not registered and therefore not de...
36.769231
68
0.740586
474
0.991632
0
0
0
0
0
0
432
0.903766
64da7ea65369f204e730539cae624275e47b12c4
5,094
py
Python
context/app/routes_auth.py
schwenk102/portal-ui
b40fd10e2d6568a9c419c06ba0759da295035cbd
[ "MIT" ]
null
null
null
context/app/routes_auth.py
schwenk102/portal-ui
b40fd10e2d6568a9c419c06ba0759da295035cbd
[ "MIT" ]
null
null
null
context/app/routes_auth.py
schwenk102/portal-ui
b40fd10e2d6568a9c419c06ba0759da295035cbd
[ "MIT" ]
null
null
null
from urllib.parse import urlencode from flask import ( Blueprint, make_response, current_app, url_for, request, redirect, render_template, session) import requests import globus_sdk # This is mostly copy-and-paste from # https://globus-sdk-python.readthedocs.io/en/stable/examples/three_legged_oauth/ bluepr...
35.131034
97
0.667452
0
0
0
0
3,744
0.734982
0
0
2,414
0.473891
64daf0db3812e4c5d3198c3d2c5299bf8eb133ed
5,208
py
Python
data/preprocess/nc_interpolation.py
Skye777/transformer
177834bcb55e59f8ea0fbe666734c148effbec8d
[ "Apache-2.0" ]
null
null
null
data/preprocess/nc_interpolation.py
Skye777/transformer
177834bcb55e59f8ea0fbe666734c148effbec8d
[ "Apache-2.0" ]
null
null
null
data/preprocess/nc_interpolation.py
Skye777/transformer
177834bcb55e59f8ea0fbe666734c148effbec8d
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import matplotlib.pyplot as plt import xarray from hparams import Hparams hparams = Hparams() parser = hparams.parser hp = parser.parse_args() dic = [ [f'{hp.observe_dataset_dir}/meta-data/sst.mnmean.nc', f'{hp.observe_dataset_dir}/interp-data/sst.nc', 'sst', 'lat'], [f'{hp.observ...
36.166667
147
0.624424
0
0
0
0
0
0
0
0
4,244
0.8149
64daf61f1b459c77ae842abee1c37e78d14fc111
8,283
py
Python
neutron_taas/tests/unit/taas_client/osc/test_osc_tap_service.py
openstack/tap-as-a-service
c9d046843565b3af514169c26e5893dbe86a9b98
[ "Apache-2.0" ]
68
2015-10-18T02:57:10.000Z
2022-02-22T11:33:25.000Z
neutron_taas/tests/unit/taas_client/osc/test_osc_tap_service.py
openstack/tap-as-a-service
c9d046843565b3af514169c26e5893dbe86a9b98
[ "Apache-2.0" ]
null
null
null
neutron_taas/tests/unit/taas_client/osc/test_osc_tap_service.py
openstack/tap-as-a-service
c9d046843565b3af514169c26e5893dbe86a9b98
[ "Apache-2.0" ]
27
2015-11-11T02:00:35.000Z
2020-03-07T03:36:33.000Z
# All Rights Reserved 2020 # # 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 t...
36.013043
79
0.645056
6,576
0.793915
0
0
0
0
0
0
1,088
0.131353
64dc127b8f61573f77c1944fb95158b8208f8c2e
600
py
Python
auth/Auth.py
fede-da/PageDownloader
2344e2307ea374690ba05923056fff9e59c9ad12
[ "MIT" ]
null
null
null
auth/Auth.py
fede-da/PageDownloader
2344e2307ea374690ba05923056fff9e59c9ad12
[ "MIT" ]
null
null
null
auth/Auth.py
fede-da/PageDownloader
2344e2307ea374690ba05923056fff9e59c9ad12
[ "MIT" ]
null
null
null
from auth.pwdLine import PwdLine from auth.userLine import UserLine from auth.enabler import Enabler from tkinter import Tk class Auth: ul: UserLine pl: PwdLine en: Enabler def __init__(self, tk: Tk, row: int, col: int, w: int): self.ul = UserLine("disabled", tk, row+1, col, w) self.p...
27.272727
59
0.598333
473
0.788333
0
0
0
0
0
0
34
0.056667
64dd3848949598fcdf3c2e10b7873c7391e20401
782
py
Python
setup.py
soulless-viewer/w3cpull
acc5a564564a2cd256cc32f598f4551c70c17775
[ "MIT" ]
1
2020-11-19T21:09:00.000Z
2020-11-19T21:09:00.000Z
setup.py
soulless-viewer/w3cpull
acc5a564564a2cd256cc32f598f4551c70c17775
[ "MIT" ]
null
null
null
setup.py
soulless-viewer/w3cpull
acc5a564564a2cd256cc32f598f4551c70c17775
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md', encoding='utf-8') as f: readme = f.read() setup( name="w3cpull", version="1.1.1", author="Mikalai Lisitsa", author_email="Mikalai.Lisitsa@ibm.com", url="https://github.com/soulless-viewer/w3cpull", description="w3cpull is a...
27.928571
86
0.640665
0
0
0
0
0
0
0
0
328
0.419437
64dd62196969f76ce749b40ce7bdcc2fcddb001f
2,341
py
Python
noel/noel/main.py
jonparrott/noel
48d54df340efbcff00ba0c2db587301199fbc572
[ "Apache-2.0" ]
66
2016-02-11T04:22:52.000Z
2018-01-14T22:03:55.000Z
noel/noel/main.py
theacodes/noel
48d54df340efbcff00ba0c2db587301199fbc572
[ "Apache-2.0" ]
null
null
null
noel/noel/main.py
theacodes/noel
48d54df340efbcff00ba0c2db587301199fbc572
[ "Apache-2.0" ]
8
2016-03-26T06:21:17.000Z
2018-04-23T13:47:38.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.442857
80
0.70739
0
0
0
0
0
0
0
0
1,170
0.499786
b379b19bf85788ca37275f4904081e4ad7396d67
567
py
Python
bkmus_api/bkmus_copyr.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
1
2020-11-24T05:47:55.000Z
2020-11-24T05:47:55.000Z
bkmus_api/bkmus_copyr.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
null
null
null
bkmus_api/bkmus_copyr.py
mbakija/bkmuseum_xstitch_bot
07de75a23d48fafae34ebda60a82ba9973386be1
[ "MIT" ]
null
null
null
# print copyright restrictions: 0 = not restricted, 1 = in copyright # that said, several pieces (particularly in Contemporary Art collection) # do have copyright notices on them even if copyright restrictions == 0 # sorting by "rights_type": "name" might be more clarifying, but the number of # But I'd argue this use ...
37.8
79
0.75485
0
0
0
0
0
0
0
0
481
0.848325
b379e885d5afb3236202408bc7d3c8933c443206
1,243
py
Python
parseq/scripts_insert/util.py
lukovnikov/parseq
65a4a2444d78779c3255e70a7897f77e73cdcdda
[ "MIT" ]
1
2022-01-21T16:08:08.000Z
2022-01-21T16:08:08.000Z
parseq/scripts_insert/util.py
lukovnikov/parseq
65a4a2444d78779c3255e70a7897f77e73cdcdda
[ "MIT" ]
null
null
null
parseq/scripts_insert/util.py
lukovnikov/parseq
65a4a2444d78779c3255e70a7897f77e73cdcdda
[ "MIT" ]
1
2020-08-19T07:09:44.000Z
2020-08-19T07:09:44.000Z
from nltk import Tree from parseq.grammar import tree_to_lisp_tokens def reorder_tree(x:Tree, orderless=None, typestr="arg:~type"): """ Reorders given tree 'x' such that if a parent label is in 'orderless', the order of the children is always as follows: - arg:~type goes first - other children are or...
36.558824
122
0.617056
0
0
0
0
0
0
0
0
297
0.238938
b37bde647afa0d22b730a31da03c3321ccc70480
3,887
py
Python
r_desktop.py
mtiday/open_remote_desktop_with_python
25dd0abed91cf45a7a1bd4961afec4cdcee1b039
[ "MIT" ]
null
null
null
r_desktop.py
mtiday/open_remote_desktop_with_python
25dd0abed91cf45a7a1bd4961afec4cdcee1b039
[ "MIT" ]
null
null
null
r_desktop.py
mtiday/open_remote_desktop_with_python
25dd0abed91cf45a7a1bd4961afec4cdcee1b039
[ "MIT" ]
null
null
null
"""This program will open a connection to a server you choose from a list, or specify a name not on the list. Build a text file named servers.txt and save it in the same directory this program is ran from. Please make sure not to have any extra spaces before or at the end of the name of the servers. One name per li...
35.66055
79
0.655518
0
0
0
0
0
0
0
0
2,116
0.544379
b37c92749148846755c132fe23eebba1cdbf7a9a
10,069
py
Python
external_apps/oauth/__init__.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
2
2016-05-09T04:57:34.000Z
2017-03-03T14:22:24.000Z
external_apps/oauth/__init__.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
null
null
null
external_apps/oauth/__init__.py
spreeker/democracygame
525139955cb739c295051f317ab670049511bcf8
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import collections import random import time import urllib import urlparse from urlencoding import escape, parse_qs, compose_qs OAUTH_VERSION = '1.0' TIMESTAMP_THRESHOLD = 300 NONCE_LENGTH = 10 class OAuthError(RuntimeError): """ Generic OAuthError for all error cases. """ pass clas...
34.961806
149
0.614063
9,853
0.978548
0
0
890
0.08839
0
0
6,404
0.636012
b37cd0f3a91feee812c43f65e8c47aeebe21eb18
5,244
py
Python
Pneumonia_Detection.py
sachin7695/Pneumonia_Diagnosis_using_XRays
5192f4d79efba1abc3684cb85e02b46a0b508ee2
[ "MIT" ]
null
null
null
Pneumonia_Detection.py
sachin7695/Pneumonia_Diagnosis_using_XRays
5192f4d79efba1abc3684cb85e02b46a0b508ee2
[ "MIT" ]
null
null
null
Pneumonia_Detection.py
sachin7695/Pneumonia_Diagnosis_using_XRays
5192f4d79efba1abc3684cb85e02b46a0b508ee2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D, MaxPooling2D, Dense,Flatten, Dropout,BatchNormalization, GlobalAveragePooling2D, ZeroPadding2D from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array fr...
22.899563
138
0.687071
0
0
0
0
0
0
0
0
967
0.184401
b37f2c8f6aee924b36740ecfe3b5cc25e0a3af9c
448
py
Python
masters/master.client.syzygy/master_source_cfg.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
masters/master.client.syzygy/master_source_cfg.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
masters/master.client.syzygy/master_source_cfg.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright (c) 2011 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. from master.chromium_git_poller_bb8 import ChromiumGitPoller def Update(config, active_master, c): syzygy_poller = ChromiumGitPoller( repourl='...
32
72
0.75
0
0
0
0
0
0
0
0
224
0.5
b37f577716d3e926a546fc670e6e43faf9d12dff
107
py
Python
tests/test_saltuser.py
saltastro/saltuser
a5c97b15b5c2cbf732fb957c9dd91ac04ac23373
[ "MIT" ]
null
null
null
tests/test_saltuser.py
saltastro/saltuser
a5c97b15b5c2cbf732fb957c9dd91ac04ac23373
[ "MIT" ]
null
null
null
tests/test_saltuser.py
saltastro/saltuser
a5c97b15b5c2cbf732fb957c9dd91ac04ac23373
[ "MIT" ]
null
null
null
"""Tests for `salt_user` package.""" def test_content(): """Bogus test.""" assert True is False
13.375
36
0.607477
0
0
0
0
0
0
0
0
53
0.495327
b37fac2f309e1b66cb79bc593af91e35a577cf67
557
py
Python
grocers_panel/migrations/0002_grocer_stripe_subscription.py
delitamakanda/GroceryApp
8b0eeb40197b480598928dd7e95e63ca180c9bf1
[ "MIT" ]
1
2021-05-25T02:46:42.000Z
2021-05-25T02:46:42.000Z
grocers_panel/migrations/0002_grocer_stripe_subscription.py
delitamakanda/GroceryApp
8b0eeb40197b480598928dd7e95e63ca180c9bf1
[ "MIT" ]
null
null
null
grocers_panel/migrations/0002_grocer_stripe_subscription.py
delitamakanda/GroceryApp
8b0eeb40197b480598928dd7e95e63ca180c9bf1
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-11-11 22:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('admin_panel', '0004_stripesubscription'), ('grocers_panel', '0001_initial'), ] operations = [ migra...
26.52381
130
0.657092
431
0.773788
0
0
0
0
0
0
175
0.314183
b381335b767782ee84683c89db68147a9099b797
861
py
Python
udemy_pyspark/min-temperatures.py
XC-Li/Hadoop_Spark_Practice
e34b51874ebf81ae9ba7e4c3ccd864580920c525
[ "MIT" ]
null
null
null
udemy_pyspark/min-temperatures.py
XC-Li/Hadoop_Spark_Practice
e34b51874ebf81ae9ba7e4c3ccd864580920c525
[ "MIT" ]
null
null
null
udemy_pyspark/min-temperatures.py
XC-Li/Hadoop_Spark_Practice
e34b51874ebf81ae9ba7e4c3ccd864580920c525
[ "MIT" ]
null
null
null
from pyspark import SparkConf, SparkContext conf = SparkConf().setMaster("local").setAppName("MinTemperatures") sc = SparkContext(conf = conf) def parseLine(line): fields = line.split(',') stationID = fields[0] entryType = fields[2] temperature = float(fields[3]) * 0.1 * (9.0 / 5.0) + 32.0 return ...
39.136364
90
0.699187
0
0
0
0
0
0
0
0
210
0.243902
b3823f6b2a34a5c4648470d65d4dd7a0605a4343
2,062
py
Python
ircmqtt.py
dobrite/irctomqttbot
c1a9ba49818211f635c07469127a7f9de12cee8f
[ "MIT" ]
null
null
null
ircmqtt.py
dobrite/irctomqttbot
c1a9ba49818211f635c07469127a7f9de12cee8f
[ "MIT" ]
null
null
null
ircmqtt.py
dobrite/irctomqttbot
c1a9ba49818211f635c07469127a7f9de12cee8f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import irc.bot import irc.strings from irc.client import ip_numstr_to_quad, ip_quad_to_numstr import paho.mqtt.client as mqtt class ListenerBot(irc.bot.SingleServerIRCBot): def __init__(self, irc_channel, irc_nickname, irc_server, irc_port): irc.bot.SingleServerIRCBot.__init__(sel...
27.864865
103
0.628031
1,513
0.733754
0
0
0
0
0
0
276
0.133851
b382df3f6b2858f533490ca2d78d4ad6529491c4
6,122
py
Python
src/polyswarmd/app.py
polyswarm/polyswarmd
b732d60f0f829cc355c1f938bbe6de69f9985098
[ "MIT" ]
14
2018-04-16T18:04:23.000Z
2019-11-26T06:39:23.000Z
src/polyswarmd/app.py
polyswarm/polyswarmd
b732d60f0f829cc355c1f938bbe6de69f9985098
[ "MIT" ]
227
2018-04-03T01:10:34.000Z
2021-03-25T21:49:58.000Z
src/polyswarmd/app.py
polyswarm/polyswarmd
b732d60f0f829cc355c1f938bbe6de69f9985098
[ "MIT" ]
2
2018-04-23T18:37:47.000Z
2021-04-26T10:58:39.000Z
""" isort:skip_file """ from concurrent.futures import ThreadPoolExecutor from requests_futures.sessions import FuturesSession from polyswarmd.monkey import patch_all patch_all() import datetime import functools import logging from flask import Flask, g, request from flask_caching import Cache from polyswarmd.c...
30.61
99
0.703692
1,650
0.26952
0
0
2,901
0.473865
0
0
971
0.158608
b3838e5127349f4a28ab146728a622c8c9ad0a50
9,702
py
Python
script/AWS_EC2_info_to_FMC.py
tekgourou/AWS_EC2_CONTEXT_to_FMC
777df7e5acd96cdab0b65eda1c8b9c54f4d477c2
[ "Apache-2.0" ]
3
2020-06-29T17:23:16.000Z
2021-08-18T05:47:53.000Z
script/AWS_EC2_info_to_FMC.py
tekgourou/AWS_EC2_CONTEXT_to_FMC
777df7e5acd96cdab0b65eda1c8b9c54f4d477c2
[ "Apache-2.0" ]
null
null
null
script/AWS_EC2_info_to_FMC.py
tekgourou/AWS_EC2_CONTEXT_to_FMC
777df7e5acd96cdab0b65eda1c8b9c54f4d477c2
[ "Apache-2.0" ]
null
null
null
#!/bin/env python ''' PURPOSE: THIS SCRIPT IMPORTS ALL THE OPERATING SYSTEMS INFORMATION FROM AWS EC2 API, PRINTS THE OUTPUT TO A CSV AND THEN IMPORTS THE CSV INTO FIREPOWER MANAGEMENT CENTER USING THE HOST INPUT API OF FMC. DEPENDENCIES / REQUIREMENTS: 1- PYTHON 3.6 2- PERL 5 3- ACCOUNT ON AWS CLOUD AN API KEY G...
48.029703
219
0.660276
0
0
0
0
0
0
0
0
6,329
0.65234
b38440b2c835118d8645ae0629045e945a8e0b44
7,703
py
Python
utilitiespackage/utilitiespackage/tests/yunobuiltin/test_yunobuiltin___init__.py
GDSLLC/utilities-package
52a3315bb56eb7592be82293f97aeeb3be5988e6
[ "MIT" ]
null
null
null
utilitiespackage/utilitiespackage/tests/yunobuiltin/test_yunobuiltin___init__.py
GDSLLC/utilities-package
52a3315bb56eb7592be82293f97aeeb3be5988e6
[ "MIT" ]
null
null
null
utilitiespackage/utilitiespackage/tests/yunobuiltin/test_yunobuiltin___init__.py
GDSLLC/utilities-package
52a3315bb56eb7592be82293f97aeeb3be5988e6
[ "MIT" ]
null
null
null
import operator from functools import partial from utilitiespackage.yunobuiltin import ( get, gensym, isa, interleave, is_even, is_iterable, new_list, new_iter, new_tuple, juxt, flatten, is_str_or_bytes, identity, is_map, is_seq, append...
23.628834
104
0.492276
42
0.005452
0
0
0
0
0
0
700
0.090874
b384f1cd8ef3bf5972a03b34c5abadd537fbffab
2,394
py
Python
app-packages/solr/package/scripts/solr_node.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
60
2015-01-05T10:51:11.000Z
2018-12-15T03:48:09.000Z
app-packages/solr/package/scripts/solr_node.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
null
null
null
app-packages/solr/package/scripts/solr_node.py
turningme/incubator-retired-slider
1d4f519d763210f46e327338be72efa99e65cb5d
[ "Apache-2.0" ]
87
2015-01-14T05:14:15.000Z
2018-12-25T14:14:56.000Z
#!/usr/bin/env python """ 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");...
26.898876
72
0.70259
1,502
0.627402
0
0
0
0
0
0
1,373
0.573517
b388a93bd00b03fd3f2be3f945fb5452ac8fba8a
2,364
py
Python
other/gen_inserts_from_hpge.py
dlooto/dauphine
ba0a0caaf513dbbfcfdd658ad5c687cbf279c021
[ "Apache-2.0" ]
null
null
null
other/gen_inserts_from_hpge.py
dlooto/dauphine
ba0a0caaf513dbbfcfdd658ad5c687cbf279c021
[ "Apache-2.0" ]
null
null
null
other/gen_inserts_from_hpge.py
dlooto/dauphine
ba0a0caaf513dbbfcfdd658ad5c687cbf279c021
[ "Apache-2.0" ]
1
2020-08-13T14:34:44.000Z
2020-08-13T14:34:44.000Z
# 2017数据补齐 # 根据SPE文件和RPT文件生成导入SQL import os import time def parse_spe(filename): f = open(filename) line = f.readline() while line: if line.startswith('$DATE_MEA:'): begin_time_line = f.readline() begin_time = time.strptime(begin_time_line.strip(), '%m/%d/%Y %H:%M:%S') ...
31.52
142
0.58714
0
0
0
0
0
0
0
0
375
0.156642
b3898633efb7d04220516dced622d82112dbe427
1,200
py
Python
photos/views.py
Gideon-Muriithi/photos_gallary
06534c06582bfb5e38e0e0d9bde768512a493c2e
[ "MIT" ]
null
null
null
photos/views.py
Gideon-Muriithi/photos_gallary
06534c06582bfb5e38e0e0d9bde768512a493c2e
[ "MIT" ]
5
2020-02-12T03:13:56.000Z
2021-09-08T01:20:31.000Z
photos/views.py
Gideon-Muriithi/photos_gallary
06534c06582bfb5e38e0e0d9bde768512a493c2e
[ "MIT" ]
null
null
null
from django.shortcuts import render from . models import Location, Image, categories def get_images(request): images = Image.get_all_images() locations = Location.objects.all() context = { "images":images, "locations":locations } return render(request, 'images.html', context) def get_loc...
34.285714
74
0.68
0
0
0
0
0
0
0
0
224
0.186667
b389c2bfce76608735c4250529737d25b0aaea66
142
py
Python
testing.py
gabeladd/testrepo
9d8c8cc2bc467434c2ecc1df7463eeff0b454293
[ "MIT" ]
null
null
null
testing.py
gabeladd/testrepo
9d8c8cc2bc467434c2ecc1df7463eeff0b454293
[ "MIT" ]
null
null
null
testing.py
gabeladd/testrepo
9d8c8cc2bc467434c2ecc1df7463eeff0b454293
[ "MIT" ]
null
null
null
#something new var="BOB was here!!!!" #have to change something else print("\n\nDave what are you doing????\n\n\n") #New branch master added
20.285714
46
0.697183
0
0
0
0
0
0
0
0
125
0.880282
b38b561a2bf71d935045c435d5ddb3b856bc3af4
9,103
py
Python
tests/processing_components/test_atmospheric_screen.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
7
2019-12-14T13:42:33.000Z
2022-01-28T03:31:45.000Z
tests/processing_components/test_atmospheric_screen.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
6
2020-01-08T09:40:08.000Z
2020-06-11T14:56:13.000Z
tests/processing_components/test_atmospheric_screen.py
SKA-ScienceDataProcessor/rascil
bd3b47f779e18e184781e2928ad1539d1fdc1c9b
[ "Apache-2.0" ]
3
2020-01-14T11:14:16.000Z
2020-09-15T05:21:06.000Z
""" Unit tests for mpc """ import logging import os import unittest import astropy.units as u import numpy from astropy.coordinates import SkyCoord from rascil.data_models.parameters import rascil_path, rascil_data_path from rascil.data_models.polarisation import PolarisationFrame from rascil.processing_components i...
52.618497
120
0.631989
7,777
0.854334
0
0
0
0
0
0
583
0.064045
b38fdb90a8567c51ecce68bb72dba00c506fbc8a
6,822
bzl
Python
tools/build_rules/proto.bzl
bowlofstew/kythe
23a3524de3924901ffaba4b8bcab8abe96de6f3a
[ "Apache-2.0" ]
1
2021-04-24T08:18:15.000Z
2021-04-24T08:18:15.000Z
tools/build_rules/proto.bzl
bowlofstew/kythe
23a3524de3924901ffaba4b8bcab8abe96de6f3a
[ "Apache-2.0" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
tools/build_rules/proto.bzl
moul/kythe
2e198cc818981fc6cffa14d8263fda3a33da6429
[ "Apache-2.0" ]
null
null
null
load("@//tools:build_rules/go.bzl", "go_library") standard_proto_path = "third_party/proto/src/" def go_package_name(go_prefix, label): return "%s%s/%s" % (go_prefix.go_prefix, label.package, label.name) def _genproto_impl(ctx): proto_src_deps = [src.proto_src for src in ctx.attr.deps] inputs, outputs, argumen...
31.730233
86
0.598358
0
0
0
0
0
0
0
0
1,554
0.227792
b391c9147986afbcf63eec9ecaef07d00a11bbee
1,128
py
Python
examples/nsw-qld.py
ejwilson3/NchooseK
1e985fb47808283fbb579609b2467be3f5a4a29e
[ "BSD-3-Clause" ]
null
null
null
examples/nsw-qld.py
ejwilson3/NchooseK
1e985fb47808283fbb579609b2467be3f5a4a29e
[ "BSD-3-Clause" ]
1
2021-07-19T20:41:06.000Z
2021-07-19T20:41:06.000Z
examples/nsw-qld.py
ejwilson3/NchooseK
1e985fb47808283fbb579609b2467be3f5a4a29e
[ "BSD-3-Clause" ]
1
2021-07-14T17:21:17.000Z
2021-07-14T17:21:17.000Z
#! /usr/bin/env python ################################### # Test NchooseK on a two-region # # map-coloring problem # # # # By Scott Pakin <pakin@lanl.gov> # ################################### import nchoosek # Define a type for "exactly one color". env = nchoosek.Enviro...
26.857143
61
0.560284
0
0
0
0
0
0
0
0
520
0.460993
b3934e37cd454e67d99a3d0f67cc435385b6aa5b
7,902
py
Python
googledrive_cloner/tests/mock_service.py
martinmCGG/googledrivecloner
b7d9592ef0bed34b567dfdf5f306b057edd2a0f3
[ "MIT" ]
5
2022-02-01T01:07:17.000Z
2022-03-29T19:23:52.000Z
googledrive_cloner/tests/mock_service.py
martinmCGG/googledrivecloner
b7d9592ef0bed34b567dfdf5f306b057edd2a0f3
[ "MIT" ]
1
2022-03-29T19:23:25.000Z
2022-03-29T19:23:25.000Z
googledrive_cloner/tests/mock_service.py
martinmCGG/googledrivecloner
b7d9592ef0bed34b567dfdf5f306b057edd2a0f3
[ "MIT" ]
1
2022-03-29T14:07:36.000Z
2022-03-29T14:07:36.000Z
import copy from typing import Dict, List, Optional, Set, Union from unittest.mock import Mock from uuid import uuid4 class File: """ Mock File class representing a GoogleDrive File with basic information file_id, name, parents (list of parent ids), mimeType """ def __init__( self, ...
29.266667
87
0.559226
7,263
0.919134
0
0
2,188
0.276892
0
0
2,616
0.331055
b393a832ea806e708dd3e9d64cfaf7e065346907
43,854
py
Python
astrocats/catalog/entry.py
Astrocats-Cataclysmic-Variable-Catalog/Cataclysmic-Varible-Astrocats
7835595a4df5bf463bf11412f65b4f8671ae8dfc
[ "MIT" ]
null
null
null
astrocats/catalog/entry.py
Astrocats-Cataclysmic-Variable-Catalog/Cataclysmic-Varible-Astrocats
7835595a4df5bf463bf11412f65b4f8671ae8dfc
[ "MIT" ]
null
null
null
astrocats/catalog/entry.py
Astrocats-Cataclysmic-Variable-Catalog/Cataclysmic-Varible-Astrocats
7835595a4df5bf463bf11412f65b4f8671ae8dfc
[ "MIT" ]
null
null
null
"""Definitions related to the `Entry` class for catalog entries.""" import codecs import gzip as gz import hashlib import json import logging import os import sys from collections import OrderedDict from copy import deepcopy from decimal import Decimal from astrocats.catalog.catdict import CatDict, CatDictError from a...
38.067708
92
0.548319
42,929
0.978907
0
0
3,276
0.074702
0
0
12,628
0.287955
b396182be1514ba5aa6155c9e8e65948041b32f6
309
py
Python
udp/src/client.py
JunguangJiang/FTP-master
62e6499cbfcfad2db9aef67f2f7bfd7b808bfa63
[ "MIT" ]
1
2020-04-19T14:08:13.000Z
2020-04-19T14:08:13.000Z
udp/src/client.py
JunguangJiang/FTP
62e6499cbfcfad2db9aef67f2f7bfd7b808bfa63
[ "MIT" ]
null
null
null
udp/src/client.py
JunguangJiang/FTP
62e6499cbfcfad2db9aef67f2f7bfd7b808bfa63
[ "MIT" ]
null
null
null
import socket size = 8192 try: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for i in range(0,51): msg = bytes(str(i), encoding="utf-8") sock.sendto(msg, ('127.0.0.1', 9876)) print(str(sock.recv(size),encoding='utf-8')) sock.close() except: print("cannot reach the server")
22.071429
57
0.650485
0
0
0
0
0
0
0
0
50
0.161812
b396228087c514f695b111b9c52c74d4e78ad950
186
py
Python
config.py
muni2explore/flask-api-starter-kit
96ebafa33537e00ddd1d7d6f72d97b4c53f03723
[ "MIT" ]
54
2020-08-10T10:00:03.000Z
2022-03-18T10:07:01.000Z
config.py
muni2explore/flask-api-starter-kit
96ebafa33537e00ddd1d7d6f72d97b4c53f03723
[ "MIT" ]
2
2022-02-07T14:31:34.000Z
2022-02-07T14:32:44.000Z
config.py
muni2explore/flask-api-starter-kit
96ebafa33537e00ddd1d7d6f72d97b4c53f03723
[ "MIT" ]
23
2020-07-15T08:58:06.000Z
2022-03-25T03:03:53.000Z
"""[General Configuration Params] """ from os import environ, path from dotenv import load_dotenv basedir = path.abspath(path.dirname(__file__)) load_dotenv(path.join(basedir, '.env'))
23.25
46
0.763441
0
0
0
0
0
0
0
0
43
0.231183
b39793836966e613d8f5a0a9e61da63d48b5e600
3,096
py
Python
util/get-google-calendars.py
Kartoffel/infodisplay
01c87c1d06b4bae45397243d0a99c86015cee708
[ "MIT" ]
2
2021-12-29T14:24:19.000Z
2022-01-04T21:24:56.000Z
util/get-google-calendars.py
Kartoffel/infodisplay
01c87c1d06b4bae45397243d0a99c86015cee708
[ "MIT" ]
1
2022-01-03T19:40:47.000Z
2022-01-05T17:45:39.000Z
util/get-google-calendars.py
Kartoffel/infodisplay
01c87c1d06b4bae45397243d0a99c86015cee708
[ "MIT" ]
null
null
null
''' get-google-calendars.py This script will obtain the `token.json` required for getting your google calendar appointments on the info display. It will also give you the ID's of your calendars, which you can choose to include in your config.ini Run this on your local desktop! Install the following pa...
32.25
120
0.671189
0
0
0
0
0
0
0
0
1,584
0.511628
b399ee56bb344df4e4713b0aa7fd7ec58e6b5b22
3,910
py
Python
app/base/models.py
aleksandrmalinoko/CP_HC_Sharp_object
8dde212db0a8fe6851050e153b05aac06c2ed4e1
[ "MIT" ]
null
null
null
app/base/models.py
aleksandrmalinoko/CP_HC_Sharp_object
8dde212db0a8fe6851050e153b05aac06c2ed4e1
[ "MIT" ]
null
null
null
app/base/models.py
aleksandrmalinoko/CP_HC_Sharp_object
8dde212db0a8fe6851050e153b05aac06c2ed4e1
[ "MIT" ]
null
null
null
from bcrypt import gensalt, hashpw from flask_login import UserMixin from sqlalchemy import Binary, Column, Integer, String, Float from app import db, login_manager class Pharmacy(db.Model): __table__name = 'Pharmacy' id = Column(Integer, primary_key=True) title = Column(String) dosage = Column(Strin...
34.910714
78
0.614834
3,437
0.879028
0
0
289
0.073913
0
0
990
0.253197
b39aad18ae85ad0e752493635f0bdf886c49c270
855
py
Python
test/integration/base/test_update_title.py
waralex/Dash.jl
f0606e07d2479fd8b5be1da4a6a59656e24acfa3
[ "MIT" ]
409
2020-04-02T18:56:47.000Z
2022-03-31T20:28:51.000Z
test/integration/base/test_update_title.py
waralex/Dash.jl
f0606e07d2479fd8b5be1da4a6a59656e24acfa3
[ "MIT" ]
117
2020-04-03T16:19:28.000Z
2022-02-25T15:06:27.000Z
test/integration/base/test_update_title.py
waralex/Dash.jl
f0606e07d2479fd8b5be1da4a6a59656e24acfa3
[ "MIT" ]
35
2020-04-07T01:12:57.000Z
2022-02-16T16:28:22.000Z
import os import pathlib curr_path = pathlib.Path(__file__).parent.absolute() def boot(dashjl, filename): fp = os.path.join(curr_path, "jl_update_title", filename) dashjl.start_server(fp) dashjl.wait_for_text_to_equal( "#hello-div", "Hello world!" ) def get_update_title_state(dashjl...
24.428571
62
0.721637
0
0
0
0
0
0
0
0
198
0.231579
b39cf0067207b03a906fd96bf3e3e66ca1663422
1,667
py
Python
spikeextractors/extractors/neoextractors/blackrockextractor.py
warnerwarner/spikeextractors
96a7294644c00f2b12375e0a91108071e2538144
[ "MIT" ]
null
null
null
spikeextractors/extractors/neoextractors/blackrockextractor.py
warnerwarner/spikeextractors
96a7294644c00f2b12375e0a91108071e2538144
[ "MIT" ]
null
null
null
spikeextractors/extractors/neoextractors/blackrockextractor.py
warnerwarner/spikeextractors
96a7294644c00f2b12375e0a91108071e2538144
[ "MIT" ]
null
null
null
from .neobaseextractor import NeoBaseRecordingExtractor, NeoBaseSortingExtractor from pathlib import Path from typing import Union, Optional try: import neo HAVE_NEO = True except ImportError: HAVE_NEO = False PathType = Union[str, Path] class BlackrockRecordingExtractor(NeoBaseRecordingExtractor): ...
29.767857
115
0.706659
1,408
0.844631
0
0
0
0
0
0
913
0.54769
b39d3d4f6099c75a0698dfa5f38128447ac918e3
2,220
py
Python
tests/test_buffer_reference.py
Infinidat/infi.instruct
69dfd8a35d17f8687581e838ea13e7554f7e5034
[ "BSD-3-Clause" ]
2
2015-01-12T21:16:06.000Z
2019-12-12T05:59:56.000Z
tests/test_buffer_reference.py
Infinidat/infi.instruct
69dfd8a35d17f8687581e838ea13e7554f7e5034
[ "BSD-3-Clause" ]
4
2015-02-24T09:18:00.000Z
2021-06-16T12:55:19.000Z
tests/test_buffer_reference.py
Infinidat/infi.instruct
69dfd8a35d17f8687581e838ea13e7554f7e5034
[ "BSD-3-Clause" ]
4
2015-01-07T12:37:54.000Z
2018-02-08T15:07:17.000Z
from infi.unittest import TestCase from infi.instruct.buffer.reference import (Context, GetAttrReference, FuncCallReference, ObjectReference, CyclicReferenceError) class NumberHolder: def __init__(self, n): self.n = n self.k = 10 class ReferenceTestCas...
33.636364
106
0.638288
2,005
0.903153
0
0
0
0
0
0
65
0.029279
b3a032ed592c9395acc528eda36249d66c3bcd76
619
py
Python
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
import numpy as np import sys import matplotlib.pyplot as plt import argparse parser = argparse.ArgumentParser( description="terminal view a numpy file or image as np array") parser.add_argument("data", help=".npy file to be viewed or im.") parser.add_argument("--img", action='store_true', help="if an image.") arg...
25.791667
70
0.694669
0
0
0
0
0
0
0
0
146
0.235864
b3a040b263764bdd245af66fac854a4ebf932955
1,042
py
Python
application/__init__.py
Sebex0/friendship-diary-backend-python
fc4567ce4aee65f87c173c2aec07db3a7674229e
[ "Apache-2.0" ]
null
null
null
application/__init__.py
Sebex0/friendship-diary-backend-python
fc4567ce4aee65f87c173c2aec07db3a7674229e
[ "Apache-2.0" ]
null
null
null
application/__init__.py
Sebex0/friendship-diary-backend-python
fc4567ce4aee65f87c173c2aec07db3a7674229e
[ "Apache-2.0" ]
null
null
null
"""Initialize app.""" from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config import logging # Database variable db = SQLAlchemy() def create_app(): # Construct the core application app = Flask(__name__, instance_relative_config=False) # Apply the configuration app.c...
26.05
59
0.698656
0
0
0
0
0
0
0
0
210
0.201536
b3a0a3c081b26a35e696178f12c9ef77691dcafd
3,002
py
Python
conftest.py
ngalkina86/python_training_mantis
1a63c321e5d15e23218107a015e21cbdbf4e654c
[ "Apache-2.0" ]
null
null
null
conftest.py
ngalkina86/python_training_mantis
1a63c321e5d15e23218107a015e21cbdbf4e654c
[ "Apache-2.0" ]
null
null
null
conftest.py
ngalkina86/python_training_mantis
1a63c321e5d15e23218107a015e21cbdbf4e654c
[ "Apache-2.0" ]
null
null
null
import jsonpickle as jsonpickle import pytest from fixture.application import Application import json import os.path import importlib import ftputil fixture=None target=None def load_config(file): global target if target is None: config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), f...
36.168675
113
0.689873
0
0
0
0
915
0.304797
0
0
446
0.148568
b3a1239b2d68b44e927595788e2fc43e5640af51
7,160
py
Python
recipes/Python/300019_Coroutines_in_Python/recipe-300019.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/300019_Coroutines_in_Python/recipe-300019.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/300019_Coroutines_in_Python/recipe-300019.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
""" A coroutine implementation in Python. Convert functions to iterator generators by replacing return <expression> with yield <expression> and function calls: f(*args, **kw) with for loops: for i in f(*args, **kw): pass # the function value is in i now. Unfortunately, you have to know which routine has been ...
26.518519
87
0.601257
5,111
0.713827
1,077
0.150419
0
0
0
0
1,490
0.208101
b3a207ed26d2f91c204a97c15e81205d87670102
5,667
py
Python
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
23
2019-01-14T15:12:32.000Z
2022-03-31T12:23:34.000Z
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
11
2019-01-23T13:39:20.000Z
2020-04-17T13:25:27.000Z
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
4
2019-01-07T20:46:40.000Z
2022-03-25T00:00:00.000Z
from mlaut.shared.static_variables import GRIDSEARCH_NUM_CV_FOLDS, GRIDSEARCH_CV_NUM_PARALLEL_JOBS from mlaut.shared.static_variables import VERBOSE from tensorflow.python.keras.models import Sequential, load_model, model_from_json from tensorflow.python.keras.layers import Dense, Activation, Dropout from tensorflow.p...
41.364964
158
0.636668
0
0
0
0
0
0
0
0
3,132
0.552673
b3a5004165d6ada562d6358f71622d9f82b157f8
3,130
py
Python
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
2
2021-08-31T08:26:14.000Z
2022-03-28T11:28:56.000Z
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
1
2021-06-10T11:31:16.000Z
2021-11-21T16:12:57.000Z
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
2
2021-12-05T17:26:36.000Z
2022-03-31T13:58:33.000Z
#!/usr/bin/env python import io import re import logging import pathlib # Own modules from rtfparse import re_patterns from rtfparse import entities from rtfparse import utils # Typing from typing import Optional from typing import Union from rtfparse import config_loader # Setup logging logger = logging.getLogger(...
35.568182
172
0.594888
2,759
0.88147
0
0
0
0
0
0
718
0.229393
b3a78bb678c70aacc4fa4fb1b41422f20b1003ff
330
py
Python
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("MyAnalyzer") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( "file:/home/jonas/PhD/022E2036-A2D9-E711-9A8C-0CC47A13D2A4.root" ) ) process.analyzer = cms.EDAnalyzer('MyAnalyzer') process.p = cms.Path(process....
23.571429
72
0.733333
0
0
0
0
0
0
0
0
100
0.30303
b3a798145cf76d04c4f488bfafc0e3156fde2d5d
190
py
Python
test7.py
DogukanKundum/Classification-tweets
097935a990277f46ba9b3bf5a8455e10727a069a
[ "MIT" ]
1
2021-12-10T19:16:51.000Z
2021-12-10T19:16:51.000Z
test7.py
DogukanKundum/Classification-tweets
097935a990277f46ba9b3bf5a8455e10727a069a
[ "MIT" ]
null
null
null
test7.py
DogukanKundum/Classification-tweets
097935a990277f46ba9b3bf5a8455e10727a069a
[ "MIT" ]
1
2020-12-05T12:31:00.000Z
2020-12-05T12:31:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from textblob.classifiers import NaiveBayesClassifier with open('data/train.csv', 'r') as fp: cl = NaiveBayesClassifier(fp, format="json")
27.142857
53
0.7
0
0
0
0
0
0
0
0
69
0.363158
b3a840e28d30bd9ab4482c1cf21eed740cbb25a5
4,513
py
Python
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
# Methods for dealing with Matrices. Don't use these. Just use the numpy functions. def get_random_matrix(size = [5, 5], value_range = [-10, 10], type_of_value = int): """ A function which can generate many different types of random matrixes of whatever dimension is desired. """ if len(size)>1: ...
36.395161
211
0.581653
0
0
0
0
0
0
0
0
1,399
0.309993
b3acb021cd22a119b718d7aceb7d3ebd579b063b
233
py
Python
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
3
2020-09-09T12:59:24.000Z
2021-10-14T13:45:11.000Z
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
null
null
null
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
null
null
null
import stepper import sys if (len(sys.argv) != 2): print("missing parameter: 0|1"); sys.exit(); value = int(sys.argv[1]) stepper.setLock(0) stepper.setPower(value) if (value > 0): print("power on") else: print("power off")
12.263158
33
0.656652
0
0
0
0
0
0
0
0
45
0.193133
b3aeb76ca7e4fa402a4ed55c1ccea1b2e20bd4c2
240
py
Python
v1/tests/test_endpoints/test_results/__init__.py
erayerdin/debisapi
eb8084b7c27236c86c620dde414037463996a91e
[ "Apache-2.0" ]
2
2019-06-18T18:17:04.000Z
2019-06-18T18:57:27.000Z
v1/tests/test_endpoints/test_results/__init__.py
erayerdin/debisapi
eb8084b7c27236c86c620dde414037463996a91e
[ "Apache-2.0" ]
6
2019-12-04T23:21:04.000Z
2021-04-08T19:18:34.000Z
v1/tests/test_endpoints/test_results/__init__.py
erayerdin/debisapi
eb8084b7c27236c86c620dde414037463996a91e
[ "Apache-2.0" ]
null
null
null
import pytest from v1.views.results import RESULTS_URL @pytest.fixture def results_requests_mock(requests_mock, resource_factory): resource = resource_factory("results.html") requests_mock.post(RESULTS_URL, text=resource.read())
24
59
0.8
0
0
0
0
181
0.754167
0
0
14
0.058333
b3afb92ad3d5cf4c9be12206dd9766b29950b95f
1,549
py
Python
tests/test_urls.py
eyllanesc/mkdocs-static-i18n
283f9a080603904a581370bdae01d517977c9b51
[ "MIT" ]
63
2021-02-08T14:04:02.000Z
2022-03-27T09:33:04.000Z
tests/test_urls.py
eyllanesc/mkdocs-static-i18n
283f9a080603904a581370bdae01d517977c9b51
[ "MIT" ]
84
2021-02-08T13:30:14.000Z
2022-03-31T07:13:05.000Z
tests/test_urls.py
eyllanesc/mkdocs-static-i18n
283f9a080603904a581370bdae01d517977c9b51
[ "MIT" ]
16
2021-03-08T02:04:38.000Z
2022-03-18T03:45:40.000Z
from mkdocs.structure.files import get_files def test_urls_no_use_directory_urls(config_base, config_plugin): config_base["use_directory_urls"] = False files = get_files(config_base) # config_plugin["use_directory_urls"] = False i18n_plugin = config_plugin["plugins"]["i18n"] # i18n_plugin....
36.880952
82
0.692705
0
0
0
0
0
0
0
0
195
0.125888
b3afea34374cd7ab693f16bdea1195e824d2afa9
10,880
py
Python
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
42
2019-09-01T08:59:35.000Z
2022-03-06T17:48:08.000Z
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
7
2019-09-01T08:33:16.000Z
2021-05-26T13:44:36.000Z
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
11
2019-09-01T03:43:50.000Z
2021-07-01T14:42:12.000Z
import enum from dataclasses import dataclass from datetime import datetime from logging import getLogger from typing import Tuple from ..protocol import ( AUTH_VERSION, Command, MismatchError, NONCE_LENGTH, PROTOCOL_VERSION, Packet, TLV, check_result, create_bonding_key, decode...
28.113695
116
0.636489
2,266
0.208272
0
0
5,859
0.538511
0
0
519
0.047702
b3b29d9a1f0bfb0365245f5647a6528266304cb8
1,023
py
Python
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
14
2017-03-09T23:12:42.000Z
2022-01-13T11:15:11.000Z
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
1
2020-12-31T04:12:08.000Z
2021-05-08T05:20:56.000Z
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
8
2017-05-31T16:55:46.000Z
2020-12-29T22:00:32.000Z
# Copyright 2021 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 or agreed to in writin...
23.25
74
0.68915
0
0
0
0
236
0.230694
0
0
565
0.552297
b3b2a1868f837830ffe9e3641a48352d008e79e3
246
py
Python
test/mp/mpTest.py
yunfeiqi/multiprocessingpy
d552b0930047312ce0df9aa324118cf28b3d71cd
[ "Apache-2.0" ]
3
2020-08-28T09:27:21.000Z
2020-11-11T07:51:18.000Z
test/mp/mpTest.py
yunfeiqi/multiprocessingpy
d552b0930047312ce0df9aa324118cf28b3d71cd
[ "Apache-2.0" ]
null
null
null
test/mp/mpTest.py
yunfeiqi/multiprocessingpy
d552b0930047312ce0df9aa324118cf28b3d71cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @Description : The base class of Unit test @Time :2020/08/27 15:35:05 @Author :sam.qi @Version :1.0 ''' import unittest class BaseTest(unittest.TestCase): pass
18.923077
46
0.589431
43
0.174797
0
0
0
0
0
0
182
0.739837
b3b39c2289d1b79f44c6ce12edc0939c142807ba
8,742
py
Python
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
109
2015-01-19T11:17:11.000Z
2022-03-19T13:24:02.000Z
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
21
2015-04-17T11:19:57.000Z
2021-11-30T03:21:49.000Z
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
50
2015-08-27T06:32:54.000Z
2022-03-16T03:35:13.000Z
# -*- coding: utf-8 -*- # This file is part of the OpenSYMORO project. Please see # https://github.com/symoro/symoro/blob/master/LICENCE for the licence. """ This module of SYMORO package contains function to compute the base inertial parameters. """ import sympy from sympy import Matrix from pysymoro.geometry i...
29.734694
78
0.549188
0
0
0
0
0
0
0
0
2,466
0.282086
b3b3f504984baa95645af342529d6cb5c9aa7144
204
py
Python
docs/examples/tutorial/external/keyword_args_call.py
johannes-mueller/cython
b75af38ce5c309cd84c1835220932e53e9a9adb6
[ "Apache-2.0" ]
6,663
2015-01-02T06:06:43.000Z
2022-03-31T10:35:02.000Z
docs/examples/tutorial/external/keyword_args_call.py
johannes-mueller/cython
b75af38ce5c309cd84c1835220932e53e9a9adb6
[ "Apache-2.0" ]
3,094
2015-01-01T15:44:13.000Z
2022-03-31T19:49:57.000Z
docs/examples/tutorial/external/keyword_args_call.py
scoder/cython
ddaaa7b8bfe9885b7bed432cd0a5ab8191d112cd
[ "Apache-2.0" ]
1,425
2015-01-12T07:21:27.000Z
2022-03-30T14:10:40.000Z
from cython.cimports.strstr import strstr def main(): data: cython.p_char = "hfvcakdfagbcffvschvxcdfgccbcfhvgcsnfxjh" pos = strstr(needle='akd', haystack=data) print(pos is not cython.NULL)
25.5
67
0.740196
0
0
0
0
0
0
0
0
46
0.22549
b3b4d14d3f330ee0c96bf4049e9687a82a51d0f3
7,543
py
Python
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
6
2020-12-13T19:08:51.000Z
2022-01-09T02:44:38.000Z
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
41
2020-11-11T15:08:13.000Z
2022-02-03T10:26:14.000Z
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
3
2021-03-16T19:07:46.000Z
2022-01-18T19:12:44.000Z
# Copyright (C) 2021, Pyronear contributors. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. """ The following file is dedicated to the "Risk Score" view of the dashboard. Following a first section dedic...
46.276074
120
0.603208
0
0
0
0
0
0
0
0
4,626
0.613203
b3b57743fc67237e5e0dfd141e3c95a3161e3a39
318
py
Python
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
from fastapi import APIRouter, Depends from lws_backend.api.dependencies.authorization import check_user_auth router = APIRouter() @router.get("/user-access") async def user_access(user_auth=Depends(check_user_auth)): exception = user_auth[1] if exception: raise exception return user_auth[0]
21.2
70
0.757862
0
0
0
0
182
0.572327
154
0.484277
14
0.044025
b3b5d9872af7cd4981466decde26abff958ca0d2
3,219
py
Python
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
2
2021-01-28T15:56:50.000Z
2021-03-02T06:27:09.000Z
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
import logging import flask import bhamon_orchestra_website.helpers as helpers import bhamon_orchestra_website.service_client as service_client logger = logging.getLogger("JobController") def show_collection(project_identifier): item_total = service_client.get("/project/{project_identifier}/job_count".format(**l...
50.296875
176
0.751476
0
0
0
0
0
0
0
0
1,266
0.39329
b3b83373cf5e4f901428414e382481adff631cd0
10,751
py
Python
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
3
2021-03-01T12:50:39.000Z
2021-09-06T13:53:00.000Z
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
null
null
null
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
1
2021-03-01T12:51:21.000Z
2021-03-01T12:51:21.000Z
# -*- coding: utf-8 -*- import sys import boto3 from botocore.exceptions import ClientError import json from datetime import datetime CUSTOMER_FILE_NAME = "customer_assessment.yandeh.config.json" SERVICES_FILE_NAME = "services.config.json" def get_customer_config(): customer_file = open(CUSTOMER_FILE...
48.427928
199
0.594921
0
0
0
0
0
0
0
0
3,340
0.31064
b3b925cabab1ae200166bc33a655ac51172cf43f
4,678
py
Python
btplotting-master/btplotting/helper/marker.py
fredryce/stocker
041fbe8348f7a035a607a214477cf423c4259171
[ "MIT" ]
null
null
null
btplotting-master/btplotting/helper/marker.py
fredryce/stocker
041fbe8348f7a035a607a214477cf423c4259171
[ "MIT" ]
null
null
null
btplotting-master/btplotting/helper/marker.py
fredryce/stocker
041fbe8348f7a035a607a214477cf423c4259171
[ "MIT" ]
null
null
null
''' Marker definition used to generate markers in bokeh using matplotlib notation ''' _mrk_fncs = { # '.' m00 point '.': ('dot', ['color'], {'size': 2}, {}), # ',' m01 pixel ',': ('dot', ['color'], {'size': 3}, {}), # 'o' m02 circle 'o': ('circle', ['color', 'size'], {}, {'size': -3}), # 'v...
38.344262
77
0.470286
0
0
0
0
0
0
0
0
2,577
0.550876
b3b9455435505a5fb9a159f6a19ce96afc0246de
3,351
py
Python
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from operators import (StageToRedshiftOperator, LoadFactOperator, LoadDimensionOperator, DataQualityOperator) from helpers import SqlQueries # AWS_KEY = ...
29.394737
101
0.7359
0
0
0
0
0
0
0
0
944
0.281707
b3b9f47ce9246c0dbf4929a2fc4048535c1ebffb
3,468
py
Python
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
1
2018-10-19T11:58:00.000Z
2018-10-19T11:58:00.000Z
# coding: utf8 from __future__ import unicode_literals, print_function, division from clldutils.dsv import UnicodeReader from clldutils.misc import slug from pylexibank.util import xls2csv from pylexibank.lingpy_util import iter_alignments, segmentize from pylexibank.dataset import CldfDataset def download(dataset)...
33.346154
84
0.488466
0
0
0
0
0
0
0
0
297
0.08564
b3ba0fda33af2a7a5f1c8515ebec272724efa551
2,891
bzl
Python
tools/rules/twister2_core.bzl
FreddieSun/twister2
4c0a8ef7c86413cf190883cb7e1d9164467979e8
[ "Apache-2.0" ]
null
null
null
tools/rules/twister2_core.bzl
FreddieSun/twister2
4c0a8ef7c86413cf190883cb7e1d9164467979e8
[ "Apache-2.0" ]
null
null
null
tools/rules/twister2_core.bzl
FreddieSun/twister2
4c0a8ef7c86413cf190883cb7e1d9164467979e8
[ "Apache-2.0" ]
null
null
null
# Utility macros for Twister2 core files def twister2_core_files(): return twister2_core_conf_files() + twister2_core_lib_files() def twister2_core_conf_files(): return [ "//twister2/config/src/yaml:config-system-yaml", ] def twister2_core_lib_files(): return twister2_core_lib_resource_schedu...
32.483146
73
0.690073
0
0
0
0
0
0
0
0
1,597
0.552404
b3be443cdf964d3bbf6ca7a7ee7114e3f65cd9ab
3,051
py
Python
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
import asyncio from aiochannels import Channel, aenumerate async def simple_pinger(ch): sender = await ch.new_sender() while sender.is_attached: # sender can be detached from Channel with `sender.detach` await sender.send('ping') async def simple_ponger(ch): sender = await ch.new_sender(...
40.68
113
0.707965
0
0
0
0
0
0
2,918
0.956408
1,633
0.535234
b3be6789804fb5752eb28306b4e6c26da559d325
1,004
py
Python
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
null
null
null
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
9
2020-01-17T14:16:08.000Z
2020-02-18T15:07:40.000Z
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
null
null
null
from django.urls import path from itembase.core.views.item_views import UOMCreateView, UOMDeleteView, UOMDetailView, \ UOMListView, UOMUpdateView, VendorItemCreateView, VendorItemDeleteView, VendorItemDetailView, \ VendorItemListView, VendorItemUpdateView app_name = "vendor-items" urlpatterns = [ path("uo...
50.2
99
0.698207
0
0
0
0
0
0
0
0
237
0.236056
b3bf3e2d74c3f94665d9f0eed90e59c4bcf6dcac
8,853
py
Python
bombbomb/models/curriculum_with_progress.py
bombbomb/bombbomb-python-openapi
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
[ "Apache-2.0" ]
null
null
null
bombbomb/models/curriculum_with_progress.py
bombbomb/bombbomb-python-openapi
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
[ "Apache-2.0" ]
null
null
null
bombbomb/models/curriculum_with_progress.py
bombbomb/bombbomb-python-openapi
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ BombBomb We make it easy to build relationships using simple videos. # noqa: E501 OpenAPI spec version: 2.0.831 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from bombbomb.models.curriculum_user_prog...
28.284345
163
0.597651
8,476
0.957416
0
0
4,894
0.552807
0
0
4,805
0.542754
b3c1e9ab9358afaa83215e8fcdb31e334f3d7732
1,472
py
Python
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
1
2020-06-03T14:54:38.000Z
2020-06-03T14:54:38.000Z
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
null
null
null
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ Runs the test suite and prints the results to standard output. It uses the given separator in the following way: <Separator> #Tests <Separator> #Succeeded Tests <Separator> First Error <Separator> First Failure <Separator> """ import sys import traceback import unittest def main(): sep...
21.647059
78
0.570652
0
0
0
0
0
0
0
0
319
0.216712
b3c2b73fe38f754c4659eb26e8e250683d3cd22a
721
py
Python
visualize.py
jamqd/EE239AS
d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285
[ "MIT" ]
2
2020-08-24T08:09:39.000Z
2020-08-31T11:42:12.000Z
visualize.py
jamqd/EE239AS
d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285
[ "MIT" ]
null
null
null
visualize.py
jamqd/EE239AS
d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285
[ "MIT" ]
null
null
null
# code to visualize from dqn import DQN from torch import load from run import collect_trajectories import argparse import gym def main(): parser = argparse.ArgumentParser(description="to visualize trained model") parser.add_argument("model_name", help="path to model to visualize", type=str) # parser.add...
30.041667
90
0.730929
0
0
0
0
0
0
0
0
317
0.439667
b3c368e347b19b994c0f594074bd9213901ef162
1,135
py
Python
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import include, patterns, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^$', 'base.views.index', name='index'), url(r'^i18n/', ...
21.018519
62
0.592952
0
0
0
0
0
0
0
0
433
0.381498
b3c39873bff99fe7e5298c28441bd0599d3f6194
5,433
py
Python
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
null
null
null
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
11
2019-07-10T16:27:32.000Z
2019-09-10T15:56:48.000Z
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
null
null
null
from ansible_host import AnsibleHost import pytest import ptf.testutils as testutils import time import itertools import logging import pprint DEFAULT_FDB_ETHERNET_TYPE = 0x1234 DUMMY_MAC_PREFIX = "02:11:22:33" DUMMY_MAC_COUNT = 10 FDB_POPULATE_SLEEP_TIMEOUT = 2 logger = logging.getLogger(__name__) def send_eth(p...
33.95625
109
0.677342
0
0
320
0.058899
2,594
0.477453
0
0
2,029
0.373458
b3c5d34fe811208beb9d81269a32648ad7b7f5f4
125
py
Python
guest/runner.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
guest/runner.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
1
2020-01-19T01:19:57.000Z
2020-01-19T01:19:57.000Z
guest/runner.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
import subprocess command='python ‪G:\Pycharm_Project\PyTest\guest\manage.py runserver' subprocess.Popen(command,shell=True)
31.25
69
0.832
0
0
0
0
0
0
0
0
63
0.496063
b3c645123a5d5abdbdd3c977c0733bf2d861e91a
1,677
py
Python
backend/rpc/handler/system/backup.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/rpc/handler/system/backup.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/rpc/handler/system/backup.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
from flask import request from rpc.gen.system.backup.services import TSystemBackupService from rpc.gen.user.user.types.ttypes import TUserRole from rpc.gen.system.backup.structs.ttypes import TBackupFile import db from models import models class TSystemBackupServiceHandler(TSystemBackupService.Iface): def __init...
41.925
92
0.754323
1,434
0.855098
0
0
0
0
0
0
14
0.008348
b3c7792d212a10cd3a3492a2b0a312b11bc2457f
4,916
py
Python
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
# adso_odata_to_neo4j.py # from francois.belleau@saaq.gouv.qc.ca # create ADSO nodes in NEO4J using a CDS VIEW exposed as OData service from neo4j import GraphDatabase #pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org neo4j driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j",...
35.114286
345
0.718267
0
0
0
0
0
0
0
0
2,313
0.470504
b3c875a221b839dc6e51b8ef33e2086e6f987b91
3,372
py
Python
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
import re def clean_uri(uri): """ This method removes the url part of the URI in order to obtain just the property or class :param uri: An uri to be cleaned :return: The name of the property or the class """ if uri.find('#') != -1: special_char = '#' else: special_char =...
31.514019
105
0.590747
0
0
0
0
0
0
0
0
1,248
0.370107
b3c8b9abb1acf23e964f85e4d58d9f98ef8202b4
330
py
Python
clusterManagement/MLClusterBase.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
2
2021-01-22T05:56:40.000Z
2021-07-03T17:50:49.000Z
clusterManagement/MLClusterBase.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
null
null
null
clusterManagement/MLClusterBase.py
micv-dev/DeepKubeGPUCluster
b1f674ea3c251a5287ee83d582b193248e04f9d6
[ "Apache-2.0" ]
null
null
null
class MLClusterBase(object): def __init__(self): pass def create_cluster(self, spec, cluster_management, namespace_name, volume_claim_name, **kwargs): pass def get_cluster_info(self,cluster_name,cluster_management,user_id): pass def delete_cluster(self,payload): ...
15.714286
100
0.675758
322
0.975758
0
0
0
0
0
0
0
0
b3caa8de1b91faff3c68b14312d7d5c67b64d7d3
241
py
Python
homelabmanager/urls.py
vdloo/homelabmanager
052909d832f46ee2974b247d2e08a571cdc3af32
[ "MIT" ]
null
null
null
homelabmanager/urls.py
vdloo/homelabmanager
052909d832f46ee2974b247d2e08a571cdc3af32
[ "MIT" ]
null
null
null
homelabmanager/urls.py
vdloo/homelabmanager
052909d832f46ee2974b247d2e08a571cdc3af32
[ "MIT" ]
null
null
null
"""homelabmgr URL Configuration """ from django.contrib import admin from django.urls import path from resources import views urlpatterns = [ path('admin/', admin.site.urls), path('terraform/', views.terraform, name='terraform'), ]
21.909091
58
0.726141
0
0
0
0
0
0
0
0
66
0.273859
b3cadd5bfa7e24c0eed1116844676bed9022fba5
1,008
py
Python
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
1
2021-02-16T10:47:39.000Z
2021-02-16T10:47:39.000Z
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
import time from pyglet.gl import * from pyglet import image from pyglet.window import key import globals import helpers class TextScreen(object): def __init__(self, txt): self.text = txt self.state = 0 self.startTime = 0.0 def draw(self, ww): label = pyglet.text.HTMLLabel(se...
22.4
63
0.507937
884
0.876984
0
0
0
0
0
0
100
0.099206
b3cc8a8a3a90142b361a941d04d0660448e6bf61
2,490
py
Python
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
174
2018-02-09T05:37:42.000Z
2022-03-21T07:09:43.000Z
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
42
2018-03-15T06:51:16.000Z
2022-01-17T15:44:55.000Z
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
51
2018-03-21T17:13:11.000Z
2022-03-21T13:30:29.000Z
#!/usr/bin/env python """ Example of using the hierarchical classifier to classify (a subset of) the digits data set. Demonstrated some of the capabilities, e.g using a Pipeline as the base estimator, defining a non-trivial class hierarchy, etc. """ from sklearn import svm from sklearn.decomposition import TruncatedS...
28.295455
95
0.646988
0
0
0
0
0
0
0
0
865
0.34739
b3cd53faa03dbdb3ca474c0efffa2b1d85860717
389
py
Python
app/notifier/src/config/email_notif.py
maticardenas/football_notifier_app
fa2866bb3977f9baf8940c9daf4a588b4e06d520
[ "MIT" ]
null
null
null
app/notifier/src/config/email_notif.py
maticardenas/football_notifier_app
fa2866bb3977f9baf8940c9daf4a588b4e06d520
[ "MIT" ]
null
null
null
app/notifier/src/config/email_notif.py
maticardenas/football_notifier_app
fa2866bb3977f9baf8940c9daf4a588b4e06d520
[ "MIT" ]
null
null
null
EMAIL_RECIPIENTS = { # "Ema": "ema_pra@hotmail.com", "Matías": "cardenasmatias.1990@gmail.com", # "David": "k1.dave@gmail.com", # "Fede": "fede_pra@hotmail.com", # "Fede": "fpradomacat@gmail.com", # "David": "departamentosvillasuiza@gmail.com" } # GMAIL SMTP_SERVER = "smtp.gmail.com" GMAIL_SE...
24.3125
50
0.660668
0
0
0
0
0
0
0
0
283
0.725641
b3d066a663fa6421da26fec7012ccc1194b1dd0d
2,336
py
Python
src/sprint_webserver/views/kjoreplan.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
null
null
null
src/sprint_webserver/views/kjoreplan.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
15
2021-01-11T19:42:39.000Z
2021-04-19T21:09:58.000Z
src/sprint_webserver/views/kjoreplan.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
null
null
null
"""Resource module for resultat view.""" import logging from aiohttp import web import aiohttp_jinja2 from sprint_webserver.services import ( InnstillingerService, KjoreplanService, KlasserService, ) class Kjoreplan(web.View): """Class representing the kjoreplan / heatliste resource.""" async d...
32.444444
88
0.596318
2,122
0.907225
0
0
0
0
2,013
0.860624
588
0.251389
b3d08b6173fb06e7337a906a8d5ddee5ba9c9915
823
py
Python
src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
2
2021-03-25T21:38:56.000Z
2021-11-15T17:46:45.000Z
src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py
Visual-Studio-China/azure-cli-int
48c7c7f371a0ecc4ebfd4dcfdc72764beddf5c31
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.4375
94
0.562576
336
0.408262
0
0
285
0.346294
0
0
425
0.516403
b3d0c3d583358469a62183dc3e94d74f4fb738b4
19,768
py
Python
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
null
null
null
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
null
null
null
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
2
2019-09-21T13:36:19.000Z
2019-10-25T16:28:54.000Z
import asyncio import discord import os import json import time from datetime import datetime from config import get_configuration departements = json.loads(open("departements.json").read()) regions = json.loads(open("regions.json").read()) async def log(self, guild, message) : config = get_configuration(guild....
53.86376
285
0.610633
2,407
0.12087
0
0
0
0
19,363
0.972331
6,379
0.320327
b3d1e5996b4f3cebb25c5674645c187829ed1fad
682
py
Python
I2C/rpi2.py
tlee753/serial-communications
48ab44e04e746a011c8b2ec284813932da913ad2
[ "MIT" ]
1
2021-11-25T23:49:49.000Z
2021-11-25T23:49:49.000Z
I2C/rpi2.py
tlee753/serial-communications
48ab44e04e746a011c8b2ec284813932da913ad2
[ "MIT" ]
null
null
null
I2C/rpi2.py
tlee753/serial-communications
48ab44e04e746a011c8b2ec284813932da913ad2
[ "MIT" ]
null
null
null
import smbus import time bus = smbus.SMBus(1) # instantiate bus slaveAddress = 0x04 # assign a slave address def writeNumber(value): # function to write value bus.write_byte(slaveAddress, value) def readNumber(): # function to read value number = bus.read_byte(slaveAddress) return number while True: # c...
27.28
58
0.683284
0
0
0
0
0
0
0
0
202
0.29023
b3d1fe94baad9d15458d5ff9000e994472945459
1,062
py
Python
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
3
2020-05-15T17:31:18.000Z
2021-05-05T09:21:24.000Z
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
null
null
null
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
2
2020-06-04T09:01:35.000Z
2021-04-22T14:49:36.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mtna-rds", version="0.2.16", author="Metadata Technology North America Inc.", author_email="mtna@mtna.us", description="A library to query the Rich Data Services API framework developed by...
36.62069
92
0.620527
0
0
0
0
0
0
0
0
631
0.594162
b3d2235419fc31d01fc30b97c05efd22cbff2fce
1,186
py
Python
fun/fun.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
3
2015-11-20T14:30:53.000Z
2015-12-19T05:55:19.000Z
fun/fun.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
null
null
null
fun/fun.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
1
2016-01-05T20:54:49.000Z
2016-01-05T20:54:49.000Z
import re from collections import Counter def pair_sum_to_value(seq, value): """"test if any pair in sequence sum to value""" for i in xrange(len(seq)): for j in xrange(i+1, len(seq)): if seq[i]+seq[j] == value: return True return False def is_mirror_number(i): tm...
23.254902
90
0.573356
0
0
0
0
0
0
0
0
168
0.141653
b3d23a8be06cd80fb203d7396d62c84317f5095e
2,829
py
Python
plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
#-*- coding: utf-8 -*- #Vstream https://github.com/Kodi-vStream/venom-xbmc-addons from resources.lib.gui.gui import cGui from resources.lib.handler.requestHandler import cRequestHandler from resources.lib.comaddon import addon, dialog, VSlog class cJDownloaderHandler: ADDON = addon() DIALOG = dialog() d...
29.164948
153
0.601273
2,578
0.911276
0
0
0
0
0
0
360
0.127253
b3d27837e9820ebf643eae5c98f8dd1c1c097ce3
1,086
py
Python
poop/hfdp/factory/pizzafm/pizza_test_drive.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
37
2020-12-27T00:13:07.000Z
2022-01-31T19:30:18.000Z
poop/hfdp/factory/pizzafm/pizza_test_drive.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
null
null
null
poop/hfdp/factory/pizzafm/pizza_test_drive.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
7
2020-12-26T22:33:47.000Z
2021-11-07T01:29:59.000Z
from poop.hfdp.factory.pizzafm.chicago_pizza_store import ChicagoPizzaStore from poop.hfdp.factory.pizzafm.ny_pizza_store import NYPizzaStore from poop.hfdp.factory.pizzafm.pizza import Pizza def main() -> None: ny_store: NYPizzaStore = NYPizzaStore() chicago_store: ChicagoPizzaStore = ChicagoPizzaStore() ...
32.909091
75
0.71547
0
0
0
0
0
0
0
0
358
0.32965
b3d44334f4081aeeeede6f15c35ce6549bdd1126
292
py
Python
cache.py
AbelJoo/ZenTao-PMS-Auxiliary
c0e9347b07155a59ac0005ab82f8347deb0a26c2
[ "Apache-2.0" ]
36
2015-06-06T08:56:08.000Z
2022-02-07T16:22:57.000Z
cache.py
AbelJoo/ZenTao-PMS-Auxiliary
c0e9347b07155a59ac0005ab82f8347deb0a26c2
[ "Apache-2.0" ]
null
null
null
cache.py
AbelJoo/ZenTao-PMS-Auxiliary
c0e9347b07155a59ac0005ab82f8347deb0a26c2
[ "Apache-2.0" ]
10
2015-06-18T01:09:51.000Z
2019-10-22T00:03:41.000Z
#! /usr/bin/python # coding:utf-8 __val_dict = {} def filter_new(key, bean_list): old_bean_id = [old_bean.uid for old_bean in __val_dict.get(key, {})] return [bean.uid for bean in bean_list if bean.uid not in old_bean_id] def add(key, bean_list): __val_dict[key] = bean_list
20.857143
74
0.69863
0
0
0
0
0
0
0
0
32
0.109589
b3d4939cf2842d4fe41db98de6a4249b7479e181
310
py
Python
nally/port_scanner/scanning_strategies/syn_scanning_strategy.py
FreibergVlad/port-scanner
432dd9a07cb5118f3a0722fe4908434c76191b3b
[ "MIT" ]
null
null
null
nally/port_scanner/scanning_strategies/syn_scanning_strategy.py
FreibergVlad/port-scanner
432dd9a07cb5118f3a0722fe4908434c76191b3b
[ "MIT" ]
null
null
null
nally/port_scanner/scanning_strategies/syn_scanning_strategy.py
FreibergVlad/port-scanner
432dd9a07cb5118f3a0722fe4908434c76191b3b
[ "MIT" ]
null
null
null
from nally.port_scanner.scanning_strategies.scanning_strategy import ScanningStrategy class SynScanningStrategy(ScanningStrategy): def scan_port(self, host: str, port: int) -> bool: return False @staticmethod def get_strategy_name() -> str: return ScanningStrategy.SYN_STRATEGY
25.833333
85
0.751613
221
0.712903
0
0
94
0.303226
0
0
0
0
b3d58035864fec3162d63e3f38f884692d40a888
13,575
py
Python
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
# See End Of File For Licensing from inspect import signature from functools import wraps from typing import Union, Callable, Optional from contextlib import contextmanager from weakref import WeakValueDictionary from spectate.core import Watchable, watched, Immutable, MethodSpectator from .utils import members __a...
32.632212
88
0.604936
8,960
0.660037
736
0.054217
2,148
0.158232
0
0
7,834
0.57709
b3d5846570ce03c2556e5aaa5302e7d5bb7cfcf4
1,073
py
Python
flask_resql/apps/user/types.py
twocucao/flask-resql
6d5573293b04f2fa64411b5c85e36d377426b676
[ "MIT" ]
1
2020-12-09T14:54:38.000Z
2020-12-09T14:54:38.000Z
flask_resql/apps/user/types.py
twocucao/flask-resql
6d5573293b04f2fa64411b5c85e36d377426b676
[ "MIT" ]
null
null
null
flask_resql/apps/user/types.py
twocucao/flask-resql
6d5573293b04f2fa64411b5c85e36d377426b676
[ "MIT" ]
null
null
null
import datetime from enum import Enum from typing import List from flask_resql.resql import Serializer from flask_resql.resql.utils import transform_serializer_field def object_type(cls): schema = cls.schema() obj_type = transform_serializer_field( f"/{cls.__name__}", cls.__name__, schema, model_sche...
19.509091
69
0.696179
632
0.589003
0
0
559
0.520969
0
0
112
0.10438
b3d6f611cefdd5cca14738de72d37008403c9a63
970
py
Python
fancy/config/option_preprocessing.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-17T04:47:52.000Z
2022-03-17T04:47:52.000Z
fancy/config/option_preprocessing.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
9
2021-12-01T08:01:52.000Z
2022-03-16T13:05:07.000Z
fancy/config/option_preprocessing.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-07T09:29:06.000Z
2022-03-07T09:29:06.000Z
import warnings from pathlib import Path from typing import Any, List def identical(val: Any) -> Any: return val def to_string(val: Any) -> str: warnings.warn("to_string has deprecated.use str to instead.", DeprecationWarning) return str(val) def to_integer(val: Any) -> int: warnings.warn("to_inte...
25.526316
92
0.719588
0
0
0
0
0
0
0
0
283
0.291753
b3d75d2890f7f5972e2fbf7529699f51b48bdb8b
1,803
py
Python
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
8
2018-12-09T18:10:16.000Z
2021-03-21T16:38:58.000Z
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
null
null
null
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
5
2018-11-09T16:57:17.000Z
2020-04-15T09:11:33.000Z
import numpy as np import statistics import time from astropy.coordinates import SkyCoord from astropy import units as u def crossmatch(cat1, cat2, max_dist): matches = [] nomatches = [] start = time.perf_counter() skycat1 = SkyCoord(cat1*u.degree, frame='icrs') skycat2 = SkyCoord(cat2*u.degree, frame='ic...
31.086207
85
0.698835
0
0
0
0
0
0
0
0
466
0.258458
b3d8e2f4f026c0e980617503190294abe9ae8511
997
py
Python
lynx/qt/tabs.py
DevGev/Lynx
11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07
[ "Unlicense" ]
9
2020-12-14T18:37:10.000Z
2021-06-18T08:06:18.000Z
lynx/qt/tabs.py
DevGev/Lynx
11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07
[ "Unlicense" ]
1
2021-07-15T09:07:45.000Z
2021-12-12T20:21:21.000Z
lynx/qt/tabs.py
DevGev/Lynx
11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07
[ "Unlicense" ]
1
2021-03-18T22:01:01.000Z
2021-03-18T22:01:01.000Z
from PyQt5.QtWidgets import ( QTabWidget, ) class TabWidget(QTabWidget): tab_ids = 0 def addTab(self, widget, label, silent=False): tab_id = self.tab_ids self.tab_ids += 1 i = super().addTab(widget, label) if not silent: super().setCurrentIndex(i) wid...
25.564103
74
0.571715
946
0.948847
0
0
0
0
0
0
0
0
b3d97ce2c5e214ea0d96fc151d9ce9c5473d5232
5,753
py
Python
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
from typing import Set from code_generator.line_buffer import LineBuffer, IndentedBlock from code_generator.type_generators.cpp_array_alias import CppArrayAlias from code_generator.type_generators.cpp_enum import CppEnum from code_generator.type_generators.cpp_extended_variant_utils.from_json_generator import FromJson...
42.301471
110
0.649226
4,824
0.838519
0
0
0
0
0
0
1,082
0.188076
b3da2e72ed59eb49c5853bcdb21f5237c0598cff
635
py
Python
hoodwatch/forms.py
kennedy-ben/My-Neighborhood
1f9df6e6d69a565c6fd545e8efd14c163e98abd7
[ "Unlicense" ]
1
2018-10-23T16:17:31.000Z
2018-10-23T16:17:31.000Z
hoodwatch/forms.py
kennedy-ben/My-Neighborhood
1f9df6e6d69a565c6fd545e8efd14c163e98abd7
[ "Unlicense" ]
5
2020-06-06T00:55:39.000Z
2021-09-08T01:46:30.000Z
hoodwatch/forms.py
kennedy-ben/My-Neighborhood
1f9df6e6d69a565c6fd545e8efd14c163e98abd7
[ "Unlicense" ]
3
2020-01-19T21:26:14.000Z
2020-11-04T08:37:38.000Z
from django import forms from .models import * class NewPostForm(forms.ModelForm): class Meta: model = Post exclude = ['user'] class UserForm(forms.ModelForm): class Meta: model = Profile fields = ('name','user_name','bio') class CreateHoodForm(forms.ModelForm): class Me...
19.84375
48
0.612598
574
0.903937
0
0
0
0
0
0
85
0.133858
b3dac29fab9b30a15f3567e16ce2def62510c239
5,959
py
Python
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import numpy as np import os from .file_loader import ( CatsvsdogsFileLoader, FashionMnistFileLoader, ImdbSentimentFileLoader, StackoverflowFileLoader, ) from .model_input import ModelInputGenerator from .output_decoder import OutputDecoder from .pipeline import Pipeline from .preprocessing import pipe...
35.260355
116
0.664205
5,304
0.890082
0
0
308
0.051687
0
0
1,008
0.169156
b3de0447e00cc0a2285e58663644fe3c006386e1
2,206
py
Python
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
null
null
null
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
1
2021-06-02T16:55:33.000Z
2021-06-04T14:30:54.000Z
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
2
2021-03-22T14:46:49.000Z
2021-03-31T16:12:12.000Z
import os from typing import Set from . import MarkovDecisionProcedure class Sokoban(MarkovDecisionProcedure): def __init__(self, state_initial: Set[str], state_static: Set[str]): # No discounting for Sokoban discount_rate = 1.0 file_name = 'sokoban.lp' super().__init__(state_i...
33.938462
96
0.550771
2,130
0.965549
0
0
0
0
0
0
258
0.116954
b3e045df8f99c15e93bf5205a4e184cde6cf770d
1,014
py
Python
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
1
2021-08-05T10:37:26.000Z
2021-08-05T10:37:26.000Z
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
null
null
null
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('elements.db') cur = conn.cursor() cur.execute('DROP TABLE IF EXISTS elements') cur.execute('CREATE TABLE elements (number INTEGER, atomic_weight FLOAT, element TEXT, symbol TEXT, mp FLOAT, bp FLOAT, density FLOAT, earth_crust FLOAT, discovered INTEGER, egroup INTEGER, ionization...
30.727273
308
0.649901
0
0
0
0
0
0
0
0
486
0.47929
b3e0a169cb3b631c48d93e3f6d0c870c92bbcab5
12,454
py
Python
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
3
2021-06-20T17:46:32.000Z
2021-12-17T16:55:00.000Z
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
1
2022-01-13T01:41:00.000Z
2022-01-13T06:54:29.000Z
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
1
2021-09-14T06:17:55.000Z
2021-09-14T06:17:55.000Z
import open3d as o3d from open3d import * import numpy as np import sys, os import matplotlib.pyplot as plt import cv2 import torch import glob import copy import mathutils from PIL import Image from pytorch3d.loss import chamfer_distance from tk3dv.nocstools.aligning import estimateSimilarityUmeyama import math from ...
32.097938
165
0.599004
0
0
0
0
0
0
0
0
2,851
0.228922