hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
cc943e2b995b45726437e5ee883f6be80fde8633
4,730
py
Python
fifth_semester/Visualizer/visualizer.py
MajronMan/agh_stuff
d045e3bd47ac17880526203d9993d9b2389a9ffe
[ "Unlicense" ]
2
2019-03-02T19:31:57.000Z
2019-04-03T19:54:39.000Z
fifth_semester/Visualizer/visualizer.py
MajronMan/agh_stuff
d045e3bd47ac17880526203d9993d9b2389a9ffe
[ "Unlicense" ]
null
null
null
fifth_semester/Visualizer/visualizer.py
MajronMan/agh_stuff
d045e3bd47ac17880526203d9993d9b2389a9ffe
[ "Unlicense" ]
1
2019-04-03T18:26:50.000Z
2019-04-03T18:26:50.000Z
import struct import numpy as np import matplotlib.pyplot as plt import pyaudio import threading from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph as pg class AudioRecorder(): FORMAT = pyaudio.paInt16 RATE = 44100 CHUNK = 1024 CHANNELS = 1 def __init__(self): self.stream = self.init...
31.118421
143
0.596406
8ed00a1fffdff79f5790a641332f6eae2ed82d4c
2,658
py
Python
trace_feature/tests/models/test_method.py
vitorbribas/trace_feature
7bfc79d01a6a28418d966d7a7044ad3868c6e203
[ "MIT" ]
null
null
null
trace_feature/tests/models/test_method.py
vitorbribas/trace_feature
7bfc79d01a6a28418d966d7a7044ad3868c6e203
[ "MIT" ]
null
null
null
trace_feature/tests/models/test_method.py
vitorbribas/trace_feature
7bfc79d01a6a28418d966d7a7044ad3868c6e203
[ "MIT" ]
null
null
null
import pytest import json import os from trace_feature.core.models import Method class TestMethodInstance: @pytest.fixture def method_attributes(self): '''Returns a dictionary of attributes for a method''' attributes = { 'line': 2, 'method_id': '/home/user/documents/example-project/app/models/...
38.521739
110
0.692626
95dd59409dea232b2262fa300988a7aa6f73fe73
625
py
Python
Source/FaceRecognition/Utils/ResourceLocalizer.py
robertkarol/ReDe-Multiagent-Face-Recognition-System
df17cebecc51b2fafb01e07a9bb68e9e4e04163a
[ "MIT" ]
null
null
null
Source/FaceRecognition/Utils/ResourceLocalizer.py
robertkarol/ReDe-Multiagent-Face-Recognition-System
df17cebecc51b2fafb01e07a9bb68e9e4e04163a
[ "MIT" ]
7
2020-04-24T08:22:20.000Z
2021-05-21T16:11:52.000Z
Source/FaceRecognition/Utils/ResourceLocalizer.py
robertkarol/ReDe-Multiagent-Face-Recognition-System
df17cebecc51b2fafb01e07a9bb68e9e4e04163a
[ "MIT" ]
1
2020-04-26T15:05:07.000Z
2020-04-26T15:05:07.000Z
from Utils.Singleton import SingletonMeta import configparser class ResourceLocalizer(metaclass=SingletonMeta): def __init__(self, resource_file): self.__parser = configparser.ConfigParser() self.__parser.read(resource_file) @property def facenet_model(self): return self.__parser[...
29.761905
72
0.744
c4e36f65bfd14081a18e6f719378abebdacf0587
1,240
py
Python
12_challenge/12_challenge.py
monoranjanqxf2/wtfiswronghere
a99f1a9b9920bec86e39e7efd6e8dba5506d94d1
[ "MIT" ]
null
null
null
12_challenge/12_challenge.py
monoranjanqxf2/wtfiswronghere
a99f1a9b9920bec86e39e7efd6e8dba5506d94d1
[ "MIT" ]
null
null
null
12_challenge/12_challenge.py
monoranjanqxf2/wtfiswronghere
a99f1a9b9920bec86e39e7efd6e8dba5506d94d1
[ "MIT" ]
1
2020-01-06T13:10:39.000Z
2020-01-06T13:10:39.000Z
""" We will use this script to teach Python to absolute beginners The script is an example of Fizz-Buzz implemented in Python The FizzBuzz problem: For all integers between 1 and 99 (include both): # print fizz for multiples of 3 # print buzz for multiples of 5 # print fizzbuzz for multiples of 3 and 5" ...
31
70
0.618548
2e09cd46e58420b5abe701a733abcbe75e0d8c43
4,316
py
Python
generators/ahoughton.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
generators/ahoughton.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
generators/ahoughton.py
juangallostra/moonboard
d4a35857d480ee4bed06faee44e0347e1070b6b8
[ "MIT" ]
null
null
null
from typing import Any, List from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options from generators.base_generator import BaseGenerator from selenium.webdriver.common.by import By import os class AhoughtonGenerator(BaseGenerator): ...
37.530435
97
0.628823
e97623ca7719e4c225b678984733c06330fb8b6f
2,896
py
Python
Clustering/code.py
debapriyaroy95/ga-learner-dsmp-repo
a69b9ce5ea77b030f77fd41a81eae1ec791fdf65
[ "MIT" ]
null
null
null
Clustering/code.py
debapriyaroy95/ga-learner-dsmp-repo
a69b9ce5ea77b030f77fd41a81eae1ec791fdf65
[ "MIT" ]
null
null
null
Clustering/code.py
debapriyaroy95/ga-learner-dsmp-repo
a69b9ce5ea77b030f77fd41a81eae1ec791fdf65
[ "MIT" ]
null
null
null
# -------------- # import packages import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # Load Offers offers = pd.read_excel(path, sheet_name=0) # Load Transactions transactions = pd.read_excel(path, sheet_name=1) transactions['n'] = 1 # Merge dataframes df = pd.merge(trans...
21.451852
88
0.690608
aaf53e38bea5ab8afcf628d29690ab10531201f4
3,512
py
Python
src/db.py
brauliobarahona/RAPT-dataset
ec842544fe8af39d2f44604c06784b4dd6e24108
[ "MIT" ]
2
2020-06-15T09:26:46.000Z
2020-06-15T14:39:48.000Z
src/db.py
brauliobarahona/RAPT-dataset
ec842544fe8af39d2f44604c06784b4dd6e24108
[ "MIT" ]
null
null
null
src/db.py
brauliobarahona/RAPT-dataset
ec842544fe8af39d2f44604c06784b4dd6e24108
[ "MIT" ]
1
2021-01-23T15:22:29.000Z
2021-01-23T15:22:29.000Z
from mysql.connector import MySQLConnection, Error from configparser import ConfigParser import pandas as pd import numpy as np from src.utils import * def read_db_config(filename='program_config.ini', section='mysql_shiftable'): """ :param filename: path to program_config.ini :param section: where to lo...
25.449275
177
0.626708
e3e955201f266286b4e82ee78e15f1c9eef4375c
13,908
py
Python
system_tests/storage.py
Ofekmeister/google-cloud-python
07dd51bc447beca67b8da1c66f1dfb944ef70418
[ "Apache-2.0" ]
null
null
null
system_tests/storage.py
Ofekmeister/google-cloud-python
07dd51bc447beca67b8da1c66f1dfb944ef70418
[ "Apache-2.0" ]
null
null
null
system_tests/storage.py
Ofekmeister/google-cloud-python
07dd51bc447beca67b8da1c66f1dfb944ef70418
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.845361
78
0.651424
2447616e9d28c01dcfe971a82cb7f62d3103ef10
10,363
py
Python
src/compas/datastructures/mesh/operations/collapse.py
mpopescu/compas
55f259607deea501f862cbaea79bd97d7e56ead6
[ "MIT" ]
null
null
null
src/compas/datastructures/mesh/operations/collapse.py
mpopescu/compas
55f259607deea501f862cbaea79bd97d7e56ead6
[ "MIT" ]
9
2019-09-11T08:53:19.000Z
2019-09-16T08:35:39.000Z
src/compas/datastructures/mesh/core/operations/collapse.py
Licini/compas
34f65adb3d0abc3f403312ffba62aa76f3376292
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division __all__ = [ 'mesh_collapse_edge', 'trimesh_collapse_edge', ] def is_collapse_legal(mesh, u, v, allow_boundary=False): """Verify if the requested collapse is legal for a triangle mesh. Parame...
27.128272
85
0.535173
9d249e4b0f4fa58c9a5267f06911981ff1ef6028
350
py
Python
config/settings/heroku.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
null
null
null
config/settings/heroku.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
6
2020-06-06T01:27:17.000Z
2022-02-10T11:20:17.000Z
config/settings/heroku.py
chaudbak/instanotifier
d29bc6bd9b7a003403886bfff1376b2c1925cc74
[ "MIT" ]
null
null
null
from .production import * # noqa # disable emailing, as long as mailgun is not connected to heroku ACCOUNT_EMAIL_VERIFICATION = 'none' EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND', default='django.core.mail.backends.console.EmailBackend') # Logging into console instead of mail_admins LOGGING['loggers']['django.reques...
35
101
0.771429
bdc0e8d24776ddda253409b4b18c19c9d1ab0811
1,336
py
Python
puzzle/day15.py
robhansen/advent2021
390d49dd237200a8939b0d5486bbeb37c079807c
[ "MIT" ]
null
null
null
puzzle/day15.py
robhansen/advent2021
390d49dd237200a8939b0d5486bbeb37c079807c
[ "MIT" ]
null
null
null
puzzle/day15.py
robhansen/advent2021
390d49dd237200a8939b0d5486bbeb37c079807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import networkx as nx if len(sys.argv) != 2: print("Help: {} <filename>".format(sys.argv[0])) sys.exit(0) def solve_graph(filename, expansion): graph = nx.DiGraph() risks = [] with open(sys.argv[1]) as file: lines = file.readlines() ...
37.111111
135
0.537425
55837a7305e5060124fc4c0f8246558e1ea88fac
5,994
py
Python
blousebrothers/confs/migrations/0001_initial.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
blousebrothers/confs/migrations/0001_initial.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
blousebrothers/confs/migrations/0001_initial.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-19 11:58 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import oscar.models.fields.autoslugfield class Migration(migrations.Migration): initial = Tru...
54
177
0.616283
3105cb8d06bef224891d687714cc5977d1b4f26e
14,816
py
Python
networks/datagen.py
GuangmingZhu/ContinuousGR
2b35fe673405744a694b90f1e89943846b3e1de1
[ "MIT" ]
18
2018-08-23T13:38:29.000Z
2022-02-24T09:19:14.000Z
networks/datagen.py
NIDONGDEA/ContinuousGR
2b35fe673405744a694b90f1e89943846b3e1de1
[ "MIT" ]
1
2021-09-16T10:20:18.000Z
2021-09-16T10:20:18.000Z
networks/datagen.py
NIDONGDEA/ContinuousGR
2b35fe673405744a694b90f1e89943846b3e1de1
[ "MIT" ]
2
2019-10-21T23:12:28.000Z
2022-02-28T01:53:48.000Z
import numpy as np import tensorflow as tf keras=tf.contrib.keras import inputs as data import threading ## Iteration def minibatches(inputs=None, targets=None, batch_size=None, shuffle=False): assert len(inputs) == len(targets) if shuffle: indices = np.arange(len(inputs)) np.random.shuffle(indices) for ...
42.820809
116
0.625742
fa1e033b58ed18536792af9773e6b16680da2d6e
15,011
py
Python
reid/scripts/triplet_reid/datasets/lip.py
VisualComputingInstitute/CROWDBOT_perception
df98f3f658c39fb3fa4ac0456f1214f7918009f6
[ "MIT" ]
1
2022-03-07T06:24:27.000Z
2022-03-07T06:24:27.000Z
reid/scripts/triplet_reid/datasets/lip.py
VisualComputingInstitute/CROWDBOT_perception
df98f3f658c39fb3fa4ac0456f1214f7918009f6
[ "MIT" ]
null
null
null
reid/scripts/triplet_reid/datasets/lip.py
VisualComputingInstitute/CROWDBOT_perception
df98f3f658c39fb3fa4ac0456f1214f7918009f6
[ "MIT" ]
null
null
null
""" There are multiple folders. One for LIP (What we want), one for Fashion Design (Ac), and one for multiple people (CIHP) Folder Structure Testing_images/Testing_images/testing_images: Test images TrainVal_images/TrainVal_images/train_images: train images, ignore text files TrainVal_images/TrainVal_images/val_image...
35.655582
119
0.609087
6288332de5a16f96095efc62d701c7223fdf22e0
1,209
py
Python
dashboard/dashboard/urls.py
kurganITteacher/python-adv
3ebc048598eea00f12ebdb6a502b2455465a04c0
[ "Apache-2.0" ]
1
2021-09-02T10:21:35.000Z
2021-09-02T10:21:35.000Z
dashboard/dashboard/urls.py
kurganITteacher/python-adv
3ebc048598eea00f12ebdb6a502b2455465a04c0
[ "Apache-2.0" ]
null
null
null
dashboard/dashboard/urls.py
kurganITteacher/python-adv
3ebc048598eea00f12ebdb6a502b2455465a04c0
[ "Apache-2.0" ]
2
2021-03-14T07:44:18.000Z
2021-04-25T18:18:02.000Z
"""dashboard URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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='home') Class-bas...
33.583333
77
0.732837
8ac13af62c48b075a1f05ffe5711a71daa42d97b
2,403
py
Python
apps/purchases/admin.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
apps/purchases/admin.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
5
2021-03-19T10:16:00.000Z
2022-02-10T09:16:32.000Z
apps/purchases/admin.py
jorgesaw/kstore
4ec6612eeeb96edb7b7bd374fd0520733c58451c
[ "MIT" ]
null
null
null
"""Purchases admin.""" # Django from django.contrib import admin # Actions Mixin from apps.utils.admin.actions import ( ActionDownloadData, ActionFiscalStatus ) # Admin from apps.persons.admin import AddressAdmin # Models from apps.purchases.models import ( Supplier, Purchase, ItemPurchase ) ...
32.04
115
0.644611
3bf05a75d06b31621d6077b188d997fb5339c675
746
py
Python
horizon/test/test_dashboards/cats/tigers/urls.py
stackhpc/horizon
0899f67657e0be62dd9e6be327c63bccb4607dc6
[ "Apache-2.0" ]
930
2015-01-04T08:06:03.000Z
2022-03-13T18:47:13.000Z
horizon/test/test_dashboards/cats/tigers/urls.py
nyzsirt/horizon
53dd2dbd39c50b665ebe2d2a877496169f01a13f
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
horizon/test/test_dashboards/cats/tigers/urls.py
nyzsirt/horizon
53dd2dbd39c50b665ebe2d2a877496169f01a13f
[ "Apache-2.0" ]
1,040
2015-01-01T18:48:28.000Z
2022-03-19T08:35:18.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
37.3
78
0.727882
03e9dc5ac2ed701156161de3fee9443ae4b47c5d
1,510
py
Python
tests/test_integration/test_init_db.py
timohaas/postgraas_server
2d94e0262414cf860f5fb2d974e05de5249f8b87
[ "Apache-2.0" ]
31
2016-07-13T20:08:24.000Z
2022-03-13T04:53:45.000Z
tests/test_integration/test_init_db.py
timohaas/postgraas_server
2d94e0262414cf860f5fb2d974e05de5249f8b87
[ "Apache-2.0" ]
35
2016-09-05T12:08:28.000Z
2020-04-03T17:46:31.000Z
tests/test_integration/test_init_db.py
timohaas/postgraas_server
2d94e0262414cf860f5fb2d974e05de5249f8b87
[ "Apache-2.0" ]
11
2016-09-08T20:59:51.000Z
2021-03-19T16:06:45.000Z
# coding=utf-8 import contextlib import json import os import psycopg2 from psycopg2.sql import SQL from postgraas_server.configuration import get_user, get_password CLUSTER_CONFIG = { "metadb": { "db_name": os.environ.get('PGDATABASE', 'postgres'), "db_username": os.environ.get('PGUSER', 'post...
26.491228
65
0.62053
68e74e46270c9c28eb7700d5b9d266818f4c5d86
4,300
py
Python
tests/peering/test_id_generation.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
855
2020-08-19T09:40:38.000Z
2022-03-31T19:13:29.000Z
tests/peering/test_id_generation.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
715
2019-12-23T14:17:35.000Z
2022-03-30T20:54:45.000Z
tests/peering/test_id_generation.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
97
2019-04-25T09:32:54.000Z
2022-03-30T10:15:30.000Z
import os import freezegun import pytest from kopf._core.engines.peering import detect_own_id SAME_GOOD = [ ('some-host.example.com', 'other-host.example.com'), ('some-host', 'other-host'), ] # Priorities: A (left) should be selected over B (right). GOOD_BAD = [ ('some-host.example.com', 'some-host'), ...
37.391304
91
0.696279
d9fb186af22e8036d6f1eaf15e0a15da2a2e516d
15,172
py
Python
numpydoc/docscrape_sphinx.py
rsumner33/numpydoc
7c8125430af3e6511d67d10d3913dba05d95f4fd
[ "BSD-2-Clause" ]
null
null
null
numpydoc/docscrape_sphinx.py
rsumner33/numpydoc
7c8125430af3e6511d67d10d3913dba05d95f4fd
[ "BSD-2-Clause" ]
null
null
null
numpydoc/docscrape_sphinx.py
rsumner33/numpydoc
7c8125430af3e6511d67d10d3913dba05d95f4fd
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, absolute_import, print_function import sys import re import inspect import textwrap import pydoc import collections import os from jinja2 import FileSystemLoader from jinja2.sandbox import SandboxedEnvironment import sphinx from sphinx.jinja2glue import BuiltinTemplateLoader from .do...
35.283721
82
0.522937
40a9bb904b0862f6df3efa388a014a8e0a218a9f
2,765
py
Python
blocks.py
innova-foundation/snakes-on-a-chain
243a1e5739f61ee5f72b13dcdee2ca8ede11a776
[ "MIT" ]
null
null
null
blocks.py
innova-foundation/snakes-on-a-chain
243a1e5739f61ee5f72b13dcdee2ca8ede11a776
[ "MIT" ]
null
null
null
blocks.py
innova-foundation/snakes-on-a-chain
243a1e5739f61ee5f72b13dcdee2ca8ede11a776
[ "MIT" ]
null
null
null
from innovarpc.authproxy import AuthServiceProxy, JSONRPCException import time import sys import datetime import urllib import json from influxdb import InfluxDBClient # rpc_user and rpc_password are set in the innova.conf file rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:14531"%("rpcuser", "rpcpassword"...
27.107843
92
0.657866
327342a200bf219c37182dcc40240c6253e46107
14,014
py
Python
onegreek/old.comments/migrations/0001_initial.py
goldhand/onegreek
1ad105f15608284a9e80802734f0c6222413a4a0
[ "BSD-3-Clause" ]
1
2019-06-13T11:46:08.000Z
2019-06-13T11:46:08.000Z
onegreek/old.comments/migrations/0001_initial.py
goldhand/onegreek
1ad105f15608284a9e80802734f0c6222413a4a0
[ "BSD-3-Clause" ]
null
null
null
onegreek/old.comments/migrations/0001_initial.py
goldhand/onegreek
1ad105f15608284a9e80802734f0c6222413a4a0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Comment' db.create_table('comments', ( (u'id', self.gf('django.db.models.fields....
78.290503
187
0.582489
057802d483edd0ae074d6f518e212449f90cd92d
7,047
py
Python
venv/lib/python2.7/site-packages/ansible/module_utils/network/common/network.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
ansible/ansible/module_utils/network/common/network.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
ansible/ansible/module_utils/network/common/network.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
34.544118
99
0.672769
d48ece7f814fe24a81b5cb2307677382e2da7cf7
1,665
py
Python
examples/tiger/tiger_observation.py
wecacuee/POMDPy
c23ebf90f5815db4326564110487779961736b60
[ "MIT" ]
210
2015-04-23T17:05:50.000Z
2022-03-14T08:00:00.000Z
examples/tiger/tiger_observation.py
wecacuee/POMDPy
c23ebf90f5815db4326564110487779961736b60
[ "MIT" ]
15
2015-04-13T05:36:14.000Z
2019-05-06T19:14:50.000Z
examples/tiger/tiger_observation.py
wecacuee/POMDPy
c23ebf90f5815db4326564110487779961736b60
[ "MIT" ]
76
2016-08-18T03:54:08.000Z
2022-01-26T09:08:23.000Z
from __future__ import print_function from pomdpy.discrete_pomdp import DiscreteObservation class TigerObservation(DiscreteObservation): """ For num_doors = 2, there is an 85 % of hearing the roaring coming from the tiger door. There is a 15 % of hearing the roaring come from the reward door. source_...
31.415094
90
0.658859
7ee988bb73271d26e1ed0ae96fe34dcf33681e03
2,069
py
Python
src/the_tale/the_tale/game/cards/tt_services.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/game/cards/tt_services.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/cards/tt_services.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class StorageClient(tt_api_storage.Client): def protobuf_to_item(self, pb_item): id = uuid.UUID(pb_item.id) card = objects.Card.deserialize(uid=id, data=s11n.from_json(pb_item.data), ...
49.261905
95
0.491542
91f85ad5f9cedb56fd469780e6d4e97cd9f58f23
304
py
Python
api/urls_api.py
flaiming/bookfinder
59154d106b62680668087e46eca9c0bf9cdaf336
[ "MIT" ]
null
null
null
api/urls_api.py
flaiming/bookfinder
59154d106b62680668087e46eca9c0bf9cdaf336
[ "MIT" ]
null
null
null
api/urls_api.py
flaiming/bookfinder
59154d106b62680668087e46eca9c0bf9cdaf336
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from .views_api import BookViewSet from .views import book_by_isbn app_name = "api" router = routers.SimpleRouter() router.register(r'books', BookViewSet) urlpatterns = [ path('book-by-isbn/', book_by_isbn), ] + router.urls
21.714286
40
0.766447
835f785ae7f9be53ddbb984ebd0d9a5b3e5b5f06
1,488
py
Python
proxies/proxies.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
null
null
null
proxies/proxies.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
8
2021-04-10T17:55:31.000Z
2021-04-19T14:45:14.000Z
proxies/proxies.py
ivelinahristova/webanalysis
ff73b65799dc1465b9138a8742ea74b9da171c8d
[ "MIT" ]
null
null
null
import random import re import requests from bs4 import BeautifulSoup from typing import Text class Proxies: __proxy_pointer = 0 def __init__(self) -> None: self.__proxies = self.get_proxies() self.__user_agents = [ 'Mozilla/5.0 CK={} (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0...
31.659574
78
0.589382
d296e1fbededbe9f972a3ac3ae3f122063c25ff8
419
py
Python
Chapter09/adapter_1.py
TranQuangDuc/Clean-Code-in-Python
3c4b4a2fde2ccf28d2e0ec5002b2e1921704164e
[ "MIT" ]
402
2018-08-19T03:09:40.000Z
2022-03-30T08:10:26.000Z
Chapter09/adapter_1.py
TranQuangDuc/Clean-Code-in-Python
3c4b4a2fde2ccf28d2e0ec5002b2e1921704164e
[ "MIT" ]
137
2021-01-05T11:21:04.000Z
2022-03-31T11:10:11.000Z
Chapter09/adapter_1.py
TranQuangDuc/Clean-Code-in-Python
3c4b4a2fde2ccf28d2e0ec5002b2e1921704164e
[ "MIT" ]
140
2018-09-16T05:47:46.000Z
2022-03-31T03:20:30.000Z
"""Clean Code in Python - Chapter 9: Common Design Patterns > Adapter (Inheritance) """ from _adapter_base import UsernameLookup class UserSource(UsernameLookup): def fetch(self, user_id, username): user_namespace = self._adapt_arguments(user_id, username) return self.search(user_namespace) ...
24.647059
65
0.72315
1f2c859ea4000e31bdb13da01de7837399015b04
4,516
py
Python
afs2datasource/postgresHelper.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
4
2019-07-19T05:40:37.000Z
2021-03-31T05:49:30.000Z
afs2datasource/postgresHelper.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
1
2019-08-13T18:27:40.000Z
2019-08-13T18:27:40.000Z
afs2datasource/postgresHelper.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 WISE-PaaS/AFS # 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...
35.84127
141
0.697298
3fdd21d6800c0d1b6769f36086a6058fbfd4f921
2,141
py
Python
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_client_factory.py
henrypan/azure-cli
8de0ab5216ed3dc700546ae9a3c485710322376b
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_client_factory.py
henrypan/azure-cli
8de0ab5216ed3dc700546ae9a3c485710322376b
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_client_factory.py
henrypan/azure-cli
8de0ab5216ed3dc700546ae9a3c485710322376b
[ "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. # --------------------------------------------------------------------...
28.171053
94
0.721625
d2e6bd3b83dbc79afd351d606177265e8e9e82af
2,455
py
Python
src/main.py
jkuharev/groot
61ac86ef05d5b90a3c277a95d096e77558b21101
[ "BSD-2-Clause" ]
null
null
null
src/main.py
jkuharev/groot
61ac86ef05d5b90a3c277a95d096e77558b21101
[ "BSD-2-Clause" ]
null
null
null
src/main.py
jkuharev/groot
61ac86ef05d5b90a3c277a95d096e77558b21101
[ "BSD-2-Clause" ]
null
null
null
from cfg import cfg from umqttsimple import MQTTClient import ubinascii import machine from machine import Pin from machine import ADC import utime import time delayPerIteration = 3 deepSleepMinutes = cfg['defaultSleepMinutes'] clientID = b"esp8266_" + ubinascii.hexlify( machine.unique_id() ) client = MQTTClient(clie...
29.22619
118
0.643585
37b990d9b27c0b21f4e173e5843afa76b2781a2b
123
py
Python
seconds2years.py
chapman-cpsc-230/hw1-ochoa117
3e65fffebe5afea88297d51886094ef6d9728da7
[ "MIT" ]
null
null
null
seconds2years.py
chapman-cpsc-230/hw1-ochoa117
3e65fffebe5afea88297d51886094ef6d9728da7
[ "MIT" ]
1
2016-02-25T06:02:26.000Z
2016-02-25T06:02:26.000Z
seconds2years.py
chapman-cpsc-230/hw1-ochoa117
3e65fffebe5afea88297d51886094ef6d9728da7
[ "MIT" ]
null
null
null
s = 10**9 m = s/60 h = m/60 d = h/24 y = s/(365*24*60*60) print "A newborn baby in Norway can expect to live", y, "years."
17.571429
64
0.593496
199b8fb3aee8cc10cdf4d7229fe6c8fb16136776
9,906
py
Python
rest_framework_simplejwt/tokens.py
rj76/django-rest-framework-simplejwt
b057218d65f8f6bf9e347b63526c77af3849f245
[ "BSD-2-Clause", "MIT" ]
null
null
null
rest_framework_simplejwt/tokens.py
rj76/django-rest-framework-simplejwt
b057218d65f8f6bf9e347b63526c77af3849f245
[ "BSD-2-Clause", "MIT" ]
null
null
null
rest_framework_simplejwt/tokens.py
rj76/django-rest-framework-simplejwt
b057218d65f8f6bf9e347b63526c77af3849f245
[ "BSD-2-Clause", "MIT" ]
null
null
null
from datetime import timedelta from uuid import uuid4 from django.conf import settings from django.utils.translation import gettext_lazy as _ from .exceptions import TokenBackendError, TokenError from .settings import api_settings from .token_blacklist.models import BlacklistedToken, OutstandingToken from .utils impo...
32.267101
83
0.615385
8d3ce8498a96a2095a2b73d8addd3e02e06059c5
84
py
Python
devel/lib/python2.7/dist-packages/ferns_detector/msg/__init__.py
gentaiscool/ros-vrep-slam
afae1b35eb2538fcc9ff68952b85c5e4791c46d2
[ "MIT" ]
39
2018-08-28T21:28:07.000Z
2022-03-12T10:30:40.000Z
devel/lib/python2.7/dist-packages/ferns_detector/msg/__init__.py
zliucr/ros-vrep-slam
afae1b35eb2538fcc9ff68952b85c5e4791c46d2
[ "MIT" ]
1
2019-03-14T09:23:56.000Z
2019-04-27T15:54:53.000Z
devel/lib/python2.7/dist-packages/ferns_detector/msg/__init__.py
zliucr/ros-vrep-slam
afae1b35eb2538fcc9ff68952b85c5e4791c46d2
[ "MIT" ]
14
2018-07-12T06:59:48.000Z
2021-03-31T08:27:39.000Z
from ._DetectedPoint import * from ._Detection import * from ._ModelStatus import *
21
29
0.785714
d50355bde051443290f85de0039c0c2d4f67a366
7,024
py
Python
silk/profiling/profiler.py
idonethis/silk
1975b74019e4ba67238e14d395d91f0eb5e8dce2
[ "MIT" ]
1
2016-02-16T09:24:26.000Z
2016-02-16T09:24:26.000Z
silk/profiling/profiler.py
JoshData/silk
f025dff691d8ce11a17e4a9499084e1c05598450
[ "MIT" ]
null
null
null
silk/profiling/profiler.py
JoshData/silk
f025dff691d8ce11a17e4a9499084e1c05598450
[ "MIT" ]
null
null
null
import inspect import logging import time import traceback from django.conf import settings from django.utils import timezone import six from silk.collector import DataCollector from silk.config import SilkyConfig from silk.models import _time_taken Logger = logging.getLogger('silk') class silk_meta_profiler(obje...
37.164021
124
0.575028
6fa2eb1d3bca8d31c0a2113581334ec616cd49d9
1,918
py
Python
scripts/yaml2rdf_module.py
ASKtraining/tools
c28b8c59f69dcbc28d5cf8b400a6395930d5bef4
[ "CC0-1.0" ]
null
null
null
scripts/yaml2rdf_module.py
ASKtraining/tools
c28b8c59f69dcbc28d5cf8b400a6395930d5bef4
[ "CC0-1.0" ]
null
null
null
scripts/yaml2rdf_module.py
ASKtraining/tools
c28b8c59f69dcbc28d5cf8b400a6395930d5bef4
[ "CC0-1.0" ]
null
null
null
''' Converts ASKotec training module meta-data (from module.yaml) into an RDF/Turtle. ''' import glob import os from rdflib.namespace import DC, DCTERMS, DOAP, FOAF, SKOS, OWL, RDF, RDFS, VOID, XMLNS, XSD import wget from yaml2rdf_shared import * def convert_module_yaml_to_rdf(yaml_cont, g): ''' Converts ASKo...
34.872727
99
0.620438
cad55570a0c95225d853efb8a46d067098eee2ae
6,970
py
Python
src/cascade/input_data/db/configuration.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/input_data/db/configuration.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
src/cascade/input_data/db/configuration.py
adolgert/cascade
2084e07c9ee5e901dd407b817220de882c7246a3
[ "MIT" ]
null
null
null
import json from cascade.core.db import cursor from cascade.core.log import getLoggers from cascade.input_data.configuration import SettingsError from cascade.input_data.configuration.form import Configuration CODELOG, MATHLOG = getLoggers(__name__) def load_settings(ec, meid=None, mvid=None, settings_file=None): ...
33.671498
109
0.672597
631bfbca73b3356ec820b27ff03b383ece2afac9
9,042
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_waf_signature.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_waf_signature.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_waf_signature.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
28.613924
97
0.616788
9b3e80a0b4d944cf75e64d17d138408a682e96f0
8,630
py
Python
datadotworld/client/_swagger/models/file_create_or_update_request.py
DanialBetres/data.world-py
0e3acf2be9a07c5ab62ecac9289eb662088d54c7
[ "Apache-2.0" ]
99
2017-01-23T16:24:18.000Z
2022-03-30T22:51:58.000Z
datadotworld/client/_swagger/models/file_create_or_update_request.py
DanialBetres/data.world-py
0e3acf2be9a07c5ab62ecac9289eb662088d54c7
[ "Apache-2.0" ]
77
2017-01-26T04:33:06.000Z
2022-03-11T09:39:50.000Z
datadotworld/client/_swagger/models/file_create_or_update_request.py
DanialBetres/data.world-py
0e3acf2be9a07c5ab62ecac9289eb662088d54c7
[ "Apache-2.0" ]
29
2017-01-25T16:55:23.000Z
2022-01-31T01:44:15.000Z
# coding: utf-8 """ data.world API # data.world in a nutshell data.world is a productive, secure platform for modern data teamwork. We bring together your data practitioners, subject matter experts, and other stakeholders by removing costly barriers to data discovery, comprehension, integration, and sharing...
38.185841
1,984
0.626304
536f838f99622a3a6e8b02c5725003c7cd089bc0
96
py
Python
venv/lib/python3.8/site-packages/numpy/polynomial/tests/test_legendre.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/polynomial/tests/test_legendre.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/polynomial/tests/test_legendre.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/6f/f6/db/947b3417f056c3d112b92ab9d99b0b29c40a151e5ea8f7ff4a9a5616aa
96
96
0.895833
2bae9047f4eb4cca85b7fde3374520976737ba7e
10,790
py
Python
venv/lib/python3.9/site-packages/urllib3/_collections.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
20
2021-03-11T11:32:02.000Z
2021-12-20T15:15:20.000Z
virtual/lib/python3.8/site-packages/urllib3/_collections.py
AokoMercyline/E-commerce
833ad9fd5777e35146dfccf809e78e3c94d997a8
[ "MIT" ]
10
2021-02-03T00:49:56.000Z
2021-04-16T20:57:58.000Z
virtual/lib/python3.8/site-packages/urllib3/_collections.py
AokoMercyline/E-commerce
833ad9fd5777e35146dfccf809e78e3c94d997a8
[ "MIT" ]
6
2021-04-15T05:55:01.000Z
2021-11-15T16:16:51.000Z
from __future__ import absolute_import try: from collections.abc import Mapping, MutableMapping except ImportError: from collections import Mapping, MutableMapping try: from threading import RLock except ImportError: # Platform-specific: No threads available class RLock: def __enter__(self): ...
32.017804
86
0.59203
0433a7c6714cb0ac6c7bae4742c23acf3e4eb4cd
3,807
py
Python
tests/conftest.py
s-m-i-t-a/flask-cdn-ng
d27626a3f2a39828bed63859d206e1bf9d8e3aec
[ "MIT" ]
1
2017-09-02T07:39:17.000Z
2017-09-02T07:39:17.000Z
tests/conftest.py
s-m-i-t-a/flask-cdn-ng
d27626a3f2a39828bed63859d206e1bf9d8e3aec
[ "MIT" ]
null
null
null
tests/conftest.py
s-m-i-t-a/flask-cdn-ng
d27626a3f2a39828bed63859d206e1bf9d8e3aec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import socket import sys import time import six import pytest from itertools import chain from multiprocessing import Process from flask import Flask from flask.ext.cdn import CDN from six.moves.urllib.request import urlopen from six.moves.urllib.parse import urljoin def pytest_...
21.630682
87
0.595482
a2ba8456039d4584e5998d619f36747d58018418
5,220
py
Python
train_tf2/exporter_main_v2.py
alfanyRizaMahendra/tf2-object-detection-api
79a56f591744ae795b37b8c9c3ade212c37dba5f
[ "MIT" ]
549
2020-01-02T05:14:57.000Z
2022-03-29T18:34:12.000Z
train_tf2/exporter_main_v2.py
alfanyRizaMahendra/tf2-object-detection-api
79a56f591744ae795b37b8c9c3ade212c37dba5f
[ "MIT" ]
98
2020-01-21T09:41:30.000Z
2022-03-12T00:53:06.000Z
train_tf2/exporter_main_v2.py
alfanyRizaMahendra/tf2-object-detection-api
79a56f591744ae795b37b8c9c3ade212c37dba5f
[ "MIT" ]
233
2020-01-18T03:46:27.000Z
2022-03-19T03:17:47.000Z
# Lint as: python2, python3 # Copyright 2020 The TensorFlow 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 # ...
41.102362
80
0.721839
9fafc976cef1625e91791bd460c516874f2ca9d2
1,241
py
Python
group/migrations/0001_initial.py
amanpandey-crypto/synergee
bf24cd08ec417eda84ffc5ad373a220e763a79eb
[ "MIT" ]
null
null
null
group/migrations/0001_initial.py
amanpandey-crypto/synergee
bf24cd08ec417eda84ffc5ad373a220e763a79eb
[ "MIT" ]
3
2021-06-10T20:30:44.000Z
2021-10-02T08:23:25.000Z
group/migrations/0001_initial.py
amanpandey-crypto/synergee
bf24cd08ec417eda84ffc5ad373a220e763a79eb
[ "MIT" ]
6
2021-01-24T08:21:59.000Z
2021-10-03T11:33:02.000Z
# Generated by Django 3.1.5 on 2021-01-09 21:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Interest', fields=[ ('id', models.AutoField...
34.472222
114
0.559226
763b3d1330ab9c536e2b511e992fde7857542177
36,267
py
Python
fire/core.py
DaniloZZZ/python-fire
fb7ee3a716020f6a04c0e55967612f9322d16893
[ "Apache-2.0" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
fire/core.py
DaniloZZZ/python-fire
fb7ee3a716020f6a04c0e55967612f9322d16893
[ "Apache-2.0" ]
1
2021-08-03T12:23:01.000Z
2021-08-10T08:35:22.000Z
fire/core.py
DaniloZZZ/python-fire
fb7ee3a716020f6a04c0e55967612f9322d16893
[ "Apache-2.0" ]
2
2021-12-09T07:23:21.000Z
2022-03-31T06:13:10.000Z
# Copyright (C) 2018 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, ...
37.196923
80
0.703367
c6be62c29e03d824fad4faec3dfc71486b07457d
78
py
Python
front/server.py
rivo2302/ikulture
d8220e299beac23ab362ab4b2748eda64a41a28e
[ "MIT" ]
null
null
null
front/server.py
rivo2302/ikulture
d8220e299beac23ab362ab4b2748eda64a41a28e
[ "MIT" ]
null
null
null
front/server.py
rivo2302/ikulture
d8220e299beac23ab362ab4b2748eda64a41a28e
[ "MIT" ]
null
null
null
from webservice import app if __name__ == '__main__': app.run(debug=True)
19.5
26
0.717949
679fee711a4752d16305068a5582e6c944521713
9,847
py
Python
mqtty/view/topic_list.py
masayukig/mqtty
7b2439959bb1d308e0cb4f0e98316e8ee8df6aa2
[ "Apache-2.0" ]
null
null
null
mqtty/view/topic_list.py
masayukig/mqtty
7b2439959bb1d308e0cb4f0e98316e8ee8df6aa2
[ "Apache-2.0" ]
9
2017-08-23T08:34:55.000Z
2017-12-16T13:39:50.000Z
mqtty/view/topic_list.py
masayukig/mqtty
7b2439959bb1d308e0cb4f0e98316e8ee8df6aa2
[ "Apache-2.0" ]
1
2019-06-04T17:48:15.000Z
2019-06-04T17:48:15.000Z
# Copyright 2014 OpenStack Foundation # Copyright 2014 Hewlett-Packard Development Company, L.P. # # 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...
33.838488
79
0.573271
44a5cd3f4d5c9290f317faf0b8a35ec358dfda55
2,499
py
Python
sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_patch.py
dicolanl/azure-sdk-for-python
6207bfc24973f60dc779a939c23123a4fcb4f598
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_patch.py
dicolanl/azure-sdk-for-python
6207bfc24973f60dc779a939c23123a4fcb4f598
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_patch.py
dicolanl/azure-sdk-for-python
6207bfc24973f60dc779a939c23123a4fcb4f598
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------------...
38.446154
109
0.623449
6ded8d45258c816324d27f66fc182561e37ad3e1
1,695
py
Python
third_party/upb/python/pb_unit_tests/well_known_types_test_wrapper.py
echo80313/grpc
93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf
[ "Apache-2.0" ]
1
2021-12-01T03:10:14.000Z
2021-12-01T03:10:14.000Z
third_party/upb/python/pb_unit_tests/well_known_types_test_wrapper.py
echo80313/grpc
93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf
[ "Apache-2.0" ]
4
2022-02-27T18:59:37.000Z
2022-02-27T18:59:53.000Z
third_party/upb/python/pb_unit_tests/well_known_types_test_wrapper.py
echo80313/grpc
93cdc8b77e7b3fe4a3afec1c9c7e29b3f02ec3cf
[ "Apache-2.0" ]
1
2020-12-13T22:14:29.000Z
2020-12-13T22:14:29.000Z
# Copyright (c) 2009-2021, Google LLC # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
54.677419
81
0.774631
962f25dda50afc3044a68a3ee4c67f7860a81382
3,487
py
Python
st2common/tests/unit/test_rbac_utils.py
ekhavana/st2
2b47b0e317a2dfd7d92d63ec6dcf706493148890
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_rbac_utils.py
ekhavana/st2
2b47b0e317a2dfd7d92d63ec6dcf706493148890
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_rbac_utils.py
ekhavana/st2
2b47b0e317a2dfd7d92d63ec6dcf706493148890
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
35.948454
89
0.706338
92d426722a81b89a6e6842f4e4d8a0a8dbedcd9c
1,788
py
Python
examples/test.py
Skyscanner/pyfailsafe
84c88e8ededefb1c0bc3e3ec9b5e8207aafe0812
[ "Apache-2.0" ]
75
2016-09-21T09:50:55.000Z
2022-03-31T13:17:46.000Z
examples/test.py
rmariano/pyfailsafe
179df4c9d162f265f5c9aa49350b595e01e5ab68
[ "Apache-2.0" ]
20
2016-09-26T20:37:00.000Z
2021-09-17T00:32:34.000Z
examples/test.py
rmariano/pyfailsafe
179df4c9d162f265f5c9aa49350b595e01e5ab68
[ "Apache-2.0" ]
9
2016-09-25T15:17:15.000Z
2020-04-07T17:01:28.000Z
# Copyright 2016 Skyscanner Limited. # # 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, ...
28.83871
84
0.762304
e9e4cc5431419356b3f2398b61fe498cc9310e43
10,768
py
Python
redash/query_runner/pg.py
techscience9/redash
32669b148ccba47b118c8d390031903a18b0253d
[ "BSD-2-Clause" ]
3
2018-06-01T00:05:18.000Z
2019-03-07T14:03:10.000Z
redash/query_runner/pg.py
techscience9/redash
32669b148ccba47b118c8d390031903a18b0253d
[ "BSD-2-Clause" ]
6
2021-01-21T16:43:27.000Z
2022-02-27T09:18:00.000Z
redash/query_runner/pg.py
tradingfoe/redash-clone
94065b8dce0e27f6f40a7adc2b99e078b03115b3
[ "BSD-2-Clause" ]
5
2018-06-02T11:12:44.000Z
2020-05-13T18:34:33.000Z
import os import logging import select import psycopg2 from psycopg2.extras import Range from redash.query_runner import * from redash.utils import JSONEncoder, json_dumps, json_loads logger = logging.getLogger(__name__) types_map = { 20: TYPE_INTEGER, 21: TYPE_INTEGER, 23: TYPE_INTEGER, 700: TYPE_F...
31.48538
125
0.509287
66d6d6c877760e04e97dbec214952957a37e3f6c
1,901
py
Python
mara_cron/config.py
mara/mara-cron
c98d7029267e85ad045910ff7f16bae7b7d5fdda
[ "MIT" ]
null
null
null
mara_cron/config.py
mara/mara-cron
c98d7029267e85ad045910ff7f16bae7b7d5fdda
[ "MIT" ]
null
null
null
mara_cron/config.py
mara/mara-cron
c98d7029267e85ad045910ff7f16bae7b7d5fdda
[ "MIT" ]
1
2022-02-22T17:16:46.000Z
2022-02-22T17:16:46.000Z
import typing as t def enabled() -> bool: """ A global parameter which lets you disable/activate all cron jobs Default value: False. """ return False def instance_name() -> t.Optional[str]: """ Lets you define a name of your mara instance. Cron jobs will be executed per instance. ...
29.246154
105
0.659127
3eb210babb06a068fa90bb5eab82f5b6a4cd7139
1,596
py
Python
manila/scheduler/filters/retry.py
nidhimittalhada/access_group_repo
62f3365bc5fb728fcca692a9b3977690fabcd78f
[ "Apache-2.0" ]
1
2015-05-28T22:28:08.000Z
2015-05-28T22:28:08.000Z
manila/scheduler/filters/retry.py
nidhimittalhada/access_group_repo
62f3365bc5fb728fcca692a9b3977690fabcd78f
[ "Apache-2.0" ]
5
2015-08-13T15:17:28.000Z
2016-08-02T02:55:01.000Z
manila/scheduler/filters/retry.py
nidhimittalhada/access_group_repo
62f3365bc5fb728fcca692a9b3977690fabcd78f
[ "Apache-2.0" ]
2
2015-08-29T08:19:58.000Z
2016-08-02T02:46:10.000Z
# Copyright (c) 2012 OpenStack, LLC. # 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...
34.695652
78
0.661654
f54ac3ba72986ebedd13b3295fe5f01f054d19d1
5,296
py
Python
server/organisation/apps.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
2
2017-07-04T16:19:09.000Z
2019-08-16T04:54:47.000Z
server/organisation/apps.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
null
null
null
server/organisation/apps.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
1
2018-04-13T08:28:09.000Z
2018-04-13T08:28:09.000Z
# -*- coding: utf-8; -*- # # @file apps.py # @brief coll-gate organisation module main # @author Frédéric SCHERMA (INRA UMR1095) # @date 2017-01-03 # @copyright Copyright (c) 2017 INRA/CIRAD # @license MIT (see LICENSE file) # @details from django.utils.translation import ugettext_lazy as _ from igdectk.common.apphe...
37.560284
118
0.608195
f688ea61bf2d3dd6b5db8d0812600e4925c04437
14,492
py
Python
kicad_schlib.py
cpavlin1/kicad-pcbtool
ebe6d1891ddd45e0c8da8ccc9db13f32881aaaea
[ "CC0-1.0" ]
null
null
null
kicad_schlib.py
cpavlin1/kicad-pcbtool
ebe6d1891ddd45e0c8da8ccc9db13f32881aaaea
[ "CC0-1.0" ]
null
null
null
kicad_schlib.py
cpavlin1/kicad-pcbtool
ebe6d1891ddd45e0c8da8ccc9db13f32881aaaea
[ "CC0-1.0" ]
null
null
null
"""KiCad schematic symbol library This can load a KiCad schematic library so that it can be manipulated as a set of objects and re-exported. """ import re import shlex FILL_FG = 1 FILL_BG = -1 FILL_NONE = 0 KICAD_TO_FILL = {"F": FILL_FG, "f": FILL_BG, "N": FILL_NONE} FILL_TO_KICAD = {FILL_FG: "F", FILL_BG: "f", FIL...
32.420582
127
0.522633
17d4ab3ac8d2d22da30d7211371b2a7fa82a4337
1,500
py
Python
problems/19/Solver.py
tmct/adventOfCode2016
bd5699ca179b873f9da01514903b1dd493a46b7b
[ "MIT" ]
null
null
null
problems/19/Solver.py
tmct/adventOfCode2016
bd5699ca179b873f9da01514903b1dd493a46b7b
[ "MIT" ]
null
null
null
problems/19/Solver.py
tmct/adventOfCode2016
bd5699ca179b873f9da01514903b1dd493a46b7b
[ "MIT" ]
null
null
null
class Solver: def __init__(self): self.adjacent_elves = {} def solve(self, start_number): recipient = 1 remaining = start_number power = 1 while remaining > 1: new_remaining = remaining // 2 remaining_was_odd = remaining % 2 power *= 2...
35.714286
94
0.612
05c5e562c5b3c11eebf317a83d7294f8f62a7f7f
14,911
py
Python
sympy/polys/multivariate_resultants.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
2
2019-12-16T16:02:58.000Z
2020-01-20T04:07:18.000Z
sympy/polys/multivariate_resultants.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/multivariate_resultants.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
1
2020-02-06T17:54:20.000Z
2020-02-06T17:54:20.000Z
""" This module contains functions for two multivariate resultants. These are: - Dixon's resultant. - Macaulay's resultant. Multivariate resultants are used to identify whether a multivariate system has common roots. That is when the resultant is equal to zero. """ from sympy import IndexedBase, Matrix, Mul, Poly fr...
32.274892
96
0.553551
4aeaf175504deb2432eb92c1a08e0317d63e3763
3,299
py
Python
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_service_types_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_service_types_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_service_types_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListServiceTypesResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.686957
81
0.581085
50e0e5a22159288e161921eb1fd25e46702ad613
99
py
Python
2.py
chauhanmahavir/Python-Basics
c250a9eee203e1188a968ba2c60262442719fa49
[ "MIT" ]
1
2020-08-05T05:38:44.000Z
2020-08-05T05:38:44.000Z
2.py
chauhanmahavir/Python-Basics
c250a9eee203e1188a968ba2c60262442719fa49
[ "MIT" ]
null
null
null
2.py
chauhanmahavir/Python-Basics
c250a9eee203e1188a968ba2c60262442719fa49
[ "MIT" ]
null
null
null
print('hii'+str(5)) print(int(8)+5); print(float(8.5)+5); print(int(8.5)+5); #print(int('C'))
16.5
21
0.555556
964515eee09db29ac6709cdab4664e9d8b6074f1
45,886
py
Python
certbot/certbot/_internal/storage.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
1
2020-01-23T05:57:42.000Z
2020-01-23T05:57:42.000Z
certbot/certbot/_internal/storage.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
null
null
null
certbot/certbot/_internal/storage.py
radek-sprta/certbot
a6772043d6631341b525c4d69b47d6ef2d8b5d02
[ "Apache-2.0" ]
null
null
null
"""Renewable certificates storage.""" import datetime import glob import logging import re import shutil import stat import configobj import parsedatetime import pytz import six import certbot from certbot import crypto_util from certbot import errors from certbot import interfaces from certbot import util from certb...
40.643047
97
0.646668
aa4a7df725cc81bc8522f51a5bce49d50b132123
420
py
Python
tests/test_pandas.py
ehw-fit/py-paretoarchive
4c061435ddc1c573faf705e1111d012378c5dc4b
[ "BSD-3-Clause" ]
1
2020-05-05T10:18:36.000Z
2020-05-05T10:18:36.000Z
tests/test_pandas.py
ehw-fit/py-paretoarchive
4c061435ddc1c573faf705e1111d012378c5dc4b
[ "BSD-3-Clause" ]
1
2020-05-05T10:21:22.000Z
2020-05-13T06:53:58.000Z
tests/test_pandas.py
ehw-fit/py-paretoarchive
4c061435ddc1c573faf705e1111d012378c5dc4b
[ "BSD-3-Clause" ]
1
2020-05-05T10:23:00.000Z
2020-05-05T10:23:00.000Z
from paretoarchive.pandas import pareto import pandas as pd def test_df(): df = pd.DataFrame( [[1, 3, 3], [1, 2, 3], [1, 1, 2]], columns=["a", "b", "c"] ) assert (pareto(df, ["a", "b"]).index == [2]).all() assert (pareto(df, ["a", "b", "c"]).index == [2]).all() assert (pareto(df, ["a", "...
26.25
88
0.521429
46ef2ca6adc6cb9e19be7abf08115f986dbd2973
9,943
py
Python
datacraft/preprocessor.py
bbux-dev/datagen
14b1fb7906fcc0991a6bfb40c4fb37fb346a7a09
[ "MIT" ]
null
null
null
datacraft/preprocessor.py
bbux-dev/datagen
14b1fb7906fcc0991a6bfb40c4fb37fb346a7a09
[ "MIT" ]
5
2021-10-17T04:48:19.000Z
2021-12-08T19:53:28.000Z
datacraft/preprocessor.py
bbux-dev/datagen
14b1fb7906fcc0991a6bfb40c4fb37fb346a7a09
[ "MIT" ]
null
null
null
""" Module for preprocessing spec before generating values. Exists to handle shorthand notation and pushing params from URL form of field?param=value in to config object. """ import re import json import logging from urllib.parse import parse_qs from .exceptions import SpecException from . import registries _log = log...
33.033223
117
0.606557
def99d557cc72dd596ac9d00ab8e56f1047e22a9
47
py
Python
server/websockets/signals/__init__.py
nking1232/html5-msoy
6e026f1989b15310ad67c050beb69a168c3bdd5f
[ "MIT" ]
null
null
null
server/websockets/signals/__init__.py
nking1232/html5-msoy
6e026f1989b15310ad67c050beb69a168c3bdd5f
[ "MIT" ]
null
null
null
server/websockets/signals/__init__.py
nking1232/html5-msoy
6e026f1989b15310ad67c050beb69a168c3bdd5f
[ "MIT" ]
2
2020-12-18T19:19:38.000Z
2020-12-18T19:53:56.000Z
from .world_signals import participants_changed
47
47
0.914894
2748826f9b83a8bb961d8ebfc1ce9613d166eaca
1,957
py
Python
hyperlpr_py3/e2e.py
kitten23/HyperLPR
a0061b188324e001ce153b3274e5ff1348d8066d
[ "Apache-2.0" ]
1,104
2016-07-11T11:20:32.000Z
2022-03-31T08:44:48.000Z
hyperlpr_py3/e2e.py
kitten23/HyperLPR
a0061b188324e001ce153b3274e5ff1348d8066d
[ "Apache-2.0" ]
48
2017-04-12T06:01:07.000Z
2022-03-15T05:49:45.000Z
hyperlpr_py3/e2e.py
kitten23/HyperLPR
a0061b188324e001ce153b3274e5ff1348d8066d
[ "Apache-2.0" ]
360
2016-07-11T11:20:34.000Z
2022-03-29T06:31:38.000Z
#coding=utf-8 from keras import backend as K from keras.models import load_model from keras.layers import * import numpy as np import random import string import cv2 from . import e2emodel as model chars = ["京", "沪", "津", "渝", "冀", "晋", "蒙", "辽", "吉", "黑", "苏", "浙", "皖", "闽", "赣", "鲁", "豫", "鄂", "湘", "粤", "桂", ...
30.578125
117
0.536536
28efdeced28e7834b1a33d5a3a00bfd8fe6ae201
1,015
py
Python
awesomeplace/contrib/sites/migrations/0003_set_site_domain_and_name.py
junngo/AwesomePlace
d029fed8e3daa66fb30fc531c1f9c7c62cecf3ac
[ "MIT" ]
null
null
null
awesomeplace/contrib/sites/migrations/0003_set_site_domain_and_name.py
junngo/AwesomePlace
d029fed8e3daa66fb30fc531c1f9c7c62cecf3ac
[ "MIT" ]
null
null
null
awesomeplace/contrib/sites/migrations/0003_set_site_domain_and_name.py
junngo/AwesomePlace
d029fed8e3daa66fb30fc531c1f9c7c62cecf3ac
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
29
129
0.68867
519d77cf0ae64ace52c3b20f552eed57d246221a
3,502
py
Python
algo/rnd.py
pcchenxi/skew-explore
fee27419a6168711eae23bc803875e36afe56438
[ "MIT" ]
3
2020-08-17T20:20:08.000Z
2021-05-25T07:44:35.000Z
algo/rnd.py
yqj13777866390/skew-explore
fee27419a6168711eae23bc803875e36afe56438
[ "MIT" ]
null
null
null
algo/rnd.py
yqj13777866390/skew-explore
fee27419a6168711eae23bc803875e36afe56438
[ "MIT" ]
1
2021-01-10T02:07:27.000Z
2021-01-10T02:07:27.000Z
""" This code is inspired by the implementation of "random-network-distillation" from OpenAI (https://github.com/openai/random-network-distillation) """ import time import numpy as np import tensorflow as tf import logging class RandomNetworkDistilation(object): def __init__(self, input_dim = 2, learning_rate=1...
41.2
106
0.658481
e8b93707e1b289e015f868c2ad52ecdc69b35687
1,452
py
Python
tests/test_data.py
abandonsea/DeepTreeAttention
2ac8a3c42948d8efe157c8f38c059473067eed08
[ "MIT" ]
1
2022-03-29T05:40:56.000Z
2022-03-29T05:40:56.000Z
tests/test_data.py
abandonsea/DeepTreeAttention
2ac8a3c42948d8efe157c8f38c059473067eed08
[ "MIT" ]
null
null
null
tests/test_data.py
abandonsea/DeepTreeAttention
2ac8a3c42948d8efe157c8f38c059473067eed08
[ "MIT" ]
null
null
null
#Test data module from src import data import pandas as pd def test_TreeData_setup(config, ROOT): #One site's worth of data config["regenerate"] = True csv_file = "{}/tests/data/sample_neon.csv".format(ROOT) dm = data.TreeData(config=config, csv_file=csv_file, data_dir="{}/tests/data".f...
45.375
149
0.683196
69b5d108dbdb4ef2aca643f3a00e1d19be67c822
1,073
py
Python
numexpr/__init__.py
erdc/numexpr
ed3ca13b58548d68fbc8b9a380990aac1e4897c9
[ "MIT" ]
null
null
null
numexpr/__init__.py
erdc/numexpr
ed3ca13b58548d68fbc8b9a380990aac1e4897c9
[ "MIT" ]
null
null
null
numexpr/__init__.py
erdc/numexpr
ed3ca13b58548d68fbc8b9a380990aac1e4897c9
[ "MIT" ]
null
null
null
""" Numexpr is a fast numerical expression evaluator for NumPy. With it, expressions that operate on arrays (like "3*a+4*b") are accelerated and use less memory than doing the same calculation in Python. See: http://code.google.com/p/numexpr/ for more info about it. """ from __config__ import show as show_config,...
22.829787
69
0.771668
dfb4bb67e1211a76d51c9e3c0219868abc9f5a12
15,376
py
Python
pycalib/scoring.py
JonathanWenger/pycalib
0c023465c5a73d5b90b27e9ff6848a649f45c834
[ "MIT" ]
14
2019-06-18T17:38:30.000Z
2022-02-18T09:52:44.000Z
pycalib/scoring.py
JonathanWenger/pycalib
0c023465c5a73d5b90b27e9ff6848a649f45c834
[ "MIT" ]
3
2019-10-25T03:26:35.000Z
2022-03-15T18:34:32.000Z
pycalib/scoring.py
JonathanWenger/pycalib
0c023465c5a73d5b90b27e9ff6848a649f45c834
[ "MIT" ]
8
2019-10-12T02:02:46.000Z
2022-02-03T13:16:32.000Z
"""Scoring functions and metrics for classification models.""" import time import numpy as np import copy import matplotlib.pyplot as plt import scipy.stats import sklearn.metrics import sklearn.utils.validation def accuracy(y, p_pred): """ Computes the accuracy. Parameters ---------- y : arra...
31.252033
120
0.628382
035b12313110325137341581db802ea2b7346fa2
6,627
py
Python
oauth_provider/views.py
Riidr/django-oauth-plus
013052fdaf1b80a1611c288daa5fecbcdcaffcd4
[ "BSD-3-Clause" ]
null
null
null
oauth_provider/views.py
Riidr/django-oauth-plus
013052fdaf1b80a1611c288daa5fecbcdcaffcd4
[ "BSD-3-Clause" ]
null
null
null
oauth_provider/views.py
Riidr/django-oauth-plus
013052fdaf1b80a1611c288daa5fecbcdcaffcd4
[ "BSD-3-Clause" ]
null
null
null
from urllib import urlencode import oauth2 as oauth from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt from django.utils.translation import uge...
40.408537
117
0.705146
04d7f2976a862223101654a23779f1b67feac378
553
py
Python
processed_dataset/mat2obj.py
xiangruhuang/Learning2Sync
7d2bda047079547d3bb7c69a1c84bbc6301ab044
[ "BSD-3-Clause" ]
43
2019-01-22T23:05:47.000Z
2021-09-21T07:24:22.000Z
processed_dataset/mat2obj.py
xiangruhuang/Learning2Sync
7d2bda047079547d3bb7c69a1c84bbc6301ab044
[ "BSD-3-Clause" ]
1
2020-10-20T05:47:40.000Z
2020-11-12T23:02:05.000Z
processed_dataset/mat2obj.py
xiangruhuang/Learning2Sync
7d2bda047079547d3bb7c69a1c84bbc6301ab044
[ "BSD-3-Clause" ]
6
2019-03-02T03:59:46.000Z
2021-10-07T15:58:08.000Z
import sys import scipy.io as sio import glob ## OBJ file #v -0.3925 -0.8111 2.0260 s = int(sys.argv[1]) with open('scenes', 'r') as fin: scene_id = fin.readlines()[s].strip() mats = glob.glob('scannet/%s/*.mat' % scene_id) for mat_f in mats: obj = mat_f.replace('.mat', '.obj') mat = sio.loadmat(mat_f) #pr...
21.269231
68
0.573237
3b8b353ae6381ed6dddccd2884abe5c9fd992001
443
py
Python
django_blog/comment/admin.py
csyu12/Django-blog
e1f2ed886ede84c5baa518b7fbdd2900fb52f534
[ "MIT" ]
null
null
null
django_blog/comment/admin.py
csyu12/Django-blog
e1f2ed886ede84c5baa518b7fbdd2900fb52f534
[ "MIT" ]
null
null
null
django_blog/comment/admin.py
csyu12/Django-blog
e1f2ed886ede84c5baa518b7fbdd2900fb52f534
[ "MIT" ]
null
null
null
from django.contrib import admin from .adminforms import CommentAdminForm from .models import Comment from django_blog.custom_site import custom_site @admin.register(Comment, site=custom_site) class CommentAdmin(admin.ModelAdmin): form = CommentAdminForm list_display = ('target', 'nickname', 'website', ...
26.058824
54
0.713318
04b890b08b595d1086de81d19c952e378700013c
5,858
py
Python
tests/playground.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
4
2018-11-19T01:36:01.000Z
2022-02-28T03:41:12.000Z
tests/playground.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
1
2021-12-26T11:57:07.000Z
2022-03-16T07:18:01.000Z
tests/playground.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
2
2019-03-30T10:28:12.000Z
2022-03-04T17:58:39.000Z
import os import re import sys import glob thisdir = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.join(thisdir, "..", "python")) dirs = map(lambda y: thisdir + "/" + y, filter(lambda x: re.match(r"test\d+", x), os.listdir(thisdir))) os.environ["DAS_SCHEMA_PATH"] = os.pathsep.join(dirs) import da...
26.151786
103
0.573916
944f9fee7822bbbfe2a0192af5c60352898be749
3,726
py
Python
tests/test_exceptional.py
tdhopper/exception
d6e857fb2f9ccb225fe6ae572723a74eded6fa8d
[ "MIT" ]
2
2016-06-17T03:51:17.000Z
2017-02-02T18:36:19.000Z
tests/test_exceptional.py
tdhopper/exceptional
d6e857fb2f9ccb225fe6ae572723a74eded6fa8d
[ "MIT" ]
null
null
null
tests/test_exceptional.py
tdhopper/exceptional
d6e857fb2f9ccb225fe6ae572723a74eded6fa8d
[ "MIT" ]
1
2017-08-12T06:11:43.000Z
2017-08-12T06:11:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import six import os from subprocess import check_output """ test_exception ---------------------------------- Tests for `exception` module. """ import pytest from exception import exception @pytest.fixture def ...
32.12069
93
0.684648
4215f026f36cb6dea964f8bc0417ac5449e5e258
4,165
py
Python
engine/songslover.py
Iamdavidonuh/getmusic
28ad107ff6c3539687d677533696d7bacadeabb9
[ "MIT" ]
null
null
null
engine/songslover.py
Iamdavidonuh/getmusic
28ad107ff6c3539687d677533696d7bacadeabb9
[ "MIT" ]
null
null
null
engine/songslover.py
Iamdavidonuh/getmusic
28ad107ff6c3539687d677533696d7bacadeabb9
[ "MIT" ]
null
null
null
import re from engine.root import BaseEngine # from lxml import etree """Figure out a way to combine both fetch and search""" """Also find a way to differentiate between album and track children when using Search not Fetch""" class Songslover(BaseEngine): engine_name = "songslover" page_path = "page" tr...
36.535088
99
0.515246
2e2e11d5ffd1c011b5dce25c38929e0e737ce843
36,854
py
Python
openstack_dashboard/api/nova.py
HoonMinJeongUm/Hoonmin-Horizon
5c9569ff9a60e81e4acc6f5216ee239653152ea4
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/nova.py
HoonMinJeongUm/Hoonmin-Horizon
5c9569ff9a60e81e4acc6f5216ee239653152ea4
[ "Apache-2.0" ]
3
2021-01-21T14:27:55.000Z
2021-06-10T23:08:49.000Z
openstack_dashboard/api/nova.py
Surfndez/horizon
a56765b6b3dbc09fd467b83a57bea2433ae3909e
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 OpenStack Foundation # Copyright 2012 Nebula, Inc. # Copyright (c) 2012 X.commerce, a business unit of eBay Inc. # # Licensed under the Apach...
32.964222
79
0.677593
9a6bdd7f36617635c9fe2ab4f9290b7b4b1bfac7
108,076
py
Python
lib/sqlalchemy/engine/base.py
karlicoss/sqlalchemy
402cca8f2ac42a08fba7a200c4e1e086e2081aad
[ "MIT" ]
1
2021-04-04T10:13:08.000Z
2021-04-04T10:13:08.000Z
lib/sqlalchemy/engine/base.py
karlicoss/sqlalchemy
402cca8f2ac42a08fba7a200c4e1e086e2081aad
[ "MIT" ]
null
null
null
lib/sqlalchemy/engine/base.py
karlicoss/sqlalchemy
402cca8f2ac42a08fba7a200c4e1e086e2081aad
[ "MIT" ]
null
null
null
# engine/base.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from __future__ import with_statement import contextlib import sys from .interfaces ...
35.365183
84
0.60736
a0a5d18479c4ba6d05db1f13153db096392f04d5
16,202
py
Python
toontown/racing/RaceGlobals.py
philicheese2003/ToontownProjectAltisServer
cfa225d1bdddacdbd29b621382347fce17e1dc66
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/racing/RaceGlobals.py
AnythingTechPro/Project-Altis
7ead614abdb5072ca06323982de461f4e775d1b3
[ "Apache-2.0" ]
null
null
null
toontown/racing/RaceGlobals.py
AnythingTechPro/Project-Altis
7ead614abdb5072ca06323982de461f4e775d1b3
[ "Apache-2.0" ]
2
2021-02-25T06:02:05.000Z
2021-06-19T03:11:22.000Z
TrackSignDuration = 15 RaceCountdown = 3 MaxRacers = 4 MaxTickets = 99999 Practice = 0 ToonBattle = 1 Circuit = 2 Speedway = 0 Rural = 1 Urban = 2 RT_Speedway_1 = 0 RT_Speedway_1_rev = 1 RT_Rural_1 = 20 RT_Rural_1_rev = 21 RT_Urban_1 = 40 RT_Urban_1_rev = 41 RT_Speedway_2 = 60 RT_Speedway_2_rev = 61 RT_Rural_2 = 62 RT_...
29.140288
163
0.575917
8d8846a821a417a67cb9d7cef3e3eae3d756a2d6
3,465
py
Python
examples/pip_parse/pip_parse_test.py
axivion/rules_python
7740b22d0bae942af0797967f2617daa19834cb3
[ "Apache-2.0" ]
null
null
null
examples/pip_parse/pip_parse_test.py
axivion/rules_python
7740b22d0bae942af0797967f2617daa19834cb3
[ "Apache-2.0" ]
null
null
null
examples/pip_parse/pip_parse_test.py
axivion/rules_python
7740b22d0bae942af0797967f2617daa19834cb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess import unittest from pathlib import Path class PipInstallTest(unittest.TestCase): maxDiff = None def test_entry_point_void_return(self): env = os.environ.get("YAMLLINT_ENTRY_POINT") self.assertIsNotNone(env) entry_point = Path(env) ...
36.473684
100
0.597114
a3e4f7f23afd0b9584b9203fd26c43e4ba7acef1
997
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/endpoint_service_result_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2017_10_01/models/endpoint_service_result_paged.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure/mgmt/network/v2017_10_01/models/endpoint_service_result_paged.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.607143
151
0.599799
6f7fa28028ba37c131152170dae52e91aa2ae713
333
py
Python
lab/downscaling/worker/DummyWorker.py
voschezang/distributed-systems
6132dc33414d942378cd2b835408701c31075c91
[ "MIT" ]
null
null
null
lab/downscaling/worker/DummyWorker.py
voschezang/distributed-systems
6132dc33414d942378cd2b835408701c31075c91
[ "MIT" ]
null
null
null
lab/downscaling/worker/DummyWorker.py
voschezang/distributed-systems
6132dc33414d942378cd2b835408701c31075c91
[ "MIT" ]
1
2020-02-16T15:16:45.000Z
2020-02-16T15:16:45.000Z
from lab.util import message import time from lab.master.WorkerInterface import WorkerInterface class DummyWorker(WorkerInterface): def run(self): """ Runs the worker """ while True: time.sleep(1) self.send_debug_message("Debugging s...
22.2
64
0.591592
544b53adcafa05f0da50d090375e2dd015db5561
13,441
py
Python
studio/parsers/loader.py
ObaraEmmanuel/Formation
31244cbceb1bb405007f5f051ae2102ab021e779
[ "MIT" ]
71
2020-06-19T11:17:35.000Z
2022-03-24T02:51:54.000Z
studio/parsers/loader.py
ObaraEmmanuel/Formation
31244cbceb1bb405007f5f051ae2102ab021e779
[ "MIT" ]
11
2020-06-20T19:04:02.000Z
2022-03-01T04:42:36.000Z
studio/parsers/loader.py
ObaraEmmanuel/Formation
31244cbceb1bb405007f5f051ae2102ab021e779
[ "MIT" ]
6
2020-11-15T01:38:53.000Z
2021-12-25T07:14:23.000Z
""" Conversions of design to xml and back """ # ======================================================================= # # Copyright (c) 2020 Hoverset Group. # # ======================================================================= # import tkinter as tk from formation.formats ...
39.648968
121
0.59445
eb3fc21c64b442801446899451b15a879392bc1c
2,313
py
Python
resources/produto.py
rykehg/produtosPyFlaskJWTTests
a3728b353a6855e3b3bc6e5c5171549f1181e140
[ "MIT" ]
null
null
null
resources/produto.py
rykehg/produtosPyFlaskJWTTests
a3728b353a6855e3b3bc6e5c5171549f1181e140
[ "MIT" ]
null
null
null
resources/produto.py
rykehg/produtosPyFlaskJWTTests
a3728b353a6855e3b3bc6e5c5171549f1181e140
[ "MIT" ]
null
null
null
from flask_jwt_extended import jwt_required from flask_restful import Resource, reqparse from models.produtos import ProdutoModel class Produtos(Resource): @jwt_required def get(self): # SELECT * FROM produtos produtos = ProdutoModel.query.all() return {'Produtos': [produto.json() fo...
34.014706
75
0.629486
fbb2f9252b5e68fc10e2a58b88491f23ef743285
2,373
bzl
Python
test/com/facebook/buck/features/dotnet/testdata/csharp_udr/build_rules/csharp_binary.bzl
jasonnam/buck
1ddbbf986312b30413aa36cac337267536a11f04
[ "Apache-2.0" ]
null
null
null
test/com/facebook/buck/features/dotnet/testdata/csharp_udr/build_rules/csharp_binary.bzl
jasonnam/buck
1ddbbf986312b30413aa36cac337267536a11f04
[ "Apache-2.0" ]
null
null
null
test/com/facebook/buck/features/dotnet/testdata/csharp_udr/build_rules/csharp_binary.bzl
jasonnam/buck
1ddbbf986312b30413aa36cac337267536a11f04
[ "Apache-2.0" ]
null
null
null
load("//build_rules:csharp_binary.bzl", "csharp_compile") """ Implementation of a simple C# binary that can use built in csharp_library() and prebuilt_dotnet_library() rules. Note that by default the stdlib is not linked in. Add 'mscorlib.dll' to `system_assemblies` to get this behavior. """ def _csharp_binary_impl(...
35.954545
121
0.596713
0180ae07d1af93e6ea0588f0e7de8e525b4c6bb6
1,105
py
Python
tests/test_todos.py
ejmoyer/flask-todo
52e749a9bc93852fd1d634ca300d9213b3394f14
[ "MIT" ]
null
null
null
tests/test_todos.py
ejmoyer/flask-todo
52e749a9bc93852fd1d634ca300d9213b3394f14
[ "MIT" ]
null
null
null
tests/test_todos.py
ejmoyer/flask-todo
52e749a9bc93852fd1d634ca300d9213b3394f14
[ "MIT" ]
null
null
null
import pytest def test_todo_list(client): # View the home page and check to see the header and a to-do item response = client.get('/') assert b'clean room' in response.data # Mock data should show three to-do items, one of which is complete assert response.data.count(b'<li class="">') == 2 ass...
34.53125
104
0.686878
c0b27f671fa14dbf1675ccff6887c7cfad8383b2
1,227
py
Python
renku/core/management/migrations/m_0008__dataset_metadata.py
TaoSunVoyage/renku-python
858fe84ce2925a49d9b62638dc601f581e24353e
[ "Apache-2.0" ]
null
null
null
renku/core/management/migrations/m_0008__dataset_metadata.py
TaoSunVoyage/renku-python
858fe84ce2925a49d9b62638dc601f581e24353e
[ "Apache-2.0" ]
null
null
null
renku/core/management/migrations/m_0008__dataset_metadata.py
TaoSunVoyage/renku-python
858fe84ce2925a49d9b62638dc601f581e24353e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
33.162162
75
0.746536
4d43877e0e1f9b3f5fcb2b6c9d1adb47ff9a5eae
29,158
py
Python
specutils/fitting/fitmodels.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/fitting/fitmodels.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
specutils/fitting/fitmodels.py
hamogu/specutils
b873f2ac9b3c207c9e670246d102f46a9606d6ed
[ "BSD-3-Clause" ]
null
null
null
import operator import itertools import numpy as np from scipy.signal import convolve import astropy.units as u from astropy.stats import sigma_clipped_stats from ..manipulation.utils import excise_regions from ..analysis import fwhm, centroid from ..utils import QuantityModel from ..manipulation import extract_regio...
33.669746
125
0.637492
78d9b4825542698fd45b486ab86c6b1283ccf1d3
1,495
py
Python
blogapp/models.py
divijagupta/Blog-Webapp
186c6989c6d2e87895574944477ffc66177f870b
[ "MIT" ]
null
null
null
blogapp/models.py
divijagupta/Blog-Webapp
186c6989c6d2e87895574944477ffc66177f870b
[ "MIT" ]
6
2020-06-05T18:22:54.000Z
2022-03-11T23:24:40.000Z
blogapp/models.py
divijagupta/Blog
186c6989c6d2e87895574944477ffc66177f870b
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.template.defaultfilters import slugify class Category(models.Model): category=models.CharField(max_length=50,unique=True) slug_field_category=models.SlugField(max_length=100,blank=True) def save(self, *args, **kwargs): self.slug_...
33.977273
67
0.815385
d5658f9b75591d6cb2f6cdc4c0931b8e8cbebcc3
4,472
py
Python
attribution/tests/project.py
markrofail/attribution
6180e972538bb4adcaf7773889f7c4da67891ea3
[ "MIT" ]
null
null
null
attribution/tests/project.py
markrofail/attribution
6180e972538bb4adcaf7773889f7c4da67891ea3
[ "MIT" ]
null
null
null
attribution/tests/project.py
markrofail/attribution
6180e972538bb4adcaf7773889f7c4da67891ea3
[ "MIT" ]
null
null
null
# Copyright 2020 John Reese # Licensed under the MIT license import subprocess from pathlib import Path from tempfile import TemporaryDirectory from unittest import TestCase from unittest.mock import patch from ..project import Project from ..tag import Tag, Version class ProjectTest(TestCase): def test_project...
33.878788
85
0.579383
faaf1a4b943290509aa5dcb6bebbd18ee6efd394
880
py
Python
pcg_gazebo/parsers/sdf/kinematic.py
TForce1/pcg_gazebo
9ff88016b7b6903236484958ca7c6ed9f8ffb346
[ "ECL-2.0", "Apache-2.0" ]
40
2020-02-04T18:16:49.000Z
2022-02-22T11:36:34.000Z
pcg_gazebo/parsers/sdf/kinematic.py
awesomebytes/pcg_gazebo
4f335dd460ef7c771f1df78b46a92fad4a62cedc
[ "ECL-2.0", "Apache-2.0" ]
75
2020-01-23T13:40:50.000Z
2022-02-09T07:26:01.000Z
pcg_gazebo/parsers/sdf/kinematic.py
GimpelZhang/gazebo_world_generator
eb7215499d0ddc972d804c988fadab1969579b1b
[ "ECL-2.0", "Apache-2.0" ]
18
2020-09-10T06:35:41.000Z
2022-02-20T19:08:17.000Z
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
35.2
74
0.748864
89fdb88ced520dcf75fd7e4ea5df94258761051f
10,658
py
Python
test/functional/wallet_listtransactions.py
sunrisellc/banditocoin
731dcea8fdab8e78e9aaecd0ea8ef12c153c210f
[ "MIT" ]
null
null
null
test/functional/wallet_listtransactions.py
sunrisellc/banditocoin
731dcea8fdab8e78e9aaecd0ea8ef12c153c210f
[ "MIT" ]
null
null
null
test/functional/wallet_listtransactions.py
sunrisellc/banditocoin
731dcea8fdab8e78e9aaecd0ea8ef12c153c210f
[ "MIT" ]
1
2022-01-09T06:41:03.000Z
2022-01-09T06:41:03.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" from decimal import Decimal from io import BytesIO from test_framewo...
50.273585
121
0.601426
dc9338327c4d0a04e3f87fe9dbf7d6e51e08b840
8,964
py
Python
server/util/device_info.py
joweeba/mrtaskman
cef92f11cca3de45c77b76a68a91d85af9c8fb48
[ "Apache-2.0" ]
null
null
null
server/util/device_info.py
joweeba/mrtaskman
cef92f11cca3de45c77b76a68a91d85af9c8fb48
[ "Apache-2.0" ]
null
null
null
server/util/device_info.py
joweeba/mrtaskman
cef92f11cca3de45c77b76a68a91d85af9c8fb48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # 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 # di...
27.496933
77
0.548527
45a7ef1db3e186205cde737187780c4affabd7d7
369
py
Python
manga_py/providers/__list.py
gromenauer/manga-py
2bc5a8bc87877d4447e08e48045fad82ade1ebd0
[ "MIT" ]
4
2018-07-05T11:03:22.000Z
2020-03-27T13:21:56.000Z
manga_py/providers/__list.py
gromenauer/manga-py
2bc5a8bc87877d4447e08e48045fad82ade1ebd0
[ "MIT" ]
null
null
null
manga_py/providers/__list.py
gromenauer/manga-py
2bc5a8bc87877d4447e08e48045fad82ade1ebd0
[ "MIT" ]
1
2021-02-05T06:18:31.000Z
2021-02-05T06:18:31.000Z
providers_list = [ { 'provider': 'manga_py.providers.readmanga_me', 'priority': 5, # default 'templates': [ r'readmanga\.me/.', ] }, # { # 'provider': 'manga_py.providers.readmanga_me', # 'priority': 5, # default # 'templates': [ # ...
21.705882
56
0.439024
bc77fbe4568ef8c68253a5903cdc575d2f036bed
5,828
py
Python
Prototypes/Wi-Fi/wireless.py
jamestiotio/deLIGHT
0a836760d0bfa6a9f854fa855c5792e65448b2e8
[ "MIT" ]
2
2020-05-30T17:17:50.000Z
2021-01-23T17:20:22.000Z
Prototypes/Wi-Fi/wireless.py
jamestiotio/deLIGHT
0a836760d0bfa6a9f854fa855c5792e65448b2e8
[ "MIT" ]
1
2022-01-07T08:20:26.000Z
2022-01-07T09:43:55.000Z
Prototypes/Wi-Fi/wireless.py
jamestiotio/deLIGHT
0a836760d0bfa6a9f854fa855c5792e65448b2e8
[ "MIT" ]
null
null
null
# Wi-Fi Lighter Unlock Script # Use ampy to put the code and use rshell to REPL into ESP32 and run the script. # Set it to run on boot by renaming the file to main.py # Created by James Raphael Tiovalen (2019) # Import libraries import utime import network import machine from ST7735 import TFT from sysfont import sysf...
35.754601
228
0.611531
51b60d526aef5d75bd34d4523db4d80ed5682d2a
205
py
Python
acclist/admin.py
ko-naka-3010527/accup-python
e10ff96111be889573d830f4b710d9b8b19e1828
[ "MIT" ]
null
null
null
acclist/admin.py
ko-naka-3010527/accup-python
e10ff96111be889573d830f4b710d9b8b19e1828
[ "MIT" ]
null
null
null
acclist/admin.py
ko-naka-3010527/accup-python
e10ff96111be889573d830f4b710d9b8b19e1828
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Service) admin.site.register(Mailaddr) admin.site.register(Address) admin.site.register(Phonenum) admin.site.register(Account)
18.636364
32
0.809756
a6ed324ad6b163f045dace772755bfa867fb72da
585
py
Python
app/config.py
telezhnaya/playing_with_flask
c813dbe1df19fe2d30dd875d27b70fe8c7ddb270
[ "MIT" ]
2
2018-10-30T17:18:37.000Z
2018-11-23T08:36:17.000Z
app/config.py
telezhnaya/playing_with_flask
c813dbe1df19fe2d30dd875d27b70fe8c7ddb270
[ "MIT" ]
3
2018-11-23T07:33:02.000Z
2018-11-29T12:04:50.000Z
app/config.py
telezhnaya/playing_with_flask
c813dbe1df19fe2d30dd875d27b70fe8c7ddb270
[ "MIT" ]
1
2018-11-23T08:36:21.000Z
2018-11-23T08:36:21.000Z
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ['SECRET_KEY'] SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = True @classmethod def init_app(cls, app): """ """ class DevelopmentConfig(Config): ...
16.714286
56
0.680342
bf0eceae1acf1187fbf31016cfb0a82e647551b6
646
py
Python
trails/feeds/feodotrackerdns.py
Jahismighty/maltrail
9bc70430993b2140ceb4dbac4b487251a9254416
[ "MIT" ]
1
2021-01-10T14:35:36.000Z
2021-01-10T14:35:36.000Z
trails/feeds/feodotrackerdns.py
Jahismighty/maltrail
9bc70430993b2140ceb4dbac4b487251a9254416
[ "MIT" ]
29
2018-10-18T20:14:49.000Z
2019-07-08T07:45:08.000Z
trails/feeds/feodotrackerdns.py
Jahismighty/maltrail
9bc70430993b2140ceb4dbac4b487251a9254416
[ "MIT" ]
2
2018-11-29T22:50:57.000Z
2019-04-12T03:35:35.000Z
#!/usr/bin/env python """ Copyright (c) 2014-2018 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ from core.common import retrieve_content __url__ = "https://feodotracker.abuse.ch/blocklist/?download=domainblocklist" __check__ = "Feodo" __info__ = "feodo (malware)" __reference__ = "abu...
23.925926
77
0.651703
a7852cda9648199ee7be17d096ae1d11bd49e4fd
367
py
Python
src/Task.py
Chamerli-sh/Giggle
9608971b588bc26ef278e43f508da5f1a2c07e92
[ "MIT" ]
null
null
null
src/Task.py
Chamerli-sh/Giggle
9608971b588bc26ef278e43f508da5f1a2c07e92
[ "MIT" ]
null
null
null
src/Task.py
Chamerli-sh/Giggle
9608971b588bc26ef278e43f508da5f1a2c07e92
[ "MIT" ]
null
null
null
class Task(): check = False def __init__(self, name): self.name = name def set_check(self, state=False): Task.check = state def is_checked(self): return Task.check def str_check(self): match self.check: case True: return '✅' ...
20.388889
37
0.493188
6881f73f27d2ff45eceb7523e18fdd2d1afe467b
1,990
py
Python
opinion_classification/electra/finetune/scorer.py
10jqka-aicubes/opinion_classification
43f193522b033bd857d294737b3f9dbaac7aed9f
[ "MIT" ]
null
null
null
opinion_classification/electra/finetune/scorer.py
10jqka-aicubes/opinion_classification
43f193522b033bd857d294737b3f9dbaac7aed9f
[ "MIT" ]
null
null
null
opinion_classification/electra/finetune/scorer.py
10jqka-aicubes/opinion_classification
43f193522b033bd857d294737b3f9dbaac7aed9f
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2020 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...
27.260274
90
0.690955