hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
384af3d12db6a0b77b5903c57fea8fb3389b584d
6,502
py
Python
examples/classification.py
jonpas/myo-raw
efd54c47d413c38808457697dc1ca8aaa23ac09e
[ "MIT" ]
8
2017-11-24T10:33:59.000Z
2022-03-17T01:04:52.000Z
examples/classification.py
jonpas/myo-raw
efd54c47d413c38808457697dc1ca8aaa23ac09e
[ "MIT" ]
4
2018-05-31T22:39:57.000Z
2018-06-28T16:06:09.000Z
examples/classification.py
jonpas/myo-raw
efd54c47d413c38808457697dc1ca8aaa23ac09e
[ "MIT" ]
6
2017-10-30T01:00:47.000Z
2020-04-22T02:22:55.000Z
# # Original work Copyright (c) 2014 Danny Zhu # Modified work Copyright (c) 2017 Matthias Gazzari # # Licensed under the MIT license. See the LICENSE file for details. # from collections import Counter, deque import sys import struct import numpy as np from myo_raw import MyoRaw, DataCategory, EMGMode try: from ...
31.717073
105
0.528299
c325ded23b824548e1f8c2c49b69356354ce4d7e
2,011
py
Python
args.py
torlenor/kalah
12a5520445c60855ed42c5bd30e512c168d531ca
[ "MIT" ]
1
2020-11-30T21:20:33.000Z
2020-11-30T21:20:33.000Z
args.py
torlenor/kalah
12a5520445c60855ed42c5bd30e512c168d531ca
[ "MIT" ]
6
2020-11-13T11:07:53.000Z
2020-11-13T14:33:32.000Z
args.py
torlenor/kalah
12a5520445c60855ed42c5bd30e512c168d531ca
[ "MIT" ]
1
2020-12-10T17:53:06.000Z
2020-12-10T17:53:06.000Z
def add_common_train_args(parser): parser.add_argument('--episodes', type=int, default=1000, metavar='E', help='number of episodes to train (default: 1000)') parser.add_argument('--gamma', type=float, default=0.99, metavar='G', help='discount factor (default: 0.99)') ...
69.344828
108
0.595724
0d225f92795f232073396004802762e356a9ac35
782
py
Python
tests/terraform/checks/resource/aws/test_SQSQueueEncryption.py
mgmt1pyro/Test-Theme
d3e20b62111636ecbe4267c5fff7c2820a9a892d
[ "Apache-2.0" ]
null
null
null
tests/terraform/checks/resource/aws/test_SQSQueueEncryption.py
mgmt1pyro/Test-Theme
d3e20b62111636ecbe4267c5fff7c2820a9a892d
[ "Apache-2.0" ]
null
null
null
tests/terraform/checks/resource/aws/test_SQSQueueEncryption.py
mgmt1pyro/Test-Theme
d3e20b62111636ecbe4267c5fff7c2820a9a892d
[ "Apache-2.0" ]
null
null
null
import unittest from checkov.terraform.checks.resource.aws.SQSQueueEncryption import check from checkov.terraform.models.enums import CheckResult class TestS3Encryption(unittest.TestCase): def test_failure(self): resource_conf = {'name': ['terraform-example-queue']} scan_result = check.scan_reso...
34
101
0.717391
560f85cc5b86defccf054e7dc048064e7ec0f1a0
591
py
Python
questions/serializers/section.py
Ivin0022/django-questions
ac241b23108a5a0083e206458d586969a9ce6ef0
[ "MIT" ]
null
null
null
questions/serializers/section.py
Ivin0022/django-questions
ac241b23108a5a0083e206458d586969a9ce6ef0
[ "MIT" ]
9
2020-06-06T02:19:16.000Z
2022-03-12T00:39:33.000Z
questions/serializers/section.py
Ivin0022/django-questions
ac241b23108a5a0083e206458d586969a9ce6ef0
[ "MIT" ]
null
null
null
from rest_framework import serializers # djangorestframework-recursive from rest_framework_recursive.fields import RecursiveField # local from .question import QuestionSerializer from ..models import Section class SectionSerializer(serializers.ModelSerializer): children = RecursiveField(required=False, allow_nu...
23.64
73
0.654822
b43bfa36d634429b494d5dc2926219951ef02372
4,044
py
Python
lda_classification/utils/model_selection/xgboost_features.py
FeryET/lda_classification
530f972b8955c9f51668475ef640cb644f9b3ab7
[ "MIT" ]
8
2020-10-12T07:35:13.000Z
2022-02-24T21:30:31.000Z
lda_classification/utils/model_selection/xgboost_features.py
FeryET/LDAThis
530f972b8955c9f51668475ef640cb644f9b3ab7
[ "MIT" ]
null
null
null
lda_classification/utils/model_selection/xgboost_features.py
FeryET/LDAThis
530f972b8955c9f51668475ef640cb644f9b3ab7
[ "MIT" ]
3
2021-01-12T22:45:15.000Z
2022-01-15T02:25:04.000Z
from sklearn.base import TransformerMixin, BaseEstimator from sklearn.feature_selection import SelectFromModel from sklearn.metrics import accuracy_score from sklearn.model_selection import RepeatedStratifiedKFold, cross_val_score from tqdm import tqdm from xgboost.sklearn import XGBClassifier, XGBRegressor from xgboos...
40.848485
80
0.642681
e3a032529f2cc68f738bdeb818386382953d0358
942
py
Python
t99/t99_response.py
1099policy/ten99policy-python
168106808350e2d524aa6f00880c72e111ab6167
[ "MIT" ]
null
null
null
t99/t99_response.py
1099policy/ten99policy-python
168106808350e2d524aa6f00880c72e111ab6167
[ "MIT" ]
null
null
null
t99/t99_response.py
1099policy/ten99policy-python
168106808350e2d524aa6f00880c72e111ab6167
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import json from collections import OrderedDict class T99ResponseBase(object): def __init__(self, code, headers): self.code = code self.headers = headers @property def idempotency_key(self): try: return ...
24.789474
67
0.656051
e3afbae4aff54a4e41030ce1320a57370af59923
381
py
Python
auctions/admin.py
iSythnic/Augere-eCommerece
2d60874d80f762c3605f0321676ec8ba65dc4b9e
[ "MIT" ]
null
null
null
auctions/admin.py
iSythnic/Augere-eCommerece
2d60874d80f762c3605f0321676ec8ba65dc4b9e
[ "MIT" ]
null
null
null
auctions/admin.py
iSythnic/Augere-eCommerece
2d60874d80f762c3605f0321676ec8ba65dc4b9e
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import User, listings, comments, bids, categories # Register your models here. class userAdmin(admin.ModelAdmin): list_display = ("id", "first_name", "last_name", "username") admin.site.register(User, userAdmin) admin.site.register(listings) admin.site.register(commen...
31.75
64
0.782152
2e65c1ad65be2923f4438dc8e2a6c25f0890aa18
62
py
Python
HelloWorld.py
phango-767/2021_refresher
6610649b864afc886a54e14e7c45e24f245718ba
[ "MIT" ]
null
null
null
HelloWorld.py
phango-767/2021_refresher
6610649b864afc886a54e14e7c45e24f245718ba
[ "MIT" ]
null
null
null
HelloWorld.py
phango-767/2021_refresher
6610649b864afc886a54e14e7c45e24f245718ba
[ "MIT" ]
null
null
null
#this program prints "Hello, World!" print("Hello, World!")
12.4
36
0.677419
33607c73baa1c2413a92e399ab8d98fdb44e07c8
1,580
py
Python
homework5/main.py
Bodhert/StandfordAlgorithmCourse
025547dcddbf6524357c383dbfbbb02a6b4d0822
[ "MIT" ]
null
null
null
homework5/main.py
Bodhert/StandfordAlgorithmCourse
025547dcddbf6524357c383dbfbbb02a6b4d0822
[ "MIT" ]
null
null
null
homework5/main.py
Bodhert/StandfordAlgorithmCourse
025547dcddbf6524357c383dbfbbb02a6b4d0822
[ "MIT" ]
1
2020-02-02T21:33:22.000Z
2020-02-02T21:33:22.000Z
from PriorityQueue import PriorityQueue MAXN = 205 adjList = {} dist = [] def dijskstra(source): global dist global adjList pq = PriorityQueue() dist[source] = 0 pq.insertNode((source, 0)) while pq.getSize() > 1: currPair = pq.getMin() currNodeIndex = currPair[0] cu...
21.944444
70
0.577848
d90348f71c21b29aed2e40f20efc44b4c71de8d0
1,991
py
Python
tests/test_symbols.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
8
2020-10-12T02:59:03.000Z
2022-03-20T15:06:50.000Z
tests/test_symbols.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
3
2020-10-13T16:30:09.000Z
2021-01-07T23:57:05.000Z
tests/test_symbols.py
pkjmesra/nseta
28cd8cede465efe9f506a38c5933602c463e5185
[ "MIT" ]
5
2020-10-12T14:57:41.000Z
2021-12-30T11:52:34.000Z
# -*- coding: utf-8 -*- import unittest from nseta.common.symbols import get_symbol_list, get_index_constituents_list from baseUnitTest import baseUnitTest class TestSymbols(baseUnitTest): def setUp(self, redirect_logs=True): super().setUp() def test_symbol_list(self): df = get_symbol_list() ...
33.745763
78
0.607735
4d1ab92b84eb8661ad4dd4f3242aaaebc043e368
188
py
Python
chat_playground/chat.py
maxhumber/fikiwiki
db196c1e3e2bb27d1f8f3dea774227b8dd5682e3
[ "MIT" ]
null
null
null
chat_playground/chat.py
maxhumber/fikiwiki
db196c1e3e2bb27d1f8f3dea774227b8dd5682e3
[ "MIT" ]
null
null
null
chat_playground/chat.py
maxhumber/fikiwiki
db196c1e3e2bb27d1f8f3dea774227b8dd5682e3
[ "MIT" ]
2
2020-10-09T09:24:49.000Z
2020-10-21T17:31:50.000Z
from flask import Flask, render_template from flask_socketio import SocketIO, emit app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app) app.route('/') def
18.8
41
0.755319
cb86e78770b5b9e9c08f7a3bd48dee0ae299c6fb
1,866
py
Python
src/network/receivequeuethread.py
iljah/PyBitmessage
5dbe832a1a4fde5d67ec9d13631a2d6733d47730
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
src/network/receivequeuethread.py
iljah/PyBitmessage
5dbe832a1a4fde5d67ec9d13631a2d6733d47730
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
src/network/receivequeuethread.py
iljah/PyBitmessage
5dbe832a1a4fde5d67ec9d13631a2d6733d47730
[ "MIT", "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Process data incoming from network """ import errno import queue import socket import state from network.advanceddispatcher import UnknownStateError from network.connectionpool import BMConnectionPool from queues import receiveDataQueue from network.threads import StoppableThread class ReceiveQueueThread(Stoppab...
32.736842
78
0.60075
0c8e4ff01cb7ee76e0b33693343d47df1fe9f084
1,933
py
Python
pyscfad/pbc/gto/test/test_cell.py
yangdatou/pyscfad
8b90c928928f8244237e5fe415858e074dd5e5fb
[ "MIT" ]
9
2021-05-22T07:39:23.000Z
2021-11-13T23:25:50.000Z
pyscfad/pbc/gto/test/test_cell.py
yangdatou/pyscfad
8b90c928928f8244237e5fe415858e074dd5e5fb
[ "MIT" ]
1
2021-05-22T08:28:17.000Z
2021-05-23T04:29:02.000Z
pyscfad/pbc/gto/test/test_cell.py
yangdatou/pyscfad
8b90c928928f8244237e5fe415858e074dd5e5fb
[ "MIT" ]
1
2021-09-13T18:34:58.000Z
2021-09-13T18:34:58.000Z
import pytest import numpy import jax from pyscfad.lib import numpy as jnp from pyscfad.pbc import gto @pytest.fixture def get_cell(): cell = gto.Cell() cell.atom = '''Si 0., 0., 0. Si 1.3467560987, 1.3467560987, 1.3467560987''' cell.a = '''0. 2.6935121974 2.6935121974 ...
33.912281
74
0.579928
53c5856097bb1ca240a016b20318df10be7968df
3,207
py
Python
external-contacts/python/external-contacts.py
PrinceMerluza/developercenter-tutorials
571512d304d5d6d49b6fc1a208e0e01f5aa89d65
[ "MIT" ]
26
2016-04-19T13:35:48.000Z
2022-01-12T15:36:46.000Z
external-contacts/python/external-contacts.py
PrinceMerluza/developercenter-tutorials
571512d304d5d6d49b6fc1a208e0e01f5aa89d65
[ "MIT" ]
28
2016-04-14T13:55:17.000Z
2022-02-18T15:41:28.000Z
external-contacts/python/external-contacts.py
PrinceMerluza/developercenter-tutorials
571512d304d5d6d49b6fc1a208e0e01f5aa89d65
[ "MIT" ]
41
2016-02-10T18:41:42.000Z
2022-02-17T08:48:54.000Z
import base64, csv, sys, requests, os import PureCloudPlatformClientV2 from pprint import pprint from PureCloudPlatformClientV2.rest import ApiException print('-------------------------------------------------------------') print('- Python3 External Contacts -') print('-------------------------------------------------...
41.649351
102
0.732148
6aa54f21aa2273be6f62c08535ee3340e840e64b
367
py
Python
server/inference_api/v1/status.py
TreeinRandomForest/logo-detector
c957032b1fcbce32dfd55a3a21e2ace44ee0ee4b
[ "MIT" ]
1
2021-03-25T17:09:40.000Z
2021-03-25T17:09:40.000Z
server/inference_api/v1/status.py
TreeinRandomForest/logo-detector
c957032b1fcbce32dfd55a3a21e2ace44ee0ee4b
[ "MIT" ]
6
2021-03-10T09:57:47.000Z
2022-03-12T00:21:00.000Z
server/inference_api/v1/status.py
TreeinRandomForest/logo-detector
c957032b1fcbce32dfd55a3a21e2ace44ee0ee4b
[ "MIT" ]
1
2020-04-06T14:20:31.000Z
2020-04-06T14:20:31.000Z
import sys import time from flask import jsonify from inference_api.v1 import v1 @v1.route('/status', methods=['GET']) def status(): status_obj = { 'version': '0.1', 'python_version': '.'.join(str(n) for n in sys.version_info), 'status': 'ok', 'time': time.strftime('%A %B, %d %Y %H...
21.588235
69
0.588556
72aed8172338f24ccd45723b981472d76c869d00
468
py
Python
icekit/appsettings.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/appsettings.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/appsettings.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
from django.conf import settings ICEKIT = getattr(settings, 'ICEKIT', {}) # Sources for `icekit.plugins.FileSystemLayoutPlugin`. LAYOUT_TEMPLATES = ICEKIT.get('LAYOUT_TEMPLATES', []) # File class referenced by `icekit.plugins.file.abstract_models.AbstractFileItem`. FILE_CLASS = ICEKIT.get('FILE_CLASS', 'icekit_plugi...
36
82
0.786325
6abad205f9fcdba16d2898aceb79cee44cc4d870
5,578
py
Python
train_grnn.py
airalcorn2/baller2vec
bfe0cc4d7988bd8104d7ef3ecd22867b275310ec
[ "MIT" ]
54
2021-02-08T02:20:58.000Z
2021-08-10T05:14:51.000Z
train_grnn.py
airalcorn2/baller2vec
bfe0cc4d7988bd8104d7ef3ecd22867b275310ec
[ "MIT" ]
4
2021-03-18T14:56:01.000Z
2021-09-28T21:18:48.000Z
train_grnn.py
airalcorn2/baller2vec
bfe0cc4d7988bd8104d7ef3ecd22867b275310ec
[ "MIT" ]
4
2021-02-11T23:10:18.000Z
2021-08-15T06:30:29.000Z
import sys import time import torch import yaml from grnn import GRNN from settings import * from torch import nn, optim from train_baller2vec import init_datasets SEED = 2010 torch.manual_seed(SEED) torch.set_printoptions(linewidth=160) def init_model(opts, train_dataset): model_config = opts["model"] # Ad...
31.874286
78
0.609896
87c88e9c21030b0920cbf578215b9fa41e06fd7a
201
py
Python
framework/cei_python3/setup.py
macomfan/cei
49efb1baf39e0bb3e390791fafa3508226644975
[ "MIT" ]
2
2020-05-09T01:54:04.000Z
2020-12-31T02:36:45.000Z
framework/cei_python3/setup.py
macomfan/cei
49efb1baf39e0bb3e390791fafa3508226644975
[ "MIT" ]
27
2020-04-18T11:21:07.000Z
2022-02-26T22:22:33.000Z
framework/cei_python3/setup.py
macomfan/cei
49efb1baf39e0bb3e390791fafa3508226644975
[ "MIT" ]
1
2020-04-26T10:58:02.000Z
2020-04-26T10:58:02.000Z
#!/usr/bin/env python3 from setuptools import setup setup( name="cei-python", version="0.0.1", packages=['impl'], install_requires=['requests', 'urllib3', 'websocket-client'] )
22.333333
65
0.631841
814093a03040e2655d2280327f5d1efe4fd40a0f
395
py
Python
zoo/services/migrations/0007_service_service_url.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
90
2018-11-20T10:58:24.000Z
2022-02-19T16:12:46.000Z
zoo/services/migrations/0007_service_service_url.py
uliana291/the-zoo
a15a4162c39553abe91224f4feff5d3b66f9413e
[ "MIT" ]
348
2018-11-21T09:22:31.000Z
2021-11-03T13:45:08.000Z
zoo/services/migrations/0007_service_service_url.py
aexvir/the-zoo
7816afb9a0a26c6058b030b4a987c73e952d92bd
[ "MIT" ]
11
2018-12-08T18:42:07.000Z
2021-02-21T06:27:58.000Z
# Generated by Django 2.1 on 2018-08-28 09:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("services", "0006_service_name_slug")] operations = [ migrations.AddField( model_name="service", name="service_url", fie...
23.235294
73
0.635443
9a61dd931ac9b7805c2da603e4fd34bd11d23c6f
3,577
py
Python
main.py
Omicron02/SNEK
9388168697fe09f9f3c5b81800d3f6fd8ef0cf36
[ "MIT" ]
null
null
null
main.py
Omicron02/SNEK
9388168697fe09f9f3c5b81800d3f6fd8ef0cf36
[ "MIT" ]
null
null
null
main.py
Omicron02/SNEK
9388168697fe09f9f3c5b81800d3f6fd8ef0cf36
[ "MIT" ]
null
null
null
import pygame import time import random pygame.init() pygame.mixer.init() EAT_SOUND = pygame.mixer.Sound('./add.mp3') END_SOUND = pygame.mixer.Sound('./end.mp3') width,height=800,600#screen disp=pygame.display.set_mode((width,height)) pygame.display.set_caption("SNEK") green,red,black,white,brown=(0,204,153),(255,8,0),...
36.5
84
0.598546
52a3ccd7a93d4cd8ae9e92a663445d79b3a1797d
4,237
py
Python
shadow4tests/test_beamline/old/test_empty_against_shadow3.py
srio/shadow4tests
7123475d830fa619a866dbde9afe28a9ff405dfd
[ "MIT" ]
null
null
null
shadow4tests/test_beamline/old/test_empty_against_shadow3.py
srio/shadow4tests
7123475d830fa619a866dbde9afe28a9ff405dfd
[ "MIT" ]
null
null
null
shadow4tests/test_beamline/old/test_empty_against_shadow3.py
srio/shadow4tests
7123475d830fa619a866dbde9afe28a9ff405dfd
[ "MIT" ]
null
null
null
import numpy from shadow4.sources.source_geometrical.source_geometrical import SourceGeometrical from shadow4.beamline.optical_elements.ideal_elements.s4_empty import S4EmptyElement import Shadow from Shadow.ShadowTools import plotxy from shadow4tests.compatibility.beam3 import Beam3 from numpy.testing import asse...
30.927007
91
0.540005
b512bac2af8bfdf24933dd5b360eb83b4d04d5d4
754
py
Python
telegram_bot/handlers/errors/error_handler.py
Oorzhakau/TeamForce_bot
b8037d53b228bc2ab5149fa67dde6bea17f25a65
[ "MIT" ]
null
null
null
telegram_bot/handlers/errors/error_handler.py
Oorzhakau/TeamForce_bot
b8037d53b228bc2ab5149fa67dde6bea17f25a65
[ "MIT" ]
null
null
null
telegram_bot/handlers/errors/error_handler.py
Oorzhakau/TeamForce_bot
b8037d53b228bc2ab5149fa67dde6bea17f25a65
[ "MIT" ]
null
null
null
import logging from aiogram.utils.exceptions import ( CantParseEntities, MessageNotModified, TelegramAPIError, ) from loader import dp @dp.errors_handler() async def errors_handler(update, exception): """Error handler, перехватывающий все исключения.""" if isinstance(exception, MessageNotModifi...
26
79
0.712202
f9a1cdc65d56e0139bf6c9a0e07609f4a1ee953b
986
py
Python
blog/migrations/0001_initial.py
vierageorge/bootstrapDeploy
dd55a242b8ea11cf949a90a884b678453549eaca
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
vierageorge/bootstrapDeploy
dd55a242b8ea11cf949a90a884b678453549eaca
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
vierageorge/bootstrapDeploy
dd55a242b8ea11cf949a90a884b678453549eaca
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-24 21:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
32.866667
120
0.634888
b9a45a87ceb6daa50fe912858b5531845cfb78dc
28,485
py
Python
paddlenlp/transformers/unified_transformer/tokenizer.py
qhpeklh5959/PaddleNLP
64a56737d57debfbc7b4c970b254d89dd4a07048
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/unified_transformer/tokenizer.py
qhpeklh5959/PaddleNLP
64a56737d57debfbc7b4c970b254d89dd4a07048
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/unified_transformer/tokenizer.py
qhpeklh5959/PaddleNLP
64a56737d57debfbc7b4c970b254d89dd4a07048
[ "Apache-2.0" ]
1
2021-04-28T09:01:37.000Z
2021-04-28T09:01:37.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
43.159091
123
0.576058
21615b5f06dfc02b7c70dadaff7ae271d33cae0a
22,549
py
Python
python/taichi/profiler/kernel_profiler.py
rwilliams251/taichi
442710331be55baf5af17f9667db650c19cbb0b2
[ "MIT" ]
1
2022-02-07T06:34:03.000Z
2022-02-07T06:34:03.000Z
python/taichi/profiler/kernel_profiler.py
rwilliams251/taichi
442710331be55baf5af17f9667db650c19cbb0b2
[ "MIT" ]
null
null
null
python/taichi/profiler/kernel_profiler.py
rwilliams251/taichi
442710331be55baf5af17f9667db650c19cbb0b2
[ "MIT" ]
null
null
null
from contextlib import contextmanager from taichi._lib import core as _ti_core from taichi.lang import impl from taichi.profiler.kernel_metrics import default_cupti_metrics class StatisticalResult: """Statistical result of records. Profiling records with the same kernel name will be counted in a ``Statistic...
38.025295
166
0.633509
5c5cbfe167f1ab3a54e471d8efb74d9b1ec7ac27
2,747
py
Python
4/4-2.py
softwaretestbook/apitest_book
29f640363ab6ef301ea685196b43805a4ed5a3d4
[ "Apache-2.0" ]
null
null
null
4/4-2.py
softwaretestbook/apitest_book
29f640363ab6ef301ea685196b43805a4ed5a3d4
[ "Apache-2.0" ]
null
null
null
4/4-2.py
softwaretestbook/apitest_book
29f640363ab6ef301ea685196b43805a4ed5a3d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/9/3 17:43 # @Author : CrissChan # @Site : https://blog.csdn.net/crisschan # @File : 4-2.py # @Software: PyCharm import requests import json print('--------post-param-------') url_login = 'http://127.0.0.1:12356/login' username='CrissChan' password=...
28.030612
131
0.709137
c498efcdfbdd4bb51234d719de42842c4fc206bb
924
py
Python
test/test_algos/test_opt_algorithm/test_paretoopt/test_paretoopt.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
1
2018-11-03T12:05:00.000Z
2018-11-03T12:05:00.000Z
test/test_algos/test_opt_algorithm/test_paretoopt/test_paretoopt.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
test/test_algos/test_opt_algorithm/test_paretoopt/test_paretoopt.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
from zoopt.algos.opt_algorithms.paretoopt.paretoopt import ParetoOpt from zoopt import Objective, Parameter, Opt from math import exp from sparse_mse import SparseMSE class TestParetoOpt(object): def test_mutation(self): a = [0, 1, 0, 1] n = 4 res = ParetoOpt.mutation(a, n) assert ...
34.222222
103
0.635281
82a23c7dcca3004944c9907e431c1e15ed1de88e
1,636
py
Python
gladier/utils/automate.py
rohithj494/gladier
00fc1cfd0a05f6f18b94b8afd9fef2503d2d3189
[ "Apache-2.0" ]
2
2021-01-19T15:53:16.000Z
2021-02-26T15:56:27.000Z
gladier/utils/automate.py
globus-labs/gladier_tools
0dc4a23af81a2355a908b9a9026f0e68a527c6dc
[ "Apache-2.0" ]
120
2021-01-16T16:50:29.000Z
2022-03-28T14:49:56.000Z
gladier/utils/automate.py
globus-labs/gladier_tools
0dc4a23af81a2355a908b9a9026f0e68a527c6dc
[ "Apache-2.0" ]
3
2021-01-30T00:33:05.000Z
2021-07-28T15:59:28.000Z
import traceback import logging from funcx.serialize import FuncXSerializer log = logging.getLogger(__name__) automate_response_keys = {'action_id', 'status', 'state_name'} funcx_response_keys = {'result', 'status', 'exception', 'task_id'} def is_automate_response(state_output): return ( isinstance(stat...
32.72
90
0.687653
855bb245ba430c445b252d4c638c6e1799b176bf
176
py
Python
students/K33422/laboratory_works/Daria Plotskaya/lr_3/users/apps.py
olticher/ITMO_ICT_WebDevelopment_2021-2022
3de8728c29638d6733ad0664bf13e0d1eccae899
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Daria Plotskaya/lr_3/users/apps.py
olticher/ITMO_ICT_WebDevelopment_2021-2022
3de8728c29638d6733ad0664bf13e0d1eccae899
[ "MIT" ]
null
null
null
students/K33422/laboratory_works/Daria Plotskaya/lr_3/users/apps.py
olticher/ITMO_ICT_WebDevelopment_2021-2022
3de8728c29638d6733ad0664bf13e0d1eccae899
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'users' verbose_name = "Пользователи"
22
56
0.744318
202c116a07206b47d16a770230d567c5e5223b55
295
py
Python
baekjoon/not-classified/1463/1463.py
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
2
2019-02-08T01:23:07.000Z
2020-11-19T12:23:52.000Z
baekjoon/not-classified/1463/1463.py
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
null
null
null
baekjoon/not-classified/1463/1463.py
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
null
null
null
n = int(input()) d = {} d[1] = 0 def solution(n): if n in d: return d[n] d[n] = solution(n - 1) + 1 if (n % 2 == 0): d[n] = min(solution(n / 2) + 1, d[n]) if (n % 3 == 0): d[n] = min(solution(n / 3) + 1, d[n]) return d[n] print(solution(n))
14.75
45
0.40678
689b8e64355a2fab756df6b312c45a837cf675be
62,364
py
Python
ckan/controllers/package.py
jcballesteros/ckan
312b7a0d44fb1610deb037da5434820ffb698f96
[ "Apache-2.0" ]
null
null
null
ckan/controllers/package.py
jcballesteros/ckan
312b7a0d44fb1610deb037da5434820ffb698f96
[ "Apache-2.0" ]
null
null
null
ckan/controllers/package.py
jcballesteros/ckan
312b7a0d44fb1610deb037da5434820ffb698f96
[ "Apache-2.0" ]
null
null
null
import logging from urllib import urlencode import datetime import os import mimetypes import cgi from pylons import config from genshi.template import MarkupTemplate from genshi.template.text import NewTextTemplate from paste.deploy.converters import asbool import paste.fileapp import ckan.logic as logic import ckan...
41.826962
103
0.549708
2fde84402b9257eccc54cdf46e8ddb603708ca95
26,135
py
Python
tuning/cactus_tuning.py
benedictpaten/cactusTools
374b9cbe352d71f111977751f25e6c70c52ab041
[ "MIT-0" ]
2
2019-11-17T06:38:17.000Z
2020-04-26T09:12:07.000Z
tuning/cactus_tuning.py
benedictpaten/cactusTools
374b9cbe352d71f111977751f25e6c70c52ab041
[ "MIT-0" ]
null
null
null
tuning/cactus_tuning.py
benedictpaten/cactusTools
374b9cbe352d71f111977751f25e6c70c52ab041
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python #Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com) # #Released under the MIT license, see LICENSE.txt #!/usr/bin/env python """Wrapper to run cactus on different combinations of cactus_workflow_config.xml (cactus parameters) and simulations, followed by evaluations steps. """ #...
48.578067
322
0.623646
2a503d6bc20830efc2107181ea1fe9c606c94f0d
1,437
py
Python
examples/modular.py
RickardSjogren/sacred
93a0df32ddb22e7634790bda08b530bf7bc45d61
[ "MIT" ]
null
null
null
examples/modular.py
RickardSjogren/sacred
93a0df32ddb22e7634790bda08b530bf7bc45d61
[ "MIT" ]
null
null
null
examples/modular.py
RickardSjogren/sacred
93a0df32ddb22e7634790bda08b530bf7bc45d61
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ This is a very basic example of how to use Sacred. """ from sacred import Experiment, Ingredient # ============== Ingredient 0: settings ================= s = Ingredient("settings") @s.config def cfg1(): verbose = True # ============== Ingredient 1: dataset.paths =====...
21.447761
66
0.578984
031e735f9d4a1beaed5d151a0902951668f7cd29
102,742
py
Python
pyeccodes/defs/grib1/localConcepts/eswi/shortName_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib1/localConcepts/eswi/shortName_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib1/localConcepts/eswi/shortName_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): def wrapped(h): table2Version = h.get_l('table2Version') indicatorOfParameter = h.get_l('indicatorOfParameter') if table2Version == 253 and indicatorOfParameter == 239: return 'zt' if table2Version == 253 and indicatorOfP...
30.797962
64
0.588902
a0f0f179fa613ba2fa52fccd7affb6deb3f40b3e
5,770
py
Python
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_assets.py
kyohei3/dagster
60319ba89d765abdd77a0934ca90eeb154f66a03
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_assets.py
kyohei3/dagster
60319ba89d765abdd77a0934ca90eeb154f66a03
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql/implementation/fetch_assets.py
kyohei3/dagster
60319ba89d765abdd77a0934ca90eeb154f66a03
[ "Apache-2.0" ]
null
null
null
from dagster import AssetKey, DagsterEventType, EventRecordsFilter, check, seven from .utils import capture_error def _normalize_asset_cursor_str(cursor_string): # the cursor for assets is derived from a json serialized string of the path. Because there are # json serialization differences between JS and Py...
33.941176
100
0.734315
7451f8e73b23701def1d108e476b04ccf1addc0d
2,973
py
Python
local_configs/10.14/logits_sg128_64.py
wzpscott/SegformerDistillation
6558757f5071251410e90270e197755860a6f41c
[ "DOC" ]
null
null
null
local_configs/10.14/logits_sg128_64.py
wzpscott/SegformerDistillation
6558757f5071251410e90270e197755860a6f41c
[ "DOC" ]
null
null
null
local_configs/10.14/logits_sg128_64.py
wzpscott/SegformerDistillation
6558757f5071251410e90270e197755860a6f41c
[ "DOC" ]
null
null
null
_base_ = [ '../_base_/datasets/ade20k_repeat.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k_adamw.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='SDModule', cfg_s=dict( type='EncoderDecoder', pretrained='pretrained/mit_b0.pth', ...
35.392857
95
0.541541
53112168bf7e0a13d3abd82d1591242adcaa7574
20,577
py
Python
src/zope/index/text/tests/mhindex.py
minddistrict/zope.index
7fd8bbad0584e21c0158e73681bcf99b6bacb699
[ "ZPL-2.1" ]
null
null
null
src/zope/index/text/tests/mhindex.py
minddistrict/zope.index
7fd8bbad0584e21c0158e73681bcf99b6bacb699
[ "ZPL-2.1" ]
null
null
null
src/zope/index/text/tests/mhindex.py
minddistrict/zope.index
7fd8bbad0584e21c0158e73681bcf99b6bacb699
[ "ZPL-2.1" ]
1
2021-09-29T19:54:14.000Z
2021-09-29T19:54:14.000Z
#!/usr/bin/env python ############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this di...
32.507109
84
0.543471
75699a62219908547bb9f766ea1d89682e4352df
5,771
py
Python
dojo/db_migrations/0004_cve_field.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1,772
2018-01-22T23:32:15.000Z
2022-03-31T14:49:33.000Z
dojo/db_migrations/0004_cve_field.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
3,461
2018-01-20T19:12:28.000Z
2022-03-31T17:14:39.000Z
dojo/db_migrations/0004_cve_field.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1,173
2018-01-23T07:10:23.000Z
2022-03-31T14:40:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-06 21:54 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dojo', '0003_test_title'), ] operations = [ migrations.AddField( model_...
137.404762
1,513
0.670941
8c7439d1e8ec4a2278d503c671a02953b95c25b1
4,003
py
Python
pyfos/utils/zoning/zoning_alias_remove.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
44
2017-11-17T12:03:11.000Z
2022-02-03T20:57:56.000Z
pyfos/utils/zoning/zoning_alias_remove.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
13
2018-10-09T15:34:15.000Z
2022-02-24T20:03:17.000Z
pyfos/utils/zoning/zoning_alias_remove.py
madhavinaiduprathap/pyfosbrocade
ec100e77c441761c3e688f1d8e5d18ad38cc83f4
[ "Apache-2.0" ]
23
2017-12-14T18:08:33.000Z
2022-02-03T15:33:40.000Z
#!/usr/bin/env python3 # Copyright © 2018 Broadcom. All Rights Reserved. The term “Broadcom” refers to # Broadcom Inc. and/or its subsidiaries. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may also obtain a copy of the Lice...
31.031008
83
0.625031
6e36d6bc84817ab81f9bd98ba3adf73f0c5cc401
5,031
py
Python
lib/streamlit/elements/checkbox.py
sujithapandalaneni/streamlit
5f39da13c0c551533a6d313dd0e2f6f9f0f9a5ac
[ "Apache-2.0" ]
1
2022-01-19T10:48:49.000Z
2022-01-19T10:48:49.000Z
lib/streamlit/elements/checkbox.py
sujithapandalaneni/streamlit
5f39da13c0c551533a6d313dd0e2f6f9f0f9a5ac
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/checkbox.py
sujithapandalaneni/streamlit
5f39da13c0c551533a6d313dd0e2f6f9f0f9a5ac
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Streamlit 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 wr...
33.54
88
0.622739
ecb808d6103af26da2ee84ad5e81c139b36e4f5c
401
py
Python
music_review/wsgi.py
wmalarski/music-reviews
7190a2fc489965d951b3879ef89bfdf7893b2456
[ "MIT" ]
null
null
null
music_review/wsgi.py
wmalarski/music-reviews
7190a2fc489965d951b3879ef89bfdf7893b2456
[ "MIT" ]
80
2020-09-22T19:26:24.000Z
2021-09-22T19:44:09.000Z
music_review/wsgi.py
wmalarski/music-reviews
7190a2fc489965d951b3879ef89bfdf7893b2456
[ "MIT" ]
null
null
null
""" WSGI config for music_review project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
23.588235
78
0.790524
5ad6cfcd17b221dc9d9eedf6123f29b71e364f66
867
py
Python
backend/authentication/urls.py
Gimb0/financeManager
b054567ccbcc66535b30b92af1bf11e270968779
[ "MIT" ]
null
null
null
backend/authentication/urls.py
Gimb0/financeManager
b054567ccbcc66535b30b92af1bf11e270968779
[ "MIT" ]
null
null
null
backend/authentication/urls.py
Gimb0/financeManager
b054567ccbcc66535b30b92af1bf11e270968779
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework_simplejwt import views as jwt_views from .views import ObtainTokenPairWithColorView, CustomUserCreate from rest_framework import routers from spendings.views import ExpensesView, CategoryView router = routers.DefaultRouter() router.register(r'expenses', Expens...
41.285714
87
0.769319
e29ac73ee0f89532fb7185ece9d9d79626d29a76
105
py
Python
lbry/__init__.py
StripedMonkey/lbry-sdk
b7cb2a7aa553cf3eafc239275fa6e4e30b9057e1
[ "MIT" ]
null
null
null
lbry/__init__.py
StripedMonkey/lbry-sdk
b7cb2a7aa553cf3eafc239275fa6e4e30b9057e1
[ "MIT" ]
null
null
null
lbry/__init__.py
StripedMonkey/lbry-sdk
b7cb2a7aa553cf3eafc239275fa6e4e30b9057e1
[ "MIT" ]
null
null
null
__version__ = "0.70.0" version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name
35
81
0.695238
1b64be6d7fb2e25f4cbb36303f70d04c23bf8f7c
687
py
Python
codegen/scripts/test_validator.py
Citrusboa/firmware_xiv
4379cefae900fd67bd14d930da6b8acfce625176
[ "MIT" ]
14
2019-11-12T00:11:29.000Z
2021-12-13T05:32:41.000Z
codegen/scripts/test_validator.py
123Logan321/firmware_xiv
14468d55753ad62f8a63a9289511e72131443042
[ "MIT" ]
191
2019-11-12T05:36:58.000Z
2022-03-21T19:54:46.000Z
codegen/scripts/test_validator.py
123Logan321/firmware_xiv
14468d55753ad62f8a63a9289511e72131443042
[ "MIT" ]
14
2020-06-06T14:43:14.000Z
2022-03-08T00:48:11.000Z
"""Module for testing validator methods.""" from __future__ import absolute_import, division, print_function, unicode_literals import unittest import validator from constants import NUM_CAN_MESSAGES class TestValidatorMethods(unittest.TestCase): """Tests the validator module methods.""" def test_valid_can_...
32.714286
82
0.743814
316bf2b6ee73e303cfd2af021ccebefeb88cf8dc
1,408
py
Python
api/applications/views/party_documents.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/applications/views/party_documents.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/applications/views/party_documents.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
from django.db import transaction from rest_framework.views import APIView from api.applications.libraries.get_applications import get_application from api.applications.libraries.document_helpers import upload_party_document, delete_party_document, get_party_document from api.core.authentication import ExporterAuthent...
38.054054
120
0.772727
67ca6f6fa9d170915986b76886eec289a455cdbc
26,382
py
Python
discord/permissions.py
z03h/discord.py
7e5831ba9cc3f881e11b3536159a3851fba6ab52
[ "MIT" ]
null
null
null
discord/permissions.py
z03h/discord.py
7e5831ba9cc3f881e11b3536159a3851fba6ab52
[ "MIT" ]
7
2021-09-06T04:52:13.000Z
2022-01-13T04:56:21.000Z
discord/permissions.py
z03h/discord.py
7e5831ba9cc3f881e11b3536159a3851fba6ab52
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
33.823077
119
0.615344
b3562d942aeaec8882c21c4abaaa1792d4f7a9d0
1,565
py
Python
tests/test_gnets_legalize.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
1
2021-11-18T10:45:26.000Z
2021-11-18T10:45:26.000Z
tests/test_gnets_legalize.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
null
null
null
tests/test_gnets_legalize.py
enics-labs/salamandra
e3f334d0ead5296b02c471b56cb90b1516e12769
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 EnICS Labs, Bar-Ilan University. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import sys, os sys.path.append(os.path.abspath('..')) from salamandra import * def main(): test(is_metatest=False) def test(is_metatest): nand =...
29.528302
99
0.584026
d790434f58f48fbc8f083f7855591bf2875e192b
832
py
Python
setup.py
renereimann/FID_Simulation
40fe7f0892a5f4600d863658f748906bff050b67
[ "MIT" ]
null
null
null
setup.py
renereimann/FID_Simulation
40fe7f0892a5f4600d863658f748906bff050b67
[ "MIT" ]
null
null
null
setup.py
renereimann/FID_Simulation
40fe7f0892a5f4600d863658f748906bff050b67
[ "MIT" ]
1
2020-04-11T04:18:31.000Z
2020-04-11T04:18:31.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() with open('LICENSE') as f: license = f.read() setuptools.setup( name="FreeInductionDecay", # Replace with your own username version="0.0.1", author="Rene Reimann ", author_email="rreimann@uni-mainz.de", d...
30.814815
83
0.673077
a29d9aec87f516112f2333b8e4d257f351013125
3,949
py
Python
mtg_deckbuilder/users/migrations/0001_initial.py
MrGreenTea/deckbuilder
ec6617add05e8567d8b9e4ada90b86ad50055f0e
[ "MIT" ]
null
null
null
mtg_deckbuilder/users/migrations/0001_initial.py
MrGreenTea/deckbuilder
ec6617add05e8567d8b9e4ada90b86ad50055f0e
[ "MIT" ]
null
null
null
mtg_deckbuilder/users/migrations/0001_initial.py
MrGreenTea/deckbuilder
ec6617add05e8567d8b9e4ada90b86ad50055f0e
[ "MIT" ]
null
null
null
import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [("auth", "0008_alter_user_username_max_length")] operations = [ migrations.CreateMo...
45.390805
138
0.488731
9666b3142e97951c09a65a4297c38d03e636dc7c
6,520
py
Python
src/data/make_dataset.py
mlotfic/Communicate-Dtata-Finding
f2b7e283e93e9a78bf5179d5907d42706a33861d
[ "MIT" ]
null
null
null
src/data/make_dataset.py
mlotfic/Communicate-Dtata-Finding
f2b7e283e93e9a78bf5179d5907d42706a33861d
[ "MIT" ]
null
null
null
src/data/make_dataset.py
mlotfic/Communicate-Dtata-Finding
f2b7e283e93e9a78bf5179d5907d42706a33861d
[ "MIT" ]
null
null
null
# import all packages and set plots to be embedded inline import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from datetime import datetime import time from pathlib import Path import os relative_path = Path(__file__).parents[2] if not os.path.exists('{}/data/interim'.format...
32.929293
139
0.602301
a479214d8dd8a8d0514c7f9047a21ce049d55f4f
151
py
Python
scofield/customer/admin.py
howiworkdaily/scofield-project
f0daaf785c344a0da1f5b624518c9fa6c0514745
[ "BSD-3-Clause" ]
4
2016-04-10T13:37:58.000Z
2018-06-11T18:49:29.000Z
scofield/customer/admin.py
howiworkdaily/scofield-project
f0daaf785c344a0da1f5b624518c9fa6c0514745
[ "BSD-3-Clause" ]
null
null
null
scofield/customer/admin.py
howiworkdaily/scofield-project
f0daaf785c344a0da1f5b624518c9fa6c0514745
[ "BSD-3-Clause" ]
2
2015-04-08T19:52:19.000Z
2021-02-10T08:08:19.000Z
from models import * from django.contrib import admin admin.site.register(Customer) admin.site.register(Phonenumber) admin.site.register(Address)
13.727273
32
0.801325
8b404776ad282d3c7a1773c45bdb528ce9a03d9a
55,569
py
Python
lib/rucio/core/rse.py
DanilaOleynik/rucio
b6708b41abd6e781f976970e758babbd87a8941e
[ "Apache-2.0" ]
2
2020-02-18T22:34:24.000Z
2022-03-09T16:26:18.000Z
lib/rucio/core/rse.py
DanilaOleynik/rucio
b6708b41abd6e781f976970e758babbd87a8941e
[ "Apache-2.0" ]
null
null
null
lib/rucio/core/rse.py
DanilaOleynik/rucio
b6708b41abd6e781f976970e758babbd87a8941e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2012-2022 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.663812
191
0.641329
8f0ead51b24fb58afbd0cf4b4af38e57648eccc7
83
py
Python
backend/feed/apps.py
stasfilin/rss_portal
e6e9f8d254c80c8a7a40901b3b7dab059f259d55
[ "MIT" ]
null
null
null
backend/feed/apps.py
stasfilin/rss_portal
e6e9f8d254c80c8a7a40901b3b7dab059f259d55
[ "MIT" ]
3
2021-04-08T21:05:07.000Z
2022-02-10T10:05:39.000Z
sfymca/feed/apps.py
streeter/sf-ymca-pools
7f3ff7d561d51158ae27b8abba05f61f4966e862
[ "MIT" ]
null
null
null
from django.apps import AppConfig class FeedConfig(AppConfig): name = "feed"
13.833333
33
0.73494
54721c3f7c48efd199f9fff8b3e4b3d30311994f
5,360
py
Python
src/main/python/twitter/thermos/config/loader.py
isomer/incubator-aurora
5f54d4de25413bb18acec16120eb18f3e08c6bf0
[ "Apache-2.0" ]
null
null
null
src/main/python/twitter/thermos/config/loader.py
isomer/incubator-aurora
5f54d4de25413bb18acec16120eb18f3e08c6bf0
[ "Apache-2.0" ]
null
null
null
src/main/python/twitter/thermos/config/loader.py
isomer/incubator-aurora
5f54d4de25413bb18acec16120eb18f3e08c6bf0
[ "Apache-2.0" ]
null
null
null
import copy import json import os import re import textwrap from twitter.common.dirutil import safe_open from twitter.common.lang import Compatibility from twitter.thermos.common.planner import TaskPlanner from twitter.thermos.config.schema import Task from pystachio import Ref from pystachio.config import Config c...
29.777778
99
0.698881
706ac65a996211faf94af010fe5d635479da724a
175
py
Python
examples/sponza/dependencies.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
70
2017-03-31T12:01:41.000Z
2022-01-05T06:30:57.000Z
examples/sponza/dependencies.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
69
2017-06-18T22:37:46.000Z
2020-01-23T04:02:22.000Z
examples/sponza/dependencies.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
9
2017-05-13T21:13:02.000Z
2020-10-01T18:09:49.000Z
from demosys.resources.meta import SceneDescription effect_packages = [] resources = [ SceneDescription(label="sponza", path="sponza/Sponza/glTF/Sponza.gltf"), ]
21.875
77
0.725714
ac6f42278ead1b750b57b1738720719e7cef4d47
199
py
Python
ex066.py
brunocorbetta/exerciciocursoemvideo
b6ef52f3426f70f211ad70f233f0222c703a2c41
[ "MIT" ]
null
null
null
ex066.py
brunocorbetta/exerciciocursoemvideo
b6ef52f3426f70f211ad70f233f0222c703a2c41
[ "MIT" ]
null
null
null
ex066.py
brunocorbetta/exerciciocursoemvideo
b6ef52f3426f70f211ad70f233f0222c703a2c41
[ "MIT" ]
null
null
null
cont = 0 soma = 0 while True: n1 = int(input('Digite 999 para parar: ')) if n1 == 999: break cont += 1 soma += n1 print(f'Você digitou {cont} numeros e a soma deles da {soma} ')
19.9
63
0.577889
13e94eb6232feaec4d46f9963967606be1610e67
447
py
Python
polls/forms.py
davidefabbrico/Progetto_School
e32e345d154764725b96e2d22b441a17fae67ade
[ "MIT" ]
1
2021-09-04T08:56:32.000Z
2021-09-04T08:56:32.000Z
polls/forms.py
davidefabbrico/Progetto_School
e32e345d154764725b96e2d22b441a17fae67ade
[ "MIT" ]
null
null
null
polls/forms.py
davidefabbrico/Progetto_School
e32e345d154764725b96e2d22b441a17fae67ade
[ "MIT" ]
null
null
null
from django.forms import ModelForm from .models import * from django.contrib.auth.forms import UserCreationForm from django import forms from django.contrib.auth.models import User class Form(forms.ModelForm): class Meta: model = School fields = '__all__' class CreateUserForm(User...
23.526316
68
0.666667
72f5e5eb668c9a46fd2aa529ed524fec0ca5cbb3
3,573
py
Python
server/UserProfile/models.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
null
null
null
server/UserProfile/models.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
8
2020-08-04T22:42:45.000Z
2022-03-12T00:48:53.000Z
server/UserProfile/models.py
dimejiconsult/Telemedicine
af812bd8703d86e648105dc0c01b02f6af783dee
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import BaseUserManager,AbstractBaseUser, PermissionsMixin from django.utils.translation import ugettext_lazy as _ Gender = ( ('Male', 'Male'), ('Female', 'Female') ) class UserManager(BaseUserManager): def create_user(self, email, password=Non...
31.342105
109
0.670025
073659812594ba8061e59acae25d4774af47a863
274
py
Python
gcamp_analysis_files_finished/180313-04-top-acclimate/src/delta_video_config.py
eleanorlutz/aedes-aegypti-gcamp6s-larval-behavior
f8773525124a4138278b56f6de4fc5a9910a6319
[ "MIT" ]
null
null
null
gcamp_analysis_files_finished/180313-04-top-acclimate/src/delta_video_config.py
eleanorlutz/aedes-aegypti-gcamp6s-larval-behavior
f8773525124a4138278b56f6de4fc5a9910a6319
[ "MIT" ]
null
null
null
gcamp_analysis_files_finished/180313-04-top-acclimate/src/delta_video_config.py
eleanorlutz/aedes-aegypti-gcamp6s-larval-behavior
f8773525124a4138278b56f6de4fc5a9910a6319
[ "MIT" ]
null
null
null
class Config: def __init__(self): self.basename = 'delta_video' self.directory = '/home/eleanor/Documents/gcamp_analysis_files_temp/180313-04-top-acclimate/data' self.topics = ['/multi_tracker/1/delta_video',] self.record_length_hours = 1
45.666667
105
0.693431
c8c75af43565f6e140287644aaaefa97dd6e67c5
2,982
py
Python
ldm/modules/ema.py
samedii/latent-diffusion
f13bf9bf463d95b5a16aeadd2b02abde31f769f8
[ "MIT" ]
563
2021-12-21T02:26:38.000Z
2022-03-31T05:54:51.000Z
ldm/modules/ema.py
samedii/latent-diffusion
f13bf9bf463d95b5a16aeadd2b02abde31f769f8
[ "MIT" ]
23
2021-12-22T10:00:00.000Z
2022-03-24T20:43:49.000Z
ldm/modules/ema.py
samedii/latent-diffusion
f13bf9bf463d95b5a16aeadd2b02abde31f769f8
[ "MIT" ]
51
2021-12-21T02:27:04.000Z
2022-03-23T12:30:31.000Z
import torch from torch import nn class LitEma(nn.Module): def __init__(self, model, decay=0.9999, use_num_upates=True): super().__init__() if decay < 0.0 or decay > 1.0: raise ValueError('Decay must be between 0 and 1') self.m_name2s_name = {} self.register_buffer('de...
38.727273
102
0.60228
b42eb69bc2f0185ac2ec8f9d76d2f17e7507678e
3,163
py
Python
benchmark/startCirq2698.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2698.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2698.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=41 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
36.77907
77
0.681315
b81afcddd4de1126ee8d2c87f25050a73bc30287
7,130
py
Python
env/Lib/site-packages/plotly/graph_objs/scattersmith/marker/colorbar/_title.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
env/Lib/site-packages/plotly/graph_objs/scattersmith/marker/colorbar/_title.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
env/Lib/site-packages/plotly/graph_objs/scattersmith/marker/colorbar/_title.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattersmith.marker.colorbar" _path_str = "scattersmith.marker.colorbar.title" _valid_props =...
33.791469
93
0.543198
458d5ce62a9e9557847f69a30f64f71be1f7f272
30,348
py
Python
srg3d/potential.py
cheshyre/srg3d-py
a62592c0d9bcb62d6a54d13827882cdfe46fa706
[ "MIT" ]
null
null
null
srg3d/potential.py
cheshyre/srg3d-py
a62592c0d9bcb62d6a54d13827882cdfe46fa706
[ "MIT" ]
null
null
null
srg3d/potential.py
cheshyre/srg3d-py
a62592c0d9bcb62d6a54d13827882cdfe46fa706
[ "MIT" ]
1
2020-02-25T14:47:54.000Z
2020-02-25T14:47:54.000Z
# pylint: disable=too-many-lines """Nuclear potential module. Module containing representations of 3D potentials for use in nuclear theory. Also contains logic to read them from and save them to files with a standard naming convention. class Channel ------------- A container for the channel information for a potentia...
30.137041
79
0.588474
3690ff6bf4c8454401253f8bde218fc801093ff8
21,694
py
Python
scripts/Crawlers/OSFCrawler.py
emmetaobrien/conp-dataset
7776edbb9025711eb38e8482c221fbb45715f27d
[ "MIT" ]
18
2018-05-15T23:01:38.000Z
2021-09-22T17:12:13.000Z
scripts/Crawlers/OSFCrawler.py
emmetaobrien/conp-dataset
7776edbb9025711eb38e8482c221fbb45715f27d
[ "MIT" ]
411
2019-01-07T15:05:54.000Z
2022-03-21T15:08:36.000Z
scripts/Crawlers/OSFCrawler.py
emmetaobrien/conp-dataset
7776edbb9025711eb38e8482c221fbb45715f27d
[ "MIT" ]
92
2018-05-15T21:04:02.000Z
2022-01-31T02:48:37.000Z
import datetime import json import os from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Optional import humanize import requests from datalad.distribution.dataset import Dataset from git import Repo from scripts.Crawlers.BaseCrawler import BaseCrawle...
36.277592
117
0.487692
b0b21ca1e91460afa559f9cc2002af13cc207631
3,678
py
Python
colour_demosaicing/bayer/demosaicing/bilinear.py
jewfro-cuban/colour-demosaicing
fcdb5fd769d611a440b804340e735bf0ee222b51
[ "BSD-3-Clause" ]
null
null
null
colour_demosaicing/bayer/demosaicing/bilinear.py
jewfro-cuban/colour-demosaicing
fcdb5fd769d611a440b804340e735bf0ee222b51
[ "BSD-3-Clause" ]
null
null
null
colour_demosaicing/bayer/demosaicing/bilinear.py
jewfro-cuban/colour-demosaicing
fcdb5fd769d611a440b804340e735bf0ee222b51
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Bilinear Bayer CFA Demosaicing ============================== *Bayer* CFA (Colour Filter Array) bilinear demosaicing. References ---------- - :cite:`Losson2010c` : Losson, O., Macaire, L., & Yang, Y. (2010). Comparison of Color Demosaicing Methods. In Advances in Imaging and Elec...
31.982609
79
0.600598
fd2a9bc2808019d4667810c7810bb50831a960ca
274
py
Python
Chapter05_code/Ch05_R03/my_module_ch15r03/models.py
PacktPublishing/Odoo-Development-Cookbook
5553110c0bc352c4541f11904e236cad3c443b8b
[ "MIT" ]
55
2016-05-23T16:05:50.000Z
2021-07-19T00:16:46.000Z
Chapter05_code/Ch05_R03/my_module_ch15r03/models.py
kogkog098/Odoo-Development-Cookbook
166c9b98efbc9108b30d719213689afb1f1c294d
[ "MIT" ]
1
2016-12-09T02:14:21.000Z
2018-07-02T09:02:20.000Z
Chapter05_code/Ch05_R03/my_module_ch15r03/models.py
kogkog098/Odoo-Development-Cookbook
166c9b98efbc9108b30d719213689afb1f1c294d
[ "MIT" ]
52
2016-06-01T20:03:59.000Z
2020-10-31T23:58:25.000Z
# coding: utf-8 from openerp import models, api class LibraryBook(models.Model): _inherit = 'library.book' @api.model def get_all_library_members(self): library_member_model = self.env['library.member'] return library_member_model.search([])
21.076923
57
0.70073
17523664b6d4e13caf5234fd0d49d6eaf441c9f7
1,558
py
Python
common/framework_excuter/tensorflow_excute.py
wavelet2008/rknn-v5
16288a88844e887634f74df8f43fff9b82f4ba62
[ "Apache-2.0" ]
11
2022-02-24T10:44:54.000Z
2022-03-31T03:40:21.000Z
common/framework_excuter/tensorflow_excute.py
wavelet2008/rknn-v5
16288a88844e887634f74df8f43fff9b82f4ba62
[ "Apache-2.0" ]
1
2022-03-01T07:21:04.000Z
2022-03-31T11:03:47.000Z
common/framework_excuter/tensorflow_excute.py
wavelet2008/rknn-v5
16288a88844e887634f74df8f43fff9b82f4ba62
[ "Apache-2.0" ]
5
2022-03-18T09:05:50.000Z
2022-03-30T07:35:55.000Z
import tensorflow as tf from tensorflow.python.framework import graph_util from tensorflow.python.platform import gfile class Tensorflow_model_container: def __init__(self, model_path, inputs, outputs) -> None: self.input_names = [] for i, item in enumerate(inputs): self.input_names.app...
37.095238
113
0.621951
dea5c85f3f89a8e76c1e46b841bc397777b785f6
2,606
py
Python
turn_in/TSPAllVisited.py
OSU-CS-325/Project_Four_TSP
c88e496b755fa5dfc3220f68a3daa3eba2e57e2e
[ "MIT" ]
null
null
null
turn_in/TSPAllVisited.py
OSU-CS-325/Project_Four_TSP
c88e496b755fa5dfc3220f68a3daa3eba2e57e2e
[ "MIT" ]
null
null
null
turn_in/TSPAllVisited.py
OSU-CS-325/Project_Four_TSP
c88e496b755fa5dfc3220f68a3daa3eba2e57e2e
[ "MIT" ]
null
null
null
#!/usr/bin/python import math, re, sys # usage: python TSPAllVisited.py input_file output_file def main(input_file, output_file): input_point_labels = read_input_vals(input_file) output_point_labels = read_output_vals(output_file) problems = check_match(input_point_labels, output_point_labels) if( len(prob...
25.300971
92
0.686109
3eee4026a225d87ce1ac42ec074b4f9ccbd2a06c
1,460
py
Python
twitchat/settings.py
Fittiboy/twitchat
c82341675f5eb7ce49c06f41f0f71ecf07bdcdea
[ "MIT" ]
6
2021-01-11T05:50:03.000Z
2022-03-24T01:55:41.000Z
twitchat/settings.py
Fittiboy/twitchat
c82341675f5eb7ce49c06f41f0f71ecf07bdcdea
[ "MIT" ]
4
2020-07-30T19:39:26.000Z
2021-06-12T20:08:54.000Z
twitchat/settings.py
Fittiboy/python-twitch-bot
b810688bb0d24bf059a228e771eb2aae91cc43d0
[ "MIT" ]
1
2021-08-04T17:35:23.000Z
2021-08-04T17:35:23.000Z
import json from twitchat.permissions import permissions def main(): try: with open('settings.json') as settings_file: settings = json.load(settings_file) except FileNotFoundError: settings = {} try: open('timers.json').close() except FileNotFoundError...
31.06383
64
0.603425
f7d5da05cbb9a7018163ed4a345cc1ee09ccb0a7
1,794
py
Python
src/sounds.py
ScampyOwl/robolab-group138
c5151bc3c541d49d8ebc2fdb74eb2703f0cb5685
[ "MIT" ]
null
null
null
src/sounds.py
ScampyOwl/robolab-group138
c5151bc3c541d49d8ebc2fdb74eb2703f0cb5685
[ "MIT" ]
null
null
null
src/sounds.py
ScampyOwl/robolab-group138
c5151bc3c541d49d8ebc2fdb74eb2703f0cb5685
[ "MIT" ]
1
2020-08-20T14:11:50.000Z
2020-08-20T14:11:50.000Z
import ev3dev.ev3 as ev3 class Sounds: def __init__(self): self.sounds = ev3.Sound def say_red(self): self.sounds.speak("red").wait() def say_blue(self): self.sounds.speak("blue").wait() def say_white(self): self.sounds.speak("white").wait() def say_black(self)...
30.931034
95
0.549052
8721c6f17c18aa6186367933fcc9b2fb9befd4fe
6,224
py
Python
lib/neovim/msgpack_rpc/event_loop/base.py
nicholas-zww/ActualVim
e9a1c74411748a8e68c7436a62cea846f25411d7
[ "MIT" ]
849
2017-03-28T14:20:24.000Z
2022-03-29T14:10:37.000Z
lib/neovim/msgpack_rpc/event_loop/base.py
nicholas-zww/ActualVim
e9a1c74411748a8e68c7436a62cea846f25411d7
[ "MIT" ]
113
2017-03-27T14:13:55.000Z
2020-06-21T00:40:21.000Z
lib/neovim/msgpack_rpc/event_loop/base.py
nicholas-zww/ActualVim
e9a1c74411748a8e68c7436a62cea846f25411d7
[ "MIT" ]
40
2017-05-29T00:37:03.000Z
2022-02-22T09:11:33.000Z
"""Common code for event loop implementations.""" import signal import threading # When signals are restored, the event loop library may reset SIGINT to SIG_DFL # which exits the program. To be able to restore the python interpreter to it's # default state, we keep a reference to the default handler default_int_handl...
39.643312
79
0.640585
127cf076f5ddcb96abb8c134a7ecf580e6db5f50
698
py
Python
base/forms/order_form.py
geek911/hospitalmanagement
32ace7a10cfbd919a39e2101ae60bf2633224788
[ "MIT" ]
null
null
null
base/forms/order_form.py
geek911/hospitalmanagement
32ace7a10cfbd919a39e2101ae60bf2633224788
[ "MIT" ]
null
null
null
base/forms/order_form.py
geek911/hospitalmanagement
32ace7a10cfbd919a39e2101ae60bf2633224788
[ "MIT" ]
null
null
null
from django.forms import ModelForm from django.forms import TextInput, NumberInput, EmailInput from base.models.order import Order class OrderForm(ModelForm): class Meta: model = Order fields = '__all__' widgets = { 'full_name': TextInput(attrs={'class': 'form-control', 'id':...
36.736842
117
0.618911
21edc83388c8bd732ef7b2dbccdfc37e4c9272b3
21,440
py
Python
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py
esouthren/tfjs
b473e3c30b7910a154158374e93cc703fb3d6ece
[ "Apache-2.0" ]
1
2021-10-10T12:44:35.000Z
2021-10-10T12:44:35.000Z
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py
orta/tfjs
ee8b2ae9d16328e63cfe5ad287cf19eb1ef2cb2f
[ "Apache-2.0" ]
49
2020-09-07T07:37:04.000Z
2022-03-02T05:33:40.000Z
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py
rriveros/Tensorflowjs
26de95605ea5b72bf6f46b11adefa0ea1ebdacb7
[ "Apache-2.0" ]
1
2021-11-05T04:33:49.000Z
2021-11-05T04:33:49.000Z
# Copyright 2018 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, s...
37.157712
80
0.646315
2ccd578390715161e9978e81775557bdc6cd2200
1,242
py
Python
docs/conf.py
gfairbro/pycounts-gf
765295490614374e2d8717745670981fc4445aa0
[ "MIT" ]
null
null
null
docs/conf.py
gfairbro/pycounts-gf
765295490614374e2d8717745670981fc4445aa0
[ "MIT" ]
null
null
null
docs/conf.py
gfairbro/pycounts-gf
765295490614374e2d8717745670981fc4445aa0
[ "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 # -- Project information ----------------------------------------------------- project...
33.567568
78
0.646538
7619923447b8f9579af81381a97c4469ed88ed1f
10,063
py
Python
examples/train_pointconv.py
Ndersam/learning3d
2483054191111420c4cefc9f4e6c9db75bcb4866
[ "MIT" ]
null
null
null
examples/train_pointconv.py
Ndersam/learning3d
2483054191111420c4cefc9f4e6c9db75bcb4866
[ "MIT" ]
null
null
null
examples/train_pointconv.py
Ndersam/learning3d
2483054191111420c4cefc9f4e6c9db75bcb4866
[ "MIT" ]
null
null
null
import argparse import os import sys import logging import numpy import numpy as np import torch import torch.utils.data import torchvision from torch.utils.data import DataLoader from tensorboardX import SummaryWriter from tqdm import tqdm # Only if the files are in example folder. BASE_DIR = os.path.dirname(os.path....
39.155642
119
0.639968
23fb6dd24d6c73465a38f0376c06b35eef330ef2
20,545
py
Python
flux_mito/model_4.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_mito/model_4.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_mito/model_4.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.115741
798
0.804089
964c24210d5ba89b8c2f858c1e866f42bccc8d9f
1,844
py
Python
setup.py
hgldarby/tablite
db083c496e8030595e73f1823e51142814994884
[ "MIT" ]
null
null
null
setup.py
hgldarby/tablite
db083c496e8030595e73f1823e51142814994884
[ "MIT" ]
null
null
null
setup.py
hgldarby/tablite
db083c496e8030595e73f1823e51142814994884
[ "MIT" ]
null
null
null
""" tablite """ build_tag = "cf5b524aa45416c38ee51aab61fa3c1e5e5f2740a126f7c7d73250c948d8b" from setuptools import setup from pathlib import Path folder = Path(__file__).parent file = "README.md" readme = folder / file assert isinstance(readme, Path) assert readme.exists(), readme with open(str(readme), encoding='utf...
30.229508
79
0.621475
007a8d06472c42b76cfe5e99c29fec355596527e
286
py
Python
COE/contents/resources/stone.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
null
null
null
COE/contents/resources/stone.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
2
2022-01-31T21:05:15.000Z
2022-01-31T21:08:11.000Z
COE/contents/resources/stone.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
1
2022-02-04T12:05:14.000Z
2022-02-04T12:05:14.000Z
from .resource import Resource from COE.contents.entity import Entity from .resource_type import ResourceType class Stone(Resource, Entity): def __init__(self, **kwargs): Resource.__init__(self, r_type=ResourceType.STONE, **kwargs) Entity.__init__(self, **kwargs)
28.6
68
0.741259
40501f16afda3b082412bce1e6e9eb9c1fdc2245
12,046
py
Python
src/psfmachine/aperture.py
SSDataLab/psfmachine
8bb5b6573cb80b0686cc361de38cdc1eec6cec68
[ "MIT" ]
14
2020-10-07T17:50:00.000Z
2022-03-18T15:23:18.000Z
src/psfmachine/aperture.py
SSDataLab/psfmachine
8bb5b6573cb80b0686cc361de38cdc1eec6cec68
[ "MIT" ]
43
2020-11-05T23:00:21.000Z
2022-03-29T18:32:46.000Z
src/psfmachine/aperture.py
SSDataLab/psfmachine
8bb5b6573cb80b0686cc361de38cdc1eec6cec68
[ "MIT" ]
2
2020-10-26T21:01:29.000Z
2020-11-05T02:09:41.000Z
""" Collection of aperture utils lifted from [Kepler-Apertures](https://github.com/jorgemarpa/kepler-apertures) and adapted to work with PSFMachine. Some this functions inputs and operate on a `Machine` object but we move them out of `mahine.py` to keep the latter smowhow clean and short. """ import numpy as np impo...
35.119534
88
0.63822
819b9dc64118b3438434bf68ed102272f36a1d22
398
py
Python
doctorUI/scan/views.py
award28/Diabetic_Retinopathy_Detection
079a7af791f3442853577c0731c9a797433bbcda
[ "MIT" ]
2
2018-08-04T21:47:39.000Z
2019-03-23T02:56:59.000Z
doctorUI/scan/views.py
award28/Diabetic_Retinopathy_Detection
079a7af791f3442853577c0731c9a797433bbcda
[ "MIT" ]
null
null
null
doctorUI/scan/views.py
award28/Diabetic_Retinopathy_Detection
079a7af791f3442853577c0731c9a797433bbcda
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.views import View # Create your views here. class Scan(View): template_name = 'scan/index.html' def get(self, request, *args, **kwargs): return render(request, self.template_name) def post(self, request, *args, **...
30.615385
68
0.71608
0fa911d2b58d19906104dfdffc24f4da39a3aa77
11,102
py
Python
scri/asymptotic_bondi_data/__init__.py
10220/scri
87fc7506038a53432b0a0749d6947aaac0d60996
[ "MIT" ]
null
null
null
scri/asymptotic_bondi_data/__init__.py
10220/scri
87fc7506038a53432b0a0749d6947aaac0d60996
[ "MIT" ]
null
null
null
scri/asymptotic_bondi_data/__init__.py
10220/scri
87fc7506038a53432b0a0749d6947aaac0d60996
[ "MIT" ]
2
2020-11-12T19:41:23.000Z
2020-12-23T19:40:57.000Z
import numpy as np from spherical_functions import LM_total_size from .. import ModesTimeSeries from .. import Inertial from .. import sigma, psi4, psi3, psi2, psi1, psi0 class AsymptoticBondiData: """Class to store asymptotic Bondi data This class stores time data, along with the corresponding values of psi...
38.020548
120
0.64601
514a880c3c23e48fe922ca3a9b6de88e40959b89
6,260
py
Python
src/oci/osub_subscription/models/product.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/osub_subscription/models/product.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/osub_subscription/models/product.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
27.699115
245
0.62524
e87f3873ed85e1d9f0bd8dbd9917354cfb98c6df
514
py
Python
v0_back/users/admin.py
japarra27/project1-wo-docker
c448aa187186c6a037bb214d5cd20082391c9b76
[ "MIT" ]
null
null
null
v0_back/users/admin.py
japarra27/project1-wo-docker
c448aa187186c6a037bb214d5cd20082391c9b76
[ "MIT" ]
null
null
null
v0_back/users/admin.py
japarra27/project1-wo-docker
c448aa187186c6a037bb214d5cd20082391c9b76
[ "MIT" ]
1
2020-08-31T18:41:39.000Z
2020-08-31T18:41:39.000Z
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from v0_back.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm add...
28.555556
83
0.747082
0da55a250b4a6239d692660deef51aa1b2097105
227
py
Python
flixed_django/flixed_django/utils.py
nilesh1168/flixed-movie-tracker
1ca1c9c74731596e386da001d393230fb86045af
[ "MIT" ]
null
null
null
flixed_django/flixed_django/utils.py
nilesh1168/flixed-movie-tracker
1ca1c9c74731596e386da001d393230fb86045af
[ "MIT" ]
null
null
null
flixed_django/flixed_django/utils.py
nilesh1168/flixed-movie-tracker
1ca1c9c74731596e386da001d393230fb86045af
[ "MIT" ]
null
null
null
from flixedREST.serializers import UserSerializer def my_jwt_response_handler(token, user=None, request=None): return { 'token': token, 'user': UserSerializer(user, context={'request': request}).data }
28.375
71
0.696035
6e6bb934fa54aa9b6f9748f48f78131f586b3a9f
1,079
py
Python
kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1alpha1_certificate_signing_request_condition.py
amanagarwal33/python
e31693557f75950805fb4dc5af4cb7434a470e26
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.5.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
25.093023
132
0.768304
38d9f4ff3acb4af90d7f4987a1d2bc920a932a62
1,252
py
Python
src/leetcodepython/top100likedquestions/merge_nums.py
zhangyu345293721/leetcode
1aa5bcb984fd250b54dcfe6da4be3c1c67d14162
[ "MIT" ]
90
2018-12-25T06:01:30.000Z
2022-01-03T14:01:26.000Z
src/leetcodepython/top100likedquestions/merge_nums.py
zhangyu345293721/leetcode
1aa5bcb984fd250b54dcfe6da4be3c1c67d14162
[ "MIT" ]
1
2020-08-27T09:53:49.000Z
2020-08-28T08:57:49.000Z
src/leetcodepython/top100likedquestions/merge_nums.py
zhangyu345293721/leetcode
1aa5bcb984fd250b54dcfe6da4be3c1c67d14162
[ "MIT" ]
27
2019-01-02T01:41:32.000Z
2022-01-03T14:01:30.000Z
# encoding='utf-8' ''' 合并数组 author:zhangyu date:2020.1.9 题目: 两个有序数组进行合并为一个数组,其中保证数组中没有重复元素 如: nums1=[1,2,3,4] nums2=[4,5,6,7,8] 合并之后为:result=[1,2,3,,4,5,6,7,8] ''' from typing import List class Solution: def merge(self, nums1: List[int], nums2: List[int]) -> List[int]: ''' ...
22.357143
69
0.454473
8f8cf3639086c3c4a8e167d65fcaf238f51af2c8
1,660
py
Python
obswsrc/requests.py
avmaint/obs-ws-rc
8ff2c36bdd2ac1636feabb356864b9ebb20e9b30
[ "MIT" ]
38
2017-08-07T04:30:28.000Z
2021-11-03T08:30:47.000Z
obswsrc/requests.py
avmaint/obs-ws-rc
8ff2c36bdd2ac1636feabb356864b9ebb20e9b30
[ "MIT" ]
10
2017-09-20T11:21:41.000Z
2021-09-27T22:56:22.000Z
obswsrc/requests.py
avmaint/obs-ws-rc
8ff2c36bdd2ac1636feabb356864b9ebb20e9b30
[ "MIT" ]
13
2017-10-28T20:41:39.000Z
2020-12-28T02:51:03.000Z
""" This module holds dynamically generated classes. For more info see protocol.py and protocol.json. """ # ============================================================================= # >> IMPORTS # ============================================================================= # Python from enum import Enum # obs-ws...
26.349206
79
0.51988
ad7b427f793f509bdb8b05cd6e9c647c3ee5f3a3
6,966
py
Python
tests/cli/commands/test_webserver_command.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
2
2021-07-30T17:35:51.000Z
2021-08-03T13:50:57.000Z
tests/cli/commands/test_webserver_command.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
8
2021-02-08T20:40:47.000Z
2022-03-29T22:27:53.000Z
tests/cli/commands/test_webserver_command.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
1
2021-05-12T11:37:59.000Z
2021-05-12T11:37:59.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.355932
109
0.682314
e4c4e8e654d44b30bf71104be01c9eb95d3d8102
2,779
py
Python
computer_version/object_detection/main.py
afterloe/opencv-practice
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
[ "MIT" ]
5
2020-03-13T07:34:30.000Z
2021-10-01T03:03:05.000Z
computer_version/object_detection/main.py
afterloe/Opencv-practice
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
[ "MIT" ]
null
null
null
computer_version/object_detection/main.py
afterloe/Opencv-practice
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
[ "MIT" ]
1
2020-03-01T12:35:02.000Z
2020-03-01T12:35:02.000Z
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import argparse from imutils.video import VideoStream, FPS import imutils import numpy as np import time import cv2 as cv import logging __version__ = "1.0.0" logging.basicConfig(level=logging.INFO, format='[%(asctime)8s][%(filename)s][%...
39.140845
103
0.558114
bb9471714a07f5fabab30ca3ddff74d892c06a20
6,097
py
Python
chs_s111/ascii_time_series.py
osgirl/chs-s111
a88a3de20868d0a0884498fffe3c1a1ea106bd12
[ "BSD-2-Clause" ]
null
null
null
chs_s111/ascii_time_series.py
osgirl/chs-s111
a88a3de20868d0a0884498fffe3c1a1ea106bd12
[ "BSD-2-Clause" ]
null
null
null
chs_s111/ascii_time_series.py
osgirl/chs-s111
a88a3de20868d0a0884498fffe3c1a1ea106bd12
[ "BSD-2-Clause" ]
null
null
null
#****************************************************************************** # #****************************************************************************** from datetime import datetime from datetime import timedelta import pytz #****************************************************************************** clas...
38.10625
132
0.478596
efd58823ec21719e7465de218b174308d5f4e384
345
py
Python
core/floor/__init__.py
BlenderCN-Org/building_tool
9c101dcf2a0df884e19ade87d8724eaa5ed7842b
[ "MIT" ]
1
2019-05-25T07:34:15.000Z
2019-05-25T07:34:15.000Z
core/floor/__init__.py
BlenderCN-Org/building_tool
9c101dcf2a0df884e19ade87d8724eaa5ed7842b
[ "MIT" ]
null
null
null
core/floor/__init__.py
BlenderCN-Org/building_tool
9c101dcf2a0df884e19ade87d8724eaa5ed7842b
[ "MIT" ]
1
2019-07-05T05:41:13.000Z
2019-07-05T05:41:13.000Z
import bpy from .floor import Floor from .floor_ops import BTOOLS_OT_add_floors from .floor_props import FloorProperty classes = (FloorProperty, BTOOLS_OT_add_floors) def register_floor(): for cls in classes: bpy.utils.register_class(cls) def unregister_floor(): for cls in classes: bpy.uti...
19.166667
47
0.753623
98a9a115152570f8df97deafacecd588f122f0d6
3,550
py
Python
bindings/python/ensmallen/datasets/string/lactobacillusspwkb10.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/lactobacillusspwkb10.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/lactobacillusspwkb10.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Lactobacillus sp. wkB10. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protei...
32.87037
223
0.676056
19cf78330b5b673652db2e5967c6a6998208890e
5,803
py
Python
scripts/synapse_pos_specificity.py
cabrittin/volumetric_analysis
82004378abae963ef02858bf4711786dad76f133
[ "MIT" ]
null
null
null
scripts/synapse_pos_specificity.py
cabrittin/volumetric_analysis
82004378abae963ef02858bf4711786dad76f133
[ "MIT" ]
null
null
null
scripts/synapse_pos_specificity.py
cabrittin/volumetric_analysis
82004378abae963ef02858bf4711786dad76f133
[ "MIT" ]
null
null
null
""" synaptic_specificity.py Distribution of differences between homologous mean synapse positions. Author: Christopher Brittin Created: 07 February 2018 """ import sys sys.path.append(r'./volumetric_analysis/') import matplotlib.pyplot as plt import matplotlib as mpl import db from connectome.load import from_db i...
31.367568
77
0.58487
ef10c8d719f83011e9d443407de82ed11e97b7dd
799
py
Python
keras_addon/activations.py
fedorovarthur/Keras-NALU-Layer
1c8b3f63c07b954384d54061fe9f38a2ca4d8998
[ "MIT" ]
null
null
null
keras_addon/activations.py
fedorovarthur/Keras-NALU-Layer
1c8b3f63c07b954384d54061fe9f38a2ca4d8998
[ "MIT" ]
null
null
null
keras_addon/activations.py
fedorovarthur/Keras-NALU-Layer
1c8b3f63c07b954384d54061fe9f38a2ca4d8998
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from math import pi, sqrt import keras.backend as K def gelu(x, approximation='tanh'): assert approximation in ('sigmoid', 'tanh'), \ 'Approximation method must be chosen from [tanh, sigmoid]' ...
21.026316
73
0.612015
4741132de6d64bdd5d37261092c9dc02d60be71f
397
py
Python
database.py
tugberkozkara/songs-i-like-api
7581e63cb016cc749d5a5ac85f05bd4eca51d994
[ "MIT" ]
null
null
null
database.py
tugberkozkara/songs-i-like-api
7581e63cb016cc749d5a5ac85f05bd4eca51d994
[ "MIT" ]
null
null
null
database.py
tugberkozkara/songs-i-like-api
7581e63cb016cc749d5a5ac85f05bd4eca51d994
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import os # Local Postgres #engine = create_engine("postgresql://postgres:postgres@localhost/songs_db", # echo=True #) # Heroku Postgres engine = create_engine(os.environ['DATABASE...
20.894737
76
0.798489
4c7b27152a6725c24fb8eb85c73ba3da1a2e204c
2,265
py
Python
tests/support/mock_server.py
nelsond/sirah-matisse-commander
78699878b2acd098a18bfe8029aa33c4b1b12fed
[ "MIT" ]
1
2021-11-02T15:10:49.000Z
2021-11-02T15:10:49.000Z
tests/support/mock_server.py
nelsond/sirah-matisse-commander
78699878b2acd098a18bfe8029aa33c4b1b12fed
[ "MIT" ]
2
2021-11-02T15:10:26.000Z
2021-11-02T15:37:49.000Z
tests/support/mock_server.py
nelsond/sirah-matisse-commander
78699878b2acd098a18bfe8029aa33c4b1b12fed
[ "MIT" ]
null
null
null
import socket import threading import time class MockServer: """ Simple TCP mock server running in a separate thread for testing network connections to remote. Arguments: port (int, optional): Listening port, 30000 by default. """ def __init__(self, port: int = 30000): self._p...
25.166667
75
0.550552
ba2a5e341af77e37663f0e96c04bb953c0ea0f81
7,784
py
Python
spinup/utils/test_policy_action_plain.py
ColorlessBoy/spinningup
2d6cf818e0f370dcbbc43ebdcde483a129d0dd9c
[ "MIT" ]
null
null
null
spinup/utils/test_policy_action_plain.py
ColorlessBoy/spinningup
2d6cf818e0f370dcbbc43ebdcde483a129d0dd9c
[ "MIT" ]
null
null
null
spinup/utils/test_policy_action_plain.py
ColorlessBoy/spinningup
2d6cf818e0f370dcbbc43ebdcde483a129d0dd9c
[ "MIT" ]
null
null
null
import time import joblib import os import os.path as osp import tensorflow as tf import torch from spinup import EpochLogger from spinup.utils.logx import restore_tf_graph import numpy as np import matplotlib.pyplot as plt from matplotlib import animation from mpl_toolkits.mplot3d import Axes3D device = torch.device...
35.870968
109
0.595838
d3035c6291155a7d5bff0879bc745075e5b44201
17,596
py
Python
UNITER/train_nlvr2.py
dinhanhx/hateful_memes_classification
1be84b6489512f313b4272cc8644dc354e84f051
[ "MIT" ]
1
2021-09-24T03:22:35.000Z
2021-09-24T03:22:35.000Z
train_nlvr2.py
hexiang-hu/UNITER
f2582bc2532b58f95a07973f3112b4876ed3de3e
[ "MIT" ]
null
null
null
train_nlvr2.py
hexiang-hu/UNITER
f2582bc2532b58f95a07973f3112b4876ed3de3e
[ "MIT" ]
null
null
null
""" Copyright (c) Microsoft Corporation. Licensed under the MIT license. UNITER finetuning for NLVR2 """ import argparse import os from os.path import exists, join from time import time import torch from torch.nn import functional as F from torch.nn.utils import clip_grad_norm_ from torch.utils.data import DataLoader...
42.708738
79
0.558479
6aea56851a7c9a89cd4b7526325ec47769ed1544
2,781
py
Python
sqlalchemy_continuum/operation.py
nikola-kocic/sqlalchemy-continuum
45b8ada3162435670dbe844b3d630823fa50f6fc
[ "BSD-3-Clause" ]
1
2015-04-25T18:42:22.000Z
2015-04-25T18:42:22.000Z
sqlalchemy_continuum/operation.py
nikola-kocic/sqlalchemy-continuum
45b8ada3162435670dbe844b3d630823fa50f6fc
[ "BSD-3-Clause" ]
null
null
null
sqlalchemy_continuum/operation.py
nikola-kocic/sqlalchemy-continuum
45b8ada3162435670dbe844b3d630823fa50f6fc
[ "BSD-3-Clause" ]
null
null
null
from copy import copy try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict import six import sqlalchemy as sa from sqlalchemy_utils import identity class Operation(object): INSERT = 0 UPDATE = 1 DELETE = 2 def __init__(self, target, type): ...
27.264706
78
0.636102
e04451c561610a9a456a8bea1c72ed06a4e9f0f0
457
py
Python
OpenCV/1.1.py
Nivedya-27/Autumn-of-Automation
2f645b58d035d6277f7ee0ff77814be812815f6d
[ "MIT" ]
null
null
null
OpenCV/1.1.py
Nivedya-27/Autumn-of-Automation
2f645b58d035d6277f7ee0ff77814be812815f6d
[ "MIT" ]
null
null
null
OpenCV/1.1.py
Nivedya-27/Autumn-of-Automation
2f645b58d035d6277f7ee0ff77814be812815f6d
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np import sys import os img=cv.imread('test.png') if img is None: sys.exit('could not read the image; check directory') grey=cv.cvtColor(img,cv.COLOR_BGR2GRAY) ret,bw=cv.threshold(grey,127,255,cv.THRESH_BINARY) images=[grey,bw] titles=['grayscale','black and white'] os.makedirs('bw_gr...
26.882353
67
0.730853