hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
91a0ff09840f6060e7ec2482729c59c5081cd037
2,406
py
Python
sdk/identity/azure-identity/azure/identity/aio/_authn_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/azure/identity/aio/_authn_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/azure/identity/aio/_authn_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "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. # -------------------------------------------------------------------------- from typin...
42.964286
117
0.662095
91a0ff0ad22a436ee289e2f2845b888c081b99d8
1,632
py
Python
uid3/_nbdev.py
AnetaKaczynska/uid3
3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a
[ "Apache-2.0" ]
null
null
null
uid3/_nbdev.py
AnetaKaczynska/uid3
3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a
[ "Apache-2.0" ]
null
null
null
uid3/_nbdev.py
AnetaKaczynska/uid3
3adcb9bf90abaa9f1eb6f656399cc8da6eb1873a
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"AttStats": "att_stats.ipynb", "Attribute": "attribute.ipynb", "Data": "data.ipynb", "DataScrambler": "data_scrambler.ipynb", "configuration": "data_scrambler.ipynb", ...
33.306122
74
0.575368
91a1109f97c9608935ebe751543bf3c8c0bdb12c
68
py
Python
draalcore/factory/__init__.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2017-04-25T10:54:55.000Z
2017-04-25T10:54:55.000Z
draalcore/factory/__init__.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
1
2022-02-10T06:48:36.000Z
2022-02-10T06:48:36.000Z
draalcore/factory/__init__.py
jojanper/draalcore
3d3f5a53efe32c721c34d7e48267328a4e9e8402
[ "MIT" ]
null
null
null
from .base_factory import QueryResult, FactoryBase, Factory # noqa
34
67
0.808824
91a125677add71e00c7f7cbfe170f32ded819c11
3,896
py
Python
tests/clients/test_alerts.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/clients/test_alerts.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/clients/test_alerts.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
import pytest from py42.clients.alerts import AlertsClient from py42.sdk.queries.alerts.alert_query import AlertQuery from py42.services.alertrules import AlertRulesService from py42.services.alerts import AlertService @pytest.fixture def mock_alerts_service(mocker): return mocker.MagicMock(spec=AlertService) ...
41.010526
85
0.774641
91a13341106093afc4543e6c5767be9c31055d3b
69
py
Python
server/routes/__init__.py
MrCreeper1008/covid19-alarm
2f07a602c60bafacab3aa977a22d11fc1d07b878
[ "MIT" ]
1
2021-11-30T11:03:36.000Z
2021-11-30T11:03:36.000Z
server/routes/__init__.py
kennethnym/covid19-alarm
2f07a602c60bafacab3aa977a22d11fc1d07b878
[ "MIT" ]
null
null
null
server/routes/__init__.py
kennethnym/covid19-alarm
2f07a602c60bafacab3aa977a22d11fc1d07b878
[ "MIT" ]
null
null
null
""" Initializes server routes """ import server.routes.alarms.route
11.5
33
0.753623
91a15636a10214c5aa514068be96fcd51143f716
8,888
py
Python
OddNumbersClassifier.py
ElPapi42/Odd-Numbers-Classifier
42b75ab2d402479a291e52f48dc5125ec4e5fe01
[ "MIT" ]
null
null
null
OddNumbersClassifier.py
ElPapi42/Odd-Numbers-Classifier
42b75ab2d402479a291e52f48dc5125ec4e5fe01
[ "MIT" ]
1
2019-05-28T18:23:41.000Z
2020-05-31T18:21:31.000Z
OddNumbersClassifier.py
ElPapi42/Odd-Numbers-Classifier
42b75ab2d402479a291e52f48dc5125ec4e5fe01
[ "MIT" ]
null
null
null
#Calculates the propabilities of the given number for be an Odd Number #Whitman Bohorquez / ElPapi42 #Sample project for practice what i self-learned about tensorflow import tensorflow as tf import numpy as np from Classes.Classifier import Classifier as cl from bitstring import BitArray from consolemenu import * from...
42.32381
156
0.615887
91a1842e289f3fa2debfbd8448d1097d480b1a5d
255
py
Python
src2/fizzbuzz/fizzbuzz_1.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
7
2021-01-20T09:11:53.000Z
2022-03-15T12:19:06.000Z
src2/fizzbuzz/fizzbuzz_1.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
null
null
null
src2/fizzbuzz/fizzbuzz_1.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
10
2020-11-01T09:47:02.000Z
2021-11-02T12:59:50.000Z
# fizzbuzz_1 def fb(i): if (i % 3 == 0) and (i % 5 == 0): print('fizzbuzz') elif i % 3 == 0: print('fizz') elif i % 5 == 0: print('buzz') else: print(i) # MAIN N = 30 for i in range(1, N + 1): fb(i)
13.421053
37
0.415686
91a18c92048922611f9375584df3c89d2e6f6c77
845
py
Python
nextalbums/common.py
seanbrecke/albums
890b237d9cdafc243a4319e5bad34614b40fcfeb
[ "MIT" ]
null
null
null
nextalbums/common.py
seanbrecke/albums
890b237d9cdafc243a4319e5bad34614b40fcfeb
[ "MIT" ]
null
null
null
nextalbums/common.py
seanbrecke/albums
890b237d9cdafc243a4319e5bad34614b40fcfeb
[ "MIT" ]
null
null
null
import re from functools import partial from typing import Any, List import click WorksheetValue = Any WorksheetRow = List[WorksheetValue] WorksheetData = List[WorksheetRow] eprint = partial(click.echo, err=True) # Items which are on my spreadsheet because I added it # not because they won a award/were on a list ...
25.606061
79
0.72071
91a18e4f64eddba0187ca497a94ac50907b8aadc
5,570
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_toolbar.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
5
2019-03-11T14:30:31.000Z
2021-12-04T14:11:54.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_toolbar.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_toolbar.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
############################################################################### # Name: ed_toolbar.py # # Purpose: Editra's Toolbar # # Author: Cody Precord <cprecord@editra.org> # ...
37.133333
79
0.555835
91a18ef05234bcd312c477f22818f4d0c0c746c3
2,449
py
Python
api/app.py
jaredmichaelsmith/grove
8ce918881d92ca95be88f7e33de170bcd6f11da9
[ "MIT" ]
4
2016-04-29T00:34:44.000Z
2016-09-08T23:06:12.000Z
api/app.py
jaredmichaelsmith/grove
8ce918881d92ca95be88f7e33de170bcd6f11da9
[ "MIT" ]
1
2021-03-19T22:03:18.000Z
2021-03-19T22:03:18.000Z
api/app.py
jaredthecoder/grove
8ce918881d92ca95be88f7e33de170bcd6f11da9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """This file contains the application factory for making instances of the API""" # Python standard library import os # Third-Party modules from flask import Flask from flask.ext.restful import Api # Project specific modules from api.extensions import bcrypt, cache, db, migrate from api.set...
28.149425
80
0.689669
91a1ba22a2750943f66a59a3d818feb2d4dc508c
3,225
py
Python
Leetcode/medium/bulls-and-cows.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/bulls-and-cows.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/bulls-and-cows.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # BULLS AND COWS You are playing the Bulls and Cows game with your friend. You write down a secret number and ask your friend to guess what the number is. When your friend makes a guess, you provide a hint with the following info: The number of "bulls", which are digits in the guess that are in the correct posi...
28.539823
222
0.538915
91a1dbfda634e8fac76d40afc83499023d97ac7e
4,426
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/manager.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/manager.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/manager.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
import sys import traceback from oslo.config import cfg from eventlet import greenthread from daoliproxy import context from daoliproxy import utils from daoliproxy.db import base from daoliproxy.openstack.common import timeutils from daoliproxy.openstack.common import log as logging from daoliproxy.openstack.common i...
37.508475
86
0.60845
91a1fb6cbc64e18bf34c1d0181964dd5585e1c87
2,181
py
Python
projects/OSNet_AIN/softmax_nas.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
1
2021-03-27T17:27:47.000Z
2021-03-27T17:27:47.000Z
projects/OSNet_AIN/softmax_nas.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
null
null
null
projects/OSNet_AIN/softmax_nas.py
Arindam-1991/deep_reid
ab68d95c2229ef5b832a6a6b614a9b91e4984bd5
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import from torchreid import metrics from torchreid.engine import Engine from torchreid.losses import CrossEntropyLoss class ImageSoftmaxNASEngine(Engine): def __init__( self, datamanager, model, optimizer, ...
29.472973
74
0.576341
91a260d87a068117c62c040f221cce686eecae69
12,771
py
Python
test_vis.py
PrendiProgramming/CTRL-C
33649170f94f1bdc568163762ab2c1787f2fc948
[ "Apache-2.0" ]
43
2021-09-06T08:00:41.000Z
2022-03-24T08:14:31.000Z
test_vis.py
PrendiProgramming/CTRL-C
33649170f94f1bdc568163762ab2c1787f2fc948
[ "Apache-2.0" ]
4
2021-09-10T17:11:42.000Z
2022-03-31T02:04:12.000Z
test_vis.py
PrendiProgramming/CTRL-C
33649170f94f1bdc568163762ab2c1787f2fc948
[ "Apache-2.0" ]
6
2021-09-07T04:04:27.000Z
2021-11-30T10:48:22.000Z
import os import os.path as osp import argparse from datetime import date import json import random import time from pathlib import Path import numpy as np import numpy.linalg as LA from tqdm import tqdm import matplotlib as mpl import matplotlib.pyplot as plt import cv2 import csv import torch import torch.nn.functio...
39.055046
101
0.528385
91a263ea8ccfa1b219b762fca9e143d3c8070e59
3,542
py
Python
alipay/aop/api/domain/AlipayCommerceKidsMsgSceneSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayCommerceKidsMsgSceneSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayCommerceKidsMsgSceneSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceKidsMsgSceneSendModel(object): def __init__(self): self._biz_code = None self._biz_data = None self._biz_time = None self._out_biz_no = None ...
30.534483
93
0.604178
91a2713bae9bcdd07f139dce78c70fe11e2d7824
6,825
py
Python
lib/rucio/client/accountlimitclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
187
2017-11-07T10:19:34.000Z
2022-03-13T11:59:40.000Z
lib/rucio/client/accountlimitclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
2,592
2017-10-25T06:57:46.000Z
2022-03-31T22:53:51.000Z
lib/rucio/client/accountlimitclient.py
jamesp-epcc/rucio
d36d346ea569e89ea413d4241bb69189dfeee7db
[ "Apache-2.0" ]
322
2017-10-10T06:36:36.000Z
2022-03-31T17:13:23.000Z
# -*- coding: utf-8 -*- # Copyright 2014-2021 CERN # # 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...
39.680233
112
0.652161
91a2809c3917ba93f430df51b7676f73e0f10bd8
318
py
Python
quta/__init__.py
freol35241/quota
8fafbe10d474cd18d8d18d48b497ecfe7d786189
[ "MIT" ]
4
2018-09-09T17:26:41.000Z
2021-04-19T08:09:32.000Z
quta/__init__.py
freol35241/quota
8fafbe10d474cd18d8d18d48b497ecfe7d786189
[ "MIT" ]
2
2020-05-12T18:41:25.000Z
2020-05-23T07:42:53.000Z
quta/__init__.py
freol35241/quta
8fafbe10d474cd18d8d18d48b497ecfe7d786189
[ "MIT" ]
null
null
null
""" A python package for solving thrust allocation problems in the plane. The implementation is plenty fast enough to be used in real-time applications. Utilizes quadratic programming with linearized constraints and disjunctive methodology together with (optional) slack variables for fast and robust allocation. """
31.8
58
0.820755
91a289eecd4d1a66e812e3c30f7877ff46eacc39
5,327
py
Python
app/model/charts/maps/bubbles.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/model/charts/maps/bubbles.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/model/charts/maps/bubbles.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
""" Model for fetching chart """ import pandas as pd from folium import CircleMarker from folium.plugins import TimestampedGeoJson from folium.map import FeatureGroup from model.charts.maps.base import BaseMap from service.viewconf_reader import ViewConfReader class Bubbles(BaseMap): """ Heatmap buildin...
41.294574
147
0.524873
91a29b8407dec90c3e27dd88348f56bae1baa4e0
2,873
py
Python
ucb_cs61A/projects/ants/tests/00.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/projects/ants/tests/00.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/projects/ants/tests/00.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'Problem 0', 'points': 0, 'suites': [ { 'cases': [ { 'answer': 'It represents the amount of health remaining, so the insect is eliminated when it reaches 0.', 'choices': [ 'It represents the size of the insect, so the insect gets really small when...
35.036585
115
0.512356
91a2a22cc2271d9970686027703ae4a9363b1396
6,840
py
Python
tensorflow/python/autograph/operators/py_builtins.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
1
2019-01-03T13:49:53.000Z
2019-01-03T13:49:53.000Z
tensorflow/python/autograph/operators/py_builtins.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
4
2020-09-26T00:55:50.000Z
2022-02-10T01:53:06.000Z
tensorflow/python/autograph/operators/py_builtins.py
kyechou/tensorflow
7a7ff1d40ff8a6bcac2d9c655b8cfb8500ee1d14
[ "Apache-2.0" ]
1
2021-05-24T06:16:56.000Z
2021-05-24T06:16:56.000Z
# Copyright 2017 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 # # Unless required by applica...
29.356223
80
0.720029
91a2afddfe35d62a80f6ad7045da58a0b4c1fb21
456
py
Python
game/scenes/main_menu.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
null
null
null
game/scenes/main_menu.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
null
null
null
game/scenes/main_menu.py
igor-ribeiiro/Balance
84d610dc391e1e6095c634bb3f6a54ca1c6581ad
[ "MIT" ]
1
2018-06-28T23:28:40.000Z
2018-06-28T23:28:40.000Z
from game_engine.scene import Scene from game.game_objects.controllers.main_menu_controller import MainMenuController class MainMenu(Scene): def __init__(self): """ Create the list of mesh_objects and call the superclass constructor passing the list """ self.init_game_objects_cont...
35.076923
92
0.767544
91a2b134dded5b15a90b36754fa90cf8f3e4c840
1,527
py
Python
pkgs/move_data/move_data.py
felipery03/stock-prices-predictor
f73c99a72d9d6c3684a23d31a69adbda60068a7c
[ "MIT" ]
1
2021-02-04T03:10:07.000Z
2021-02-04T03:10:07.000Z
pkgs/move_data/move_data.py
felipery03/stock-prices-predictor
f73c99a72d9d6c3684a23d31a69adbda60068a7c
[ "MIT" ]
null
null
null
pkgs/move_data/move_data.py
felipery03/stock-prices-predictor
f73c99a72d9d6c3684a23d31a69adbda60068a7c
[ "MIT" ]
null
null
null
import pandas as pd from sqlalchemy import create_engine import pickle from yahooquery import Ticker def read_api(tickers_list): ''' Read daily market data from yahooquery API for a set of stocks. It is API for yahoo finance data. params: tickers_list (list): List of Tickers stocks to be read. ...
26.789474
71
0.667976
91a2ca3e98a4de077ba8a6ea09696cdb85e16d61
13,121
py
Python
models/official/mask_rcnn/serving.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
65
2017-07-28T03:47:42.000Z
2018-02-04T20:54:18.000Z
models/official/mask_rcnn/serving.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
10
2017-08-11T22:55:40.000Z
2018-02-07T01:11:28.000Z
models/official/mask_rcnn/serving.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
28
2017-07-28T08:20:06.000Z
2018-01-28T16:28:12.000Z
# Copyright 2019 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 # # Unless required by applica...
35.752044
80
0.676397
91a2e664f81596e544c48ea27fe4ca758bbf62ee
9,684
py
Python
src/revision1.py
yaosichao0915/DeepImmuno
a2a7832f6cded9296735475c2e8fa5c9b62b3f8d
[ "MIT" ]
20
2020-12-28T03:34:34.000Z
2022-03-14T01:36:52.000Z
src/revision1.py
zhangjiahuan17/DeepImmuno
5ab182429bc3276fd43be2ec8d86b72e773992ef
[ "MIT" ]
3
2021-04-23T19:21:11.000Z
2021-08-22T00:39:01.000Z
src/revision1.py
zhangjiahuan17/DeepImmuno
5ab182429bc3276fd43be2ec8d86b72e773992ef
[ "MIT" ]
11
2021-04-23T16:46:29.000Z
2022-03-18T15:53:55.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import pickle from itertools import repeat # original training, epoch100, epoch150, we decide to choose epoch 150, we need to justify # that we don't overfit the data, the validation accuracy is still decent import pickle wit...
37.828125
119
0.673689
91a3041ca67f2d83fdd3ff76ee5c0554d9a9be7e
26,920
py
Python
libapparmor/utils/pyronia/sandbox.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
libapparmor/utils/pyronia/sandbox.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
libapparmor/utils/pyronia/sandbox.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
# ------------------------------------------------------------------ # # Copyright (C) 2011-2013 Canonical Ltd. # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. # # ------...
37.028886
290
0.567682
91a304b6a70a61e00967665c30da40db6c00605d
3,664
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_05_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_05_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_05_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.191781
130
0.707424
91a317c474b013b53062a781f68876100decc113
2,781
py
Python
backend/venv/lib/python2.7/site-packages/tekton/gae/middleware/email_errors.py
cbeloni/pychronesapp
fff744dfdbc1932968a950fda614e8ec84d162a3
[ "MIT" ]
null
null
null
backend/venv/lib/python2.7/site-packages/tekton/gae/middleware/email_errors.py
cbeloni/pychronesapp
fff744dfdbc1932968a950fda614e8ec84d162a3
[ "MIT" ]
null
null
null
backend/venv/lib/python2.7/site-packages/tekton/gae/middleware/email_errors.py
cbeloni/pychronesapp
fff744dfdbc1932968a950fda614e8ec84d162a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import json import logging import traceback import time from google.appengine.api import app_identity, mail, capabilities from google.appengine.runtime import DeadlineExceededError from tekton.gae.middleware import Middleware from tekton...
34.7625
97
0.621359
91a317dc6833a7f99e8e737c097181aa14b6a30a
2,680
py
Python
script.py
victoravtr/victorav.me
7b490d4e565cccdbc476f0aaec1bcf1110d46038
[ "MIT" ]
null
null
null
script.py
victoravtr/victorav.me
7b490d4e565cccdbc476f0aaec1bcf1110d46038
[ "MIT" ]
1
2022-02-17T23:49:47.000Z
2022-02-17T23:49:47.000Z
script.py
victoravtr/victorav.me
7b490d4e565cccdbc476f0aaec1bcf1110d46038
[ "MIT" ]
null
null
null
""" Small script to keep the repo data up to date 😁""" import os import json import sys import requests GITHUB_ENDPOINT = 'https://api.github.com/users/victoravtr/repos' README_ENDPOINT = 'https://raw.githubusercontent.com/victoravtr/${repoName}/master/README.md' def get_readme(repo_name): """ Get the README.md...
38.84058
123
0.646642
91a3196da0005835d92569d879921d6a8954601c
353
py
Python
(2)Data Structures/collections_ordereddict_equality.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(2)Data Structures/collections_ordereddict_equality.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(2)Data Structures/collections_ordereddict_equality.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
import collections print('dict:', end=' ') d1 = {} d1['a'] = 'A' d1['b'] = 'B' d1['c'] = 'C' d2 = {} d2['c'] = 'C' d2['b'] = 'B' d2['a'] = 'A' print(d1 == d2) print('OrderedDict:', end=' ') d1 = collections.OrderedDict() d1['a'] = 'A' d1['b'] = 'B' d1['c'] = 'C' d2 = collections.OrderedDict() d2['c'] = 'C' d2['b'] =...
14.12
30
0.470255
91a32b575eac7f4153a0d2ccbce92322bbc5deec
4,540
py
Python
src/python/bot/minimizer/js_tokenizer.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2019-11-09T23:09:00.000Z
2019-11-09T23:09:00.000Z
src/python/bot/minimizer/js_tokenizer.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2019-06-07T21:29:28.000Z
2019-06-07T21:29:28.000Z
src/python/bot/minimizer/js_tokenizer.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.102564
76
0.653304
91a38b4e2b7ca83cf092a5e704a997211b8d4787
5,069
py
Python
core/update.py
drinkingcoder/GMA
76e995971569a8a577c2a02fdda73ca4f040938d
[ "WTFPL" ]
155
2021-04-06T04:30:35.000Z
2022-03-29T10:28:41.000Z
core/update.py
drinkingcoder/GMA
76e995971569a8a577c2a02fdda73ca4f040938d
[ "WTFPL" ]
21
2021-04-11T09:21:15.000Z
2022-03-15T06:45:12.000Z
core/update.py
drinkingcoder/GMA
76e995971569a8a577c2a02fdda73ca4f040938d
[ "WTFPL" ]
26
2021-04-09T09:57:28.000Z
2022-02-28T07:49:52.000Z
import torch import torch.nn as nn import torch.nn.functional as F from gma import Aggregate class FlowHead(nn.Module): def __init__(self, input_dim=128, hidden_dim=256): super(FlowHead, self).__init__() self.conv1 = nn.Conv2d(input_dim, hidden_dim, 3, padding=1) self.conv2 = nn.Conv2d(hid...
35.447552
101
0.617676
91a3b76b2a9878c4849fdfbcd63b0bde64dc234c
1,092
py
Python
synapse/tests/test_lib_trees.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_lib_trees.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tests/test_lib_trees.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
from synapse.tests.common import * import synapse.lib.trees as s_trees class TreeTest(SynTest): def test_lib_tree_interval(self): ivals = ( ((-30, 50), {'name': 'foo'}), ((30, 100), {'name': 'bar'}), ((80, 100), {'name': 'baz'}), ) itree = s_trees.Int...
28
64
0.524725
91a3d628d78ea9363b65fca0e0159be1e367cc8e
11,700
py
Python
ucb_cs61A/projects/hog/hog_gui.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/projects/hog/hog_gui.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/projects/hog/hog_gui.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
"""A graphical user interface (GUI) for the game of Hog. This file uses many features of Python not yet covered in the course. A lab later in the semester will review its implementation and let you extend it. """ import hog import dice from ucb import main import tkinter as tk from tkinter import * import argparse ...
31.367292
80
0.574786
91a3eb8bbfd9b9488465f7a66f92987a8ac182ac
716
py
Python
data/transcoder_evaluation_gfg/python/SUM_PAIRWISE_PRODUCTS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SUM_PAIRWISE_PRODUCTS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SUM_PAIRWISE_PRODUCTS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : sm = 0 for i in range ( 1 , n + 1 ) : for j in range ( i , n + 1 ) : sm = sm + i ...
21.058824
64
0.52095
91a3ebf9dfa4a2dd89a597af66a9878e0872b2b7
23,931
py
Python
google/appengine/ext/admin/datastore_stats_generator.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/admin/datastore_stats_generator.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/admin/datastore_stats_generator.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 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 o...
37.217729
80
0.59705
91a3f5a40e1e31295d00fe7ac922e31e7549e741
9,987
py
Python
Scripts/xbbtools/nextorf.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2020-02-13T14:32:44.000Z
2020-02-13T14:32:44.000Z
Scripts/xbbtools/nextorf.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
null
null
null
Scripts/xbbtools/nextorf.py
EsamTolba/biopython
120616cf0d28cb8e581898afd6604e5a2065a137
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
#!/usr/bin/env python # Created: Thu Feb 15 14:22:12 2001 # Last changed: Time-stamp: <01/02/18 11:16:42 thomas> # Copyright 2000 by Thomas Sicheritz-Ponten. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included...
34.437931
86
0.467508
91a40ee778ffc10ebe752377dad74be30aca7713
895
py
Python
chapter11/concurrent.futures/demo_concurrent_futures.py
yangwawa0323/Learning-Python-Networking-Second-Edition
5460fe4fb6acc5d0df19bf36e52ac09e9a11eb8b
[ "MIT" ]
52
2018-12-17T19:33:06.000Z
2022-03-25T18:14:02.000Z
chapter11/concurrent.futures/demo_concurrent_futures.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
null
null
null
chapter11/concurrent.futures/demo_concurrent_futures.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
38
2018-12-18T09:08:43.000Z
2022-02-06T02:53:05.000Z
#!/usr/bin/python3 import concurrent.futures import requests DOMAINS = ['http://www.foxnews.com/', 'http://www.cnn.com/', 'http://www.bbc.co.uk/', 'http://some-made-up-domainn.com/'] # Retrieve a single page with requests module def load_requests(domain): with requests.get(domain, ...
35.8
92
0.670391
91a4555c161a9fc80ffd9f6c68ba3b2e15692f6f
1,684
py
Python
squeaknode/bitcoin/bitcoin_client.py
CinnamonXI/squeaknode
412e54f0d3e35057432c74121b7349f9cd226f24
[ "MIT" ]
null
null
null
squeaknode/bitcoin/bitcoin_client.py
CinnamonXI/squeaknode
412e54f0d3e35057432c74121b7349f9cd226f24
[ "MIT" ]
null
null
null
squeaknode/bitcoin/bitcoin_client.py
CinnamonXI/squeaknode
412e54f0d3e35057432c74121b7349f9cd226f24
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Jonathan Zernik # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
35.083333
80
0.756532
91a45c963750115aeed59a5a90d82045ca653efc
2,420
py
Python
apps/platforms/mac/terminal/apple_terminal.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
2
2021-04-08T04:37:03.000Z
2022-03-16T20:40:52.000Z
apps/platforms/mac/terminal/apple_terminal.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
null
null
null
apps/platforms/mac/terminal/apple_terminal.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
1
2020-12-04T21:05:12.000Z
2020-12-04T21:05:12.000Z
from talon import Context, actions, ui import os ctx = Context() ctx.matches = r""" app: apple_terminal """ directories_to_remap = {} directories_to_exclude = {} @ctx.action_class('app') class AppActions: def tab_open(): actions.key('cmd-t') def tab_close(): actions.key('cmd-w') def tab_ne...
28.809524
101
0.636777
91a4a24da193ebeb66e8f75a1c04052d8022b756
1,090
py
Python
Python/preprocessing/circleselector/loader.py
kokizzu/OmniPhotos
b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da
[ "Apache-2.0" ]
129
2020-12-13T02:22:05.000Z
2022-03-22T02:45:39.000Z
Python/preprocessing/circleselector/loader.py
kokizzu/OmniPhotos
b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da
[ "Apache-2.0" ]
4
2020-12-20T20:18:05.000Z
2021-06-03T10:51:55.000Z
Python/preprocessing/circleselector/loader.py
kokizzu/OmniPhotos
b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da
[ "Apache-2.0" ]
23
2020-12-15T15:11:18.000Z
2022-03-18T00:15:30.000Z
from decimal import Decimal import numpy as np from .datatypes import CameraCenters def load_file(path) -> CameraCenters: """ loads the frame_trajectory.txt file generated by openvslam and returns a CameraCenters object. :param path: path to list :return: list of 3d points (np.arrays) """ x...
26.585366
98
0.604587
91a4ecbc6f6b03fd1daab99343fa94b28e1b2bf4
3,615
py
Python
panoptes_aggregation/tests/extractor_tests/test_point_extractor_by_frame.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/tests/extractor_tests/test_point_extractor_by_frame.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
panoptes_aggregation/tests/extractor_tests/test_point_extractor_by_frame.py
amyrebecca/aggregation-for-caesar
5f0d884932312010f9caeb8ebfcfe358f490e41f
[ "Apache-2.0" ]
null
null
null
from panoptes_aggregation import extractors from .base_test_class import ExtractorTest classification = { "annotations": [{ "task": "T0", "value": [ { "frame": 0, "tool": 0, "y": 202.87478637695312, "details": [], ...
24.261745
55
0.426003
91a559e410feac874023f87aa7ee857f2dd26809
3,366
py
Python
examples/esentutl.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/esentutl.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
examples/esentutl.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/python # Copyright (c) 2003-2015 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Description: # ESE utility. Allows dumping catalog, pages and tables. #...
28.769231
142
0.632799
91a56e772cdb1c7ba800a139901fc2f316d3fa16
18,992
py
Python
warehouse/config.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2021-01-03T00:58:00.000Z
2021-01-03T00:58:00.000Z
warehouse/config.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2019-09-09T15:04:44.000Z
2019-09-09T15:04:44.000Z
warehouse/config.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2019-09-09T15:02:40.000Z
2019-09-09T15:02:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
35.04059
79
0.67718
91a59b802cf2a1781ba6251c9b269bb377cefdde
6,586
py
Python
tools/train.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
77
2021-07-30T03:05:36.000Z
2022-03-31T11:02:33.000Z
tools/train.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
7
2021-08-04T07:03:41.000Z
2021-12-21T16:08:52.000Z
tools/train.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
24
2021-08-03T07:16:54.000Z
2022-03-27T12:41:17.000Z
import argparse import copy import os import os.path as osp import time import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.runner import get_dist_info, init_dist from mmcv.utils import get_git_hash from mmdet import __version__ from mmdet.apis import set_random_seed, train_detector...
36.186813
79
0.655937
91a59e7b9a969000f49e92626c89eddc51d3428b
3,494
py
Python
keepupthepace/compendium/c10musicplaying.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
null
null
null
keepupthepace/compendium/c10musicplaying.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
4
2021-06-08T21:10:15.000Z
2022-03-12T00:21:24.000Z
keepupthepace/compendium/c10musicplaying.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) import keepupthepace.compendium.abstractcompendium class MusicPlaying(keepupthepace.compendium.abstractcompendium.Compendium): def __init__(self): super().__init__() self.metValue = {10010 ...
39.258427
194
0.543503
91a5f011c64ea38fbdc43982d76e2225da15f020
4,061
py
Python
tests/test_docs/test_multiplexer_standalone/multiplexer_standalone.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_docs/test_multiplexer_standalone/multiplexer_standalone.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_docs/test_multiplexer_standalone/multiplexer_standalone.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
32.75
114
0.632849
91a5f74f5e0c5a8aed1f600d24cbe211cccb82a8
75,731
py
Python
src/adapters/resources.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
2
2017-06-15T21:32:07.000Z
2020-01-08T09:08:33.000Z
src/adapters/resources.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
20
2017-06-12T10:57:45.000Z
2020-01-08T08:22:31.000Z
src/adapters/resources.py
elastest/elastest-service-manager
e0adbe383eada746a5ac103ee7938791c8656633
[ "Apache-2.0" ]
8
2017-06-07T10:05:47.000Z
2017-12-12T15:31:41.000Z
# Copyright © 2017-2019 Zuercher Hochschule fuer Angewandte Wissenschaften. # 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/l...
70.64459
28,308
0.679326
91a5fd977ea9247720fcaf6eed61454c95af1c8a
2,477
py
Python
functions/pipeline/upload/__init__.py
jmspring/active-learning-detect
edb20019f38ae13204a200166281e2a6baafaee4
[ "MIT" ]
null
null
null
functions/pipeline/upload/__init__.py
jmspring/active-learning-detect
edb20019f38ae13204a200166281e2a6baafaee4
[ "MIT" ]
null
null
null
functions/pipeline/upload/__init__.py
jmspring/active-learning-detect
edb20019f38ae13204a200166281e2a6baafaee4
[ "MIT" ]
null
null
null
import json import logging from ..shared.db_provider import get_postgres_provider from ..shared.db_access import ImageTag, ImageTagDataAccess import azure.functions as func # Create list of ImageTag objects to write to db for given image_id def __create_ImageTag_list(image_id, tags_list): image_tags = ...
39.31746
106
0.656439
91a604a95c64d30664eb7c5baa1e73b54a8b72f7
3,544
py
Python
experiments/ashvin/icml2020/hand/pen/gaussian2/sparse_bc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/gaussian2/sparse_bc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/pen/gaussian2/sparse_bc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import GaussianP...
30.033898
130
0.569695
91a62017e60602fee820f796c069306c058acda3
1,037
py
Python
diameter/node/Error.py
netch80/i1dk-PythonDiameter
ddc6cf76269379105f260c2ecab2c6930d7f32cf
[ "Zlib" ]
null
null
null
diameter/node/Error.py
netch80/i1dk-PythonDiameter
ddc6cf76269379105f260c2ecab2c6930d7f32cf
[ "Zlib" ]
null
null
null
diameter/node/Error.py
netch80/i1dk-PythonDiameter
ddc6cf76269379105f260c2ecab2c6930d7f32cf
[ "Zlib" ]
null
null
null
class error(Exception): def __init__(self,*args): Exception.__init__(self,*args) class InvalidSettingError(error): def __init__(self,why): error.__init__(self,why) class StartError(error): def __init__(self,why): error.__init__(self,why) class InvalidAVPValueError(error): def ...
26.589744
94
0.697203
91a62b9e364c1bfbff85b13e58f04379a274e572
592
py
Python
PythonNetCode/chapter4/4_7_spoof_mozilla_firefox_in_client_code.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
PythonNetCode/chapter4/4_7_spoof_mozilla_firefox_in_client_code.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
PythonNetCode/chapter4/4_7_spoof_mozilla_firefox_in_client_code.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Python Network Programming Cookbook -- Chapter - 3 # This program is optimized for Python 2.7. # It may run on any other version with/without modifications. import urllib2 BROWSER = 'Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0' URL = 'http://www.python.org' def spoof_fir...
26.909091
77
0.692568
91a62f3026f010d72f54ec82d73283cba45497c6
2,848
py
Python
SBaaS_LIMS/lims_oligos_postgresql_models.py
dmccloskey/SBaaS_LIMS
5dfd73689674953345d523178a67b8dda10e6d47
[ "MIT" ]
null
null
null
SBaaS_LIMS/lims_oligos_postgresql_models.py
dmccloskey/SBaaS_LIMS
5dfd73689674953345d523178a67b8dda10e6d47
[ "MIT" ]
null
null
null
SBaaS_LIMS/lims_oligos_postgresql_models.py
dmccloskey/SBaaS_LIMS
5dfd73689674953345d523178a67b8dda10e6d47
[ "MIT" ]
null
null
null
from SBaaS_base.postgresql_orm_base import * #oligos_description class oligos_description(Base): __tablename__ = 'oligos_description' oligos_id = Column(String(100), primary_key=True) oligos_sequence = Column(Text) oligos_purification = Column(String(100)) oligos_description = Column(Text) #need to...
45.206349
82
0.733497
91a63613c15df7a7e0426645a2e2b8601a9eacfb
4,668
py
Python
Lib/test/test_importlib/util.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_importlib/util.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_importlib/util.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
from contextlib import contextmanager import os.path from test import support import unittest import sys import types def import_importlib(module_name): """Import a module from importlib both w/ and w/o _frozen_importlib.""" fresh = ('importlib',) if '.' in module_name else () frozen = support.import_fres...
31.12
78
0.574122
91a65511ffd466084ac6e4def2fde7193caabede
16,073
py
Python
mangopay/migrations/0004_auto_20170628_0908.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
1
2022-01-27T11:58:10.000Z
2022-01-27T11:58:10.000Z
mangopay/migrations/0004_auto_20170628_0908.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
5
2021-03-19T00:01:54.000Z
2022-03-11T23:46:21.000Z
mangopay/migrations/0004_auto_20170628_0908.py
sladinji/blousebrothers
461de3ba011c0aaed3f0014136c4497b6890d086
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-06-28 09:08 from __future__ import unicode_literals from django.db import migrations import djmoney.models.fields class Migration(migrations.Migration): dependencies = [ ('mangopay', '0003_auto_20170517_0827'), ] operations = [ ...
502.28125
5,124
0.579792
91a6da00bba279f464409ff0373e65756eff09de
411
py
Python
script/riscv_graph.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
3
2019-04-04T01:39:09.000Z
2022-03-19T02:11:40.000Z
script/riscv_graph.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
null
null
null
script/riscv_graph.py
bogdanvuk/pygears_riscv
950587be8c0d562d1b8341fb8ea490298383b1c0
[ "MIT" ]
null
null
null
import os from pygears_riscv.verif.env import riscv_instr_seq_env from pygears.sim.extens import graphviz img_file_name = os.path.expanduser( '~/pygears/docs/blog/riscv/images/riscv_graph_addi.png') riscv_instr_seq_env(instr_seq=[], xlen=32) graph = graphviz.graph(edge_fmt='{prod_gear} -> {cons_gear}') for edge...
25.6875
61
0.781022
91a6e279bda7c42831c6d8beab4e5157b30451f2
48,210
py
Python
vaivora/db.py
dark-nova/wings-of-vaivora
27696937cc7230a52d9f26ed208d973b1a77a12f
[ "MIT" ]
2
2017-08-24T04:03:19.000Z
2020-05-20T10:05:58.000Z
vaivora/db.py
dark-nova/wings-of-vaivora
27696937cc7230a52d9f26ed208d973b1a77a12f
[ "MIT" ]
20
2018-06-30T03:32:21.000Z
2019-08-21T18:53:00.000Z
vaivora/db.py
dark-nova/wings-of-vaivora
27696937cc7230a52d9f26ed208d973b1a77a12f
[ "MIT" ]
4
2017-08-25T17:15:47.000Z
2021-10-02T02:03:50.000Z
import asyncio import logging import re import sqlite3 from operator import itemgetter import aiosqlite import yaml columns = {} columns['boss'] = ( 'name', 'channel', 'map', 'status', 'text_channel', 'year', 'month', 'day', 'hour', 'minute' ) columns['roles'] = ( 'ro...
30.903846
85
0.440261
91a7031c0992bfebe5a62ee2fc2fb59ea060e48b
24,971
py
Python
acq4/modules/Camera/CameraTemplate.py
tropp/ACQ4
792e05e99cedfc175593d200aeabecd6fa6304ce
[ "MIT" ]
null
null
null
acq4/modules/Camera/CameraTemplate.py
tropp/ACQ4
792e05e99cedfc175593d200aeabecd6fa6304ce
[ "MIT" ]
null
null
null
acq4/modules/Camera/CameraTemplate.py
tropp/ACQ4
792e05e99cedfc175593d200aeabecd6fa6304ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './acq4/modules/Camera/CameraTemplate.ui' # # Created: Tue Dec 24 01:49:11 2013 # by: PyQt4 UI code generator 4.10 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QSt...
66.236074
239
0.734332
91a734e779421ca67cd181d5882cbdc64fc87ec3
782
py
Python
CNN/CNN_FR/sample_format.py
maggielkx/Customer-Feedback-Analysis
67db36f8f1d0b18ed65e98d3e7010a1c56f6732f
[ "Apache-2.0" ]
null
null
null
CNN/CNN_FR/sample_format.py
maggielkx/Customer-Feedback-Analysis
67db36f8f1d0b18ed65e98d3e7010a1c56f6732f
[ "Apache-2.0" ]
null
null
null
CNN/CNN_FR/sample_format.py
maggielkx/Customer-Feedback-Analysis
67db36f8f1d0b18ed65e98d3e7010a1c56f6732f
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import csv def read_data(arg1, arg2): data_train1 = pd.read_csv(arg1, sep = '\t') data_train2 = pd.read_csv(arg2) nf = open("sample_development.txt",'a+') #tot = "id" + "\t" + "review" + "\t" + "label" + "\n" for x in range(data_train1.consumer_complaint_narrative.shape[0])...
21.722222
67
0.609974
91a766ad76610709da8cfb529370c3618322574d
2,505
py
Python
src/models/train_model.py
karun-r/pumpitup
abe696f2682512c76156a5534a6e59d7941f87b1
[ "MIT" ]
1
2020-02-06T16:32:19.000Z
2020-02-06T16:32:19.000Z
src/models/train_model.py
oskinm/pumpitup
abe696f2682512c76156a5534a6e59d7941f87b1
[ "MIT" ]
null
null
null
src/models/train_model.py
oskinm/pumpitup
abe696f2682512c76156a5534a6e59d7941f87b1
[ "MIT" ]
2
2018-10-30T20:58:16.000Z
2020-02-06T16:31:36.000Z
import pandas as pd import os import pickle import configparser from scipy import stats from sklearn.pipeline import Pipeline from sklearn.svm import LinearSVC from sklearn.grid_search import GridSearchCV from sklearn.metrics import accuracy_score from pandas.util.testing import assert_frame_equal from sklearn.ensem...
33.4
120
0.697006
91a77ce5a280f59c752317c9d5afe6977980a1db
19,282
py
Python
dataprep/clean/address_utils.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/address_utils.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/address_utils.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Constants used by the clean_address() and validate_address() functions """ TAG_MAPPING = { "OccupancyType": "apartment", "OccupancyIdentifier": "apartment", "SubaddressType": "apartment", "SubaddressIdentifier": "apartment", "BuildingName": "building", "AddressNumber": "house_number", "...
29.664615
88
0.442381
91a7906ee2ce10bd1b8a53bfcdd20649ef39ed92
1,077
py
Python
crypto_data/csv_utils.py
jrmeier/fast-trade-data
6eece6580081e1c4474cfedbe91bc280ffa141e5
[ "MIT" ]
null
null
null
crypto_data/csv_utils.py
jrmeier/fast-trade-data
6eece6580081e1c4474cfedbe91bc280ffa141e5
[ "MIT" ]
1
2021-06-02T00:47:59.000Z
2021-06-02T00:47:59.000Z
crypto_data/csv_utils.py
jrmeier/crypto-data
6eece6580081e1c4474cfedbe91bc280ffa141e5
[ "MIT" ]
null
null
null
import re import time import datetime def format_single_row(input_data, output_header, header_map={}): """ input_data: raw data output_header: the header to set up as the data header_map: if the variables are named different than the output """ row = [] for each in output_header: ...
30.771429
102
0.490251
91a7c45970c2340f9222940278c026eb0ae8b856
856
py
Python
tests/helpers.py
ariebovenberg/quiz
16c938ca644d6677482d673d4876d86e1a9f27ec
[ "Apache-2.0" ]
71
2018-04-04T16:30:26.000Z
2022-03-03T17:38:35.000Z
tests/helpers.py
ariebovenberg/quiz
16c938ca644d6677482d673d4876d86e1a9f27ec
[ "Apache-2.0" ]
504
2018-08-19T19:07:19.000Z
2022-01-19T12:34:47.000Z
tests/helpers.py
ariebovenberg/quiz
16c938ca644d6677482d673d4876d86e1a9f27ec
[ "Apache-2.0" ]
6
2018-10-30T13:51:46.000Z
2020-05-17T20:31:25.000Z
import snug class MockClient: def __init__(self, response): self.response = response def send(self, req): self.request = req return self.response class MockAsyncClient: def __init__(self, response): self.response = response async def send(self, req): self.re...
19.454545
67
0.667056
91a7ddecf3c545ff707d74e397e244d7feb5cbc2
121
py
Python
wechat_django/rest_framework/__init__.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
166
2019-02-23T10:19:33.000Z
2022-02-03T06:50:15.000Z
wechat_django/rest_framework/__init__.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
19
2019-05-07T07:28:32.000Z
2021-06-02T06:56:03.000Z
wechat_django/rest_framework/__init__.py
UltraVacuum/wechat-django
0ea243067f5bc5e69cab6c4585d5e46d9399a583
[ "MIT" ]
54
2019-02-27T07:55:57.000Z
2021-09-02T06:47:51.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals """A minimum implementation of Django Rest Framework"""
24.2
55
0.735537
91a80a48dce48e9dac27e15711afa153bbd82ffc
84
py
Python
__main__.py
richzli/Task-Manager
de1e0125ec3643afe2d49f9104755b3235c7669e
[ "MIT" ]
null
null
null
__main__.py
richzli/Task-Manager
de1e0125ec3643afe2d49f9104755b3235c7669e
[ "MIT" ]
2
2019-09-13T22:51:00.000Z
2019-12-05T04:57:26.000Z
__main__.py
richzli/Task-Manager
de1e0125ec3643afe2d49f9104755b3235c7669e
[ "MIT" ]
null
null
null
from taskmanager.app import app if __name__ == "__main__": app.run(debug=True)
16.8
31
0.714286
91a813979a5f9a76dd7b2260760eceea250cc691
2,708
py
Python
user.py
alex-muliande/password-locker
5388ec276883b6f78a7bd3e20011bdf407f79ce4
[ "MIT" ]
1
2019-10-18T13:45:53.000Z
2019-10-18T13:45:53.000Z
user.py
alex-muliande/password-locker
5388ec276883b6f78a7bd3e20011bdf407f79ce4
[ "MIT" ]
null
null
null
user.py
alex-muliande/password-locker
5388ec276883b6f78a7bd3e20011bdf407f79ce4
[ "MIT" ]
null
null
null
import string import secrets import pyperclip class User: """ Class that generates new instances of user """ users_list = [] def __init__(self, first_name, last_name, email, phone_number, password): ''' Method to define the properties for each user object will hold. ''' ...
27.917526
99
0.638479
91a819abe9a07c5f29e91a4d3b771d17a5eb8f11
19,064
py
Python
pytype/tests/test_attributes.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/test_attributes.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_attributes.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Test instance and class attributes.""" from pytype import file_utils from pytype.tests import test_base class TestStrictNone(test_base.TargetIndependentTest): """Tests for strict attribute checking on None.""" def testModuleConstant(self): self.Check(""" x = None def f(): return x.upp...
24.254453
80
0.527958
91a8264494f90057c8850f93f17f6b28db11ba57
135
py
Python
uvio/tests/test_http.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
3
2016-03-23T08:12:03.000Z
2018-10-06T02:46:54.000Z
uvio/tests/test_http.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
uvio/tests/test_http.py
srossross/uvio
f4d55ad5ea5900a2a8b9c1249484ed621dc30055
[ "MIT" ]
null
null
null
import unittest import uvio.http.client class Test(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
9
30
0.688889
91a826712e083fce1b5d8df696ed2e65af3c29c9
22,983
py
Python
violas_client/lbrtypes/bytecode.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/bytecode.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
violas_client/lbrtypes/bytecode.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from enum import IntEnum from violas_client.move_core_types.account_address import AccountAddress class TransactionType(IntEnum): SIGNED_TRANSACTION = 0 CHANGE_SET = 1 BLOCK_METADATA = 2 class CodeType(IntEnum): ADD_CURRENCY_TO_ACCOUNT = 0 ADD_RECOVERY_ROTATION_CAPABILITY = 1 ADD_TO_SCRIPT_ALL...
122.903743
854
0.772049
91a82e7455c23ab6ba294f9d3783e492704d4196
697
py
Python
3-AlgorithmsOnGraphs/Week2/toposort/toposort.py
oy-vey/algorithms-and-data-structures
7578fcdd17b0dce465bb1ab8e217beb229cdc2fe
[ "MIT" ]
null
null
null
3-AlgorithmsOnGraphs/Week2/toposort/toposort.py
oy-vey/algorithms-and-data-structures
7578fcdd17b0dce465bb1ab8e217beb229cdc2fe
[ "MIT" ]
null
null
null
3-AlgorithmsOnGraphs/Week2/toposort/toposort.py
oy-vey/algorithms-and-data-structures
7578fcdd17b0dce465bb1ab8e217beb229cdc2fe
[ "MIT" ]
null
null
null
#Uses python3 import sys def dfs(v): used[v] = 1 for w in adj[v]: if not used[w]: dfs(w) order.insert(0, v) def toposort(adj): global used global order used = [0] * len(adj) order = [] for v in range(0, len(adj)): if not used[v]: dfs(v) ret...
19.361111
59
0.494978
91a897c26f93e6fe0e6555424e0e66fc18b36b3f
11,823
py
Python
picatrix/lib/namespace.py
google/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
27
2020-10-23T14:45:14.000Z
2022-03-31T14:57:58.000Z
picatrix/lib/namespace.py
mariuszlitwin/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
15
2020-10-20T04:10:26.000Z
2021-11-01T16:57:37.000Z
picatrix/lib/namespace.py
mariuszlitwin/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
12
2020-10-17T11:06:10.000Z
2022-01-27T12:37:49.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
30.950262
80
0.675886
91a8d40d7d520782ccca2bcd6113f37eef6ddf82
2,173
py
Python
python/lsst/dia/pipe/forcedPhotCcdDiaDriver.py
LSSTDESC/dia_pipe
64121a09a05c67f9dcf93714f9cff2d9c911d12b
[ "BSD-3-Clause" ]
2
2019-06-17T03:03:04.000Z
2019-07-07T23:47:04.000Z
python/lsst/dia/pipe/forcedPhotCcdDiaDriver.py
LSSTDESC/dia_pipe
64121a09a05c67f9dcf93714f9cff2d9c911d12b
[ "BSD-3-Clause" ]
20
2019-05-09T22:24:12.000Z
2021-02-11T18:57:25.000Z
python/lsst/dia/pipe/forcedPhotCcdDiaDriver.py
LSSTDESC/dia_pipe
64121a09a05c67f9dcf93714f9cff2d9c911d12b
[ "BSD-3-Clause" ]
2
2019-06-11T21:08:16.000Z
2019-07-29T18:24:45.000Z
from lsst.pipe.base import ArgumentParser, ButlerInitializedTaskRunner from lsst.pex.config import Config, Field, ConfigurableField, ListField from lsst.ctrl.pool.parallel import BatchParallelTask, BatchTaskRunner from .forcedPhotCcdDia import ForcedPhotCcdDiaTask class ForcedPhotCcdDiaDriverConfig(Config): ignor...
40.240741
97
0.681546
91a8d81c1f5d3f75d940311c1f71ef688dece617
24,583
py
Python
kivy/modules/inspector.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
kivy/modules/inspector.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
kivy/modules/inspector.py
hakanardo/kivy
707b4aa35bfb79577bd87dfc23aa527f0eb03640
[ "MIT" ]
null
null
null
''' Inspector ========= .. versionadded:: 1.0.9 .. warning:: This module is highly experimental, use it with care. The Inspector is a tool for finding a widget in the widget tree by clicking or tapping on it. Some keyboard shortcuts are activated: * "Ctrl + e": activate / deactivate the inspector view ...
33.721536
131
0.570231
91a8f2967b876d537291ca1fe14d5c7e3f93ddda
4,511
py
Python
src/server/views/vnf.py
shield-h2020/nfvo
1226f3d4824d1e39dd1e986ae541820e0ac9c422
[ "Apache-2.0" ]
null
null
null
src/server/views/vnf.py
shield-h2020/nfvo
1226f3d4824d1e39dd1e986ae541820e0ac9c422
[ "Apache-2.0" ]
null
null
null
src/server/views/vnf.py
shield-h2020/nfvo
1226f3d4824d1e39dd1e986ae541820e0ac9c422
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017-present i2CAT # # 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 la...
37.591667
74
0.724008
91a92e9b373370ab1b1d44f3c71e318f439aaca7
2,489
py
Python
otp/avatar/AvatarPanel.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
otp/avatar/AvatarPanel.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
otp/avatar/AvatarPanel.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from otp.avatar import Avatar from pandac.PandaModules import * from direct.gui.DirectGui import * from direct.showbase import DirectObject from direct.distributed import DistributedObject class AvatarPanel(DirectObject.DirectObject): currentAvatarPanel = None def __init__(self, avatar, FriendsListPanel = Non...
33.186667
73
0.636802
91a9453a2f8b18f1e41f7c2b06ef4d1c14a4892f
3,535
py
Python
pkgcore/ebuild/pkg_updates.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/ebuild/pkg_updates.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/ebuild/pkg_updates.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD 3 clause from collections import deque, defaultdict from operator import itemgetter from snakeoil.demandload import demandload, demand_compile_regexp from snakeoil.fileutils import readlines from snakeoil.lists import iflatten_instance from snak...
35.35
103
0.585573
91a963d2c13c129f5f3c519839ab9dd6e5b23809
3,874
py
Python
scan/fetchers/api/api_fetch_projects.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/fetchers/api/api_fetch_projects.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
scan/fetchers/api/api_fetch_projects.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
41.655914
92
0.567114
91a96ea8f0739b07108328db9496a4d7b9f758fd
1,730
py
Python
stringlistmodel.py
BlueQuartzSoftware/EasyBake
3f218013938d8b979d1371871a70a4901987abd6
[ "BSD-3-Clause" ]
null
null
null
stringlistmodel.py
BlueQuartzSoftware/EasyBake
3f218013938d8b979d1371871a70a4901987abd6
[ "BSD-3-Clause" ]
27
2021-04-06T18:17:18.000Z
2021-06-23T14:03:56.000Z
stringlistmodel.py
joeykleingers/EasyBake
3f218013938d8b979d1371871a70a4901987abd6
[ "BSD-3-Clause" ]
1
2021-06-22T18:10:44.000Z
2021-06-22T18:10:44.000Z
from PySide2.QtNetwork import QNetworkReply from PySide2.QtCore import QAbstractListModel, Qt, QModelIndex from PySide2.QtGui import QIcon, QColor from PySide2.QtWidgets import QApplication, QStyle class StringListModel(QAbstractListModel): def __init__(self,hyperthoughtimpl,parent=None): QAbstractListMo...
32.037037
120
0.654913
91a9910634de18bae81f774ddd6ccbeaa842cfc2
1,892
py
Python
download_camelyon16/checksum_test.py
gokberkgul/self-learning-transformer-mil
a3c3236daeb82859dec0cf2747f0dd121121fcdf
[ "Apache-2.0" ]
1
2022-02-23T23:48:23.000Z
2022-02-23T23:48:23.000Z
download_camelyon16/checksum_test.py
gokberkgul/self-learning-transformer-mil
a3c3236daeb82859dec0cf2747f0dd121121fcdf
[ "Apache-2.0" ]
null
null
null
download_camelyon16/checksum_test.py
gokberkgul/self-learning-transformer-mil
a3c3236daeb82859dec0cf2747f0dd121121fcdf
[ "Apache-2.0" ]
null
null
null
import hashlib import os from tqdm import tqdm import sys def discover_slides(folder): """Walks through all files in the given folder and subfolders, returns a list of slide paths. Parameters ---------- folder : string Main folder of dataset Returns ------- slides : list L...
33.192982
108
0.600951
91a9acc48cb85c9967f2c769686f2da24a2cfe9a
732
py
Python
binarysearch.io/211_level_order_alternating.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/211_level_order_alternating.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/211_level_order_alternating.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
# class Tree: # def __init__(self, val, left=None, right=None): # self.val = val # self.left = left # self.right = right from collections import deque class Solution: def solve(self, root): s = 0 q = [] q.append(root) ans = [root.val,] while len(q...
28.153846
64
0.442623
91a9b856391b420e83b4bd9ac3d69d8d28129df5
2,037
py
Python
docs/conf.py
TankredO/pyckmeans
c8672b94cd75aadf6c4abc508f49107a4aedb86c
[ "MIT" ]
9
2021-09-05T10:34:05.000Z
2021-12-21T10:33:09.000Z
docs/conf.py
TankredO/pyckmeans
c8672b94cd75aadf6c4abc508f49107a4aedb86c
[ "MIT" ]
null
null
null
docs/conf.py
TankredO/pyckmeans
c8672b94cd75aadf6c4abc508f49107a4aedb86c
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If...
32.333333
79
0.666176
91a9f1a3133533d009fed1cd82c9ebaf72f2f601
1,079
py
Python
dpp_nets/dpp/score_dpp.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
1
2021-06-05T11:14:13.000Z
2021-06-05T11:14:13.000Z
dpp_nets/dpp/score_dpp.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
dpp_nets/dpp/score_dpp.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
import numpy as np def score_dpp(embd, subset): """ Given am embd, such that L = embd * embd.T and a subset sampled by the DPP, returns the gradient of the log-probability (score) with respect to each element in embd. Arguments: embd: An embedding for the L-ensemble of the DPP, such that L = embd...
29.972222
88
0.645042
91a9f684311f1a2d489386ccb57ee063a7872c10
2,927
py
Python
isitfit/cloudtrail_ec2type.py
CoreyMcDonald/isitfit
9f907f89f802aaf6c1551592c5d8245391bf0625
[ "Apache-2.0" ]
null
null
null
isitfit/cloudtrail_ec2type.py
CoreyMcDonald/isitfit
9f907f89f802aaf6c1551592c5d8245391bf0625
[ "Apache-2.0" ]
null
null
null
isitfit/cloudtrail_ec2type.py
CoreyMcDonald/isitfit
9f907f89f802aaf6c1551592c5d8245391bf0625
[ "Apache-2.0" ]
null
null
null
import pandas as pd from tqdm import tqdm from .pull_cloudtrail_lookupEvents import GeneralManager as GraCloudtrailManager import os import logging logger = logging.getLogger('isitfit') class Manager: def __init__(self, cloudtrail_client, EndTime): self.cloudtrail_client = cloudtrail_client self...
34.034884
114
0.662453
91aa0e3edda0bfa7d0a43a4b45fb52b2a75d0dcf
9,305
py
Python
cerebunit/validation_tests/cells/Purkinje/test_for_soma_spikeheight_antidromic.py
myHBPwork/cerebunit
8d986953652231c178e48a6272b6ba583ae1df96
[ "BSD-3-Clause" ]
null
null
null
cerebunit/validation_tests/cells/Purkinje/test_for_soma_spikeheight_antidromic.py
myHBPwork/cerebunit
8d986953652231c178e48a6272b6ba583ae1df96
[ "BSD-3-Clause" ]
null
null
null
cerebunit/validation_tests/cells/Purkinje/test_for_soma_spikeheight_antidromic.py
myHBPwork/cerebunit
8d986953652231c178e48a6272b6ba583ae1df96
[ "BSD-3-Clause" ]
1
2021-05-21T03:06:37.000Z
2021-05-21T03:06:37.000Z
# ~/cerebunit/cerebunit/validation_tests/cells/Purkinje/test_for_soma_spikeheight_antidromic.py # # ============================================================================= # test_for_soma_spikeheight_antidromic.py # # created 9 July 2019 # modified # # Test for comparing resting Vm of the neuron against those fr...
53.477011
489
0.634068
91aa6e308dbdbad1c92208d51c5994e52eb05b55
17,391
py
Python
src/train_previous_inference_mask.py
imatge-upc/rvos-mots
38dd9d552685e5e685903c2154097917444b2676
[ "BSD-3-Clause" ]
6
2020-09-29T12:35:34.000Z
2021-11-24T02:56:22.000Z
src/train_previous_inference_mask.py
imatge-upc/rvos-mots
38dd9d552685e5e685903c2154097917444b2676
[ "BSD-3-Clause" ]
null
null
null
src/train_previous_inference_mask.py
imatge-upc/rvos-mots
38dd9d552685e5e685903c2154097917444b2676
[ "BSD-3-Clause" ]
1
2020-11-16T06:24:34.000Z
2020-11-16T06:24:34.000Z
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from args import get_parser from modules.model import RSISMask, FeatureExtractor import torchvision.models as models from utils.hungarian import match, softIoU, reorder_mask from utils.utils import get_optimizer, batch_to_var, make_dir, check_paral...
40.163972
157
0.581508
91aaa483736ee0881d46ef038bca906856594e1c
1,888
py
Python
bookworm/bookworm.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
18
2019-07-19T22:12:15.000Z
2020-08-26T17:45:19.000Z
bookworm/bookworm.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
44
2019-07-15T10:17:00.000Z
2020-07-26T11:22:53.000Z
bookworm/bookworm.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
9
2019-09-03T13:13:31.000Z
2020-08-25T13:55:27.000Z
# coding: utf-8 """Make sure that runtime components are OK and run the app.""" import sys import os import logging from pathlib import Path from bookworm import app def report_fatal_error( *, title, message, exc_info=True, exit_code=1, log_file=None, show_gui=False ): MESSAGE_FORMAT = "%(asctime)s %(name)s...
29.046154
85
0.645127
91aac6e802edd015e31a4ddea77796237909ce4e
1,050
py
Python
Python-code-snippets-101-200/190-Tk Add or remove rows live.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-101-200/190-Tk Add or remove rows live.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
Python-code-snippets-101-200/190-Tk Add or remove rows live.py
abartoha/python-snippets-ref
04e4feada96077f0e849b277204c012194e8fbcd
[ "Unlicense" ]
null
null
null
""" Python code snippets vol 38: 190-Tk Add or remove rows live stevepython.wordpress.com requirements:pip3 install tk_tools https://github.com/slightlynybbled/tk_tools/blob/master/examples/label_grid.py """ import tkinter as tk from random import randint import tk_tools def add_row(): row = [randint(0, 10) fo...
25.609756
96
0.713333
91aad9b668436b72f4c874d4602c8482d3ce8e14
8,439
py
Python
test/azure/version-tolerant/AcceptanceTests/asynctests/test_paging.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/version-tolerant/AcceptanceTests/asynctests/test_paging.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/version-tolerant/AcceptanceTests/asynctests/test_paging.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
36.532468
110
0.652565
91ab2f1e2f1d294e6a387ae60888c27960da101b
4,082
py
Python
alipay/aop/api/request/AlipayCommerceMedicalIndustrydataHospitalUploadRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceMedicalIndustrydataHospitalUploadRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceMedicalIndustrydataHospitalUploadRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceMedicalIndustrydataHospitalUploadModel import AlipayCommerceMedicalIndustrydataHospitalUploadModel class AlipayCommerc...
28.151724
148
0.654091
91ab391acd11d0e88a343af8e8b5c6e99d5c4e01
1,219
py
Python
setup.py
deil87/categorical-encoding
c867aa09343b55cbcb600958542d6e8b0c405d86
[ "BSD-3-Clause" ]
null
null
null
setup.py
deil87/categorical-encoding
c867aa09343b55cbcb600958542d6e8b0c405d86
[ "BSD-3-Clause" ]
null
null
null
setup.py
deil87/categorical-encoding
c867aa09343b55cbcb600958542d6e8b0c405d86
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages from codecs import open from os import path __version__ = '1.2.8' here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='...
30.475
95
0.680886
91ab397ad4e0120659aef698595cb507ef5193e1
3,489
py
Python
pruning/mask.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
pruning/mask.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
pruning/mask.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import numpy as np import torch from foundations import paths from models import base from platforms.platform import get_platform ...
40.103448
115
0.642018
91ab39ee0270f096e90ba7ec7d9c02918c90be78
11,048
py
Python
loaddata2.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
loaddata2.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
loaddata2.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from pandas import DataFrame, Series import random import time import math import datetime as dt import random import copy from datetime import datetime from time import mktime import os import json from functools import cmp_to_key from itertools import groupby impo...
40.028986
265
0.551593
91ab3cd96028203992bc06ded3186cd3583748cf
14,380
py
Python
tests/test_loan_transitions.py
iGormilhit/invenio-circulation
02e3a67a3bf491c0a180dae7a52b86d8cd37dc57
[ "MIT" ]
null
null
null
tests/test_loan_transitions.py
iGormilhit/invenio-circulation
02e3a67a3bf491c0a180dae7a52b86d8cd37dc57
[ "MIT" ]
null
null
null
tests/test_loan_transitions.py
iGormilhit/invenio-circulation
02e3a67a3bf491c0a180dae7a52b86d8cd37dc57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # Copyright (C) 2018 RERO. # # Invenio-Circulation is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Tests for loan states.""" from datetime import timedelta import mock import py...
40.507042
79
0.613143
91ab560ce4df32fc59d7ea19b3414aebd5965af3
6,505
py
Python
roles/models/third_party/auto_augment/shake_drop.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
roles/models/third_party/auto_augment/shake_drop.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
7
2020-11-13T17:50:07.000Z
2022-02-10T02:17:14.000Z
roles/models/third_party/auto_augment/shake_drop.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Google UDA Team 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...
35.353261
96
0.611683
91ab56beb57fbe09781d125a99820360dfcc9683
7,916
py
Python
app_data/containers.py
ella/django-appdata
2a1bbc2c4b4569ebcd1bee98b29431df206912c9
[ "BSD-3-Clause" ]
13
2015-03-13T11:40:43.000Z
2020-07-19T04:33:59.000Z
app_data/containers.py
ella/django-appdata
2a1bbc2c4b4569ebcd1bee98b29431df206912c9
[ "BSD-3-Clause" ]
20
2015-01-03T07:26:56.000Z
2020-10-29T09:44:29.000Z
app_data/containers.py
ella/django-appdata
2a1bbc2c4b4569ebcd1bee98b29431df206912c9
[ "BSD-3-Clause" ]
15
2015-01-03T07:27:09.000Z
2020-05-14T07:15:27.000Z
from copy import copy import six from django.core.exceptions import ValidationError from .registry import app_registry from .forms import AppDataForm class AppDataContainerFactory(dict): def __init__(self, model_instance, *args, **kwargs): self._model = model_instance.__class__ self._instance =...
36.818605
119
0.61622
91ab6324d60b7a323ac8a98a52faf069ee79d64c
488
py
Python
database_osint.py
traphuman/osint
2efa8857e7cee791bcfe36c3a7231f2fbd8ad941
[ "BSD-3-Clause" ]
null
null
null
database_osint.py
traphuman/osint
2efa8857e7cee791bcfe36c3a7231f2fbd8ad941
[ "BSD-3-Clause" ]
1
2021-06-01T22:05:24.000Z
2021-06-01T22:05:24.000Z
database_osint.py
traphuman/osint
2efa8857e7cee791bcfe36c3a7231f2fbd8ad941
[ "BSD-3-Clause" ]
null
null
null
import pymysql.cursors import logging def db_conection(): config = { 'user': 'osintuser', 'password': 'password', 'host': 'localhost', 'port': 3306, 'database': 'osint', 'charset': 'utf8mb4' } try: cnx...
27.111111
55
0.461066
91ab63f3da6f26c9825f45f859c32deb967ecdf2
6,391
py
Python
nicos_sinq/icon/devices/velocity_selector.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_sinq/icon/devices/velocity_selector.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_sinq/icon/devices/velocity_selector.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
33.460733
79
0.599593
91ab8b517a75728e28bc390c08fcb309d280b915
490
py
Python
pytype/tests/py3/test_slots.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/py3/test_slots.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/py3/test_slots.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests for slots.""" from pytype.tests import test_base class SlotsTest(test_base.TargetPython3FeatureTest): """Tests for __slots__.""" def testSlotWithUnicode(self): self.Check(""" class Foo(object): __slots__ = (u"fo\\xf6", u"b\\xe4r", "baz") Foo().baz = 3 """) def testSlotWit...
20.416667
52
0.610204
91ab9014607c007a2eacb65089266b43cba74756
6,413
py
Python
mnist_test.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
mnist_test.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
mnist_test.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 28 10:19:49 2021 @author: filipe """ from tensorflow.keras.utils import to_categorical from sklearn.datasets import fetch_openml from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder, StandardScaler ...
36.4375
128
0.711368
91ab96c75c7ac7d86305a89036f572150387ea30
2,302
py
Python
maths/gaussian.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/gaussian.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
maths/gaussian.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
29.512821
79
0.668549
91ab9c1a62debf7986fa55f067434b1a198b7d84
4,478
py
Python
tests/unit/test_utils_wheel.py
ichard26/pip
a4cd22b277b9392e41ab0191fc416731f06a170d
[ "MIT" ]
null
null
null
tests/unit/test_utils_wheel.py
ichard26/pip
a4cd22b277b9392e41ab0191fc416731f06a170d
[ "MIT" ]
null
null
null
tests/unit/test_utils_wheel.py
ichard26/pip
a4cd22b277b9392e41ab0191fc416731f06a170d
[ "MIT" ]
null
null
null
import os from contextlib import ExitStack from email import message_from_string from io import BytesIO from pathlib import Path from zipfile import ZipFile import pytest from pip._internal.exceptions import UnsupportedWheel from pip._internal.utils import wheel @pytest.fixture def zip_dir(): def make_zip(path:...
32.686131
83
0.69205