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
cbe6a49cfbcddcf0f1360867b73aef43e61a651e
487
py
Python
tests/demoproject/demo/sample/urls.py
roman-karpovich/etools-validator
e5050a675d506f3d18a4703e8b73425d93919f0c
[ "Apache-2.0" ]
null
null
null
tests/demoproject/demo/sample/urls.py
roman-karpovich/etools-validator
e5050a675d506f3d18a4703e8b73425d93919f0c
[ "Apache-2.0" ]
null
null
null
tests/demoproject/demo/sample/urls.py
roman-karpovich/etools-validator
e5050a675d506f3d18a4703e8b73425d93919f0c
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from .views import DemoCreateView, DemoUpdateNonSerializedView, DemoUpdateView app_name = "sample" urlpatterns = ( url(r'^create/$', view=DemoCreateView.as_view(), name='create'), url( r'^update/(?P<pk>\d+)/$', view=DemoUpdateView.as_view(), name='upda...
24.35
78
0.62423
68083934a20c88153061cf67729f6e5ae836bc8c
20,510
py
Python
cms/apps/pages/tests/test_models.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
13
2015-03-13T21:32:16.000Z
2020-08-07T08:09:02.000Z
cms/apps/pages/tests/test_models.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
131
2015-04-04T11:27:14.000Z
2020-10-16T13:39:16.000Z
cms/apps/pages/tests/test_models.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
16
2015-06-05T12:56:28.000Z
2021-01-06T15:15:53.000Z
'''Tests for the pages app.''' from datetime import timedelta from django.contrib.contenttypes.models import ContentType from django.core.management import call_command from django.db import models from django.test import TestCase from django.utils.timezone import now from reversion import create_revision from watson ...
40.775348
89
0.595027
0ee8d852f5df28381578238f6269c0fabd266e10
44
py
Python
src/thenewboston/utils/exceptions.py
achalpatel/thenewboston-python
4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9
[ "MIT" ]
122
2020-07-12T23:08:49.000Z
2021-12-18T16:14:10.000Z
src/thenewboston/utils/exceptions.py
achalpatel/thenewboston-python
4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9
[ "MIT" ]
47
2020-07-15T02:18:09.000Z
2021-09-22T19:51:59.000Z
src/thenewboston/utils/exceptions.py
achalpatel/thenewboston-python
4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9
[ "MIT" ]
52
2020-07-13T10:49:52.000Z
2021-10-30T03:34:55.000Z
class NetworkException(Exception): pass
14.666667
34
0.772727
2ed242d7fd9a6986808747e038f01b474fdf650f
1,053
py
Python
the-simple-graphql-service/python/setup.py
mttfarmer/serverless
e7b28421708cd4643ce61d28940357c3664ed2a8
[ "MIT" ]
1,627
2020-01-12T10:35:06.000Z
2022-03-31T13:12:51.000Z
the-simple-graphql-service/python/setup.py
mttfarmer/serverless
e7b28421708cd4643ce61d28940357c3664ed2a8
[ "MIT" ]
58
2020-02-09T06:57:35.000Z
2022-02-26T23:25:10.000Z
the-simple-graphql-service/python/setup.py
mttfarmer/serverless
e7b28421708cd4643ce61d28940357c3664ed2a8
[ "MIT" ]
240
2020-01-19T09:09:44.000Z
2022-03-30T19:12:17.000Z
import setuptools with open("README.md") as fp: long_description = fp.read() setuptools.setup( name="the_simple_graphql_service", version="0.0.1", description="An empty CDK Python app", long_description=long_description, long_description_content_type="text/markdown", author="author", ...
23.4
74
0.62773
9afbabbfd39a01e73de45b97fa2f81a6711e3ea4
12,340
py
Python
kubernetes/client/models/v1beta1_stateful_set_status.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
3
2019-05-19T05:05:37.000Z
2020-03-20T04:56:20.000Z
kubernetes/client/models/v1beta1_stateful_set_status.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_stateful_set_status.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "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.13.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
35.056818
221
0.662399
37c2c7b16406620f524488084218c718b5573277
41
py
Python
03Aula09-09/ex05.py
danicon/Curso-IPE
3b9e2a9d187492d6561a512363bd06156286df6a
[ "MIT" ]
2
2020-09-09T12:50:57.000Z
2020-09-09T12:56:02.000Z
03Aula09-09/ex05.py
danicon/Curso-IPE
3b9e2a9d187492d6561a512363bd06156286df6a
[ "MIT" ]
null
null
null
03Aula09-09/ex05.py
danicon/Curso-IPE
3b9e2a9d187492d6561a512363bd06156286df6a
[ "MIT" ]
null
null
null
c=0 while c <= 100: print(c) c+=2
10.25
15
0.463415
cd1e315f835702b48458327613fa47204be4eda3
31
py
Python
fenfen.py
chenfenfen/test
30f3dadb6c968de56f320dbbde73621269892429
[ "Apache-2.0" ]
null
null
null
fenfen.py
chenfenfen/test
30f3dadb6c968de56f320dbbde73621269892429
[ "Apache-2.0" ]
null
null
null
fenfen.py
chenfenfen/test
30f3dadb6c968de56f320dbbde73621269892429
[ "Apache-2.0" ]
null
null
null
print "hello fenfen.comne on!"
15.5
30
0.741935
1263317970bb680fa2c5c4637b527640302db975
6,897
py
Python
kadet/__init__.py
kapicorp/kadet
aca4d155b6e6e58e34fd363995dc582cfe183b3c
[ "Apache-2.0" ]
11
2021-02-11T21:23:13.000Z
2022-02-04T05:19:26.000Z
kadet/__init__.py
kapicorp/kadet
aca4d155b6e6e58e34fd363995dc582cfe183b3c
[ "Apache-2.0" ]
11
2021-02-11T21:26:11.000Z
2021-12-06T11:12:05.000Z
kadet/__init__.py
kapicorp/kadet
aca4d155b6e6e58e34fd363995dc582cfe183b3c
[ "Apache-2.0" ]
3
2021-02-25T09:42:04.000Z
2021-06-06T20:15:55.000Z
# SPDX-FileCopyrightText: 2021 The Kadet Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import hashlib import json from collections import defaultdict import yaml from typeguard import check_type class Dict(defaultdict): """Dict.""" def __getattr__(self, name): ""...
30.117904
82
0.54531
867141fb2cb34d11363e191eab72431238116590
1,229
py
Python
src/__init__.py
alphagov-mirror/tagging-suggester
1d5a6d54cefbf03efb32f67ae779eedd2f3d0071
[ "FTL" ]
2
2019-07-18T10:59:11.000Z
2020-01-01T16:19:30.000Z
src/__init__.py
alphagov-mirror/tagging-suggester
1d5a6d54cefbf03efb32f67ae779eedd2f3d0071
[ "FTL" ]
1
2019-11-07T12:36:59.000Z
2019-11-07T12:36:59.000Z
src/__init__.py
alphagov-mirror/tagging-suggester
1d5a6d54cefbf03efb32f67ae779eedd2f3d0071
[ "FTL" ]
3
2019-08-29T14:02:20.000Z
2021-04-10T20:25:48.000Z
from flask import Flask, request, jsonify, g from src.models.tagging_suggester import * import nltk from datetime import datetime import src.utils.app_config as app_config from models import Request from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker app = Flask(__name__) tagging_suggester = ...
27.931818
84
0.724166
2852b402b9bc402d90adf3313050dd0237197553
2,899
py
Python
accounts/migrations/0009_auto_20190809_1659.py
vftens/Django-CRM
fd02e42b2e9525abcc0e14ee924e5bdf569117bb
[ "MIT" ]
null
null
null
accounts/migrations/0009_auto_20190809_1659.py
vftens/Django-CRM
fd02e42b2e9525abcc0e14ee924e5bdf569117bb
[ "MIT" ]
null
null
null
accounts/migrations/0009_auto_20190809_1659.py
vftens/Django-CRM
fd02e42b2e9525abcc0e14ee924e5bdf569117bb
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-08-09 11:29 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("contacts", "0003_merge_20190214_1427"), ("accounts", "0008_account_assigned_to"), ]...
32.211111
87
0.481545
2cdc0510a1034e518bffdc0424f5a2fb6c37cb6d
2,977
py
Python
core/SymbolTable.py
BhanuPrakashNani/jackCompiler
20fd60546ab97b34cc95aa81c6f6eea2b30c2832
[ "MIT" ]
null
null
null
core/SymbolTable.py
BhanuPrakashNani/jackCompiler
20fd60546ab97b34cc95aa81c6f6eea2b30c2832
[ "MIT" ]
null
null
null
core/SymbolTable.py
BhanuPrakashNani/jackCompiler
20fd60546ab97b34cc95aa81c6f6eea2b30c2832
[ "MIT" ]
3
2019-10-07T19:53:05.000Z
2021-10-04T09:51:05.000Z
""" SYMBOL TABLE""" class SymbolTable: def __init__(self): self.global_scope = {} self.local_scope = {} self.current_scope = self.global_scope self.arg_counter = 0 self.var_counter = 0 self.static_counter = 0 self.field_counter = 0 self.if_counter ...
27.82243
86
0.562983
921b3b83e45b8dde4efb169af42fc09e0c6cce3f
72,990
py
Python
openstack_dashboard/api/neutron.py
prankul88/horizon
07faca470166341f9010f66cee8195be84435cea
[ "Apache-2.0" ]
1
2018-10-09T05:54:57.000Z
2018-10-09T05:54:57.000Z
openstack_dashboard/api/neutron.py
prankul88/horizon
07faca470166341f9010f66cee8195be84435cea
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/neutron.py
prankul88/horizon
07faca470166341f9010f66cee8195be84435cea
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Cisco Systems, Inc. # Copyright 2012 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use...
36.73377
79
0.643636
9194376178f47e389f359ab76519b33f1556d5c1
731
py
Python
semana06/funciones-04.py
haroldtr/python-p32021
774552481a8f941b193bc9f1f4af93cd37786be6
[ "MIT" ]
1
2021-09-30T15:00:26.000Z
2021-09-30T15:00:26.000Z
semana06/funciones-04.py
haroldtr/python-p32021
774552481a8f941b193bc9f1f4af93cd37786be6
[ "MIT" ]
null
null
null
semana06/funciones-04.py
haroldtr/python-p32021
774552481a8f941b193bc9f1f4af93cd37786be6
[ "MIT" ]
null
null
null
# recibiendo varios parametros # pasando argumentos a funcion print def datosEstudiantes(matricula, nombre, apellido, genero, edad, carrera): print('La matricula del estudiante es: \t %s' % matricula) print('El nombre del estudiante es: \t %s' % nombre) print('El apellido del estudiante es: \t %s' % apelli...
40.611111
79
0.682627
8b8a2f06b49828e269824fe6cc8c018fdfdb59ad
37,273
py
Python
vta/python/vta/ir_pass.py
Orion34C/incubator-tvm
27a02844cb52e883a4a66da68a527590d76f7d01
[ "Apache-2.0" ]
1
2021-03-20T02:03:00.000Z
2021-03-20T02:03:00.000Z
vta/python/vta/ir_pass.py
Orion34C/incubator-tvm
27a02844cb52e883a4a66da68a527590d76f7d01
[ "Apache-2.0" ]
null
null
null
vta/python/vta/ir_pass.py
Orion34C/incubator-tvm
27a02844cb52e883a4a66da68a527590d76f7d01
[ "Apache-2.0" ]
null
null
null
# 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...
37.573589
99
0.526655
01473ae689b7ca5a3509a4b7c982b3c3a5588470
732
py
Python
cride/users/admin.py
eocode/Rider-App
9629f76f97c605a3f40486a4d93707afbaf22563
[ "MIT" ]
9
2020-05-10T05:56:40.000Z
2022-01-24T08:49:27.000Z
cride/users/admin.py
eocode/Rider-App
9629f76f97c605a3f40486a4d93707afbaf22563
[ "MIT" ]
6
2020-04-10T20:26:38.000Z
2021-06-10T20:02:11.000Z
cride/users/admin.py
eocode/Rider-App
9629f76f97c605a3f40486a4d93707afbaf22563
[ "MIT" ]
5
2020-04-24T11:38:25.000Z
2021-01-02T09:41:04.000Z
"""User models admin""" # Django from django.contrib import admin from django.contrib.auth.admin import UserAdmin # Models from cride.users.models import User, Profile class CustomUserAdmin(UserAdmin): """User model admin""" list_display = ('email', 'username', 'first_name', 'last_name', 'is_staff', 'is_cli...
27.111111
92
0.715847
46f9e2a0900834092205379ea19ea8a1f8ce58ca
44,516
py
Python
gluon/gluoncv2/model_provider.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
null
null
null
gluon/gluoncv2/model_provider.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
null
null
null
gluon/gluoncv2/model_provider.py
oliviaweng/imgclsmob
80fffbb46f986614b162c725b21f3d208597ac77
[ "MIT" ]
null
null
null
from .models.alexnet import * from .models.zfnet import * from .models.vgg import * from .models.bninception import * from .models.resnet import * from .models.preresnet import * from .models.resnext import * from .models.seresnet import * from .models.sepreresnet import * from .models.seresnext import * from .models.s...
37.408403
95
0.769678
069494ee6eb57825203331b3f8750153e4ece365
2,575
py
Python
babeval/agreement_across_RC/score.py
vilavivida/Babeval
04d3d13635b352479779bb64d79cf4a7febe098c
[ "MIT" ]
1
2020-04-30T21:54:32.000Z
2020-04-30T21:54:32.000Z
babeval/agreement_across_RC/score.py
vilavivida/Babeval
04d3d13635b352479779bb64d79cf4a7febe098c
[ "MIT" ]
null
null
null
babeval/agreement_across_RC/score.py
vilavivida/Babeval
04d3d13635b352479779bb64d79cf4a7febe098c
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List copulas_singular = ["is", "'s", "was"] copulas_plural = ["are", "'re", "were"] templates = [ 'object-relative', 'subject-relative', ] prediction_categories = ( "non-start\nword-piece\nor\n[UNK]", "correct\ncopula", "false\ncopula", "other", ) ...
30.294118
115
0.655534
cc598a9851b132640d3b946cb3e811023381c744
3,080
py
Python
homeassistant/components/traccar/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
1
2020-12-18T12:23:04.000Z
2020-12-18T12:23:04.000Z
homeassistant/components/traccar/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
homeassistant/components/traccar/__init__.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Support for Traccar.""" from aiohttp import web import voluptuous as vol from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER from homeassistant.const import ( ATTR_ID, CONF_WEBHOOK_ID, HTTP_OK, HTTP_UNPROCESSABLE_ENTITY, ) from homeassistant.helpers import config_entry_flow ...
27.747748
87
0.705844
4fb886dbab49f960ed432e0530fa691be8612534
57,549
py
Python
temp/slurm_script_disordered.py
cabb99/CoarseGrainedActin
037dfddec2b985e529620e1b83d1cc48bd930b93
[ "MIT" ]
1
2021-03-02T22:45:04.000Z
2021-03-02T22:45:04.000Z
temp/slurm_script_disordered.py
cabb99/CoarseGrainedActin
037dfddec2b985e529620e1b83d1cc48bd930b93
[ "MIT" ]
1
2021-09-17T18:21:39.000Z
2021-09-17T18:21:39.000Z
temp/slurm_script_disordered.py
cabb99/CoarseGrainedActin
037dfddec2b985e529620e1b83d1cc48bd930b93
[ "MIT" ]
null
null
null
#!/home/cab22/miniconda3/bin/python #SBATCH --account=commons #SBATCH --export=All #SBATCH --partition=commons #SBATCH --time=24:00:00 #SBATCH --ntasks=1 #SBATCH --threads-per-core=1 #SBATCH --cpus-per-task=2 #SBATCH --gres=gpu:1 #SBATCH --time=24:00:00 #SBATCH --export=ALL #SBATCH --array=0-15 #SBATCH --mem=16G impo...
43.302483
306
0.52451
c6fd86b37c60429ab9c00cbfaf2c978192a8bd7e
416
py
Python
backend/fai_rest_todo/wsgi.py
vanessa/fai-rest-todo
c0f564a7dad71a3ad3356d561650437a86d52cd4
[ "MIT" ]
2
2020-10-01T14:55:04.000Z
2021-08-14T05:38:08.000Z
backend/fai_rest_todo/wsgi.py
vanessa/fai-rest-todo
c0f564a7dad71a3ad3356d561650437a86d52cd4
[ "MIT" ]
11
2020-02-12T18:47:26.000Z
2022-02-26T22:52:21.000Z
backend/fai_rest_todo/wsgi.py
vanessa/fai-rest-todo
c0f564a7dad71a3ad3356d561650437a86d52cd4
[ "MIT" ]
null
null
null
""" WSGI config for fai_rest_todo 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/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
23.111111
84
0.793269
f5bf707793a783a272ff1953c8262bad98369208
3,007
py
Python
trunk/bin/agntestheader.py
svalenti/agnkey
d44831a8ae72de0b2692da047994f67545185503
[ "MIT" ]
null
null
null
trunk/bin/agntestheader.py
svalenti/agnkey
d44831a8ae72de0b2692da047994f67545185503
[ "MIT" ]
null
null
null
trunk/bin/agntestheader.py
svalenti/agnkey
d44831a8ae72de0b2692da047994f67545185503
[ "MIT" ]
null
null
null
#!/usr/bin/env python import agnkey import os,glob,shutil,sys if len(sys.argv)<=1: listfits=glob.glob('*fits') for img in listfits: print img img=raw_input('Which image do you want to test ['+str(listfits[0])+'] ? ') if not img: img=listfits[0] else: img=sys.argv[1] hdr=agnkey.util...
40.635135
118
0.567343
2403dd54c5ead196478b7e7b045fdd2f8232e8df
1,427
py
Python
BluePrint/apps/forms.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
BluePrint/apps/forms.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
BluePrint/apps/forms.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask.ext.wtf import Form from wtforms import StringField, PasswordField from wtforms import validators from wtforms.fields.html5 import EmailField class JoinForm(Form): email = EmailField( u'이메일', [validators.data_required(u'이메일을 입력하시기 바랍니다.'), validators.Email(u'이메일...
30.361702
92
0.629993
65d57a58c273f9c8f2295254e67148619aa7c15e
3,806
py
Python
argo/workflows/client/models/v1alpha1_metrics.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/v1alpha1_metrics.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/v1alpha1_metrics.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: v3.0.4 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 ...
30.693548
134
0.599842
57f53479b87409e1dad8be51f5ac33511aae7590
225
py
Python
modules/mixers/vdn.py
gingkg/pymarl
b5a72b3ab6c89b4a492f5853c02c1ce3f9189ea4
[ "MIT" ]
3
2021-04-11T07:34:11.000Z
2022-03-23T08:43:37.000Z
modules/mixers/vdn.py
gingkg/pymarl
b5a72b3ab6c89b4a492f5853c02c1ce3f9189ea4
[ "MIT" ]
null
null
null
modules/mixers/vdn.py
gingkg/pymarl
b5a72b3ab6c89b4a492f5853c02c1ce3f9189ea4
[ "MIT" ]
1
2021-05-28T11:26:20.000Z
2021-05-28T11:26:20.000Z
import torch import torch.nn as nn class VDNMixer(nn.Module): def __init__(self): super(VDNMixer, self).__init__() def forward(self, agent_qs, batch): return torch.sum(agent_qs, dim=2, keepdim=True)
22.5
55
0.68
a921b681dec82a3adbc461fbf329fd0f05113ec1
20,375
py
Python
util.py
siralbert/tdapp
d8829d10c975c106f7cfd997f1bc729056cef16e
[ "MIT" ]
null
null
null
util.py
siralbert/tdapp
d8829d10c975c106f7cfd997f1bc729056cef16e
[ "MIT" ]
null
null
null
util.py
siralbert/tdapp
d8829d10c975c106f7cfd997f1bc729056cef16e
[ "MIT" ]
1
2021-06-21T16:58:44.000Z
2021-06-21T16:58:44.000Z
"""Utilities.""" import asyncio import logging import math import signal import sys import time from dataclasses import fields, is_dataclass from datetime import date, datetime, time as time_, timedelta, timezone from typing import AsyncIterator, Awaitable, Callable, Iterator, List, Union import eventkit as ev globa...
31.442901
114
0.604368
9e0d109d9ad635cadba7a8c46b1379e6bebb48ff
3,432
py
Python
100DaysofX/01-Code/003_Python_Init/003_session_init.py
tobias-fyi/challenges
4b4d2a8c5e24a51e33d78ab4191ebb843b788aca
[ "MIT" ]
null
null
null
100DaysofX/01-Code/003_Python_Init/003_session_init.py
tobias-fyi/challenges
4b4d2a8c5e24a51e33d78ab4191ebb843b788aca
[ "MIT" ]
null
null
null
100DaysofX/01-Code/003_Python_Init/003_session_init.py
tobias-fyi/challenges
4b4d2a8c5e24a51e33d78ab4191ebb843b788aca
[ "MIT" ]
null
null
null
#! /anaconda3/envs/tobias_fyi/bin/python # 100DaysofCode - Day 3 # 003_session_init.py # create directory + journal for daily session import os import sys import datetime import subprocess import time def justify_center(content, width, symbol): '''Centers string in symbol - width chars wide''' text = conte...
25.61194
72
0.681527
1ac55f62ae7027d206c0220c83d61f84286fa32a
1,800
py
Python
stock_market_insights/optimize_strategy.py
AlbertRtk/stock_market
b0f15fe90858f651e72c0520d38becbf7531b1ac
[ "MIT" ]
1
2022-03-29T12:23:46.000Z
2022-03-29T12:23:46.000Z
stock_market_insights/optimize_strategy.py
AlbertRtk/stock_market
b0f15fe90858f651e72c0520d38becbf7531b1ac
[ "MIT" ]
null
null
null
stock_market_insights/optimize_strategy.py
AlbertRtk/stock_market
b0f15fe90858f651e72c0520d38becbf7531b1ac
[ "MIT" ]
null
null
null
from simulator import Simulator from marketools import Stock, Wallet, store_data, StockQuotes from stock_index import wig20_2019, mwig40 from tqdm import tqdm from strategies import EmaVolStrategy StockQuotes.check_for_update = False store_data() # === SIMULATOR CONFIG ==============================================...
27.272727
80
0.613889
e7c744d1fec644a9c9272ce43f4177c622bc1c0f
6,515
py
Python
PathPlanning/QuinticPolynomialsPlanner/quintic_polynomials_planner.py
Gjacquenot/PythonRobotics
dc1f423b7566d3f4a13c55156bb74ca80a89398b
[ "MIT" ]
null
null
null
PathPlanning/QuinticPolynomialsPlanner/quintic_polynomials_planner.py
Gjacquenot/PythonRobotics
dc1f423b7566d3f4a13c55156bb74ca80a89398b
[ "MIT" ]
null
null
null
PathPlanning/QuinticPolynomialsPlanner/quintic_polynomials_planner.py
Gjacquenot/PythonRobotics
dc1f423b7566d3f4a13c55156bb74ca80a89398b
[ "MIT" ]
null
null
null
""" Quintic Polynomials Planner author: Atsushi Sakai (@Atsushi_twi) Ref: - [Local Path planning And Motion Control For Agv In Positioning](http://ieeexplore.ieee.org/document/637936/) """ import math import matplotlib.pyplot as plt import numpy as np # parameter MAX_T = 100.0 # maximum time to the goal [s] MI...
28.203463
110
0.494858
9502ad38ab056a6b9219a7255be650a35dab79e8
10,175
py
Python
trac/db/tests/sqlite_test.py
cboos/trac
c0d42829d719dd82fde489611344ced97597aebd
[ "BSD-3-Clause" ]
null
null
null
trac/db/tests/sqlite_test.py
cboos/trac
c0d42829d719dd82fde489611344ced97597aebd
[ "BSD-3-Clause" ]
null
null
null
trac/db/tests/sqlite_test.py
cboos/trac
c0d42829d719dd82fde489611344ced97597aebd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2018 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consi...
39.134615
79
0.577199
648d0a3816ade1cd8284f3da44ac57564a48a50a
4,223
py
Python
venv/lib/python3.6/site-packages/ansible_collections/amazon/aws/plugins/module_utils/batch.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
venv/lib/python3.6/site-packages/ansible_collections/amazon/aws/plugins/module_utils/batch.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/amazon/aws/plugins/module_utils/batch.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
# Copyright (c) 2017 Ansible Project # # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign...
39.46729
112
0.692872
35e83c9d2e9afef792beb830936df30f6ac73275
1,206
py
Python
app/recipe/serializers.py
jenn0pal/recipe-app-api
16da3a3920ef9be003f06ba7eebdb6acfd092bed
[ "MIT" ]
null
null
null
app/recipe/serializers.py
jenn0pal/recipe-app-api
16da3a3920ef9be003f06ba7eebdb6acfd092bed
[ "MIT" ]
null
null
null
app/recipe/serializers.py
jenn0pal/recipe-app-api
16da3a3920ef9be003f06ba7eebdb6acfd092bed
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingredient, Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name',) read_only_fields = ('id',) class IngredientSerializer(serialize...
25.659574
71
0.650083
f032e106a624a09bdbfa4632ea0e6c36ce47e5db
6,720
py
Python
vitrage/datasources/aodh/transformer.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
89
2015-09-30T21:42:17.000Z
2022-03-28T16:31:19.000Z
vitrage/datasources/aodh/transformer.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
4
2015-12-13T13:06:53.000Z
2016-01-03T19:51:28.000Z
vitrage/datasources/aodh/transformer.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
43
2015-11-04T15:54:27.000Z
2021-12-10T14:24:03.000Z
# Copyright 2016 - Nokia # # 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, sof...
42.264151
79
0.728869
c0e88f704b81e26063b8124733978f7c30007df0
3,299
py
Python
app/grandchallenge/algorithms/urls.py
nlessmann/grand-challenge.org
36abf6ccb40e2fc3fd3ff00e81deabd76f7e1ef8
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/algorithms/urls.py
nlessmann/grand-challenge.org
36abf6ccb40e2fc3fd3ff00e81deabd76f7e1ef8
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/algorithms/urls.py
nlessmann/grand-challenge.org
36abf6ccb40e2fc3fd3ff00e81deabd76f7e1ef8
[ "Apache-2.0" ]
null
null
null
from django.urls import path from grandchallenge.algorithms.views import ( AlgorithmAddRepo, AlgorithmCreate, AlgorithmDescriptionUpdate, AlgorithmDetail, AlgorithmExecutionSessionCreate, AlgorithmExecutionSessionDetail, AlgorithmExperimentCreate, AlgorithmImageCreate, AlgorithmImag...
28.439655
77
0.619885
0378330ba170494a79d7d67d06733d4f49f5caa9
5,870
py
Python
packages/api-server/api_server/models/rmf_api/task_state.py
mayman99/rmf-web
5670bd943567c6a866ec6345c972e6fb84d73476
[ "Apache-2.0" ]
23
2021-04-13T23:01:12.000Z
2022-03-21T02:15:24.000Z
packages/api-server/api_server/models/rmf_api/task_state.py
mayman99/rmf-web
5670bd943567c6a866ec6345c972e6fb84d73476
[ "Apache-2.0" ]
326
2021-03-10T17:32:17.000Z
2022-03-30T04:42:14.000Z
packages/api-server/api_server/models/rmf_api/task_state.py
mayman99/rmf-web
5670bd943567c6a866ec6345c972e6fb84d73476
[ "Apache-2.0" ]
13
2021-04-10T10:33:36.000Z
2022-02-22T15:39:58.000Z
# generated by datamodel-codegen: # filename: task_state.json from __future__ import annotations from enum import Enum from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, Field, conint class Cancellation(BaseModel): unix_millis_request_time: int = Field( ..., descript...
33.352273
165
0.677683
5730abc79786d8c29543e4b7e75cea203d273b71
1,636
py
Python
lib/exabgp/bgp/message/update/attribute/community/communities.py
bopopescu/exabgp_priv
25aac31f2b1166350aa40d9f48447173998246b6
[ "BSD-3-Clause" ]
2
2017-03-20T22:54:40.000Z
2021-02-24T02:05:38.000Z
lib/exabgp/bgp/message/update/attribute/community/communities.py
bopopescu/exabgp_priv
25aac31f2b1166350aa40d9f48447173998246b6
[ "BSD-3-Clause" ]
null
null
null
lib/exabgp/bgp/message/update/attribute/community/communities.py
bopopescu/exabgp_priv
25aac31f2b1166350aa40d9f48447173998246b6
[ "BSD-3-Clause" ]
1
2020-07-23T16:54:49.000Z
2020-07-23T16:54:49.000Z
# encoding: utf-8 """ community.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2015 Exa Networks. All rights reserved. """ # ============================================================== Communities (8) # http://www.iana.org/assignments/bgp-extended-communities from exabgp.bgp.message.update.attribut...
27.728814
88
0.68154
7ea2833097a9b8fc9e3ada82e219eba4609a46aa
3,283
py
Python
python/dulwich/tests/test_utils.py
ckod3/vfxpipe
f420537345a5da943fd57ae98a6d1c894ea2c1bb
[ "Unlicense" ]
63
2015-03-18T17:47:52.000Z
2022-03-07T03:26:23.000Z
python/dulwich/tests/test_utils.py
ckod3/vfxpipe
f420537345a5da943fd57ae98a6d1c894ea2c1bb
[ "Unlicense" ]
3
2015-04-06T14:13:14.000Z
2020-05-25T21:54:54.000Z
python/dulwich/tests/test_utils.py
ckod3/vfxpipe
f420537345a5da943fd57ae98a6d1c894ea2c1bb
[ "Unlicense" ]
27
2015-03-20T21:42:17.000Z
2022-01-17T10:55:26.000Z
# test_utils.py -- Tests for git test utilities. # Copyright (C) 2010 Google, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any l...
38.174419
77
0.600975
0e6c0d0a24ca79980a6be0694895cfa167d77bf0
9,740
py
Python
ambari-server/src/main/resources/stacks/ADH/1.4/services/KAFKA/package/scripts/kafka.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
5
2017-07-20T11:15:10.000Z
2020-04-16T15:42:55.000Z
ambari-server/src/main/resources/stacks/ADH/1.4/services/KAFKA/package/scripts/kafka.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
3
2017-08-04T14:02:17.000Z
2018-06-06T14:47:25.000Z
ambari-server/src/main/resources/stacks/ADH/1.4/services/KAFKA/package/scripts/kafka.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
12
2017-05-17T09:48:01.000Z
2021-08-05T19:01:25.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
40.583333
176
0.708624
58e0dabd3bc4ae1c37cbe52e9b52c29aa210ee84
899
py
Python
02_crowsnest/crowsnest.py
overtune/tiny_python_projects
b0a30a2c5b7e1e68e83597e055fa8d6ee2d9edca
[ "MIT" ]
null
null
null
02_crowsnest/crowsnest.py
overtune/tiny_python_projects
b0a30a2c5b7e1e68e83597e055fa8d6ee2d9edca
[ "MIT" ]
null
null
null
02_crowsnest/crowsnest.py
overtune/tiny_python_projects
b0a30a2c5b7e1e68e83597e055fa8d6ee2d9edca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : Johan Runesson <info@johanrunesson.se> Date : 2020-08-03 Purpose: Crow\'s Nest -- choose the correct article """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( ...
23.657895
67
0.538376
62fa3b2ca382ca60c1ae7fa2f5601921fa435cc9
3,899
py
Python
a3c.py
smartsystems4u/MORL
feab5412f1e8c9523437da00de0320a5d018b491
[ "MIT" ]
3
2021-07-07T14:51:30.000Z
2022-03-24T04:19:28.000Z
a3c.py
smartsystems4u/MORL
feab5412f1e8c9523437da00de0320a5d018b491
[ "MIT" ]
2
2021-11-22T13:59:59.000Z
2021-12-20T08:26:56.000Z
a3c.py
smartsystems4u/MORL
feab5412f1e8c9523437da00de0320a5d018b491
[ "MIT" ]
1
2020-08-27T01:22:43.000Z
2020-08-27T01:22:43.000Z
import gym import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.distributions import Categorical # import torch.multiprocessing as mp import multiprocessing as mp import time # Hyperparameters n_train_processes = 5 learning_rate = 0.0002 update_interval = 5 gamma = ...
29.992308
104
0.571172
e3878721cd28cbc9587ea975b424d76f88d7f36e
22,036
py
Python
Lab6/game.py
bellerjb/ISCS375
e50cc4547c8dfd8771c1ae04ecdcc7dbaa232698
[ "BSD-3-Clause" ]
null
null
null
Lab6/game.py
bellerjb/ISCS375
e50cc4547c8dfd8771c1ae04ecdcc7dbaa232698
[ "BSD-3-Clause" ]
null
null
null
Lab6/game.py
bellerjb/ISCS375
e50cc4547c8dfd8771c1ae04ecdcc7dbaa232698
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python from flask import Flask, redirect, render_template, request from random import randint app = Flask(__name__) app.secret_key = '23psHVWbxBYHYoeKYQp2' health = 20 power = 0 weapons = {'missile' : 2, 'burst' : 1}#, 'ion' : 3, 'flak' : 9} money = 20 location = 1 state = 0 stopped = 0 enemy = {'health' ...
50.774194
979
0.568252
a61562df8ef47edd9533d55fc44879eedf138531
61,468
py
Python
python/fbprophet/forecaster.py
otaviocals/prophet
1a0c32d12d2d0860472e56e67cf3b912695eac59
[ "MIT" ]
null
null
null
python/fbprophet/forecaster.py
otaviocals/prophet
1a0c32d12d2d0860472e56e67cf3b912695eac59
[ "MIT" ]
null
null
null
python/fbprophet/forecaster.py
otaviocals/prophet
1a0c32d12d2d0860472e56e67cf3b912695eac59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 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. from __future__ import absolute_import, division, print_function import logging from collections import OrderedDict, d...
39.176546
95
0.581099
aa06d7cb6b9a6b5a806e1bae3a677b534f642396
1,089
py
Python
dagflow/dag_repos/base_dag_repo.py
GodQ/autoflow
74954dafb9cdb16c29b9f3a7d081a3f3a12e808a
[ "Apache-2.0" ]
1
2019-06-20T15:31:13.000Z
2019-06-20T15:31:13.000Z
dagflow/dag_repos/base_dag_repo.py
GodQ/dagflow
74954dafb9cdb16c29b9f3a7d081a3f3a12e808a
[ "Apache-2.0" ]
null
null
null
dagflow/dag_repos/base_dag_repo.py
GodQ/dagflow
74954dafb9cdb16c29b9f3a7d081a3f3a12e808a
[ "Apache-2.0" ]
null
null
null
__author__ = 'godq' class BaseDagRepo: def add_dag(self, dag_name, content): raise NotImplemented def update_dag(self, dag_name, content): raise NotImplemented def delete_dag(self, dag_name): raise NotImplemented def find_dag(self, dag_name): raise NotI...
25.928571
65
0.669421
63f425174882867db2db0eb1e4aabc7676b37099
1,756
py
Python
idb/common/local_targets_manager.py
amonshiz/idb
3a5ef5c76966657c617133dd1f5d58db99d15d89
[ "MIT" ]
null
null
null
idb/common/local_targets_manager.py
amonshiz/idb
3a5ef5c76966657c617133dd1f5d58db99d15d89
[ "MIT" ]
null
null
null
idb/common/local_targets_manager.py
amonshiz/idb
3a5ef5c76966657c617133dd1f5d58db99d15d89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import json import logging import os from typing import List from idb.common.constants import IDB_LOCAL_TARGETS_FILE from idb.common.format import target_description_from_dictionary from idb.common.types import TargetDescri...
32.518519
87
0.660023
d12a54f5ed45f307006a676d11714dc97fab10d4
2,947
py
Python
src/pudl/load.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
src/pudl/load.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
src/pudl/load.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
"""Routines for loading PUDL data into various storage formats.""" import logging import sys from sqlite3 import Connection as SQLite3Connection from sqlite3 import sqlite_version from typing import Dict import pandas as pd import sqlalchemy as sa from packaging import version from sqlalchemy.exc import IntegrityErro...
34.670588
79
0.676281
3daf7e7a727265429ff2bfb6bcb22bbbeb7f241a
4,972
py
Python
tests/stub_net_date_time.py
Reveal-Energy-Services/orchid-python-api
21ed6058009f6b8793050a934238d2858a7fa0c9
[ "Apache-2.0" ]
null
null
null
tests/stub_net_date_time.py
Reveal-Energy-Services/orchid-python-api
21ed6058009f6b8793050a934238d2858a7fa0c9
[ "Apache-2.0" ]
28
2020-08-14T14:08:43.000Z
2022-02-07T14:11:38.000Z
tests/stub_net_date_time.py
Reveal-Energy-Services/orchid-python-api
21ed6058009f6b8793050a934238d2858a7fa0c9
[ "Apache-2.0" ]
1
2021-12-01T21:20:07.000Z
2021-12-01T21:20:07.000Z
# # This file is part of Orchid and related technologies. # # Copyright (c) 2017-2021 Reveal Energy Services. All Rights Reserved. # # LEGAL NOTICE: # Orchid contains trade secrets and otherwise confidential information # owned by Reveal Energy Services. Access to and use of this information is # strictly limited and...
30.317073
110
0.708166
ad8d3baa3df8a90761598c296005bc0d6258d406
1,604
py
Python
kajiki/tests/test_doctype.py
timgates42/kajiki
049b61fcde318614bf68a89a90ac3bf3225f83e0
[ "MIT" ]
null
null
null
kajiki/tests/test_doctype.py
timgates42/kajiki
049b61fcde318614bf68a89a90ac3bf3225f83e0
[ "MIT" ]
null
null
null
kajiki/tests/test_doctype.py
timgates42/kajiki
049b61fcde318614bf68a89a90ac3bf3225f83e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from unittest import TestCase, main from nine import str from kajiki.doctype import DocumentTypeDeclaration, extract_dtd XHTML1 = '<!DOCTYPE html PUBLIC "-//W3C//...
35.644444
79
0.638404
83ce475370014fe945b7e8455f531edc28acf570
82,722
py
Python
tests/p4rt/test_l3.py
pins/sonic-swss-public
4a443eaa33a3d354d99daa3c340cdcff882fc061
[ "Apache-2.0" ]
null
null
null
tests/p4rt/test_l3.py
pins/sonic-swss-public
4a443eaa33a3d354d99daa3c340cdcff882fc061
[ "Apache-2.0" ]
3
2021-11-19T21:46:50.000Z
2021-11-19T22:14:08.000Z
tests/p4rt/test_l3.py
pins/sonic-swss-public
4a443eaa33a3d354d99daa3c340cdcff882fc061
[ "Apache-2.0" ]
1
2021-11-19T19:42:07.000Z
2021-11-19T19:42:07.000Z
from swsscommon import swsscommon import time import pytest import json import util import l3 import test_vrf class TestP4RTL3(object): def _set_up(self, dvs): self._p4rt_router_intf_obj = l3.P4RtRouterInterfaceWrapper() self._p4rt_neighbor_obj = l3.P4RtNeighborWrapper() self._p4rt_nexth...
44.787223
119
0.636155
b5844ca9b70f9902052cdaaedc3bb74b7aaaaad7
16,899
py
Python
tests/parsers/winreg_plugins/msie_zones.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
tests/parsers/winreg_plugins/msie_zones.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
tests/parsers/winreg_plugins/msie_zones.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the MSIE Zone settings Windows Registry plugin.""" from __future__ import unicode_literals import unittest from plaso.formatters import winreg # pylint: disable=unused-import from plaso.parsers.winreg_plugins import msie_zones from tests import test_lib as sha...
41.217073
79
0.639209
5aa4f2cec8fa8155bc75bacd9d272dc693b445ba
6,243
py
Python
util/plt.py
liushuchun/pixel_link_py3
1582ab57fe4d8946731c90d6b719773f3d9949b5
[ "MIT" ]
9
2019-02-18T03:52:10.000Z
2021-09-03T09:22:10.000Z
util/plt.py
liushuchun/pixel_link_py3
1582ab57fe4d8946731c90d6b719773f3d9949b5
[ "MIT" ]
1
2020-06-11T10:03:59.000Z
2020-06-11T10:03:59.000Z
util/plt.py
liushuchun/pixel_link_py3
1582ab57fe4d8946731c90d6b719773f3d9949b5
[ "MIT" ]
5
2018-12-30T05:35:35.000Z
2020-03-18T07:07:05.000Z
#coding=utf-8 ''' Created on 2016-9-27 @author: dengdan ''' try: import matplotlib as mpl # mpl.use('Agg') mpl.use('TkAgg') import matplotlib.pyplot as plt import numpy as np import util except Exception as e: print(e) def hist(x, title = None, normed = False, show = True, sav...
28.248869
108
0.557424
1d2022d99d676cee00b7c31c7c25ba0b5f3d6e38
16,356
py
Python
server/athenian/api/__main__.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
9
2020-10-11T22:12:03.000Z
2022-02-26T02:16:45.000Z
server/athenian/api/__main__.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
246
2019-12-05T06:37:30.000Z
2022-03-29T10:00:07.000Z
server/athenian/api/__main__.py
athenianco/athenian-api
dd5556101a8c49703d6b0516e4268b9e8d8eda5b
[ "RSA-MD" ]
5
2019-12-04T22:38:05.000Z
2021-02-26T00:50:04.000Z
#!/usr/bin/env python3 import argparse import asyncio from datetime import datetime, timezone import getpass import logging import os from pathlib import Path import re import socket import sys from typing import Callable, Optional import aiohttp.web from aiohttp.web_runner import GracefulExit import aiomcache from co...
43.5
141
0.658902
1944d918ab68a02a2999c70614bb455e5c5a7e33
417
py
Python
mkt/webpay/forms.py
spasovski/zamboni
c7f4714029e3b2dc918ddfc2103f8e051193c14d
[ "BSD-3-Clause" ]
1
2021-07-29T00:51:09.000Z
2021-07-29T00:51:09.000Z
mkt/webpay/forms.py
imclab/olympia
35bc9c484e384bafab520ca8b5d5b0f8da5b62c0
[ "BSD-3-Clause" ]
null
null
null
mkt/webpay/forms.py
imclab/olympia
35bc9c484e384bafab520ca8b5d5b0f8da5b62c0
[ "BSD-3-Clause" ]
null
null
null
from django import forms import happyforms from mkt.api.forms import SluggableModelChoiceField from mkt.webapps.models import Webapp class PrepareForm(happyforms.Form): app = SluggableModelChoiceField(queryset=Webapp.objects.valid(), sluggable_to_field_name='app_slug') clas...
23.166667
71
0.724221
4cd3cf17e56716c9b4c4411c3722a44de8095990
3,555
py
Python
src/pyuwds3/reasoning/estimation/shape_estimator.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-08-19T06:15:14.000Z
2021-05-23T09:55:18.000Z
src/pyuwds3/reasoning/estimation/shape_estimator.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
5
2021-01-06T09:00:35.000Z
2021-01-20T13:22:19.000Z
src/pyuwds3/reasoning/estimation/shape_estimator.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-11-18T17:34:43.000Z
2021-05-23T16:14:17.000Z
import cv2 import rospy from ...types.shape.sphere import Sphere from ...types.shape.cylinder import Cylinder import numpy as np K = 3 class ShapeEstimator(object): """ """ def estimate(self, rgb_image, objects_tracks, camera): """ """ for o in objects_tracks: try: ...
39.065934
101
0.474543
a755051de50ca90af38611ed390b74ec2827fe2a
25,549
py
Python
bayarea/datasources.py
ual/bayarea
e3fdee835545434a0c7b9742636d03795c749ff8
[ "BSD-3-Clause" ]
2
2018-09-05T23:27:36.000Z
2018-09-05T23:27:38.000Z
bayarea/datasources.py
ual/bayarea
e3fdee835545434a0c7b9742636d03795c749ff8
[ "BSD-3-Clause" ]
7
2018-06-13T16:54:55.000Z
2018-08-14T00:09:40.000Z
bayarea/datasources.py
ual/bayarea
e3fdee835545434a0c7b9742636d03795c749ff8
[ "BSD-3-Clause" ]
2
2018-03-19T19:59:20.000Z
2018-08-31T23:09:51.000Z
import orca import numpy as np import pandas as pd # data documentation: https://berkeley.app.box.com/notes/282712547032 # Set data directory d = './data/' if 'data_directory' in orca.list_injectables(): d = orca.get_injectable('data_directory') @orca.injectable('store', cache=True) def hdfstore(): retu...
40.489699
81
0.590199
d7acb3960ef68d25b6962003fa4f2bf2e6e257d0
8,030
py
Python
tensorflow/g3doc/tutorials/word2vec/word2vec_basic.py
Mr-Kumar-Abhishek/tensordrift
a9ca5173b2252b0de5dd754147b275e85298e522
[ "Apache-2.0" ]
15
2015-11-17T09:34:29.000Z
2019-11-03T14:49:24.000Z
tensorflow/g3doc/tutorials/word2vec/word2vec_basic.py
usepavlov/tensorflow
21fac39c471dede0e4ae62dd60e2b0b85db48415
[ "Apache-2.0" ]
null
null
null
tensorflow/g3doc/tutorials/word2vec/word2vec_basic.py
usepavlov/tensorflow
21fac39c471dede0e4ae62dd60e2b0b85db48415
[ "Apache-2.0" ]
15
2017-04-19T02:38:07.000Z
2019-11-08T20:37:30.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow.python.platform import collections import math import numpy as np import os import random from six.moves import urllib from six.moves import xrange # pylint: disable=redefined-builtin import...
35.219298
80
0.702366
f2239367a9cda8d6375573660eec59e7483d5f37
22,343
py
Python
models_numpyro_utils.py
benmarlin/HeartStepsU01
44fb199810988fd7a02604d35ac08ee0309dec67
[ "BSD-3-Clause" ]
null
null
null
models_numpyro_utils.py
benmarlin/HeartStepsU01
44fb199810988fd7a02604d35ac08ee0309dec67
[ "BSD-3-Clause" ]
1
2021-01-06T19:17:20.000Z
2021-01-06T19:17:20.000Z
models_numpyro_utils.py
reml-lab/HeartStepsU01
c891456719e6776b9d0cbbee713e56f91cf2c112
[ "BSD-3-Clause" ]
null
null
null
import os import matplotlib as mpl if os.environ.get('DISPLAY','') == '': mpl.use('Agg') import matplotlib.pyplot as plt from textwrap import wrap import collections import timeit from datetime import datetime import sklearn.metrics as sm import pandas as pd import numpy as np import jax.numpy as jnp from jax impor...
44.596806
129
0.616345
400c98ed9a0c52aee87df76ef3bbf1b3901ec2d8
2,214
py
Python
reagent/training/__init__.py
ojaswa-privado/ReAgent
e990e66f69369cbe89212e334191180716c9bf4e
[ "BSD-3-Clause" ]
2
2021-10-31T01:05:46.000Z
2021-11-08T09:43:25.000Z
reagent/training/__init__.py
ojaswa-privado/ReAgent
e990e66f69369cbe89212e334191180716c9bf4e
[ "BSD-3-Clause" ]
null
null
null
reagent/training/__init__.py
ojaswa-privado/ReAgent
e990e66f69369cbe89212e334191180716c9bf4e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. from reagent.training.c51_trainer import C51Trainer from reagent.training.cem_trainer import CEMTrainer from reagent.training.discrete_crr_trainer import DiscreteCRRTrainer from reagent.training.dqn_trainer import DQNTrainer...
31.183099
72
0.792231
994555c5ca03f628eab43f1b4190e3385a247df0
1,780
py
Python
minipj1/main.py
huangluyang001/EC601-project
8d09bbb8987fd2004a8cae053d0d0f6f3796b827
[ "MIT" ]
1
2018-09-17T21:44:06.000Z
2018-09-17T21:44:06.000Z
minipj1/main.py
huangluyang001/EC601-project
8d09bbb8987fd2004a8cae053d0d0f6f3796b827
[ "MIT" ]
2
2018-09-19T05:08:41.000Z
2018-10-13T03:04:18.000Z
minipj1/main.py
huangluyang001/EC601-project
8d09bbb8987fd2004a8cae053d0d0f6f3796b827
[ "MIT" ]
1
2018-09-19T04:55:34.000Z
2018-09-19T04:55:34.000Z
import MakeVideo, tweet, visiondetection import argparse import logging #from socketserver import ForkingMixIn if __name__ == '__main__': #logging.basicConfig(level='INFO') parser = argparse.ArgumentParser() parser.add_argument('-r','--rate',required=False,type=float,default=1,help='number of pictures per ...
44.5
155
0.712921
3a161eafeeb4ea0ac37f1573bf90b2400626b212
912
py
Python
backend/questions/migrations/0001_initial.py
Stonedch/web-privollesru
44f5656c57457ba00cc33f770d57823edacc1ce2
[ "MIT" ]
null
null
null
backend/questions/migrations/0001_initial.py
Stonedch/web-privollesru
44f5656c57457ba00cc33f770d57823edacc1ce2
[ "MIT" ]
null
null
null
backend/questions/migrations/0001_initial.py
Stonedch/web-privollesru
44f5656c57457ba00cc33f770d57823edacc1ce2
[ "MIT" ]
null
null
null
# Generated by Django 4.0.4 on 2022-05-27 12:41 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Question', fields=[ ('id', models.BigAutoFi...
31.448276
117
0.573465
4b53b178317c3bf32852f6a7008604e80e665bb6
1,026
py
Python
tests/01_arrays/test_arrays_compile.py
krystophny/pytchfort
e47c7bffa2df488d7adf65300d37167f01a90a60
[ "MIT" ]
6
2019-07-25T11:04:32.000Z
2021-11-02T20:32:13.000Z
tests/01_arrays/test_arrays_compile.py
krystophny/pytchfort
e47c7bffa2df488d7adf65300d37167f01a90a60
[ "MIT" ]
4
2019-07-31T10:08:21.000Z
2020-11-14T23:55:49.000Z
tests/01_arrays/test_arrays_compile.py
krystophny/pytchfort
e47c7bffa2df488d7adf65300d37167f01a90a60
[ "MIT" ]
1
2019-05-09T12:11:53.000Z
2019-05-09T12:11:53.000Z
""" Created: 2019-04-01 @author: Christopher Albert <albert@alumni.tugraz.at> Compiles CFF for test_arrays """ import os from shutil import copy from fffi import FortranModule def test_compile(tmp_path): cwd = os.path.dirname(__file__) copy(os.path.join(cwd, 'Makefile'), tmp_path) copy(os.path.join(cwd,...
27.72973
74
0.69883
033f44984b551a97b8e8461f4f4b474869842ffe
244
py
Python
pandas/tests/exchange/conftest.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/exchange/conftest.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/exchange/conftest.py
AdrianMastronardi/pandas
67045903306ac4a1cab108177e92df30d99912b4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import pytest import pandas as pd @pytest.fixture(scope="package") def df_from_dict(): def maker(dct, is_categorical=False): df = pd.DataFrame(dct) return df.astype("category") if is_categorical else df return maker
18.769231
62
0.692623
dcc0417c138484b9d3f589ea19f75dacf4be6122
15,839
py
Python
sdk/python/arvados/util.py
coolmaksat/arvados
5f571760d4b52426e39ae39d0ce5cb9b7cfb0add
[ "Apache-2.0" ]
null
null
null
sdk/python/arvados/util.py
coolmaksat/arvados
5f571760d4b52426e39ae39d0ce5cb9b7cfb0add
[ "Apache-2.0" ]
null
null
null
sdk/python/arvados/util.py
coolmaksat/arvados
5f571760d4b52426e39ae39d0ce5cb9b7cfb0add
[ "Apache-2.0" ]
null
null
null
# Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 from __future__ import division from builtins import range import fcntl import hashlib import httplib2 import os import random import re import subprocess import errno import sys import arvados from arvados.collection i...
36.834884
111
0.585012
33c6ff53d96403b0e10f0fbd5d431644e6df71e6
4,473
py
Python
libs/html5lib/treebuilders/__init__.py
bbondy/brianbondy.gae
5c189e5d8f1ee0fdc77ab48c21f3da2c9e3f246c
[ "MIT" ]
null
null
null
libs/html5lib/treebuilders/__init__.py
bbondy/brianbondy.gae
5c189e5d8f1ee0fdc77ab48c21f3da2c9e3f246c
[ "MIT" ]
null
null
null
libs/html5lib/treebuilders/__init__.py
bbondy/brianbondy.gae
5c189e5d8f1ee0fdc77ab48c21f3da2c9e3f246c
[ "MIT" ]
null
null
null
"""A collection of modules for building different kinds of tree from HTML documents. To create a treebuilder for a new type of tree, you need to do implement several things: 1) A set of classes for various types of elements: Document, Doctype, Comment, Element. These must implement the interface of _base.tree...
48.096774
95
0.632685
4d7ca33fb37042716c0da32c6f01744509d4edae
1,527
py
Python
src/rprblender/properties/camera.py
Toorero/RadeonProRenderBlenderAddon
46be6f11cfb90e1bc40180213862eb9d8b623c5f
[ "Apache-2.0" ]
1
2021-03-29T05:55:49.000Z
2021-03-29T05:55:49.000Z
src/rprblender/properties/camera.py
wojtuss/RadeonProRenderBlenderAddon
5ce2b5b61de8b6b802e58756f823c662808cf08a
[ "Apache-2.0" ]
1
2021-04-03T09:39:28.000Z
2021-04-03T09:39:28.000Z
src/rprblender/properties/camera.py
wojtuss/RadeonProRenderBlenderAddon
5ce2b5b61de8b6b802e58756f823c662808cf08a
[ "Apache-2.0" ]
null
null
null
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.o...
29.941176
74
0.622135
a87367fae66dced91e2870eec15f372487a1c225
259
py
Python
Basics/ModulesAndPackages/ModulesAndPackages/ModulesAndPackages.py
ttitto/python
5f9be2d3c15a61c94647c250c9365a45f0cc3d0f
[ "MIT" ]
null
null
null
Basics/ModulesAndPackages/ModulesAndPackages/ModulesAndPackages.py
ttitto/python
5f9be2d3c15a61c94647c250c9365a45f0cc3d0f
[ "MIT" ]
null
null
null
Basics/ModulesAndPackages/ModulesAndPackages/ModulesAndPackages.py
ttitto/python
5f9be2d3c15a61c94647c250c9365a45f0cc3d0f
[ "MIT" ]
null
null
null
#import sys ##print(sys.argv) #root_folder = sys.argv[0] #print(root_folder) #import os #from nt import R_OK, F_OK, W_OK #print(os.access('data/catalog_full.csv', W_OK)) #for root, dirs, files in os.walk('./'): # print(root, '----', dirs, '----', files)
21.583333
48
0.640927
53c16e9f698bf2972f7fb093e1def8998f71d03c
2,658
py
Python
pygame_test_gamepad.py
winkleink/pygame_test_gamepad
548ffe69f6d2be1fe99bd822b17a412d05b7a99b
[ "MIT" ]
null
null
null
pygame_test_gamepad.py
winkleink/pygame_test_gamepad
548ffe69f6d2be1fe99bd822b17a412d05b7a99b
[ "MIT" ]
null
null
null
pygame_test_gamepad.py
winkleink/pygame_test_gamepad
548ffe69f6d2be1fe99bd822b17a412d05b7a99b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys, pygame from pygame import locals import time # Define the colors we will use in RGB format black = [ 0, 0, 0] white = [255,255,255] red = [255, 0, 0] #os.environ["SDL_VIDEODRIVER"] = "dummy" pygame.init() # Set the height and width of the screen size=[630,300] screen=pygame.di...
30.906977
78
0.59857
e93114e3ae2032e5342c5d695a8a581ffc193e4e
1,949
py
Python
ams-publisher/ams-queue-consume.py
vrdel/ams-test
3797a721e65d9548f50e74668b75f92829eb3e20
[ "Apache-2.0" ]
null
null
null
ams-publisher/ams-queue-consume.py
vrdel/ams-test
3797a721e65d9548f50e74668b75f92829eb3e20
[ "Apache-2.0" ]
null
null
null
ams-publisher/ams-queue-consume.py
vrdel/ams-test
3797a721e65d9548f50e74668b75f92829eb3e20
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import argparse import datetime import os import pprint import pwd import random import sys import time from messaging.message import Message from messaging.error import MessageError from messaging.queue.dqs import DQS from collections import deque default_queue = '/var/spool/argo-nagios-ams-publ...
24.670886
86
0.635711
effd13b360a014c379f47c8fbc329abda717029b
775
py
Python
snippet.py
ank-urG/Hacktoberfest2020
c3f8ae49d4a5dab888524915da5a5ea3ce075b89
[ "MIT" ]
null
null
null
snippet.py
ank-urG/Hacktoberfest2020
c3f8ae49d4a5dab888524915da5a5ea3ce075b89
[ "MIT" ]
null
null
null
snippet.py
ank-urG/Hacktoberfest2020
c3f8ae49d4a5dab888524915da5a5ea3ce075b89
[ "MIT" ]
1
2020-10-09T17:49:53.000Z
2020-10-09T17:49:53.000Z
import time print("1. Time Spent") print("2. use unemate") print("3. Comma-separated") print("4. Print a string N times") num = int(input("Enter a number: ")) if num == 1: start_time = time.time() a = 1 b = 2 c = a + b print(c) # 3 end_time = time.time() total_time = ...
20.394737
64
0.545806
ff2ee3bcaa653579a87462651aa3397e5010aa21
721
py
Python
bin/_preamble.py
tlandschoff-scale/spyne
d271f5e5d64114f62375e8baec0a5d0d36f84c96
[ "BSD-3-Clause" ]
786
2015-01-04T10:46:28.000Z
2022-03-31T19:24:35.000Z
bin/_preamble.py
tlandschoff-scale/spyne
d271f5e5d64114f62375e8baec0a5d0d36f84c96
[ "BSD-3-Clause" ]
248
2015-01-01T21:52:47.000Z
2022-03-09T08:55:04.000Z
bin/_preamble.py
tlandschoff-scale/spyne
d271f5e5d64114f62375e8baec0a5d0d36f84c96
[ "BSD-3-Clause" ]
210
2015-01-10T14:20:31.000Z
2022-03-09T08:38:43.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # This makes sure that users don't have to set up their environment # specially in order to run these programs from bin/. # This helper is shared by many different actual scripts. It is not intended to # be packaged or installed, it is only a de...
34.333333
80
0.728155
d6ab435dc0cb1f97e9cf6ba449acd322ef7baa38
3,787
py
Python
networking_generic_switch/devices/netmiko_devices/dell.py
sandyw777/networking-generic-switch
82bdddc104e06f2a5dc2a14f220c6abadeb655bd
[ "Apache-2.0" ]
26
2016-02-12T07:30:21.000Z
2021-11-26T06:32:01.000Z
networking_generic_switch/devices/netmiko_devices/dell.py
sandyw777/networking-generic-switch
82bdddc104e06f2a5dc2a14f220c6abadeb655bd
[ "Apache-2.0" ]
10
2017-10-05T13:59:28.000Z
2021-09-16T13:57:52.000Z
networking_generic_switch/devices/netmiko_devices/dell.py
sandyw777/networking-generic-switch
82bdddc104e06f2a5dc2a14f220c6abadeb655bd
[ "Apache-2.0" ]
34
2016-03-18T08:13:37.000Z
2021-10-01T15:50:19.000Z
# Copyright 2016 Mirantis, 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 agr...
27.244604
78
0.619224
62a392bd094d7445f5cd7ba96280ccca4ee3ac0b
1,252
py
Python
samples/hyperparameter-tutorial/ml_service/pipelines/hyperparams.py
h2floh/MLOpsManufacturing-1
3fcf15ef80600540450d16eae57b853d88a83063
[ "Apache-2.0" ]
20
2020-11-09T08:20:13.000Z
2021-12-03T06:15:45.000Z
samples/hyperparameter-tutorial/ml_service/pipelines/hyperparams.py
h2floh/MLOpsManufacturing-1
3fcf15ef80600540450d16eae57b853d88a83063
[ "Apache-2.0" ]
55
2020-10-20T02:18:56.000Z
2021-07-26T04:52:23.000Z
samples/hyperparameter-tutorial/ml_service/pipelines/hyperparams.py
h2floh/MLOpsManufacturing-1
3fcf15ef80600540450d16eae57b853d88a83063
[ "Apache-2.0" ]
10
2020-11-26T05:47:57.000Z
2022-03-23T20:26:00.000Z
from azureml.train.hyperdrive import RandomParameterSampling, BanditPolicy, HyperDriveConfig, PrimaryMetricGoal from azureml.train.hyperdrive import uniform class HyperParams: def __init(self): print(f'HyperParams.Created. version = {VERSION}') def get_param_sampling(self): return RandomPara...
32.102564
111
0.740415
2a089a6c4d02c9777c6120cd259c523e3ec67fc0
272
py
Python
ecommerce/ecommerce/core/models.py
crstnrm/ecommerce
72e757b1ecc7b2dfeecabe0ff06ee9797815dc8e
[ "MIT" ]
null
null
null
ecommerce/ecommerce/core/models.py
crstnrm/ecommerce
72e757b1ecc7b2dfeecabe0ff06ee9797815dc8e
[ "MIT" ]
null
null
null
ecommerce/ecommerce/core/models.py
crstnrm/ecommerce
72e757b1ecc7b2dfeecabe0ff06ee9797815dc8e
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone class BaseModel(models.Model): created_at = models.DateTimeField(default=timezone.now, editable=False) updated_at = models.DateTimeField(default=timezone.now) class Meta: abstract = True
27.2
75
0.757353
28c97c41839437fb895e148e58647abfc201a7e4
2,722
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/_configuration.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.754386
112
0.696179
fd93225e2649f229b062991bfb4ba20d423338e6
16,113
py
Python
fetchd/fetchd.py
newtoncurrency/ntqrelay
aa87402fcd19131b8e158839bed6080f64a93241
[ "MIT" ]
608
2015-06-13T17:20:21.000Z
2022-03-26T11:30:32.000Z
fetchd/fetchd.py
AYIDouble/btcrelay
48c45c6c764315b0a274e74ef8d87915680c1132
[ "MIT" ]
40
2015-07-01T19:03:38.000Z
2020-12-16T07:57:05.000Z
fetchd/fetchd.py
AYIDouble/btcrelay
48c45c6c764315b0a274e74ef8d87915680c1132
[ "MIT" ]
188
2015-06-15T10:28:45.000Z
2022-03-12T21:13:27.000Z
#!/usr/bin/env python # from datetime import datetime, date from time import sleep from argparse import ArgumentParser import logging from pyepm import api, config, __version__ from bitcoin import * # NOQA from urllib import urlopen # Warning !!! # to make things work, also at https://github.com/etherex/pyepm/blo...
42.180628
140
0.658971
7dffd432c8897f08381b52318d6df51d586fe99e
2,672
py
Python
ninja/router.py
duilio/django-ninja
8dac3c981bcf431322d32acd34c8179564a3698d
[ "MIT" ]
null
null
null
ninja/router.py
duilio/django-ninja
8dac3c981bcf431322d32acd34c8179564a3698d
[ "MIT" ]
null
null
null
ninja/router.py
duilio/django-ninja
8dac3c981bcf431322d32acd34c8179564a3698d
[ "MIT" ]
null
null
null
from collections import OrderedDict from typing import Callable, List from django.http import HttpResponseNotAllowed from django.urls import path as django_path from ninja.operation import Operation, PathView from ninja.constants import NOT_SET from ninja.utils import normalize_path class Router: def __init__(se...
33.4
81
0.617141
3e522d51874c509f93273eccc7dbe055c60988fa
11,227
py
Python
grr/server/grr_response_server/flows/general/webhistory_test.py
syth3/grr
0e03976c5c5b694c210c0f392581364ddefa1f4b
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/flows/general/webhistory_test.py
syth3/grr
0e03976c5c5b694c210c0f392581364ddefa1f4b
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/flows/general/webhistory_test.py
syth3/grr
0e03976c5c5b694c210c0f392581364ddefa1f4b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Lint as: python3 # python3 """Test the webhistory flows.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import os from absl import app import mock from grr_response_client import client_utils from grr_response_core.lib import...
35.754777
80
0.699474
9fbd3932b247f5559817e70145ee7399634d287f
5,783
py
Python
contrib/seeds/makeseeds.py
gusasar/yukkoin
8dd8634d80e9457ab003246f888672bb63782f60
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
gusasar/yukkoin
8dd8634d80e9457ab003246f888672bb63782f60
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
gusasar/yukkoin
8dd8634d80e9457ab003246f888672bb63782f60
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 337600 #...
33.427746
186
0.570292
5300e3068795bc1187e25e0e8516b23aa4d77db8
21,157
py
Python
spark_fhir_schemas/r4/complex_types/imagingstudy_series.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/r4/complex_types/imagingstudy_series.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/imagingstudy_series.py
imranq2/SparkFhirSchemas
24debae6980fb520fe55aa199bdfd43c0092eb9c
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType # This file is auto-generated by generate_schema so do not edit it manually # noinspection PyPep8Naming class ImagingStudy_SeriesSchema: """ Representation of the content produced i...
51.855392
104
0.563974
55a59dd4953a7339056357dcf8d807fa67836046
4,706
py
Python
cogs/today.py
waki285/rt-bot
1b264d7d9fe75526766b56547cea801619d13051
[ "BSD-4-Clause" ]
26
2021-11-30T02:48:16.000Z
2022-03-26T04:47:25.000Z
cogs/today.py
waki285/rt-bot
1b264d7d9fe75526766b56547cea801619d13051
[ "BSD-4-Clause" ]
143
2021-11-04T07:47:53.000Z
2022-03-31T23:13:33.000Z
cogs/today.py
waki285/rt-bot
1b264d7d9fe75526766b56547cea801619d13051
[ "BSD-4-Clause" ]
14
2021-11-12T15:32:27.000Z
2022-03-28T04:04:44.000Z
# RT - What day is today from discord.ext import commands, tasks import discord from rtlib import DatabaseManager from bs4 import BeautifulSoup from datetime import datetime, timedelta class DataManager(DatabaseManager): DB = "Today" def __init__(self, db): self.db = db async def init_table(s...
30.36129
75
0.534424
8ce5f411f25f65e0ecd385bbd186c683b1f266ee
332
py
Python
Python/num.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
4
2017-04-30T18:28:19.000Z
2018-12-08T15:46:37.000Z
Python/num.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
1
2021-09-22T20:11:36.000Z
2021-09-22T20:11:36.000Z
Python/num.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
null
null
null
#!/bin/python3 import time import numpy as np if __name__ == '__main__': arr=np.arange(10) print(arr) t0 = time.time() arr=np.zeros([5000,5000]) t1 = time.time() arr2=[[0 for _ in range(5000)] for _ in range(5000)] t2 = time.time() print(str(t1-t0), str(t2-t1)) arr[0][0]=1 prin...
20.75
56
0.578313
e753b059acef4b238e2b270c01d4a8cfcd625d38
3,600
py
Python
n2n-tomo/unet_01_relu.py
vlcekl/n2n-tomo
97256212c6b958ae1b0791a897b131834aa90a3c
[ "MIT" ]
null
null
null
n2n-tomo/unet_01_relu.py
vlcekl/n2n-tomo
97256212c6b958ae1b0791a897b131834aa90a3c
[ "MIT" ]
null
null
null
n2n-tomo/unet_01_relu.py
vlcekl/n2n-tomo
97256212c6b958ae1b0791a897b131834aa90a3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import torch import torch.nn as nn class UNet(nn.Module): """Custom U-Net architecture for Noise2Noise (see Appendix, Table 2).""" def __init__(self, in_channels=1, out_channels=1): """Initializes U-Net.""" super(UNet, self).__init__() ...
34.951456
81
0.563333
00c1ea347c9aeb22b828c1e43e36f4bb2a89ab1e
2,327
py
Python
saas/aiops/api/aiops-server/utils/data_source/data_source_connector.py
iuskye/SREWorks
a2a7446767d97ec5f6d15bd00189c42150d6c894
[ "Apache-2.0" ]
407
2022-03-16T08:09:38.000Z
2022-03-31T12:27:10.000Z
saas/aiops/api/aiops-server/utils/data_source/data_source_connector.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
25
2022-03-22T04:27:31.000Z
2022-03-30T08:47:28.000Z
saas/aiops/api/aiops-server/utils/data_source/data_source_connector.py
Kwafoor/SREWorks
37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b
[ "Apache-2.0" ]
109
2022-03-21T17:30:44.000Z
2022-03-31T09:36:28.000Z
#!/usr/bin/env python # encoding: utf-8 """ """ __author__ = 'sreworks' import logging import threading from elasticsearch import Elasticsearch from common.exception.errors import DatasourceError from services.datasource_service import DatasourceService # 同步锁 def synchronous_lock(func): def wrapper(*args, **kwar...
31.445946
108
0.647615
436d5b0edb69c6b0a2430c83ab7766193f62f382
10,714
py
Python
experiments/testing/ROLO_network_test_single.py
marcpasfatou/ROLO
32137cbe749320c9b2aff6c8cc4d954b013f779c
[ "Apache-2.0" ]
3
2017-12-01T22:20:41.000Z
2019-04-23T13:56:06.000Z
experiments/testing/ROLO_network_test_single.py
marcpasfatou/ROLO
32137cbe749320c9b2aff6c8cc4d954b013f779c
[ "Apache-2.0" ]
null
null
null
experiments/testing/ROLO_network_test_single.py
marcpasfatou/ROLO
32137cbe749320c9b2aff6c8cc4d954b013f779c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) <2016> <GUANGHAN NING>. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable ...
41.527132
209
0.617323
f47a1819e4c26454d0b23f84526b31baf441d83c
7,852
py
Python
cython_tassl_wrap/native_tassl_sock_wrap.py
wenxiang-Li/fisco-bcos-python-sdk
d898589f284dbb93f5982027487247699bef57f0
[ "MIT" ]
61
2019-07-03T07:40:17.000Z
2022-03-06T13:30:53.000Z
cython_tassl_wrap/native_tassl_sock_wrap.py
wenxiang-Li/fisco-bcos-python-sdk
d898589f284dbb93f5982027487247699bef57f0
[ "MIT" ]
105
2019-07-25T08:48:59.000Z
2022-03-23T03:47:34.000Z
cython_tassl_wrap/native_tassl_sock_wrap.py
wenxiang-Li/fisco-bcos-python-sdk
d898589f284dbb93f5982027487247699bef57f0
[ "MIT" ]
61
2019-07-03T06:58:42.000Z
2022-02-16T08:50:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' FISCO BCOS/Python-SDK is a python client for FISCO BCOS2.0 (https://github.com/FISCO-BCOS/) FISCO BCOS/Python-SDK is free software: you can redistribute it and/or modify it under the terms of the MIT License as published by the Free Software Foundation. This proje...
37.390476
113
0.664671
bf187ac96ac78ef09f92c04499a54fc2fab2ce2d
1,077
py
Python
old_bin/bernie/get_humidity.py
sdss/ObserverTools
7f9949341edc91a79dac69d79e24af09e8558ffa
[ "BSD-3-Clause" ]
null
null
null
old_bin/bernie/get_humidity.py
sdss/ObserverTools
7f9949341edc91a79dac69d79e24af09e8558ffa
[ "BSD-3-Clause" ]
null
null
null
old_bin/bernie/get_humidity.py
sdss/ObserverTools
7f9949341edc91a79dac69d79e24af09e8558ffa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # bernie Tue. 26 June '18 # just playing around: a script to retrieve arbitrarily defined intervals of APO process variables from channelarchiver import Archiver, codes, utils ss = 'http://sdss-telemetry.apo.nmsu.edu/telemetry/cgi/ArchiveDataServer.cgi' archiver = Archiver(ss) archiver.scan_...
32.636364
99
0.692665
52d7b029c35c2c17afa7b664502312c4c3207b0d
536
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/tiny-frog-29119
eb3c34abb36c598458679076359052c9ac88868b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/tiny-frog-29119
eb3c34abb36c598458679076359052c9ac88868b
[ "FTL", "AML", "RSA-MD" ]
20
2021-07-24T18:26:54.000Z
2021-07-24T18:27:02.000Z
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/tiny-frog-29119
eb3c34abb36c598458679076359052c9ac88868b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "tiny-frog-29119.botics.co" site_params = { "name": "Tiny Frog", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_crea...
20.615385
61
0.652985
a4a31315dd6b22ef95a4f3aa6394241ac985f6b3
7,747
py
Python
gifts_rest/settings/base.py
brjones/gifts_rest
8217e45fd1a692b00c9e9ae9f022ac2d2fab211e
[ "Apache-2.0" ]
null
null
null
gifts_rest/settings/base.py
brjones/gifts_rest
8217e45fd1a692b00c9e9ae9f022ac2d2fab211e
[ "Apache-2.0" ]
null
null
null
gifts_rest/settings/base.py
brjones/gifts_rest
8217e45fd1a692b00c9e9ae9f022ac2d2fab211e
[ "Apache-2.0" ]
null
null
null
""" .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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....
29.911197
157
0.659094
873801ec3e5e2803b55fcd5dac0b9acc6610dcf8
802
py
Python
manage.py
ErfanSupratman/Hospital-Quality-Management-System
6ccfb0ddb8df5341c3e3f1a3f10ba737fd5a5b86
[ "MIT" ]
null
null
null
manage.py
ErfanSupratman/Hospital-Quality-Management-System
6ccfb0ddb8df5341c3e3f1a3f10ba737fd5a5b86
[ "MIT" ]
null
null
null
manage.py
ErfanSupratman/Hospital-Quality-Management-System
6ccfb0ddb8df5341c3e3f1a3f10ba737fd5a5b86
[ "MIT" ]
1
2019-12-27T08:31:04.000Z
2019-12-27T08:31:04.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HQMS.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
34.869565
77
0.640898
668d127f9a87a0c3765eb81414d0629018376603
22,379
py
Python
src/pretix/plugins/paypal/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/plugins/paypal/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/pretix/plugins/paypal/payment.py
whiteyhat/pretix
34d1fcf077a92765cd796d81d1aa6695d4801a9a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json import logging import urllib.parse from collections import OrderedDict import paypalrestsdk from django import forms from django.contrib import messages from django.core import signing from django.http import HttpRequest from django.template.loader import get_template from django.urls import reverse from d...
43.966601
130
0.53443
23619c106e46eb0dbfa8076153cf543133bd6984
131
py
Python
build.py
DragonFlayer/oblige-my-doom
9d6594c26bd756255952d413b5c29c92ed4f303d
[ "MIT" ]
3
2019-03-29T11:37:27.000Z
2020-09-24T06:53:17.000Z
build.py
DragonFlayer/oblige-my-doom
9d6594c26bd756255952d413b5c29c92ed4f303d
[ "MIT" ]
1
2019-03-31T15:14:36.000Z
2019-04-02T18:27:46.000Z
build.py
DragonFlayer/oblige-my-doom
9d6594c26bd756255952d413b5c29c92ed4f303d
[ "MIT" ]
null
null
null
import subprocess subprocess.run('pyinstaller -wF -i=default_icon.ico gui.py -n ObligeMyDoom') input("Press Enter to continue...")
32.75
76
0.770992
4297305e923aef5d058459bdae3ed968d7b11504
12,679
py
Python
transformer/SubLayers.py
tango4j/Continual-Learning-Benchmark
89eb1396c294feebdba818d67707c923667391ad
[ "MIT" ]
null
null
null
transformer/SubLayers.py
tango4j/Continual-Learning-Benchmark
89eb1396c294feebdba818d67707c923667391ad
[ "MIT" ]
null
null
null
transformer/SubLayers.py
tango4j/Continual-Learning-Benchmark
89eb1396c294feebdba818d67707c923667391ad
[ "MIT" ]
null
null
null
''' Define the sublayers in encoder/decoder layer ''' import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from transformer.Modules import ScaledDotProductAttention import ipdb import torchvision __author__ = "Yu-Hsiang Huang" class MGN(nn.Module): def __init__(self, opt, x_dim, h_...
34.360434
116
0.563373
df98c17da5d782d995b14636c7c8dbbf773c556b
675
py
Python
Natural language processing_Python/reading_book/readingBook.py
Sinchiguano/codingProblems_Python
195549824d94cdf773c174faad9d57aa6d6ddc2c
[ "BSD-2-Clause" ]
2
2020-12-12T19:00:51.000Z
2020-12-17T03:32:27.000Z
Natural language processing_Python/reading_book/readingBook.py
Sinchiguano/codingProblems_Python
195549824d94cdf773c174faad9d57aa6d6ddc2c
[ "BSD-2-Clause" ]
null
null
null
Natural language processing_Python/reading_book/readingBook.py
Sinchiguano/codingProblems_Python
195549824d94cdf773c174faad9d57aa6d6ddc2c
[ "BSD-2-Clause" ]
1
2021-07-06T04:25:06.000Z
2021-07-06T04:25:06.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2018 CESAR SINCHIGUANO <cesarsinchiguano@hotmail.es> # # Distributed under terms of the BSD license. """ """ from collections import Counter title='shakespeare.txt' def readBook(title_path): ''' Read a book and return it as a string...
15.697674
66
0.671111
89e1425c488474f7854d9bb9a4c3d55a1cd3f431
2,723
py
Python
glue/viewers/matplotlib/qt/toolbar.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
550
2015-01-08T13:51:06.000Z
2022-03-31T11:54:47.000Z
glue/viewers/matplotlib/qt/toolbar.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
1,362
2015-01-03T19:15:52.000Z
2022-03-30T13:23:11.000Z
glue/viewers/matplotlib/qt/toolbar.py
HPLegion/glue
1843787ccb4de852dfe103ff58473da13faccf5f
[ "BSD-3-Clause" ]
142
2015-01-08T13:08:00.000Z
2022-03-18T13:25:57.000Z
from matplotlib.backends.backend_qt5 import NavigationToolbar2QT from glue.config import viewer_tool from glue.viewers.common.tool import CheckableTool, Tool __all__ = ['MatplotlibTool', 'MatplotlibCheckableTool', 'HomeTool', 'SaveTool', 'PanTool', 'ZoomTool'] def _ensure_mpl_nav(viewer): # Set up v...
24.754545
88
0.666911
baa4901ee90edadf09e62750db635671430a0fcb
9,375
py
Python
lib/voice/pico/tts/configure.py
Gara64/Irma
a388d56447df3d587b7c2b9bcf9662a0bd4313f1
[ "BSD-3-Clause" ]
null
null
null
lib/voice/pico/tts/configure.py
Gara64/Irma
a388d56447df3d587b7c2b9bcf9662a0bd4313f1
[ "BSD-3-Clause" ]
null
null
null
lib/voice/pico/tts/configure.py
Gara64/Irma
a388d56447df3d587b7c2b9bcf9662a0bd4313f1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ############################################################################################## import os import time import sys import subprocess ############################################################################################## class ConfirugePicoPi(object): ...
40.409483
106
0.308693
3e5b7987f02e377f03496cae63db59308374e18e
1,562
py
Python
marketplace/shops/api/views.py
FMajesty/dalytics-testtask
433eea49f13c4140e08ca432fa8277e18123d1b3
[ "MIT" ]
null
null
null
marketplace/shops/api/views.py
FMajesty/dalytics-testtask
433eea49f13c4140e08ca432fa8277e18123d1b3
[ "MIT" ]
null
null
null
marketplace/shops/api/views.py
FMajesty/dalytics-testtask
433eea49f13c4140e08ca432fa8277e18123d1b3
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework.decorators import action from rest_framework.mixins import ListModelMixin from rest_framework.mixins import RetrieveModelMixin from rest_framework.mixins import UpdateModelMixin from rest_framework.response import Response from rest_framework.viewsets i...
42.216216
90
0.771447
548fc53a3b228e4472aad48dbc20ec16d5f36a35
4,072
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/compile_settings_android_armv8.py
CJoriginal/cjlumberyard
2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60
[ "AML" ]
2
2019-05-13T22:21:28.000Z
2019-05-24T22:52:01.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/compile_settings_android_armv8.py
CJoriginal/cjlumberyard
2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60
[ "AML" ]
null
null
null
dev/Tools/build/waf-1.7.13/lmbrwaflib/compile_settings_android_armv8.py
CJoriginal/cjlumberyard
2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
34.218487
161
0.674607
f6a6462760fdb07b08a1d4e3ce1c414e634e4c28
3,515
py
Python
tensorflow/python/ops/numpy_ops/np_random.py
TOT0RoKR/tensorflow
12c2babf7dccc00c13d6e297c0f792f89f7408aa
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/ops/numpy_ops/np_random.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/ops/numpy_ops/np_random.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28.346774
100
0.715789
e86f3fdf236857df4d114a60f9f12c2fffc0248d
9,471
py
Python
GPflow/testing/test_variational.py
mlilab/Mixed-Effect-Composite-RNN-Gaussian-Process
dd7da89ce3c41d459a26ad1ce5ed2f40ab4ca85d
[ "Apache-2.0" ]
24
2018-11-29T07:00:59.000Z
2021-04-22T19:12:31.000Z
GPflow/testing/test_variational.py
mlilab/Mixed-Effect-Composite-RNN-Gaussian-Process
dd7da89ce3c41d459a26ad1ce5ed2f40ab4ca85d
[ "Apache-2.0" ]
1
2018-12-04T11:51:21.000Z
2018-12-04T11:51:21.000Z
GPflow/testing/test_variational.py
OpenXAIProject/Mixed-Effect-Composite-RNN-Gaussian-Process
dd7da89ce3c41d459a26ad1ce5ed2f40ab4ca85d
[ "Apache-2.0" ]
12
2018-11-30T00:40:13.000Z
2019-10-30T16:09:52.000Z
# Copyright 2016 the GPflow authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
42.855204
111
0.587583
210fc81c8fd84681439840f79afd20ceefa2c47b
9,770
py
Python
src/snc/agents/general_heuristics/custom_parameters_priority_agent.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
5
2021-03-24T16:23:10.000Z
2021-11-17T12:44:51.000Z
src/snc/agents/general_heuristics/custom_parameters_priority_agent.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
3
2021-03-26T01:16:08.000Z
2021-05-08T22:06:47.000Z
src/snc/agents/general_heuristics/custom_parameters_priority_agent.py
dmcnamee/snc
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
[ "Apache-2.0" ]
2
2021-03-24T17:20:06.000Z
2021-04-19T09:01:12.000Z
import numpy as np from typing import Optional, Any from snc.utils import snc_types as types from snc.environments import controlled_random_walk as crw from snc.agents import agents_utils from snc.agents.agent_interface import AgentInterface class CustomParametersPriorityAgent(AgentInterface): def __init__(self...
45.231481
99
0.65087
3d2dc9252507b36b016497d0088080342017edfc
3,649
py
Python
S4/S4 Library/simulation/narrative/narrative_open_street_director_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/narrative/narrative_open_street_director_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/narrative/narrative_open_street_director_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from event_testing.test_events import TestEvent from sims4.resources import Types from sims4.tuning.tunable import TunableMapping, TunableReference, TunableSet import services NARRATIVE_LAYERS_TOKEN = 'narrative_layers' class NarrativeOpenStreetDirectorMixin: INSTANCE_TUNABLES = {'narrative_object_layers': Tunable...
58.854839
774
0.724856
524fa349ae6026b924592e1be8ef9668462439ae
2,199
py
Python
fw_manager/migrations/0001_initial.py
monstrenyatko/butler-api
842cf16212ba9fdb6943b5ecd488bf0ca57acf84
[ "MIT" ]
null
null
null
fw_manager/migrations/0001_initial.py
monstrenyatko/butler-api
842cf16212ba9fdb6943b5ecd488bf0ca57acf84
[ "MIT" ]
null
null
null
fw_manager/migrations/0001_initial.py
monstrenyatko/butler-api
842cf16212ba9fdb6943b5ecd488bf0ca57acf84
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-20 02:23 from __future__ import unicode_literals from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import fw_manager.models class Migration(migrations.Migration): ...
40.722222
220
0.615734