hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
3354c275c13c721af222bf79de13479550e220ff
706
py
Python
src/utils/get_model_and_data_checkpointed.py
Tim-blo/ACTOR
f10d7534a34fa557ab6b1739217649ae4f654505
[ "MIT" ]
null
null
null
src/utils/get_model_and_data_checkpointed.py
Tim-blo/ACTOR
f10d7534a34fa557ab6b1739217649ae4f654505
[ "MIT" ]
null
null
null
src/utils/get_model_and_data_checkpointed.py
Tim-blo/ACTOR
f10d7534a34fa557ab6b1739217649ae4f654505
[ "MIT" ]
null
null
null
from ..datasets.get_dataset import get_datasets from ..recognition.get_model import get_model as get_rec_model from ..models.get_model import get_model as get_gen_model def get_model_and_data_checkpointed(parameters): datasets = get_datasets(parameters) model = get_gen_model(parameters) print("Restore wei...
41.529412
94
0.720963
dde7d701b4016c3d5c9cee7a6344ff74d4236de1
7,455
py
Python
scripts/Qubit/TimeDomain/Dimon/chi11_cal.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
scripts/Qubit/TimeDomain/Dimon/chi11_cal.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
scripts/Qubit/TimeDomain/Dimon/chi11_cal.py
sourav-majumder/qtlab
96b2a127b1df7b45622c90229bd5ef8a4083614e
[ "MIT" ]
null
null
null
from constants import * from ZurichInstruments_UHFLI import ZurichInstruments_UHFLI import sys import os import shutil import qt import progressbar import numpy as np import time import awg_on_first as opt ############################################## us = 1e-6 #######################################...
35.165094
136
0.629913
3385087c39320d994a67b9457868d7264c006b2a
3,216
py
Python
src/kblue/nodes/managers.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/nodes/managers.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/nodes/managers.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import dbus from .const import * from .core import Node __all__ = [ 'ObjectManager', 'AgentManager', 'ProfileManager', 'HealthManager', 'GattManager', 'LEAdvertisingManager' ] # ------------------------------------------------------------------------------ # --- Class ObjectMan...
33.5
80
0.35199
eefb8c3609f361ae6a8603c14977c9138905e55f
928
py
Python
src/sage/modular/modform/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/modular/modform/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/modular/modform/all.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
######################################################################### # Copyright (C) 2004--2006 William Stein <wstein@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # # http://www.gnu.org/licenses/ #########################################################...
33.142857
84
0.682112
8055c4b2129a3647686dd1bc93cddb6f93d142b1
5,524
py
Python
Metrics/Find and Replace Kerning Groups.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Metrics/Find and Replace Kerning Groups.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Metrics/Find and Replace Kerning Groups.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Find and Replace in Kerning Groups # -*- coding: utf-8 -*- __doc__=""" Finds and replaces text in the metrics keys of selected glyphs. Leave the Find string blank to hang the replace string at the end of the metrics keys. """ import vanilla import GlyphsApp class KerningGroupReplacer( object ): def __ini...
39.457143
157
0.71651
8cd9a8d638fd01e6961e9bf8fa3cef64d10cb6e8
585
py
Python
backend/apps/users/urls.py
adm-in/foodgram-project-react
c681297d9f1b34a6504350c4fb4306cbdb156c6a
[ "Apache-2.0" ]
null
null
null
backend/apps/users/urls.py
adm-in/foodgram-project-react
c681297d9f1b34a6504350c4fb4306cbdb156c6a
[ "Apache-2.0" ]
null
null
null
backend/apps/users/urls.py
adm-in/foodgram-project-react
c681297d9f1b34a6504350c4fb4306cbdb156c6a
[ "Apache-2.0" ]
null
null
null
from django.urls import include, path from rest_framework.routers import DefaultRouter from users import views app_name = 'users' router_v1 = DefaultRouter() router_v1.register( 'users/subscriptions', views.SubscriptionsViewSet, basename='subscriptions', ) router_v1.register('users', views.UserViewSet, b...
25.434783
64
0.707692
680a93ca57eb3545ee9c44b819d21a5f67b3fa65
568
py
Python
tests/test_bowa.py
augustogoulart/bowa
340581e21a02df7a80315a69f46275ee93e454c1
[ "MIT" ]
null
null
null
tests/test_bowa.py
augustogoulart/bowa
340581e21a02df7a80315a69f46275ee93e454c1
[ "MIT" ]
1
2018-10-29T00:51:27.000Z
2018-10-29T00:51:27.000Z
tests/test_bowa.py
augustogoulart/bowa
340581e21a02df7a80315a69f46275ee93e454c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `bowa` package.""" import pytest from bowa import bowa @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('https://github.com...
21.846154
78
0.690141
7f3b3ab664a2a85e369ddbf28f99e7cab16012df
4,652
py
Python
core/domain/learner_group_domain.py
nithinrdy/oppia
b8b33a4f3fbd44f3b969239e6ee1abb3a3ef9d5f
[ "Apache-2.0" ]
null
null
null
core/domain/learner_group_domain.py
nithinrdy/oppia
b8b33a4f3fbd44f3b969239e6ee1abb3a3ef9d5f
[ "Apache-2.0" ]
null
null
null
core/domain/learner_group_domain.py
nithinrdy/oppia
b8b33a4f3fbd44f3b969239e6ee1abb3a3ef9d5f
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 The Oppia Authors. 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 requi...
36.062016
78
0.656707
0082b5a981d5e8e64e4328ebe8f56f73e22f01f7
478
py
Python
IntroductoryProblems/Python/permutations.py
ashish-bisht/CSES-problem-set
ebf0bbb55c66398e4391d7fa25a8a2d1fa906146
[ "MIT" ]
null
null
null
IntroductoryProblems/Python/permutations.py
ashish-bisht/CSES-problem-set
ebf0bbb55c66398e4391d7fa25a8a2d1fa906146
[ "MIT" ]
null
null
null
IntroductoryProblems/Python/permutations.py
ashish-bisht/CSES-problem-set
ebf0bbb55c66398e4391d7fa25a8a2d1fa906146
[ "MIT" ]
1
2020-12-07T15:50:52.000Z
2020-12-07T15:50:52.000Z
def permutations(num): if num <= 3: return "No Solution" beautiful = [-1] * num left = 0 right = num//2 cur_num = num while left < right and right < num: if cur_num % 2 == 0: beautiful[left] = cur_num left += 1 else: beautiful[right] = ...
20.782609
39
0.525105
cde540a9a055f4b1a392c90b411caa58a5194963
1,950
py
Python
firmware/CsvWriter.py
Elleo/aq-device
be2cdd5aeaad64fddfbac522c55a2320fce4b5de
[ "Apache-2.0" ]
1
2022-03-28T10:00:24.000Z
2022-03-28T10:00:24.000Z
firmware/CsvWriter.py
Elleo/aq-device
be2cdd5aeaad64fddfbac522c55a2320fce4b5de
[ "Apache-2.0" ]
13
2021-12-11T08:37:49.000Z
2022-03-31T12:03:06.000Z
firmware/CsvWriter.py
Elleo/aq-device
be2cdd5aeaad64fddfbac522c55a2320fce4b5de
[ "Apache-2.0" ]
1
2022-03-27T12:58:10.000Z
2022-03-27T12:58:10.000Z
# Copyright (c) 2021 RS Components Ltd # SPDX-License-Identifier: MIT License ''' CSV writer helper class ''' from DesignSpark.ESDK import AppLogger import csv import copy from datetime import datetime class CsvWriter: def __init__(self, friendlyName='', debug=False, hwid=0, loggingLevel='full'): self.lo...
39.795918
120
0.641538
9450fe6a9f80c221b04a842a238b82702317550b
346
py
Python
sherlock/codelib/generator/temp_variable.py
Luavis/sherlock.py
6974244c5ddb2f5e41aea2fbc7f913917fd15532
[ "MIT" ]
55
2017-02-12T08:22:44.000Z
2022-01-08T12:34:53.000Z
sherlock/codelib/generator/temp_variable.py
Ronlin1/sherlock.py
6974244c5ddb2f5e41aea2fbc7f913917fd15532
[ "MIT" ]
3
2017-02-24T16:23:40.000Z
2022-02-05T19:54:26.000Z
sherlock/codelib/generator/temp_variable.py
Ronlin1/sherlock.py
6974244c5ddb2f5e41aea2fbc7f913917fd15532
[ "MIT" ]
7
2017-01-17T17:34:59.000Z
2022-02-15T15:23:17.000Z
class TempVariableManager(object): def __init__(self, prefix_name): self.prefix_name = prefix_name self.variable_id = 0 def get_new_name(self): self.variable_id += 1 return self.get_last_variable_name() def get_last_variable_name(self): return '%s_%d' % (self.prefi...
26.615385
61
0.67341
4602f1ea22fbd3d3e8bebee92993438aef7dc61e
2,606
py
Python
src/wechaty/user/url_link.py
jiaqianjing/python-wechaty
c2565b370de2142efb22be6dc0a5b998440dd85e
[ "Apache-2.0" ]
1
2021-04-14T08:03:45.000Z
2021-04-14T08:03:45.000Z
src/wechaty/user/url_link.py
jiaqianjing/python-wechaty
c2565b370de2142efb22be6dc0a5b998440dd85e
[ "Apache-2.0" ]
6
2020-10-09T20:04:33.000Z
2022-01-22T10:43:10.000Z
src/wechaty/user/url_link.py
jiaqianjing/python-wechaty
c2565b370de2142efb22be6dc0a5b998440dd85e
[ "Apache-2.0" ]
null
null
null
""" UrlLink for Contact Message """ from __future__ import annotations from typing import ( Type, Union ) import requests from lxml import etree # type: ignore from wechaty_puppet import UrlLinkPayload, get_logger # type: ignore log = get_logger('UrlLink') class UrlLink: """ url_link object which ...
24.819048
105
0.553722
49aa2e682ed635138021302e996260d06f870457
11,803
py
Python
ssseg/modules/datasets/coco.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
1
2021-05-28T06:42:37.000Z
2021-05-28T06:42:37.000Z
ssseg/modules/datasets/coco.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
ssseg/modules/datasets/coco.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
''' Function: load the coco dataset Author: Zhenchao Jin ''' import os import cv2 import pandas as pd from .base import * from tqdm import tqdm '''coco dataset pretraining for VOC''' class COCODataset(BaseDataset): num_classes = 21 classnames = ['__background__', 'airplane', 'bicycle', 'bird', 'boat',...
62.121053
134
0.592392
462c897450135b76a5d490afa1d482b498496611
3,430
py
Python
json_navigator.py
TimKozak/JsonNavigator
f0591a98e725454877eb37a0f5fa29b9269c88a8
[ "MIT" ]
null
null
null
json_navigator.py
TimKozak/JsonNavigator
f0591a98e725454877eb37a0f5fa29b9269c88a8
[ "MIT" ]
null
null
null
json_navigator.py
TimKozak/JsonNavigator
f0591a98e725454877eb37a0f5fa29b9269c88a8
[ "MIT" ]
null
null
null
""" Module for Twitter Data json navigation """ import json from pprint import pprint import requests def twitter_api(): """ Get json from twitter """ while True: try: your_token = input("Paste your token: ") tweet_tag = input("Enter twitter tag: @") base_u...
29.067797
73
0.453061
cc6f910bd20b9fa986928b40b5317beb0c76f26e
963
py
Python
AllAgents/bob/coordinates/is_coordinates.py
42-AI/TCP-Unity-Client
b4dcce1776d0f0b1c7a85584e03e4e7d603532db
[ "MIT" ]
null
null
null
AllAgents/bob/coordinates/is_coordinates.py
42-AI/TCP-Unity-Client
b4dcce1776d0f0b1c7a85584e03e4e7d603532db
[ "MIT" ]
null
null
null
AllAgents/bob/coordinates/is_coordinates.py
42-AI/TCP-Unity-Client
b4dcce1776d0f0b1c7a85584e03e4e7d603532db
[ "MIT" ]
null
null
null
from bomberman import defines from bomberman.defines import t_action from bomberman.states.StatePlayer import StatePlayer from typing import List, Tuple, Union Coordinates = Union[Tuple[int, int], Tuple[float, float]] def is_valid_coordinates(board: List[List[str]], coordinates: Coordinates) -> bool: x, z ...
25.342105
86
0.71028
b2590143a9a43ad6b59c4fd8c1b3289464e29df6
11,386
py
Python
src/training_rnn.py
sylvainlapeyrade/LSTM_KDD99_Keras
e07c05803dfd4ad454cf5043531bb3e205ec022b
[ "MIT" ]
17
2019-08-08T00:14:25.000Z
2022-03-04T14:55:17.000Z
src/training_rnn.py
sylvainlapeyrade/LSTM_KDD99_Keras
e07c05803dfd4ad454cf5043531bb3e205ec022b
[ "MIT" ]
6
2019-12-17T09:59:02.000Z
2020-07-27T22:24:47.000Z
src/training_rnn.py
sylvainlapeyrade/RNN_Intrusion-Detection_Keras
e07c05803dfd4ad454cf5043531bb3e205ec022b
[ "MIT" ]
6
2019-08-08T00:14:29.000Z
2021-12-11T22:41:25.000Z
import tensorflow import pandas as pd import numpy as np import os from time import time from keras.layers import Dense, Dropout, CuDNNLSTM, CuDNNGRU, RNN, LSTM, GRU from keras import Sequential from keras.callbacks import TensorBoard, ModelCheckpoint from kdd_processing import kdd_encoding from unsw_processing import...
43.292776
79
0.61277
ca23cc6c336a31497b9fcdc5ab504fcc228eb340
501
py
Python
pyscript/fpaid.py
polossk/Project-Mizuki-and-Hagane
36f9d57f0de27bd374f07d2f9aacc022c73e8d9d
[ "MIT" ]
1
2017-07-28T06:35:09.000Z
2017-07-28T06:35:09.000Z
pyscript/fpaid.py
polossk/Project-Mizuki-and-Hagane
36f9d57f0de27bd374f07d2f9aacc022c73e8d9d
[ "MIT" ]
null
null
null
pyscript/fpaid.py
polossk/Project-Mizuki-and-Hagane
36f9d57f0de27bd374f07d2f9aacc022c73e8d9d
[ "MIT" ]
null
null
null
from __future__ import print_function from pymongo import MongoClient import sys, time def main(): if len(sys.argv) < 2: sys.exit() numbers = sys.argv[1:] c = MongoClient('mongodb://username:password@localhost:23333/test?authSource=admin') posts = c.test.users for uid in numbers: posts.update({"usershowid": u...
26.368421
85
0.686627
179abf5be1018db6373c714b3c3d8d4b3024d038
1,928
py
Python
bluebottle/payments_beyonic/migrations/0001_initial.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/payments_beyonic/migrations/0001_initial.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/payments_beyonic/migrations/0001_initial.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-04-04 11:00 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields.json class Migration(migrations.Migration): initial = True dependencies = [ (...
48.2
194
0.638485
6a8b72c8b7c986ad52fea9f675019af8c5e3cc58
6,387
py
Python
movie_predict_modules/clean_data(edited).py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
1
2017-11-02T06:06:39.000Z
2017-11-02T06:06:39.000Z
movie_predict_modules/clean_data(edited).py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
null
null
null
movie_predict_modules/clean_data(edited).py
andurilhuang/Movie_Income_Prediction
5c705fe60295a175e9dc54191df422fc49ceccd6
[ "MIT" ]
4
2017-11-01T19:24:31.000Z
2018-09-13T00:05:41.000Z
from sklearn import preprocessing import json import math import numpy as np import pandas as pd import random import requests def get_act_pop_avg(): """get average poplularity rating for actos by sampling""" query_ave = "https://api.themoviedb.org/3/person/popular?" \ "api_key=60027f35df522f00e57a79...
36.919075
90
0.570534
093b7a26732e4735c0a937a4753071c5ef7143ec
765
py
Python
django_uuid_primary_key/urls.py
vaibhavmule/django-uuid-primary-key
5d751a3c3c1b16556fae04efeea82a310e5c7ef5
[ "MIT" ]
6
2017-10-31T17:45:43.000Z
2022-02-04T10:59:33.000Z
django_uuid_primary_key/urls.py
vaibhavmule/django-uuid-primary-key
5d751a3c3c1b16556fae04efeea82a310e5c7ef5
[ "MIT" ]
9
2017-11-01T07:14:50.000Z
2022-02-10T07:17:54.000Z
django_uuid_primary_key/urls.py
vaibhavmule/django-uuid-primary-key
5d751a3c3c1b16556fae04efeea82a310e5c7ef5
[ "MIT" ]
4
2017-11-01T06:56:39.000Z
2019-08-14T12:03:29.000Z
"""django_uuid_primary_key URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/dev/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='ho...
34.772727
77
0.71634
c605af63117521f9bcca6169a0029588892b4a7f
1,176
py
Python
5-Reinforcement Learning/Thompson Sampling/Code.py
HMSheharyar/MachineLearning
4f2fdf2a1cafb4b8c743dd3af3bd118a8a47ff68
[ "MIT" ]
1
2019-02-16T18:39:29.000Z
2019-02-16T18:39:29.000Z
5-Reinforcement Learning/Thompson Sampling/Code.py
HMSheharyar/MachineLearning
4f2fdf2a1cafb4b8c743dd3af3bd118a8a47ff68
[ "MIT" ]
null
null
null
5-Reinforcement Learning/Thompson Sampling/Code.py
HMSheharyar/MachineLearning
4f2fdf2a1cafb4b8c743dd3af3bd118a8a47ff68
[ "MIT" ]
null
null
null
#------------------------------------------------- Thompson Sampling -------------------------------------------------# #---Libraries Import---# import numpy as np import matplotlib.pyplot as plt import pandas as pd #---Importing the dataset---# dataset = pd.read_csv('FileName.csv') #---Implementing Thompson Sampli...
28
119
0.618197
65b199bbf4cf22444067f4ad51b065616b339ce9
11,024
py
Python
tests/conftest.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
null
null
null
tests/conftest.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
null
null
null
tests/conftest.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
null
null
null
# pylint: disable=C0111 import os import tempfile from collections import Mapping from datetime import timedelta import pytest from osmaxx.utils.frozendict import frozendict test_data_dir = os.path.join(os.path.dirname(__file__), 'test_data') postgres_container_userland_port = 65432 # required for travis, so using...
33.305136
114
0.628901
f76f9273e248f2a20d1d8fa88043f5da01fb8c0d
4,509
py
Python
intropyproject-classify-pet-images/classify_images.py
djarrin/udacity-use-pre-trained-image-classifier
afe4d2a273048d15b4b2fe37411fba725355d2b6
[ "MIT" ]
null
null
null
intropyproject-classify-pet-images/classify_images.py
djarrin/udacity-use-pre-trained-image-classifier
afe4d2a273048d15b4b2fe37411fba725355d2b6
[ "MIT" ]
null
null
null
intropyproject-classify-pet-images/classify_images.py
djarrin/udacity-use-pre-trained-image-classifier
afe4d2a273048d15b4b2fe37411fba725355d2b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/classify_images.py # # PROGRAMMER: David Jarrin # DATE CREATED: 3/1/19 # REVISED DATE: 3/2/19 # PURPOSE: Create a function classify_images that uses the classifier function # to create the classifier labels and...
54.987805
90
0.696385
b3c24213f3474d01362b41eb661d7e4ea211c968
123,656
py
Python
Lib/test/test_zipfile.py
GreatBahram/cpython
3529718925f40d14ed48d281d809187bc7314a14
[ "0BSD" ]
7
2018-09-25T17:32:32.000Z
2021-06-16T18:40:40.000Z
Lib/test/test_zipfile.py
GreatBahram/cpython
3529718925f40d14ed48d281d809187bc7314a14
[ "0BSD" ]
17
2018-01-26T13:23:58.000Z
2022-03-01T13:44:36.000Z
Lib/test/test_zipfile.py
GreatBahram/cpython
3529718925f40d14ed48d281d809187bc7314a14
[ "0BSD" ]
1
2020-09-13T02:40:55.000Z
2020-09-13T02:40:55.000Z
import contextlib import importlib.util import io import itertools import os import pathlib import posixpath import string import struct import subprocess import sys import time import unittest import unittest.mock as mock import zipfile import functools from tempfile import TemporaryFile from random import randint, ...
39.56992
100
0.588188
461748b63cde489f06de19d4422b9dac5e9f4253
1,195
py
Python
module_test.py
UTokyoMDcenter/matching
3d19ddb8d7a4cb95ce63c0477d1ba47bbe141973
[ "MIT" ]
4
2021-05-24T06:49:19.000Z
2021-12-07T04:37:04.000Z
module_test.py
UTokyoMDcenter/matching
3d19ddb8d7a4cb95ce63c0477d1ba47bbe141973
[ "MIT" ]
null
null
null
module_test.py
UTokyoMDcenter/matching
3d19ddb8d7a4cb95ce63c0477d1ba47bbe141973
[ "MIT" ]
null
null
null
""" For import test (temporary) """ import numpy as np #import matching if __name__ == "__main__": d_prefs = [ [0, 2, 1], [1, 0, 2], [0, 1, 2], [2, 0, 1], ] h_prefs = [ [0, 2, 1, 3], [1, 0, 2, 3], [2, 0, 3, 1], ] caps = np.array([1, ...
20.964912
93
0.529707
1dbed8e70537954c50e8306c419c866c6d7fe376
24,304
py
Python
asdl/lang/alive_lang/alive/tests/lit/lit/llvm/config.py
AlexShypula/tranX
bd3c77c5fc1ae4fd217c8293ee07644641398ff7
[ "Apache-2.0" ]
203
2015-01-06T19:19:05.000Z
2022-03-14T18:30:52.000Z
asdl/lang/alive_lang/alive/tests/lit/lit/llvm/config.py
AlexShypula/tranX
bd3c77c5fc1ae4fd217c8293ee07644641398ff7
[ "Apache-2.0" ]
34
2015-01-28T08:42:36.000Z
2020-10-01T06:08:59.000Z
asdl/lang/alive_lang/alive/tests/lit/lit/llvm/config.py
AlexShypula/tranX
bd3c77c5fc1ae4fd217c8293ee07644641398ff7
[ "Apache-2.0" ]
19
2015-06-27T01:14:31.000Z
2020-09-30T10:03:58.000Z
import itertools import os import platform import re import subprocess import sys import lit.util from lit.llvm.subst import FindTool from lit.llvm.subst import ToolSubst class LLVMConfig(object): def __init__(self, lit_config, config): self.lit_config = lit_config self.config = config ...
45.174721
162
0.589574
dc7edaa77302e84d83b68331c39ac15f529503ed
118
py
Python
prova logica.py
noudas/treinopython1
88379a2f1a564de518e33ea29df14f7ce65583d8
[ "0BSD" ]
null
null
null
prova logica.py
noudas/treinopython1
88379a2f1a564de518e33ea29df14f7ce65583d8
[ "0BSD" ]
null
null
null
prova logica.py
noudas/treinopython1
88379a2f1a564de518e33ea29df14f7ce65583d8
[ "0BSD" ]
null
null
null
def somar(n1,n2): soma = n1+n2 return soma num1 = 3 num2 = int(input()) x = 2**3-somar(num1,num2)
11.8
26
0.533898
fcf2055612f6f0c3fda9cde33a9acf8047cd5887
331
py
Python
config.py
zackorndorff/revsync
17255aebd281edffb3f3330c21cda00039bc51a3
[ "MIT" ]
94
2017-05-13T05:39:06.000Z
2022-01-11T18:14:54.000Z
config.py
zackorndorff/revsync
17255aebd281edffb3f3330c21cda00039bc51a3
[ "MIT" ]
5
2020-06-11T19:09:43.000Z
2021-05-01T05:01:55.000Z
config.py
zackorndorff/revsync
17255aebd281edffb3f3330c21cda00039bc51a3
[ "MIT" ]
25
2017-05-13T18:15:23.000Z
2022-02-03T22:32:41.000Z
from __future__ import print_function import json import os try: # TODO: We can look in $HOME/.config or $HOME/.revsync or something path = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(path, "config.json"), "r") as f: config = json.loads(f.read()) except Exception: raise I...
25.461538
71
0.691843
ed732718194e34aa16a51882be9da105f8bb89ac
8,598
py
Python
train/validate_errpatch.py
thisisiron/khaiii-keras
c739c6f93198ecd9ac959a9b75c9d28d30ecb88b
[ "Apache-2.0" ]
1
2019-02-21T05:24:43.000Z
2019-02-21T05:24:43.000Z
train/validate_errpatch.py
thisisiron/khaiii-keras
c739c6f93198ecd9ac959a9b75c9d28d30ecb88b
[ "Apache-2.0" ]
1
2019-02-20T09:25:50.000Z
2019-02-20T09:25:50.000Z
train/validate_errpatch.py
thisisiron/khaiii-keras
c739c6f93198ecd9ac959a9b75c9d28d30ecb88b
[ "Apache-2.0" ]
1
2019-02-20T09:23:26.000Z
2019-02-20T09:23:26.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ 추출된 오분석 패치 후보를 검증하는 스크립트 __author__ = 'Jamie (jamie.lim@kakaocorp.com)' __copyright__ = 'Copyright (C) 2019-, Kakao Corp. All rights reserved.' """ ########### # imports # ########### from argparse import ArgumentParser, Namespace from collections import defaultdic...
31.726937
100
0.604559
f6b4c1f315fc1e41e3be0345d46a3db9d2aed9c9
1,012
py
Python
app/core/models.py
astenstrasser/udemy-api-drf
b72d448aa8e9c9d1ee46a10e049550bbdbf94ef5
[ "MIT" ]
null
null
null
app/core/models.py
astenstrasser/udemy-api-drf
b72d448aa8e9c9d1ee46a10e049550bbdbf94ef5
[ "MIT" ]
null
null
null
app/core/models.py
astenstrasser/udemy-api-drf
b72d448aa8e9c9d1ee46a10e049550bbdbf94ef5
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): if not email: raise ValueError('User must have an email address') ...
28.914286
76
0.69664
29f13dd935060c372c9502d508ec49b13e365ac2
718
py
Python
.ci/appveyor/pypi_upload.py
elbeejay/landlab
76ba4ab92f2a1e0586072f0f08f7b28392df719f
[ "MIT" ]
4
2019-04-05T16:41:40.000Z
2021-06-11T20:33:14.000Z
.ci/appveyor/pypi_upload.py
elbeejay/landlab
76ba4ab92f2a1e0586072f0f08f7b28392df719f
[ "MIT" ]
7
2020-04-03T21:40:07.000Z
2020-12-02T22:57:12.000Z
.ci/appveyor/pypi_upload.py
elbeejay/landlab
76ba4ab92f2a1e0586072f0f08f7b28392df719f
[ "MIT" ]
4
2018-05-21T17:40:58.000Z
2020-08-21T05:44:41.000Z
import glob import os import subprocess import sys import traceback print('Using python: {prefix}'.format(prefix=sys.prefix)) repo_tag = os.environ.get('APPVEYOR_REPO_TAG', 'false') tag_name = os.environ.get('APPVEYOR_REPO_TAG_NAME', '') token = os.environ.get('PYPI_PASS', 'NOT_A_TOKEN') if repo_tag == 'true' and ...
25.642857
73
0.644847
7f9428946fbb3f90f787482d999568014d658a68
4,407
py
Python
exercise/venv/lib/python3.7/site-packages/sqreen/events.py
assuzzanne/my-sqreen
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
exercise/venv/lib/python3.7/site-packages/sqreen/events.py
assuzzanne/my-sqreen
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
1
2021-06-02T00:27:34.000Z
2021-06-02T00:27:34.000Z
exercise/venv/lib/python3.7/site-packages/sqreen/events.py
assuzzanne/notifications-dispatcher-api
81ae0eab417a1dbc0ae6b1778ebfdd71591c3c5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016, 2017, 2018, 2019 Sqreen. All rights reserved. # Please refer to our terms for more information: # # https://www.sqreen.io/terms.html # """ Sqreen attack event helpers and placeholder """ import traceback from logging import getLogger from .config import CONFIG from .re...
36.725
79
0.572725
dc63dbc54c89784d661f85a69077905be80108cc
7,161
py
Python
src/models/descatter_gan_model.py
mjiUST/VasNet
6d39d0915cf6d77ed580de41800982b31ae2aa47
[ "MIT" ]
12
2020-04-23T04:50:22.000Z
2021-11-29T02:28:21.000Z
src/models/descatter_gan_model.py
mjiUST/VasNet
6d39d0915cf6d77ed580de41800982b31ae2aa47
[ "MIT" ]
1
2020-07-21T23:06:16.000Z
2020-07-23T07:10:28.000Z
src/models/descatter_gan_model.py
mjiUST/VasNet
6d39d0915cf6d77ed580de41800982b31ae2aa47
[ "MIT" ]
1
2021-01-05T15:42:17.000Z
2021-01-05T15:42:17.000Z
import torch import itertools from util.image_pool import ImagePool from .base_model import BaseModel from . import networks class DescatterGANModel(BaseModel): def name(self): return 'DescatterGANModel' @staticmethod def modify_commandline_options(parser, is_train=True): # default CycleG...
47.423841
362
0.62617
8038e06aa085f6ddbcab9303f4ee23fc7bddc13f
1,386
py
Python
src/models/tuned_xgboost.py
DS-IFT6750-project-collaboration/Hockey-all-star-analytics
1fc6a1c55d8d3c5028691c6cf9de31256bf30155
[ "MIT" ]
null
null
null
src/models/tuned_xgboost.py
DS-IFT6750-project-collaboration/Hockey-all-star-analytics
1fc6a1c55d8d3c5028691c6cf9de31256bf30155
[ "MIT" ]
null
null
null
src/models/tuned_xgboost.py
DS-IFT6750-project-collaboration/Hockey-all-star-analytics
1fc6a1c55d8d3c5028691c6cf9de31256bf30155
[ "MIT" ]
null
null
null
from os import environ import numpy as np import pandas as pd from comet_ml import Experiment from xgboost import XGBClassifier from sklearn.model_selection import train_test_split np.random.seed(0) def preprocess_data(): season_plays_df = pd.read_csv("./data/processed/plays_2015-2020.csv", index_col=False) ...
26.150943
90
0.652958
34c2f33e64da5a2937b9fcb949a753daedc32d12
7,187
py
Python
openprocurement/bot/risk_indicators/bridge.py
ProzorroUKR/openprocurement.bot.risk_indicators
55ba12812c1494e4b4331a85f5bc79caf42d6bca
[ "Apache-2.0" ]
null
null
null
openprocurement/bot/risk_indicators/bridge.py
ProzorroUKR/openprocurement.bot.risk_indicators
55ba12812c1494e4b4331a85f5bc79caf42d6bca
[ "Apache-2.0" ]
13
2018-07-17T08:29:56.000Z
2018-12-21T15:53:07.000Z
openprocurement/bot/risk_indicators/bridge.py
ProzorroUKR/openprocurement.bot.risk_indicators
55ba12812c1494e4b4331a85f5bc79caf42d6bca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from collections import defaultdict from time import sleep from urllib import quote_plus import requests import logging logging.basicConfig() logger = logging.getLogger("RiskIndicatorBridge") class RiskIndicatorBridge(object): def __init__(self, ...
35.579208
105
0.558787
d8756bce58b2f68b84f58893c616299a922d9c1a
5,234
py
Python
result.py
AlexLito666/my_project
16e92d8e8b5b78a3a6b6ef399539c0876a6839d3
[ "CC0-1.0" ]
null
null
null
result.py
AlexLito666/my_project
16e92d8e8b5b78a3a6b6ef399539c0876a6839d3
[ "CC0-1.0" ]
null
null
null
result.py
AlexLito666/my_project
16e92d8e8b5b78a3a6b6ef399539c0876a6839d3
[ "CC0-1.0" ]
null
null
null
from pygame import * from random import randint # подгружаем отдельно функции для работы со шрифтом font.init() font1 = font.SysFont("verdana", 80) win = font1.render('YOU WIN!', True, (255, 255, 255)) lose = font1.render('YOU LOSE!', True, (180, 0, 0)) font2 = font.Font(None, 36) #фоновая музыка mixer.init() mixer.m...
32.918239
97
0.641765
05c35c0d36705f2747deecd223796a5941c0cd25
6,350
py
Python
src/backends/cgpm_alter/parse.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
964
2015-09-24T15:02:05.000Z
2022-03-29T21:41:21.000Z
src/backends/cgpm_alter/parse.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
435
2015-09-23T16:46:58.000Z
2020-04-19T12:32:03.000Z
src/backends/cgpm_alter/parse.py
almartin82/bayeslite
a27f243b5f16cc6a01e84336a829e5b65d665b7b
[ "Apache-2.0" ]
86
2015-10-24T20:08:30.000Z
2021-08-09T13:53:00.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2010-2016, MIT Probabilistic Computing Project # # 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/LICENS...
32.397959
77
0.631024
4096f4a75ea65f1c882e5e2ce31855fff150377d
1,422
py
Python
plugins/setunset.py
VenujaBots/Google-Translator-Bot
65e4290879c5ff16fb2b796995e1ac6a3bccf9cd
[ "Apache-2.0" ]
4
2021-11-23T15:44:23.000Z
2021-12-17T14:46:37.000Z
plugins/setunset.py
really650a/Google-Translator-Bot
6d125e0527cfe08e91c3f836b6b9c1a0c3e03a07
[ "Apache-2.0" ]
null
null
null
plugins/setunset.py
really650a/Google-Translator-Bot
6d125e0527cfe08e91c3f836b6b9c1a0c3e03a07
[ "Apache-2.0" ]
2
2022-01-16T03:07:21.000Z
2022-03-04T10:54:13.000Z
from pyrogram import Client, filters from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup ) from helper.database import set,unset ,insert from helper.langlist import langlist @Client.on_message(filters.private &filters.command(['unset'])) async def unsetlg(client,message): unset(int(message...
44.4375
244
0.674402
6c96f8aa51f474f2d8e2f6361e865440b2696316
171
py
Python
src/rifa/views.py
papeclem/Rifa-public
7cd32656b73a6bcc7f5b309fbe025fe7d76c12b8
[ "MIT" ]
1
2021-09-06T12:53:37.000Z
2021-09-06T12:53:37.000Z
src/rifa/views.py
papeclem/Rifa-public
7cd32656b73a6bcc7f5b309fbe025fe7d76c12b8
[ "MIT" ]
null
null
null
src/rifa/views.py
papeclem/Rifa-public
7cd32656b73a6bcc7f5b309fbe025fe7d76c12b8
[ "MIT" ]
null
null
null
from datetime import datetime from django.shortcuts import render def index(request): return render(request, "rifa/index.html", context={'date': datetime.today()})
21.375
81
0.748538
2c496595962e20c1bcc87c8574de5a28cbf94ffe
1,039
py
Python
tensorpack/utils/image.py
Arturus/tensorpack
74aed2aace7a0ded197a432fac23b5da1fb27ede
[ "Apache-2.0" ]
null
null
null
tensorpack/utils/image.py
Arturus/tensorpack
74aed2aace7a0ded197a432fac23b5da1fb27ede
[ "Apache-2.0" ]
null
null
null
tensorpack/utils/image.py
Arturus/tensorpack
74aed2aace7a0ded197a432fac23b5da1fb27ede
[ "Apache-2.0" ]
null
null
null
import numpy as np from . import logger import cv2 __all__ = ['read_image'] try: import jpeg4py as jpeg except ImportError: logger.warning('jpeg4py not installed, fallback to opencv for jpeg reading') jpeg = None def read_image(file_name, bgr=True): """ Reads jpeg by jpeg4py library. If jpeg4py ...
25.975
116
0.583253
02f819fe49aeff2bb8464c94ec362e4166e181f1
5,492
py
Python
python/MDSplus/__init__.py
dgarnier/mdsplus
0643029addf583151e2795d4c014679aeaf587c0
[ "BSD-2-Clause" ]
null
null
null
python/MDSplus/__init__.py
dgarnier/mdsplus
0643029addf583151e2795d4c014679aeaf587c0
[ "BSD-2-Clause" ]
null
null
null
python/MDSplus/__init__.py
dgarnier/mdsplus
0643029addf583151e2795d4c014679aeaf587c0
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2017, Massachusetts Institute of Technology 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 o...
33.084337
111
0.676438
13e093e9d3228e9e9c10ae22ce7bab05e4d658ce
608
py
Python
script/train.py
mcaniot/simclr-pytorch
3d4c1533869c6c54e1004d452eaf8dca3f506cc0
[ "MIT" ]
null
null
null
script/train.py
mcaniot/simclr-pytorch
3d4c1533869c6c54e1004d452eaf8dca3f506cc0
[ "MIT" ]
null
null
null
script/train.py
mcaniot/simclr-pytorch
3d4c1533869c6c54e1004d452eaf8dca3f506cc0
[ "MIT" ]
null
null
null
# Basic libraries import torch from torchvision import datasets # Custom libraries import data_augmentation from simclr_framework import SimCLRFramework import tools trainset = datasets.STL10( '../data/', download=False, split="unlabeled", transform=data_augmentation.CreatePosPair(tools.OUTPUT_SIZE)) trainloa...
28.952381
72
0.794408
ba01de9cdb1f56ee379570288aca006c33ce0a31
359
py
Python
el/commands/el_assetLauncher.py
deepakxyz/Edna
825393c6ca88bb31d35cc4c369ea7042b9048fcb
[ "MIT" ]
2
2021-08-31T23:23:11.000Z
2022-03-07T03:18:01.000Z
el/commands/el_assetLauncher.py
deepakxyz/Elna
825393c6ca88bb31d35cc4c369ea7042b9048fcb
[ "MIT" ]
null
null
null
el/commands/el_assetLauncher.py
deepakxyz/Elna
825393c6ca88bb31d35cc4c369ea7042b9048fcb
[ "MIT" ]
null
null
null
import click import os from el.utils.el import Path, current_show, el from el.core.levels import Level path = '/mnt/y/pipeline/Shows/Mayday/asset_build' @click.command() def cli(): '''Asset Launcher''' if Level.check('show'): os.system('cmd.exe /c python Z:/Elna/el/app/assetLauncher.py') else: ...
23.933333
71
0.671309
e7ae6d9ea2a84ec4fbdd92c64d9512e116dc3315
4,184
py
Python
tests/test_utils.py
Comcast/pipeline-deploy
e3f923d3683a091f4c5ee9e039672c3edcee0eb1
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
Comcast/pipeline-deploy
e3f923d3683a091f4c5ee9e039672c3edcee0eb1
[ "Apache-2.0" ]
1
2022-02-23T21:49:33.000Z
2022-02-23T21:49:33.000Z
tests/test_utils.py
Comcast/pipeline-deploy
e3f923d3683a091f4c5ee9e039672c3edcee0eb1
[ "Apache-2.0" ]
null
null
null
""" Copyright 2022 Comcast Cable Communications Management, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
35.760684
107
0.716061
30e9d9725f37facf0846afa897c9d2a479429185
2,640
py
Python
observatory-platform/observatory/platform/utils/airflow_utils.py
bmkramer/observatory-platform
0f1e439df386d255b521730eea9dc396831842cd
[ "Apache-2.0" ]
null
null
null
observatory-platform/observatory/platform/utils/airflow_utils.py
bmkramer/observatory-platform
0f1e439df386d255b521730eea9dc396831842cd
[ "Apache-2.0" ]
null
null
null
observatory-platform/observatory/platform/utils/airflow_utils.py
bmkramer/observatory-platform
0f1e439df386d255b521730eea9dc396831842cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Curtin University # # 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 writi...
33
115
0.682576
9c19753ea1f0c2bdd24556ebeaf91781ce83f382
508
py
Python
scripts/tf_pt_conv2d_experiment.py
Conzel/zipnet
7a5a3d629f26cd5debacff3eb768f1dd86c1185e
[ "MIT" ]
6
2021-09-16T06:38:47.000Z
2022-02-28T18:44:57.000Z
scripts/tf_pt_conv2d_experiment.py
Conzel/zipnet
7a5a3d629f26cd5debacff3eb768f1dd86c1185e
[ "MIT" ]
null
null
null
scripts/tf_pt_conv2d_experiment.py
Conzel/zipnet
7a5a3d629f26cd5debacff3eb768f1dd86c1185e
[ "MIT" ]
null
null
null
# coding: utf-8 import torch import numpy as np import torch.nn.functional as f import tensorflow as tf k = np.random.rand(3, 2, 5, 5).astype(np.float32) x = np.random.rand(1, 2, 10, 10).astype(np.float32) x_ = np.moveaxis(x, 1,3) k_ = np.moveaxis(k, [0, 1], [3, 2]) tf.nn.conv2d(x_, k_, strides=1, padding="VALID") o_ ...
28.222222
66
0.659449
0085255405d2ac0bd3c198eb210b20ea0a9617e6
6,000
py
Python
code/tensor2tensor/tensor2tensor/utils/devices.py
cake-lab/transient_deep_learning
87c6717e4026801623cf0327e78ad57f51cb1461
[ "Apache-2.0" ]
11
2019-12-12T17:34:04.000Z
2022-03-03T11:21:13.000Z
tensor2tensor/utils/devices.py
smit-hinsu/tensor2tensor
8d3d175d649680c8e5b98a1b1c1c5e782ff492ac
[ "Apache-2.0" ]
63
2017-12-19T20:29:10.000Z
2021-08-04T21:49:36.000Z
tensor2tensor/utils/devices.py
smit-hinsu/tensor2tensor
8d3d175d649680c8e5b98a1b1c1c5e782ff492ac
[ "Apache-2.0" ]
3
2019-09-16T19:35:42.000Z
2020-09-04T02:23:13.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # 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...
33.519553
79
0.666
6fd9ea4ef5445d5c6aba24ced013617ccc50a903
13,503
py
Python
tests/test_data/test_pipelines/test_indoor_pipeline.py
konyul/monovideo
f50db55c324c2ab4a66d414b47f0558b72a3a009
[ "Apache-2.0" ]
5
2022-01-26T13:03:12.000Z
2022-01-27T03:59:09.000Z
tests/test_data/test_pipelines/test_indoor_pipeline.py
konyul/monovideo
f50db55c324c2ab4a66d414b47f0558b72a3a009
[ "Apache-2.0" ]
1
2022-03-31T08:33:12.000Z
2022-03-31T08:35:55.000Z
tests/test_data/test_pipelines/test_indoor_pipeline.py
konyul/monovideo
f50db55c324c2ab4a66d414b47f0558b72a3a009
[ "Apache-2.0" ]
1
2022-03-30T04:08:39.000Z
2022-03-30T04:08:39.000Z
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import numpy as np import torch from os import path as osp from mmdet3d.core.bbox import DepthInstance3DBoxes from mmdet3d.datasets.pipelines import Compose def test_scannet_pipeline(): class_names = ('cabinet', 'bed', 'chair', 'sofa', 'table', 'door', ...
39.59824
79
0.586981
bdeb7f486ccd9f1453b9d20c5687c9ebdc70853b
3,058
py
Python
yolo_dataset.py
marcin-sielski/keras-yolo3
cbde1c8d7daf0c7f710d06d55535ed8fe6bded20
[ "MIT" ]
null
null
null
yolo_dataset.py
marcin-sielski/keras-yolo3
cbde1c8d7daf0c7f710d06d55535ed8fe6bded20
[ "MIT" ]
null
null
null
yolo_dataset.py
marcin-sielski/keras-yolo3
cbde1c8d7daf0c7f710d06d55535ed8fe6bded20
[ "MIT" ]
null
null
null
import sys import os import argparse from yolo import YOLO from PIL import Image from uuid import uuid4 def parse_args(): parser = argparse.ArgumentParser(argument_default=argparse.SUPPRESS) parser.add_argument( '--model_path', type=str, help='path to model weight file, default ' + YO...
25.697479
78
0.567037
4171b657bef5b27e648b940e3d6d1ff1d323c211
1,385
py
Python
opencart_autogen.py
AndrewJanuary/playwright_demo
27501f2d6fa5be3912a6062faacf27430be4d747
[ "MIT" ]
null
null
null
opencart_autogen.py
AndrewJanuary/playwright_demo
27501f2d6fa5be3912a6062faacf27430be4d747
[ "MIT" ]
null
null
null
opencart_autogen.py
AndrewJanuary/playwright_demo
27501f2d6fa5be3912a6062faacf27430be4d747
[ "MIT" ]
null
null
null
from playwright.sync_api import sync_playwright def run(playwright): browser = playwright.chromium.launch(headless=False) context = browser.new_context() # Open new page page = context.new_page() # Go to http://opencart.abstracta.us/ page.goto("http://opencart.abstracta.us/") # Click [place...
40.735294
115
0.652708
4e9db236f08b466b5c3406a87bf149350a085824
3,143
py
Python
tests/test_annotated_regions.py
anonymousWork000/TVMfuzz
0ccbb33af89758b8ead59a8c686645246ccd0545
[ "Apache-2.0" ]
16
2021-05-22T07:39:53.000Z
2022-02-23T14:50:38.000Z
tests/test_annotated_regions.py
anonymousWork000/TVMfuzz
0ccbb33af89758b8ead59a8c686645246ccd0545
[ "Apache-2.0" ]
null
null
null
tests/test_annotated_regions.py
anonymousWork000/TVMfuzz
0ccbb33af89758b8ead59a8c686645246ccd0545
[ "Apache-2.0" ]
3
2021-05-28T07:12:14.000Z
2021-11-28T02:10:48.000Z
import tvm from tvm import relay from tvm.relay.op.annotation import compiler_begin, compiler_end def check_region(region_set, target, args, nodes, rets): region = region_set.get_region(args[0]) assert region assert target == region.target assert set(args) == set(region.args) assert set(nodes) == ...
27.330435
99
0.604836
801629454fa5a1a3b006a268aa7b2f0475723251
5,673
py
Python
events/worldcon75/management/commands/setup_worldcon75.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
events/worldcon75/management/commands/setup_worldcon75.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
events/worldcon75/management/commands/setup_worldcon75.py
Siikakala/kompassi
14cdcd966ab689d762cc885e28b6d15465c216f0
[ "CC-BY-3.0" ]
null
null
null
import os from datetime import datetime, timedelta from django.conf import settings from django.core.management.base import BaseCommand from django.utils.timezone import now from dateutil.tz import tzlocal from core.utils import slugify def mkpath(*parts): return os.path.abspath(os.path.join(os.path.dirname(__...
33.97006
112
0.568835
f97b64a4c719fd0aaaf48dc919d089eadbb1626d
1,620
py
Python
game.py
dijkmeneer/Guess-the-number
7ac619288294237c9d19a9ffa1fcf7baff4dc057
[ "MIT" ]
1
2020-08-27T20:22:23.000Z
2020-08-27T20:22:23.000Z
game.py
dijkmeneer/Guess-the-number
7ac619288294237c9d19a9ffa1fcf7baff4dc057
[ "MIT" ]
null
null
null
game.py
dijkmeneer/Guess-the-number
7ac619288294237c9d19a9ffa1fcf7baff4dc057
[ "MIT" ]
null
null
null
import random import time import os import sys input("Welcome to guess the number! press enter to start.") print("How many tries do you want? (5 is standard.)") tries = int(input()) number = random.randint(0, 10) while tries > 0: print("choose a number. (0-10)") guess = int(input()) i...
25.714286
69
0.474074
eb11ad6fea3356f2e37d5ab3c74f624b6709bbe0
1,815
py
Python
SciKitLearn/TreeClassifier/SkLearn_TreeClassifier_Modified.py
EmbeddedKen/MachineLearning
6998e44b64023941b70b12c9526efd6b99fa82e1
[ "MIT" ]
null
null
null
SciKitLearn/TreeClassifier/SkLearn_TreeClassifier_Modified.py
EmbeddedKen/MachineLearning
6998e44b64023941b70b12c9526efd6b99fa82e1
[ "MIT" ]
null
null
null
SciKitLearn/TreeClassifier/SkLearn_TreeClassifier_Modified.py
EmbeddedKen/MachineLearning
6998e44b64023941b70b12c9526efd6b99fa82e1
[ "MIT" ]
null
null
null
#SciKit (SK) Learn Initial Test Program #Modfied from Siraj Raval's SourceCode... #"Introduction- Learn Python for Data Science" #By Kenneth Vorseth, 2/4/18 #<Import Tree from Sci-Kit Learn> from sklearn import tree #<Initial Training Data> #(Height, Weight, Shoe Size) X = [[181, 80, 44], #Data 0x00 [177, 70, 43...
33
57
0.618733
60d87e6d8efa76939330e2e9008c651b0ebed03d
314
py
Python
law/api/search_api.py
B-Stefan/law-crawler
1be853ff21bd97786c3758dd914a1f8323569805
[ "Apache-2.0" ]
1
2019-03-10T21:38:36.000Z
2019-03-10T21:38:36.000Z
law/api/search_api.py
B-Stefan/law-crawler
1be853ff21bd97786c3758dd914a1f8323569805
[ "Apache-2.0" ]
40
2019-01-31T04:38:31.000Z
2021-08-03T04:13:29.000Z
law/api/search_api.py
B-Stefan/law-service
1be853ff21bd97786c3758dd914a1f8323569805
[ "Apache-2.0" ]
null
null
null
from flask_restful import reqparse from law.api.law_resource import LawResource class SearchAPI(LawResource): def get(self): parser = reqparse.RequestParser() parser.add_argument('q', type=str) args = parser.parse_args() return self.service.get_fulltext_result(args['q'])
20.933333
58
0.697452
7fc9055afb2de4f1636fae08239b753c87ab7a50
445
py
Python
Lib/site-packages/plotly/validators/isosurface/_x.py
tytanya/my-first-blog
2b40adb0816c3546e90ad6ca1e7fb50d924c1536
[ "bzip2-1.0.6" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/isosurface/_x.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2021-03-18T22:27:08.000Z
2022-03-11T23:40:50.000Z
plotly/validators/isosurface/_x.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class XValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name='x', parent_name='isosurface', **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type...
31.785714
76
0.651685
5c73409afae1d0f5682f64afb8104516525cec3d
154
py
Python
django_pymorphy2/morph.py
ITrex/django-pymorphy2
d3557da0f845c177367df948afddc106d48862f4
[ "MIT" ]
4
2017-07-25T16:28:37.000Z
2021-07-08T06:31:23.000Z
django_pymorphy2/morph.py
ITrex/django-pymorphy2
d3557da0f845c177367df948afddc106d48862f4
[ "MIT" ]
null
null
null
django_pymorphy2/morph.py
ITrex/django-pymorphy2
d3557da0f845c177367df948afddc106d48862f4
[ "MIT" ]
7
2015-05-07T08:47:51.000Z
2020-07-06T12:40:58.000Z
#coding: utf-8 from __future__ import unicode_literals, absolute_import from pymorphy2 import MorphAnalyzer __all__ = ['morph'] morph = MorphAnalyzer()
19.25
56
0.798701
0584bb3a02089d3c346d982ad863d9196d6f88fc
10,262
py
Python
docs/conf.py
Solanar/django-q
5e5676292b1df83c78fe224a67d212850dfaf8a9
[ "MIT" ]
null
null
null
docs/conf.py
Solanar/django-q
5e5676292b1df83c78fe224a67d212850dfaf8a9
[ "MIT" ]
null
null
null
docs/conf.py
Solanar/django-q
5e5676292b1df83c78fe224a67d212850dfaf8a9
[ "MIT" ]
1
2020-08-11T21:18:10.000Z
2020-08-11T21:18:10.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Django Q documentation build configuration file, created by # sphinx-quickstart on Fri Jun 26 22:18:36 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
32.27044
85
0.700741
5976dc4df02e279d131c9569b6ec761d7dcac3cd
590
py
Python
pyzoo/zoo/util/__init__.py
abdolence/analytics-zoo
364856abcbe9aff7f7b6cf9b9f8648d51e07ca64
[ "Apache-2.0" ]
2,970
2017-06-08T00:24:43.000Z
2022-03-30T12:14:55.000Z
pyzoo/zoo/util/__init__.py
abdolence/analytics-zoo
364856abcbe9aff7f7b6cf9b9f8648d51e07ca64
[ "Apache-2.0" ]
3,530
2017-05-09T08:29:10.000Z
2022-03-21T02:11:45.000Z
pyzoo/zoo/util/__init__.py
abdolence/analytics-zoo
364856abcbe9aff7f7b6cf9b9f8648d51e07ca64
[ "Apache-2.0" ]
972
2017-05-09T07:03:50.000Z
2022-03-23T07:48:48.000Z
# # Copyright 2018 Analytics Zoo Authors. # # 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...
36.875
74
0.759322
c603cb122ab11370f89306bfb6e53d326f5f583e
6,049
py
Python
catkin_ws/src/o2as_new_parts_description/scripts/generate_urdf_from_meshes.py
DevwratJoshi/ur-o2as
265249c27908a79a301014168394db0c0dc2204c
[ "MIT" ]
null
null
null
catkin_ws/src/o2as_new_parts_description/scripts/generate_urdf_from_meshes.py
DevwratJoshi/ur-o2as
265249c27908a79a301014168394db0c0dc2204c
[ "MIT" ]
null
null
null
catkin_ws/src/o2as_new_parts_description/scripts/generate_urdf_from_meshes.py
DevwratJoshi/ur-o2as
265249c27908a79a301014168394db0c0dc2204c
[ "MIT" ]
null
null
null
#!/usr/bin/python import csv import os import rospy import rospkg rp = rospkg.RosPack() print("D1") # Read in the files filenames = os.listdir(os.path.join(rp.get_path("o2as_new_parts_description"), "meshes")) filenames_strip1 = [] filenames_no_ext = [] for name in filenames: filenames_strip1.append(os.path.spl...
47.257813
152
0.67879
68687238f860da0d031fc14ae3a2dee35fc9e9d3
3,649
py
Python
SmartTransportSystem/settings.py
shahriarshafin/smart-transport-system
9b22ea5b7aeac2d4cad5edadfda90ba374056336
[ "MIT" ]
1
2022-03-20T21:16:34.000Z
2022-03-20T21:16:34.000Z
SmartTransportSystem/settings.py
shahriarshafin/SmartTransportSystem
9b22ea5b7aeac2d4cad5edadfda90ba374056336
[ "MIT" ]
7
2021-09-08T03:36:20.000Z
2022-01-13T20:56:44.000Z
SmartTransportSystem/settings.py
shahriarshafin/smart-transport-system
9b22ea5b7aeac2d4cad5edadfda90ba374056336
[ "MIT" ]
null
null
null
""" Django settings for SmartTransportSystem project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ ...
27.231343
91
0.705125
78f1c9a594d6a4b9895cd3f4b12005f721541364
5,413
py
Python
mergify_engine/web/simulator.py
v1v/mergify-engine
21f63be9987740e1466459f966b186392a235051
[ "Apache-2.0" ]
null
null
null
mergify_engine/web/simulator.py
v1v/mergify-engine
21f63be9987740e1466459f966b186392a235051
[ "Apache-2.0" ]
261
2020-10-15T15:56:15.000Z
2022-03-31T07:08:30.000Z
mergify_engine/web/simulator.py
v1v/mergify-engine
21f63be9987740e1466459f966b186392a235051
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2020 Mergify SAS # # 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 applicabl...
31.841176
88
0.659708
521d5b5213adce96a8f2cee773aac2a92830908d
1,377
py
Python
figure_concept_meg_demo.py
dengemann/engemann-2020-multimodal-brain-age
ceffb1e01658e31d19dfc4dc0be7aff1d6d21af5
[ "BSD-3-Clause" ]
6
2020-11-11T21:26:20.000Z
2022-01-18T17:18:45.000Z
figure_concept_meg_demo.py
dengemann/engemann-2020-multimodal-brain-age
ceffb1e01658e31d19dfc4dc0be7aff1d6d21af5
[ "BSD-3-Clause" ]
1
2022-03-14T07:56:17.000Z
2022-03-14T07:56:17.000Z
figure_concept_meg_demo.py
dengemann/engemann-2020-multimodal-brain-age
ceffb1e01658e31d19dfc4dc0be7aff1d6d21af5
[ "BSD-3-Clause" ]
3
2020-06-10T08:34:04.000Z
2022-03-14T01:37:08.000Z
import mne import numpy as np import mne from mne import io, read_proj, read_selection from mne.datasets import sample from mne.time_frequency import psd_welch data_path = sample.data_path() raw_fname = data_path + '/MEG/sample/sample_audvis_raw.fif' proj_fname = data_path + '/MEG/sample/sample_audvis_eog-proj.fif' ...
29.297872
70
0.689179
6b2a079d2428cf9c1df49debda403587ae5b0779
278
py
Python
feed/api/permissions.py
Nicholas-David-K/profiles-api
8758b1d2eb1cfce9e59e2b0ac310f4cc02d14a73
[ "MIT" ]
null
null
null
feed/api/permissions.py
Nicholas-David-K/profiles-api
8758b1d2eb1cfce9e59e2b0ac310f4cc02d14a73
[ "MIT" ]
null
null
null
feed/api/permissions.py
Nicholas-David-K/profiles-api
8758b1d2eb1cfce9e59e2b0ac310f4cc02d14a73
[ "MIT" ]
null
null
null
from rest_framework import permissions class IFeedAuthorOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.user == request.user
30.888889
56
0.726619
cb3551f5c033116440f89f43769191cdb2042db4
11,565
py
Python
mergify_engine/tasks/engine/__init__.py
bowlofeggs/mergify-engine
463811a15835c1439fe75e3168113aa497892c77
[ "Apache-2.0" ]
null
null
null
mergify_engine/tasks/engine/__init__.py
bowlofeggs/mergify-engine
463811a15835c1439fe75e3168113aa497892c77
[ "Apache-2.0" ]
null
null
null
mergify_engine/tasks/engine/__init__.py
bowlofeggs/mergify-engine
463811a15835c1439fe75e3168113aa497892c77
[ "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 under...
40.017301
79
0.56671
f39fe1574333e7a59047b87a8e9659a378dc3809
933
py
Python
quick_post/posts/models.py
GhostWolfRider/graphql-django-demo
850a7a606e6579bfdf34c57815e687d354c6af3f
[ "MIT" ]
1
2021-04-12T06:18:25.000Z
2021-04-12T06:18:25.000Z
quick_post/posts/models.py
GhostWolfRider/graphql-django-demo
850a7a606e6579bfdf34c57815e687d354c6af3f
[ "MIT" ]
null
null
null
quick_post/posts/models.py
GhostWolfRider/graphql-django-demo
850a7a606e6579bfdf34c57815e687d354c6af3f
[ "MIT" ]
null
null
null
import uuid from django.db import models class Person(models.Model): """ Person model is for storing all the author details. """ # UUID of person id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) # title of the post name = models.CharField(max_length=100) #...
19.851064
79
0.648446
ce6f6f114b2a2cee69a8a6a651e15429248de814
13,573
py
Python
src/covid19sim/run.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
13
2020-10-25T20:15:25.000Z
2022-03-14T06:34:32.000Z
src/covid19sim/run.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-30T02:09:48.000Z
2022-03-09T12:48:22.000Z
src/covid19sim/run.py
mila-iqia/COVI-AgentSim
7e4dea42ad9c5dd251aa8d7546c647ad4f173d28
[ "Apache-2.0" ]
6
2020-10-29T15:36:40.000Z
2021-12-05T18:06:45.000Z
""" Main entrypoint for the execution of simulations. The experimental settings of the simulations are managed via [Hydra](https://github.com/facebookresearch/hydra). The root configuration file is located at `src/covid19sim/configs/simulation/config.yaml`. All settings provided via commandline will override the ones l...
40.516418
134
0.644957
1106f3dc35563fcdbf81a23ba878820bbba3bd2c
1,858
py
Python
2019/19.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
2019/19.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
2019/19.py
GillesArcas/Advent_of_Code
1f57eb1686875df2684b0d56916b1d20724e9fb9
[ "MIT" ]
null
null
null
import itertools import functools import intcode DATA = '19.txt' def code1(): with open(DATA) as f: strcode = f.readline().strip() code = intcode.parse_data(strcode) computer = intcode.Intcode(code) computer.verbose_output = False zone = [['.'] * 50 for _ in range(50)] nbeams =...
25.452055
85
0.527449
b898b60fe47126b6d157b0f4fb35806a35b7844d
13,234
py
Python
python/paddle/tensor/__init__.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/tensor/__init__.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/tensor/__init__.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2016 PaddlePaddle Authors. 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 applic...
32.515971
74
0.617803
7ba48f47c944357c4338a0bdf160afbe96b02afa
32
py
Python
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/gumtree/diff/data/update/src_8_logic_operators.py
JetBrains-Research/ast-transformations
0ab408af3275b520cc87a473f418c4b4dfcb0284
[ "MIT" ]
8
2021-01-19T21:15:54.000Z
2022-02-23T19:16:25.000Z
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/gumtree/diff/data/update/src_8_logic_operators.py
JetBrains-Research/ast-transformations
0ab408af3275b520cc87a473f418c4b4dfcb0284
[ "MIT" ]
4
2020-11-17T14:28:25.000Z
2022-02-24T07:54:28.000Z
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/gumtree/diff/data/update/src_8_logic_operators.py
nbirillo/ast-transformations
717706765a2da29087a0de768fc851698886dd65
[ "MIT" ]
1
2022-02-23T19:16:30.000Z
2022-02-23T19:16:30.000Z
a = True b = False res = a and b
10.666667
13
0.59375
eeaa920c3cc48053ab864c88759164610aac5de1
613
py
Python
credential.py
imekenye/Password-Locker
d5e75a593c313cd160261d5cb059118b87737973
[ "MIT" ]
null
null
null
credential.py
imekenye/Password-Locker
d5e75a593c313cd160261d5cb059118b87737973
[ "MIT" ]
null
null
null
credential.py
imekenye/Password-Locker
d5e75a593c313cd160261d5cb059118b87737973
[ "MIT" ]
null
null
null
import random class Credential: """ Class that creates new instance of credentials """ credential_list = [] def __init__(self, username, password, email): self.username = username self.password = password self.email = email def save_credential(self): """ ...
22.703704
78
0.624796
2faba0d545aed6ad243a032dbad3ed6c11c9c952
1,867
py
Python
count_carbonyls.py
choderalab/nano-drugbank
32f735c18c0d61f5bd128fc045ff5978d13a31f8
[ "MIT" ]
5
2017-07-21T22:30:08.000Z
2021-12-03T10:24:12.000Z
count_carbonyls.py
choderalab/nano-drugbank
32f735c18c0d61f5bd128fc045ff5978d13a31f8
[ "MIT" ]
null
null
null
count_carbonyls.py
choderalab/nano-drugbank
32f735c18c0d61f5bd128fc045ff5978d13a31f8
[ "MIT" ]
6
2017-03-31T18:32:12.000Z
2021-04-13T03:55:06.000Z
from __future__ import print_function __author__ = 'isikm' import pandas as pd from openeye import oechem, oedepict df_drugbank_smiles=pd.DataFrame.from_csv('df_drugbank_smiles.csv', encoding='utf-8') #Count number of carbonyls for i, row in enumerate(df_drugbank_smiles.iterrows()): # Count number of non-aroma...
30.112903
84
0.720407
34281474bcee7f244673d335ae38e85274d859ce
70,152
py
Python
Gym/env_wrapper.py
Alee08/MultiUAV-RL-RB
96a0b350b3176ff6011abe97491de9707416c289
[ "ImageMagick" ]
4
2021-07-22T17:16:30.000Z
2022-03-03T11:14:12.000Z
Gym/env_wrapper.py
Alee08/MultiUAV-RL-RB
96a0b350b3176ff6011abe97491de9707416c289
[ "ImageMagick" ]
null
null
null
Gym/env_wrapper.py
Alee08/MultiUAV-RL-RB
96a0b350b3176ff6011abe97491de9707416c289
[ "ImageMagick" ]
null
null
null
import numpy as np import sys import pickle from os import mkdir from os.path import join, isdir from numpy import linalg as LA from math import sqrt, inf from decimal import Decimal import time import gym import envs from gym import spaces, logger from scenario_objects import Point, Cell, User, Environment...
50.03709
366
0.588679
6f8939dc27bfbddb906bd76cdcf69403ed788c1e
12,113
py
Python
owtf/net/scanner.py
Udbhavbisarya23/owtf
27623937677caf975569f8de8af7983ca57611bc
[ "BSD-3-Clause" ]
1,514
2015-01-15T18:42:58.000Z
2022-03-25T08:14:40.000Z
owtf/net/scanner.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
652
2015-01-09T18:27:37.000Z
2022-03-21T18:41:01.000Z
owtf/net/scanner.py
justdvnsh/owtf
3a543b4eb2a7ad67155eb96dd2d99efbc181498d
[ "BSD-3-Clause" ]
506
2015-01-02T09:28:47.000Z
2022-03-10T23:27:27.000Z
""" owtf.net.scanner ~~~~~~~~~~~~~~~~ The scan_network scans the network for different ports and call network plugins for different services running on target """ import logging import re from owtf.config import config_handler from owtf.db.session import get_scoped_session from owtf.managers.plugin import get_plugins_...
36.158209
120
0.515562
e48c322cca861aed08126335bb59c3f13ea5d8ed
12,392
py
Python
avionix/chart/chart_builder.py
Maxiimeeb/avionix
c149e4319c8c8c00d50450ec1644545340ff7322
[ "BSD-3-Clause" ]
51
2020-07-17T11:42:44.000Z
2022-03-17T23:51:28.000Z
avionix/chart/chart_builder.py
Maxiimeeb/avionix
c149e4319c8c8c00d50450ec1644545340ff7322
[ "BSD-3-Clause" ]
55
2020-07-14T21:21:14.000Z
2022-03-04T22:43:10.000Z
avionix/chart/chart_builder.py
Maxiimeeb/avionix
c149e4319c8c8c00d50450ec1644545340ff7322
[ "BSD-3-Clause" ]
9
2021-01-05T01:52:14.000Z
2022-02-16T12:42:18.000Z
from logging import error, info import os from pathlib import Path import re import shutil import subprocess from typing import Dict, List, Optional import yaml from avionix._process_utils import custom_check_output from avionix.chart.chart_info import ChartInfo from avionix.chart.utils import get_helm_installations ...
36.771513
88
0.63194
9e2c71366b0ea917833b6388c96d4201a9b7c068
3,760
py
Python
generate_plugins.py
jacobgb24/gog-galaxy-dolphin
69dc73b9f17e91c3b60e0377c926f073674c8f6a
[ "MIT" ]
3
2021-08-10T09:27:03.000Z
2021-12-05T14:42:16.000Z
generate_plugins.py
jacobgb24/gog-galaxy-dolphin
69dc73b9f17e91c3b60e0377c926f073674c8f6a
[ "MIT" ]
4
2020-12-23T14:17:12.000Z
2022-03-18T17:27:00.000Z
generate_plugins.py
jacobgb24/gog-galaxy-dolphin
69dc73b9f17e91c3b60e0377c926f073674c8f6a
[ "MIT" ]
null
null
null
""" This utilities file generates the output binaries that should be placed in the GOG plugins folder. Two binaries are generated, one for gamecube and another for wii. The only necessary changes are the directory name and manifest. """ import json import shutil import argparse import os import sys import utils from g...
40
114
0.639894
493b0560df13e1c7e91509057ae96e741f5c6d82
768
py
Python
setup.py
cmihai/winmoncon
656c47aeeec5a1fbaa11ad72be575491cc0e315f
[ "Unlicense" ]
1
2018-02-05T14:42:56.000Z
2018-02-05T14:42:56.000Z
setup.py
cmihai/winmoncon
656c47aeeec5a1fbaa11ad72be575491cc0e315f
[ "Unlicense" ]
null
null
null
setup.py
cmihai/winmoncon
656c47aeeec5a1fbaa11ad72be575491cc0e315f
[ "Unlicense" ]
null
null
null
from os import path from setuptools import setup, find_packages import codecs here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst')) as f: long_description = codecs.decode(f.read(), 'utf-8') setup( name='winmoncon', version='0.0.1', description='A Python inteface to th...
25.6
77
0.657552
1cee08feb0a27aabc62482104e6fa6304da3ad74
8,050
py
Python
tests/components/deconz/test_init.py
don66/home-assistant
a277470363c0758bb305410aad49c257ff8bac40
[ "Apache-2.0" ]
7
2018-08-03T10:15:36.000Z
2019-03-25T13:31:55.000Z
tests/components/deconz/test_init.py
don66/home-assistant
a277470363c0758bb305410aad49c257ff8bac40
[ "Apache-2.0" ]
null
null
null
tests/components/deconz/test_init.py
don66/home-assistant
a277470363c0758bb305410aad49c257ff8bac40
[ "Apache-2.0" ]
3
2018-10-09T08:37:48.000Z
2019-11-16T08:32:27.000Z
"""Test deCONZ component setup process.""" from unittest.mock import Mock, patch from homeassistant.helpers.dispatcher import async_dispatcher_send from homeassistant.setup import async_setup_component from homeassistant.components import deconz from tests.common import mock_coro async def test_config_with_host_pas...
41.709845
79
0.667826
94377d881a827375ada1237d6e4916342b0aed87
5,108
py
Python
pjproject-2.3/pjsip-apps/src/swig/importsym.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
4
2016-09-29T00:04:31.000Z
2021-12-02T08:39:51.000Z
pjproject-2.3/pjsip-apps/src/swig/importsym.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-06-21T09:52:18.000Z
2019-06-21T09:52:18.000Z
pjproject-2.3/pjsip-apps/src/swig/importsym.py
WachterJud/qaul.net_legacy
9c2be0a38ad6e90fadc0d1150340e37d220997ae
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
5
2019-07-02T02:03:24.000Z
2022-03-30T09:58:52.000Z
# $Id: importsym.py 4704 2014-01-16 05:30:46Z ming $ # # importsym.py: Import C symbol decls (structs, enums, etc) and write them # to another file # # Copyright (C)2013 Teluu Inc. (http://www.teluu.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
26.466321
93
0.671887
2e2037c100d3892e498d3be3b76bfc202b012ae7
2,131
py
Python
tests/contrib/sqlalchemy/test_mysql.py
thieman/dd-trace-py
1e87c9bdf7769032982349c4ccc0e1c2e6866a16
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/sqlalchemy/test_mysql.py
thieman/dd-trace-py
1e87c9bdf7769032982349c4ccc0e1c2e6866a16
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/sqlalchemy/test_mysql.py
thieman/dd-trace-py
1e87c9bdf7769032982349c4ccc0e1c2e6866a16
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-02-11T10:20:14.000Z
2021-02-11T10:20:14.000Z
from sqlalchemy.exc import ProgrammingError import pytest from .mixins import SQLAlchemyTestMixin from ..config import MYSQL_CONFIG from ...base import BaseTracerTestCase class MysqlConnectorTestCase(SQLAlchemyTestMixin, BaseTracerTestCase): """TestCase for mysql-connector engine""" VENDOR = 'mysql' SQL_...
40.980769
119
0.674801
09041d6f945517d75bc1297e36e736d92e7cd394
1,210
py
Python
var/spack/repos/builtin/packages/evemu/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/evemu/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/evemu/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Evemu(AutotoolsPackage): """The evemu library and tools are used to describe devices, reco...
44.814815
95
0.754545
b056b5f4914d045952988f7dfe09b269ff57e994
6,475
py
Python
tarantella/accuracySvgAndTotals.py
brobertson/tarantella
4eb7485c727bf52ac4907116d983b75dca3550ad
[ "BSD-3-Clause" ]
1
2021-01-26T10:14:09.000Z
2021-01-26T10:14:09.000Z
tarantella/accuracySvgAndTotals.py
brobertson/tarantella
4eb7485c727bf52ac4907116d983b75dca3550ad
[ "BSD-3-Clause" ]
null
null
null
tarantella/accuracySvgAndTotals.py
brobertson/tarantella
4eb7485c727bf52ac4907116d983b75dca3550ad
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 # given a directory of xhtml files and a directory of corresponding images, # this generates an svg strip representing the accuracy # of the ocr output and saves it in the xhtml directory as 'accuracyReport.svg' def makeTotalsFile(hocrPath): import os, sys, lxml from lxml import etree to...
35.382514
97
0.572664
8a2f3ac23feac75609a4f718c310e6131fb3e98b
7,138
py
Python
selfdrive/car/car_helpers.py
joeyv821/openpilot
7bb4699c0b184f6daf1096aac9dc18ee1168b892
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
joeyv821/openpilot
7bb4699c0b184f6daf1096aac9dc18ee1168b892
[ "MIT" ]
null
null
null
selfdrive/car/car_helpers.py
joeyv821/openpilot
7bb4699c0b184f6daf1096aac9dc18ee1168b892
[ "MIT" ]
1
2021-05-09T11:43:01.000Z
2021-05-09T11:43:01.000Z
import os from common.params import Params from common.basedir import BASEDIR from selfdrive.version import comma_remote, tested_branch from selfdrive.car.fingerprints import eliminate_incompatible_cars, all_known_cars from selfdrive.car.vin import get_vin, VIN_UNKNOWN from selfdrive.car.fw_versions import get_fw_versi...
35.336634
110
0.711544
10f1cba6d33e9ed48b7403ea80cf6822f1033131
2,176
py
Python
app/contents/management/commands/crawling.py
hbyyy/Netflix_Clone_Backend
ae0d2bbc436543e32f43bdb16c890f60dee02309
[ "MIT" ]
2
2020-03-19T17:17:15.000Z
2020-03-19T17:18:27.000Z
app/contents/management/commands/crawling.py
hbyyy/Netflix_Clone_Backend
ae0d2bbc436543e32f43bdb16c890f60dee02309
[ "MIT" ]
58
2020-03-17T05:20:58.000Z
2022-01-13T02:33:53.000Z
app/contents/management/commands/crawling.py
hbyyy/Netflix_Clone_Backend
ae0d2bbc436543e32f43bdb16c890f60dee02309
[ "MIT" ]
7
2020-04-04T12:33:40.000Z
2022-03-28T05:56:34.000Z
import mimetypes import magic import requests from django.core.files.uploadedfile import SimpleUploadedFile from django.core.management.base import BaseCommand from contents.management.commands.crawler import get_url, get_item, get_page_url from contents.models import Contents, Category, Actor, Director class Comma...
39.563636
98
0.578125
6ecd6dcb3b02a8a828bd4ac60007fecaad5599ac
784
py
Python
test/tests.py
Triballian/candiapps
0602039e48b51e2752da6f8a4a3d93cfeb29b3cf
[ "MIT" ]
null
null
null
test/tests.py
Triballian/candiapps
0602039e48b51e2752da6f8a4a3d93cfeb29b3cf
[ "MIT" ]
null
null
null
test/tests.py
Triballian/candiapps
0602039e48b51e2752da6f8a4a3d93cfeb29b3cf
[ "MIT" ]
null
null
null
# tests import os os.chdir('\\Users\\Noe\\workspace\\stakenanny\\candiapps') #import utils.py import imp imp.load_source('utils','utils.py') import utils import unittest class NewConfTest(unittest.TestCase): def test_can_grab_env_from_conf_n_use_it_later(self): self.assertIn('turbostake, bott...
25.290323
77
0.686224
9e3bde29ab38fc23b45d2b9145a0b6d47a73f432
182
py
Python
project/web/steps/home.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
project/web/steps/home.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
project/web/steps/home.py
albalabkin/PyCats
b3fa09e116f38cebbb66faef16785e2795d80aa9
[ "Apache-2.0" ]
null
null
null
from project.web.pages.home_page import HomePage class HomePageSteps(HomePage): def get_api_key(self): self.click_api_keys_menu() return self.lbl_api_key.text
20.222222
48
0.736264
04139be3b8c478496806435379b8835c00d904b8
1,166
py
Python
bcipy/language_model/lm_modes.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
bcipy/language_model/lm_modes.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
5
2021-06-08T23:56:19.000Z
2022-03-12T00:57:00.000Z
bcipy/language_model/lm_modes.py
theGreenJedi/BciPy
222ac9b79f1ab3374e888be9e9b8d86f88d1bc82
[ "MIT" ]
null
null
null
from enum import Enum from bcipy.language_model.lm_server import LmServerConfig from bcipy.language_model import oclm_language_model from bcipy.language_model import prelm_language_model from bcipy.helpers.system_utils import dot class LmType(Enum): """Enum of the registered language model types. The types are as...
30.684211
76
0.698971
3f2dc25da6b49b6bcb3188ad86a123afc1d829b7
664
py
Python
FLASH4.2.1_save/tools/yt/sphere_quantities.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
1
2021-04-22T09:24:08.000Z
2021-04-22T09:24:08.000Z
FLASH4.2.1_save/tools/yt/sphere_quantities.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
null
null
null
FLASH4.2.1_save/tools/yt/sphere_quantities.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
null
null
null
from yt.mods import * pf = load("sloshing_low_res_hdf5_plt_cnt_0400") # Define a sphere object with a center at the domain center and a radius of 100 kpc. # Note that we can specify a tuple (radius, unit) instead of calculating the radius # in cgs units sp = pf.h.sphere(pf.domain_center, (100.0, "kpc")) # Compute th...
33.2
84
0.760542
05f3bc4ce331b9b05e18f424616a7cd2eed2cdd8
154,883
bzl
Python
repositories.bzl
bsdnet/boskos
557df917e2fba88ec4708f15924dfe9bd41f6e35
[ "Apache-2.0" ]
null
null
null
repositories.bzl
bsdnet/boskos
557df917e2fba88ec4708f15924dfe9bd41f6e35
[ "Apache-2.0" ]
null
null
null
repositories.bzl
bsdnet/boskos
557df917e2fba88ec4708f15924dfe9bd41f6e35
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Kubernetes Authors. # # 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 ...
38.318407
81
0.636777
8727018f847560fee0998f399bca0340b9f8401a
3,104
py
Python
DQM/Integration/python/config/visualizationPreFilter.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
DQM/Integration/python/config/visualizationPreFilter.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
DQM/Integration/python/config/visualizationPreFilter.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms #process.hltTriggerTypeFilter TAG_HLTSEL = 'HLT_*' hltHighLevel = cms.EDFilter("HLTHighLevel", TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"), HLTPaths = cms.vstring( # provide list of HLT paths (o...
43.71831
169
0.691366
4aac410f65ea30f988b59ce4b7a03ec85d192c81
20,986
py
Python
scripts/recoding.py
Juliane-W/gene-sparc
c6f284c02a7eace88d46fdaf3eb6bf6bdee5e2af
[ "MIT" ]
null
null
null
scripts/recoding.py
Juliane-W/gene-sparc
c6f284c02a7eace88d46fdaf3eb6bf6bdee5e2af
[ "MIT" ]
null
null
null
scripts/recoding.py
Juliane-W/gene-sparc
c6f284c02a7eace88d46fdaf3eb6bf6bdee5e2af
[ "MIT" ]
null
null
null
import re import logging from Bio import SeqFeature from operator import itemgetter def recode(gff_iterator, codonmap, endprotect, set_mane): """ Replaces the codons based on codonmap in the Sequence Record, but protects nucleotides at the beginning or end of the coding sequence and handles overlaps based...
58.949438
231
0.609883
4ac7f551f6037163d9356d6e4edc2336c1b208ee
5,514
py
Python
tensorflow_federated/python/core/templates/iterative_process_test.py
munhyunsu/federated
71052f457014d8ec00ec2b27128428b8763b3d47
[ "Apache-2.0" ]
1
2020-05-02T05:08:14.000Z
2020-05-02T05:08:14.000Z
tensorflow_federated/python/core/templates/iterative_process_test.py
munhyunsu/federated
71052f457014d8ec00ec2b27128428b8763b3d47
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/templates/iterative_process_test.py
munhyunsu/federated
71052f457014d8ec00ec2b27128428b8763b3d47
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Federated Authors. # # 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 o...
35.121019
80
0.745194
f080a4077ad58fee5c74d1b7d24ad3a9809b85e7
635
py
Python
problems/A/NearestInterestingNumber.py
deveshbajpai19/CodeForces
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
55
2016-06-19T05:45:15.000Z
2022-03-31T15:18:53.000Z
problems/A/NearestInterestingNumber.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
null
null
null
problems/A/NearestInterestingNumber.py
farhadcu/CodeForces-2
707b374f03012ec68054841f791d48b33ae4ef1b
[ "MIT" ]
25
2016-07-29T13:03:15.000Z
2021-09-17T01:45:45.000Z
__author__ = 'Devesh Bajpai' ''' https://codeforces.com/problemset/problem/1183/A Solution: Using the brute-force method to generate all integers >= n, and checking if their digits' sum is divisible by 4. The answer is bound to occur to using a while true doesn't hurt. ''' def solve(n): candidate = n while...
18.142857
116
0.611024
e7b66d64c922a86d2dc1febd6296914971fb685d
1,872
py
Python
tools/telemetry/PRESUBMIT.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
tools/telemetry/PRESUBMIT.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/PRESUBMIT.py
shaochangbin/chromium-crosswalk
634d34e4cf82b4f7400357c53ec12efaffe94add
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-04-17T13:19:09.000Z
2021-10-21T12:55:15.000Z
# Copyright (c) 2012 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. import os import sys PYLINT_BLACKLIST = [] PYLINT_DISABLED_WARNINGS = ['R0923', 'R0201', 'E1101'] def _CommonChecks(input_api, output_api): results = ...
31.2
74
0.744124
af818ce8ed3fdbb0835903defb23c21edb8c006e
90
py
Python
weebhooks/errors.py
Vashione/weebhooks
2faaec274479edb65419d1c78dbd736d7e80d883
[ "MIT" ]
null
null
null
weebhooks/errors.py
Vashione/weebhooks
2faaec274479edb65419d1c78dbd736d7e80d883
[ "MIT" ]
null
null
null
weebhooks/errors.py
Vashione/weebhooks
2faaec274479edb65419d1c78dbd736d7e80d883
[ "MIT" ]
null
null
null
class InvalidArgument(Exception): """Raised when given improper arguments.""" pass
30
47
0.722222
2ef35040a6f9a84ea955bbe007fa13a54437da0d
21,645
py
Python
sparse_mixers/run_classifier.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
sparse_mixers/run_classifier.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
sparse_mixers/run_classifier.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
34.632
104
0.693139
8b225f8600d283676ceb7b82e64caaf11a090d73
14,872
py
Python
tests/app/main/views/test_add_service.py
davidbgk/notification-admin
ad1a7734f84492a085420ee052c243d9fb189adc
[ "MIT" ]
null
null
null
tests/app/main/views/test_add_service.py
davidbgk/notification-admin
ad1a7734f84492a085420ee052c243d9fb189adc
[ "MIT" ]
null
null
null
tests/app/main/views/test_add_service.py
davidbgk/notification-admin
ad1a7734f84492a085420ee052c243d9fb189adc
[ "MIT" ]
null
null
null
import pytest from flask import session, url_for from app.main.forms import FieldWithLanguageOptions from app.utils import is_gov_user from tests import organisation_json from tests.conftest import mock_get_organisation_by_domain, normalize_spaces def test_non_gov_user_cannot_see_add_service_button( client, ...
29.391304
94
0.67496
aef69aeec7b0cc1d98ccdc2674ab8c0b0756a26a
874
py
Python
tests/test_postgresql_config.py
rohit-dimagi/commcare-cloud
55576713f3a12acc3f2df4f24c405df9c30143b3
[ "BSD-3-Clause" ]
null
null
null
tests/test_postgresql_config.py
rohit-dimagi/commcare-cloud
55576713f3a12acc3f2df4f24c405df9c30143b3
[ "BSD-3-Clause" ]
null
null
null
tests/test_postgresql_config.py
rohit-dimagi/commcare-cloud
55576713f3a12acc3f2df4f24c405df9c30143b3
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os import yaml from parameterized import parameterized from commcare_cloud.environment.main import Environment from commcare_cloud.environment.paths import DefaultPaths from nose.tools import assert_equal TEST_ENVIRONMENTS_DIR = os.path.join(os.path.dirname(__file__), '...
29.133333
85
0.802059
92368e927002992b0630d4d066ca105bab28835b
493
py
Python
Leap Year.py
Tulip2MF/100_Days_Challenge
026073bd16fab5746b36eb1d3174a20011b2fbd1
[ "Unlicense" ]
null
null
null
Leap Year.py
Tulip2MF/100_Days_Challenge
026073bd16fab5746b36eb1d3174a20011b2fbd1
[ "Unlicense" ]
null
null
null
Leap Year.py
Tulip2MF/100_Days_Challenge
026073bd16fab5746b36eb1d3174a20011b2fbd1
[ "Unlicense" ]
null
null
null
def divisionFunction (year,denominator): if(year % denominator) == 0: return "Yes" else: return "No" year=int(input("Type the year: \n")) divideBy4= divisionFunction(year,4) divideBy400 = divisionFunction(year,400) divideBy100 = divisionFunction(year,100) if divideBy4 == "Yes": if divideB...
23.47619
40
0.626775
801a3704eaf8b0db0869723d66119c75167580c0
20,653
py
Python
orm_alchemy/alchemy.py
HKer-MuCoi/orm-alchemy
a6948d71aa7dbcd54f43c7422016b31cd7ec528a
[ "MIT" ]
null
null
null
orm_alchemy/alchemy.py
HKer-MuCoi/orm-alchemy
a6948d71aa7dbcd54f43c7422016b31cd7ec528a
[ "MIT" ]
null
null
null
orm_alchemy/alchemy.py
HKer-MuCoi/orm-alchemy
a6948d71aa7dbcd54f43c7422016b31cd7ec528a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ================== Active-Alchemy ================== A framework agnostic wrapper for SQLAlchemy that makes it really easy to use by implementing a simple active record like api, while it still uses the db.session underneath :copyright: © 2014/2016 by `Mardix`. :licen...
30.825373
101
0.563889