hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
291a442be166b320f66e1d56bfbab60b7537f36e
2,845
py
Python
angr/procedures/posix/strtok_r.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-05-02T17:41:36.000Z
2020-05-18T02:49:16.000Z
angr/procedures/posix/strtok_r.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/strtok_r.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2019-08-07T01:42:01.000Z
2019-08-07T01:42:01.000Z
import logging l = logging.getLogger("angr.procedures.posix.strtok_r")
51.727273
158
0.649912
import angr from angr.sim_type import SimTypeString import logging l = logging.getLogger("angr.procedures.posix.strtok_r") class strtok_r(angr.SimProcedure): #pylint:disable=arguments-differ def run(self, str_ptr, delim_ptr, save_ptr, str_strlen=None, delim_strlen=None): self.argument_types = {0: sel...
0
0
0
2,698
0
0
0
8
67
dbedd1e8af65c608f62d0a742367ba08c25ced4e
3,641
py
Python
techcrm/services/webv2/project/forms.py
techakademi/DockerEgitimProjeler
9ab6b5005fe53a2da6b5c0df2537d3d6d9238d80
[ "MIT" ]
null
null
null
techcrm/services/webv2/project/forms.py
techakademi/DockerEgitimProjeler
9ab6b5005fe53a2da6b5c0df2537d3d6d9238d80
[ "MIT" ]
null
null
null
techcrm/services/webv2/project/forms.py
techakademi/DockerEgitimProjeler
9ab6b5005fe53a2da6b5c0df2537d3d6d9238d80
[ "MIT" ]
null
null
null
#Kullanc oluturma Formu #Kullanc giri Formu #Kullanc Gncelleme Formu #Yeni irket Olutur
54.343284
178
0.728646
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from flask_login import current_user from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from project.models import kullanicilar, s...
168
0
0
3,047
0
0
0
197
220
e6a8bb95f6266ac735e5f92be81e436b39c33b4e
280
py
Python
jobs/python/dq/setup.py
Parthi10/Pyspark
a7943010f2af768d33051e09979c892c02bf0610
[ "MIT" ]
7
2019-03-14T04:50:47.000Z
2020-02-04T14:04:33.000Z
jobs/python/dq/setup.py
Ranjan90/learn-pyspark
91152497eb733c3cf53ffa910dc9fc3948b01ad1
[ "MIT" ]
null
null
null
jobs/python/dq/setup.py
Ranjan90/learn-pyspark
91152497eb733c3cf53ffa910dc9fc3948b01ad1
[ "MIT" ]
4
2019-12-04T18:24:56.000Z
2022-02-14T15:56:19.000Z
#!/usr/bin/env python from setuptools import setup setup(name='dq', version='1.0', description='Technical And Business Data Quality Framework', author='Kanchan Tewary', author_email='kanchan.tewary@gmail.com', url='', packages=['dq'], )
21.538462
66
0.628571
#!/usr/bin/env python from setuptools import setup setup(name='dq', version='1.0', description='Technical And Business Data Quality Framework', author='Kanchan Tewary', author_email='kanchan.tewary@gmail.com', url='', packages=['dq'], )
0
0
0
0
0
0
0
0
0
7cd944826ae554d40f15681140d186374dc9db20
2,342
py
Python
tests/accelerators/test_gpu.py
krfricke/pytorch-lightning
fbd887df9d487da4c57d884e01b3401af140b1bc
[ "Apache-2.0" ]
3,469
2019-03-31T03:09:16.000Z
2020-01-13T15:06:31.000Z
tests/accelerators/test_gpu.py
krfricke/pytorch-lightning
fbd887df9d487da4c57d884e01b3401af140b1bc
[ "Apache-2.0" ]
524
2019-04-02T12:33:39.000Z
2020-01-14T02:53:33.000Z
tests/accelerators/test_gpu.py
krfricke/pytorch-lightning
fbd887df9d487da4c57d884e01b3401af140b1bc
[ "Apache-2.0" ]
365
2019-04-02T22:14:04.000Z
2020-01-13T17:21:54.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
32.527778
104
0.747225
# Copyright The PyTorch Lightning team. # # 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 i...
0
1,341
0
0
0
0
0
117
293
4bc9a33379db1ff413a6c79d38dd7d7d15f7131f
10,371
py
Python
go/apps/jsbox/outbound.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/jsbox/outbound.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/jsbox/outbound.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
# -*- test-case-name: go.apps.jsbox.tests.test_outbound -*- # -*- coding: utf-8 -*- """Outbound message resource for JS Box sandboxes""" from vumi.message import TransportUserMessage INBOUND_PUSH_TRIGGER = "inbound_push_trigger" def mk_inbound_push_trigger(to_addr, conversation): """ Construct a dummy inbo...
38.128676
79
0.582104
# -*- test-case-name: go.apps.jsbox.tests.test_outbound -*- # -*- coding: utf-8 -*- """Outbound message resource for JS Box sandboxes""" from twisted.internet.defer import inlineCallbacks, returnValue, succeed from vumi.application.sandbox import SandboxResource from vumi.message import TransportUserMessage from vum...
0
2,056
0
6,705
0
0
0
81
91
4fcccceaa89226300ee5aed5b814cd991ce13595
786
py
Python
backend/resources/routers.py
jimbunny/vue-flask-mysql-demo
7d2a1883b1c5779bfa4e6bc9afcdb1a53a89c995
[ "MIT" ]
null
null
null
backend/resources/routers.py
jimbunny/vue-flask-mysql-demo
7d2a1883b1c5779bfa4e6bc9afcdb1a53a89c995
[ "MIT" ]
null
null
null
backend/resources/routers.py
jimbunny/vue-flask-mysql-demo
7d2a1883b1c5779bfa4e6bc9afcdb1a53a89c995
[ "MIT" ]
1
2021-09-20T10:53:40.000Z
2021-09-20T10:53:40.000Z
#!/usr/bin/env python #-*- coding:utf-8 -*- # author:jingtongyu # datetime:2020/6/19 3:25 # software: PyCharm
24.5625
73
0.645038
#!/usr/bin/env python #-*- coding:utf-8 -*- # author:jingtongyu # datetime:2020/6/19 3:25 下午 # software: PyCharm from flask_restful import Resource, inputs from flask_restful.reqparse import RequestParser from common import code, pretty_result from common.decorators import login_required import json, os class RouterR...
33
316
0
132
0
0
0
82
133
4ac6cfe4d211f146f5232f25bce69982d9af4e82
2,209
py
Python
h5axeconfig/utils.py
jhunkeler/h5axeconfig
ca45bcbe25fb86d5c1c5987d6a7be3c70f2ba496
[ "MIT" ]
null
null
null
h5axeconfig/utils.py
jhunkeler/h5axeconfig
ca45bcbe25fb86d5c1c5987d6a7be3c70f2ba496
[ "MIT" ]
null
null
null
h5axeconfig/utils.py
jhunkeler/h5axeconfig
ca45bcbe25fb86d5c1c5987d6a7be3c70f2ba496
[ "MIT" ]
null
null
null
import h5py import numpy as np import os def resolveFile(filename,path=None): ''' get a filename to a config file based the hardcoded path ''' if path is None: path,theFile=os.path.split(__file__) path=os.path.join(path,'data') fullfile=os.path.join(path,filename) return fullfile ...
25.390805
72
0.530104
import h5py import numpy as np import os def resolveFile(filename,path=None): ''' get a filename to a config file based the hardcoded path ''' if path is None: path,theFile=os.path.split(__file__) path=os.path.join(path,'data') fullfile=os.path.join(path,filename) return fullfile d...
0
0
0
0
0
288
0
0
23
bcabc57073b940ed3ccf72f311d5ff34b20b1584
6,731
py
Python
parse/management/commands/parse.py
Ecotrust/TogglParser
95f0806b7f8ec9078e73f1623fc852a869d40183
[ "Apache-2.0" ]
null
null
null
parse/management/commands/parse.py
Ecotrust/TogglParser
95f0806b7f8ec9078e73f1623fc852a869d40183
[ "Apache-2.0" ]
1
2020-01-14T17:45:21.000Z
2020-01-14T17:45:21.000Z
parse/management/commands/parse.py
Ecotrust/TogglParser
95f0806b7f8ec9078e73f1623fc852a869d40183
[ "Apache-2.0" ]
null
null
null
# from parse.models import *
41.549383
134
0.506908
from django.core.management.base import BaseCommand, CommandError from datetime import date, timedelta # from parse.models import * class Command(BaseCommand): help = 'parses input .CSV for Dynamics Import (Luna)' def add_arguments(self, parser): parser.add_argument('in_csv', type=str) parser....
0
0
0
6,576
0
0
0
59
67
2dadadb5a6f13ba2b67fc602b838230526d75dbf
3,591
py
Python
library/cartridge_configure_failover.py
FizikRoot/ansible-cartridge
ad06411ec701b68fbf5b8ed5e184a47ffb0ac70f
[ "BSD-2-Clause" ]
17
2019-09-02T15:31:56.000Z
2022-03-29T18:49:59.000Z
library/cartridge_configure_failover.py
FizikRoot/ansible-cartridge
ad06411ec701b68fbf5b8ed5e184a47ffb0ac70f
[ "BSD-2-Clause" ]
171
2019-10-24T15:34:34.000Z
2022-03-29T09:18:46.000Z
library/cartridge_configure_failover.py
FizikRoot/ansible-cartridge
ad06411ec701b68fbf5b8ed5e184a47ffb0ac70f
[ "BSD-2-Clause" ]
14
2019-12-23T08:27:06.000Z
2021-07-06T15:53:49.000Z
#!/usr/bin/env python from ansible.module_utils.helpers import Helpers as helpers argument_spec = { 'console_sock': {'required': True, 'type': 'str'}, 'failover_params': {'required': False, 'type': 'raw'}, 'netbox_call_timeout': {'required': False, 'type': 'int'}, 'upload_config_timeout': {'required':...
32.351351
93
0.704818
#!/usr/bin/env python from ansible.module_utils.helpers import Helpers as helpers argument_spec = { 'console_sock': {'required': True, 'type': 'str'}, 'failover_params': {'required': False, 'type': 'raw'}, 'netbox_call_timeout': {'required': False, 'type': 'int'}, 'upload_config_timeout': {'required':...
0
0
0
0
0
2,903
0
0
138
4932b31988b3486f85f2f3d79823ec66c2da59b2
169
py
Python
camxes/__main__.py
lojban/python-camxes
86eb807fe87366f1b28bbcc2ac80430d9fcbf070
[ "BSD-2-Clause" ]
5
2017-11-09T23:39:18.000Z
2020-08-18T12:22:01.000Z
camxes/__main__.py
lojban/python-camxes
86eb807fe87366f1b28bbcc2ac80430d9fcbf070
[ "BSD-2-Clause" ]
1
2021-09-03T13:28:12.000Z
2021-09-03T13:28:12.000Z
camxes/__main__.py
lojban/python-camxes
86eb807fe87366f1b28bbcc2ac80430d9fcbf070
[ "BSD-2-Clause" ]
null
null
null
import sys from camxes import parse, isgrammatical print parse(sys.argv[1]) print if not isgrammatical(sys.argv[1]): print 'not', print 'grammatical:', sys.argv[1]
18.777778
39
0.733728
import sys from camxes import parse, isgrammatical print parse(sys.argv[1]) print if not isgrammatical(sys.argv[1]): print 'not', print 'grammatical:', sys.argv[1]
0
0
0
0
0
0
0
0
0
2fd71d6e97b73dc86b484046a10d2200e8bfee84
1,129
py
Python
utils/helper.py
zivadinac/Algonauts2021_devkit
73fc6cda1903f73682ecad9245808e7b2750a9cc
[ "MIT" ]
null
null
null
utils/helper.py
zivadinac/Algonauts2021_devkit
73fc6cda1903f73682ecad9245808e7b2750a9cc
[ "MIT" ]
null
null
null
utils/helper.py
zivadinac/Algonauts2021_devkit
73fc6cda1903f73682ecad9245808e7b2750a9cc
[ "MIT" ]
null
null
null
from os.path import join def make_path(fmri_dir, subject, ROI): """ Create path to data file for given base dir, subject and ROI. Parameters ---------- fmri_dir : str path to fMRI data. subject : int or str subject number if int, 'sub#num' if str ROI : str name of ROI. ...
24.543478
69
0.610275
from os.path import join import nibabel as nib import pickle def save_dict(di_, filename_): with open(filename_, 'wb') as f: pickle.dump(di_, f) def load_dict(filename_): with open(filename_, 'rb') as f: u = pickle._Unpickler(f) u.encoding = 'latin1' ret_di = u.load() #...
0
0
0
0
0
454
0
-8
113
ec32317fc34abfe3179a308b772cda01e15661a5
1,421
py
Python
chapter_5/py_5_11_merge_sort.py
kfrime/algo-in-python
e017dd20385fd9ea2086a72698fbfcb7d706dd86
[ "MIT" ]
null
null
null
chapter_5/py_5_11_merge_sort.py
kfrime/algo-in-python
e017dd20385fd9ea2086a72698fbfcb7d706dd86
[ "MIT" ]
null
null
null
chapter_5/py_5_11_merge_sort.py
kfrime/algo-in-python
e017dd20385fd9ea2086a72698fbfcb7d706dd86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 5.11 """ from __future__ import print_function def merge_sort(alist): """ O(nlog^n) """ print("Splitting ", alist) if len(alist) > 1: mid = len(alist) // 2 left_half = alist[:mid] right_half = alist[mid:] mer...
20.3
57
0.508797
# -*- coding: utf-8 -*- """ 5.11 归并排序 """ from __future__ import print_function def merge_sort(alist): """ 归并排序是一种递归算法,不断将列表拆分为一半。 如果列表为空或有一个项,则按定义(基本情况)进行排序。 如果列表有多个项,我们分割列表,并递归调用两个半部分的合并排序。 一旦对这两半排序完成,就执行合并操作。 合并是获取两个较小的排序列表并将它们组合成单个排序的新列表的过程。 O(nlog^n) """ print("Splitting ",...
582
0
0
0
0
106
0
0
23
9b1d3fe6da959211e6ea53fb6ec8acff8bec5f53
469
py
Python
plusMinus.py
AlaaMahi/HackerRank
8749e6b416ed30b622ff634f794f389a9d263ee6
[ "MIT" ]
null
null
null
plusMinus.py
AlaaMahi/HackerRank
8749e6b416ed30b622ff634f794f389a9d263ee6
[ "MIT" ]
null
null
null
plusMinus.py
AlaaMahi/HackerRank
8749e6b416ed30b622ff634f794f389a9d263ee6
[ "MIT" ]
null
null
null
#!/bin/python3 if __name__ == '__main__': n = int(input()) arr = list(map(int, input().rstrip().split())) plusMinus(arr)
18.76
52
0.648188
#!/bin/python3 import math import os import random import re import sys import functools from collections import Counter def plusMinus(arr): sign = functools.partial(math.copysign, 1) res = map(lambda x: sign(x) if x!=0 else 0, arr) cnt = Counter(res) print(cnt[1]/len(arr)) print(cnt[-1]/len(arr))...
0
0
0
0
0
203
0
-48
178
0a30c1d873413ce16ee450aca9cd0c61c3f65be1
954
py
Python
ops/packer/gen_packer_cfg.py
sharma1612harshit/oncall
03d8ee6e9a10d7da4e06293da4b3b04b0eb30bb5
[ "BSD-2-Clause" ]
null
null
null
ops/packer/gen_packer_cfg.py
sharma1612harshit/oncall
03d8ee6e9a10d7da4e06293da4b3b04b0eb30bb5
[ "BSD-2-Clause" ]
null
null
null
ops/packer/gen_packer_cfg.py
sharma1612harshit/oncall
03d8ee6e9a10d7da4e06293da4b3b04b0eb30bb5
[ "BSD-2-Clause" ]
1
2022-03-04T09:21:05.000Z
2022-03-04T09:21:05.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from __future__ import print_function OUTPUT_DIR = 'output' main()
26.5
74
0.616352
#!/usr/bin/env python # -*- coding:utf-8 -*- from __future__ import print_function import re import os import yaml import json import sys OUTPUT_DIR = 'output' def main(): current_dir = os.path.dirname(os.path.realpath(__file__)) with open('%s/../../src/oncall/__init__.py' % current_dir, 'r') as fd: ...
0
0
0
0
0
760
0
-55
134
d9798685027928e6403924849ad83e059f6a9048
2,463
py
Python
db.py
Douglas318/automacao_trabalho
eeffee375ea68a97fc180083678d5e72b2e76bda
[ "MIT" ]
null
null
null
db.py
Douglas318/automacao_trabalho
eeffee375ea68a97fc180083678d5e72b2e76bda
[ "MIT" ]
null
null
null
db.py
Douglas318/automacao_trabalho
eeffee375ea68a97fc180083678d5e72b2e76bda
[ "MIT" ]
null
null
null
import mysql.connector as mysql from mysql.connector import Error import pandas as pd arquivo = pd.read_csv(r'C:/Users/monitor/Downloads/teste/teste.csv', skiprows=6, sep=';') df = pd.DataFrame(arquivo) try: conexao = mysql.connect(host='localhost', database='db_sm', user='root', password='douglas123') if c...
66.567568
206
0.71417
import mysql.connector as mysql from mysql.connector import Error import pandas as pd arquivo = pd.read_csv(r'C:/Users/monitor/Downloads/teste/teste.csv', skiprows=6, sep=';') df = pd.DataFrame(arquivo) try: conexao = mysql.connect(host='localhost', database='db_sm', user='root', password='douglas123') if c...
4
0
0
0
0
0
0
0
0
283e0b2e09882b761244df44e0007d5742c359f1
3,828
py
Python
userbot/plugins/echo.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
userbot/plugins/echo.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
userbot/plugins/echo.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
""" created by @mrconfused and @sandy1709 Idea by @BlazingRobonix """ # Copyright (C) 2020 sandeep.n(.$) # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of...
34.8
126
0.643939
""" created by @mrconfused and @sandy1709 Idea by @BlazingRobonix """ # Copyright (C) 2020 sandeep.n(π.$) # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 o...
2
2,581
0
0
0
0
0
116
335
ebde9f53da50d8ca23c9dcb5aaee7da88ad2a3d7
4,643
py
Python
3dcnn_main.py
clinfo/DEFMap
65f7a5192d795d327f2d54f2f3765267d48bdef8
[ "MIT" ]
20
2020-03-27T03:08:32.000Z
2022-01-26T06:52:18.000Z
3dcnn_main.py
Warrenheww/DEFMap
26a214805a8b052a1de9a5d3ae87344d13b3457a
[ "MIT" ]
3
2020-04-23T03:00:19.000Z
2020-12-07T12:45:51.000Z
3dcnn_main.py
Warrenheww/DEFMap
26a214805a8b052a1de9a5d3ae87344d13b3457a
[ "MIT" ]
4
2021-02-27T13:51:26.000Z
2022-03-01T14:08:38.000Z
import warnings warnings.filterwarnings('ignore', category=FutureWarning) import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) if __name__ == "__main__": main()
37.144
119
0.632565
import argparse import os from pathlib import Path import warnings warnings.filterwarnings('ignore', category=FutureWarning) import joblib from keras import backend as K from keras.callbacks import CSVLogger, EarlyStopping from sklearn.model_selection import train_test_split import tensorflow as tf tf.logging.set_verb...
0
0
0
0
0
4,067
0
99
292
dbe1346413fa6e8761c7e21d19d16598bd4f45b1
7,382
py
Python
monitor/migrations/0001_initial.py
Topaz1618/MyMonitor
901da9a32fd11eaba2ab75ebd50414872d1757dd
[ "MIT" ]
null
null
null
monitor/migrations/0001_initial.py
Topaz1618/MyMonitor
901da9a32fd11eaba2ab75ebd50414872d1757dd
[ "MIT" ]
null
null
null
monitor/migrations/0001_initial.py
Topaz1618/MyMonitor
901da9a32fd11eaba2ab75ebd50414872d1757dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-10-08 08:36 from __future__ import unicode_literals
48.887417
176
0.564481
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-10-08 08:36 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
237
0
0
7,058
0
0
0
41
90
1a67a5afc8a0607551c52139fd62912bf808a0a9
20,989
py
Python
views.py
AeroNotix/django-timetracker
0b4c6919bf6807c2a564306133780ee0cc5ba1a7
[ "BSD-4-Clause" ]
6
2015-03-09T12:27:46.000Z
2022-03-07T09:56:56.000Z
views.py
AeroNotix/django-timetracker
0b4c6919bf6807c2a564306133780ee0cc5ba1a7
[ "BSD-4-Clause" ]
1
2017-11-29T13:02:22.000Z
2019-01-22T17:51:44.000Z
views.py
AeroNotix/django-timetracker
0b4c6919bf6807c2a564306133780ee0cc5ba1a7
[ "BSD-4-Clause" ]
6
2015-05-07T11:10:05.000Z
2019-06-21T18:19:53.000Z
'''Views which are mapped from the URL objects in urls.py .. moduleauthor:: Aaron France <aaron.france@hp.com> :platform: All :synopsis: Module which contains view functions that are mapped from urls ''' from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from dja...
37.280639
100
0.618896
'''Views which are mapped from the URL objects in urls.py .. moduleauthor:: Aaron France <aaron.france@hp.com> :platform: All :synopsis: Module which contains view functions that are mapped from urls ''' import datetime from django.http import HttpResponse, Http404, HttpResponseRedirect from django.shor...
0
11,941
0
0
0
0
0
1,141
408
e8b30ec451789dd4f884c9cd6403134693729b15
2,126
py
Python
cupyx/scipy/stats/stats.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
6,180
2016-11-01T14:22:30.000Z
2022-03-31T08:39:20.000Z
cupyx/scipy/stats/stats.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
6,281
2016-12-22T07:42:31.000Z
2022-03-31T19:57:02.000Z
cupyx/scipy/stats/stats.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
829
2017-02-23T05:46:12.000Z
2022-03-27T17:40:03.000Z
""" A collection of basic statistical functions for Python. References ---------- .. [CRCProbStat2000] Zwillinger, D. and Kokoska, S. (2000). CRC Standard Probability and Statistics Tables and Formulae. Chapman & Hall: New York. 2000. """ import cupy as cp def trim_mean(a, proportiontocut, axis=0): """Retu...
27.25641
77
0.583255
""" A collection of basic statistical functions for Python. References ---------- .. [CRCProbStat2000] Zwillinger, D. and Kokoska, S. (2000). CRC Standard Probability and Statistics Tables and Formulae. Chapman & Hall: New York. 2000. """ import cupy as cp def trim_mean(a, proportiontocut, axis=0): """Retu...
0
0
0
0
0
0
0
0
0
fa62fb91d09a273301516654970043e3eb85c63b
7,471
py
Python
simple/go/go_play.py
XiaoleZ/games-puzzles-algorithms
402b495c17fa2fd05301f9482b6140b9102af99f
[ "MIT" ]
null
null
null
simple/go/go_play.py
XiaoleZ/games-puzzles-algorithms
402b495c17fa2fd05301f9482b6140b9102af99f
[ "MIT" ]
null
null
null
simple/go/go_play.py
XiaoleZ/games-puzzles-algorithms
402b495c17fa2fd05301f9482b6140b9102af99f
[ "MIT" ]
null
null
null
""" simple Go program RBH 2019 * generate legal moves and game score * based on a subset of M Mueller's Go0 Go1 programs * also allow rectangular boards, so with columns != rows 1 <= R <= 9 rows 1 <= C <= 9 columns working features * make legal moves (Tromp-Taylor, no suicide, po...
29.298039
89
0.560701
""" simple Go program RBH 2019 * generate legal moves and game score * based on a subset of M Mueller's Go0 Go1 programs * also allow rectangular boards, so with columns != rows 1 <= R <= 9 rows 1 <= C <= 9 columns working features * make legal moves (Tromp-Taylor, no suicide, po...
0
0
0
3,402
0
2,669
0
-13
297
d8a1373d06b12a826b5d648cad2df3d95f1caa1b
4,207
py
Python
resources/search_sample.py
Maksimka101/DroneRescue
fd3061b77f49205cf4e20cb1813f2f1dd930be84
[ "MIT" ]
null
null
null
resources/search_sample.py
Maksimka101/DroneRescue
fd3061b77f49205cf4e20cb1813f2f1dd930be84
[ "MIT" ]
null
null
null
resources/search_sample.py
Maksimka101/DroneRescue
fd3061b77f49205cf4e20cb1813f2f1dd930be84
[ "MIT" ]
null
null
null
import airsim import drone_orbit import math client = airsim.MultirotorClient() client.confirmConnection() client.enableApiControl(True) client.armDisarm(True) landed = client.getMultirotorState().landed_state if landed == airsim.LandedState.Landed: print("taking off...") pos = client.getMultirotorState().k...
34.768595
187
0.658902
import setup_path import airsim import drone_orbit import os import time import math from PIL import Image client = airsim.MultirotorClient() client.confirmConnection() client.enableApiControl(True) client.armDisarm(True) landed = client.getMultirotorState().landed_state if landed == airsim.LandedState.Landed: ...
0
0
0
0
0
1,011
0
-26
135
6e4dd507d613fdb93d975386c9db11f0aa02feea
840
py
Python
test/integration/local/local_mode_utils.py
yunzhe-tao/sagemaker-rl-container
36fac941f64006b9356880318066e28e207f56a8
[ "Apache-2.0" ]
65
2018-12-01T18:04:04.000Z
2022-02-01T19:44:32.000Z
test/integration/local/local_mode_utils.py
yunzhe-tao/sagemaker-rl-container
36fac941f64006b9356880318066e28e207f56a8
[ "Apache-2.0" ]
28
2019-04-19T20:35:46.000Z
2021-05-27T23:22:20.000Z
test/integration/local/local_mode_utils.py
yunzhe-tao/sagemaker-rl-container
36fac941f64006b9356880318066e28e207f56a8
[ "Apache-2.0" ]
38
2019-02-09T14:45:15.000Z
2022-03-11T07:06:21.000Z
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
36.521739
87
0.741667
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
0
0
0
0
0
181
0
-19
68
f46f2f17d7559cc420a01ab0ec791c1190cd5cbf
221
py
Python
scripts/field/magicLibrary.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/field/magicLibrary.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/field/magicLibrary.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Created by MechAviv # ID :: [101000010] # Ellinia : Magic Library if sm.hasQuest(25559): sm.completeQuest(25559) elif not "1" in sm.getQRValue(2790) and chr.getLevel() == 10: sm.createQuestWithQRValue(2790, "1")
31.571429
61
0.701357
# Created by MechAviv # ID :: [101000010] # Ellinia : Magic Library if sm.hasQuest(25559): sm.completeQuest(25559) elif not "1" in sm.getQRValue(2790) and chr.getLevel() == 10: sm.createQuestWithQRValue(2790, "1")
0
0
0
0
0
0
0
0
0
8e4c9ceb92e529a3564d1feb7aaeed74f2dd9451
892
py
Python
webhook/views.py
Joe-Sin7h/WebhookListener
369acfab4318bd3491e60818d33353cb2603e2e2
[ "MIT" ]
null
null
null
webhook/views.py
Joe-Sin7h/WebhookListener
369acfab4318bd3491e60818d33353cb2603e2e2
[ "MIT" ]
null
null
null
webhook/views.py
Joe-Sin7h/WebhookListener
369acfab4318bd3491e60818d33353cb2603e2e2
[ "MIT" ]
null
null
null
# Create your views here.
27.875
65
0.659193
from django.shortcuts import render from django.http import HttpResponse from django.views.decorators.http import require_POST from django.views.decorators.csrf import csrf_exempt import json from .models import RequestDataJson, RequestDataText @csrf_exempt @require_POST def call(request): data = request.body ...
0
597
0
0
0
0
0
113
155
873332fedc2b59b5c3def209de143e495a0d7945
1,681
py
Python
mygui/interfaces/tab1.py
JeanBilheux/pyqt_application_with_separated_ui_tabs
57d182377f968660e6ccad0ac045e71b4f0fe1bb
[ "MIT" ]
null
null
null
mygui/interfaces/tab1.py
JeanBilheux/pyqt_application_with_separated_ui_tabs
57d182377f968660e6ccad0ac045e71b4f0fe1bb
[ "MIT" ]
null
null
null
mygui/interfaces/tab1.py
JeanBilheux/pyqt_application_with_separated_ui_tabs
57d182377f968660e6ccad0ac045e71b4f0fe1bb
[ "MIT" ]
1
2020-05-14T17:32:43.000Z
2020-05-14T17:32:43.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer/tab1.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost!
41
105
0.702558
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer/tab1.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MyTab1(object): def setupUi(self, MyTab1): MyTab1.setO...
0
0
0
1,413
0
0
0
21
46
e1959f920094849474bd82f434404a656127c2c4
1,238
py
Python
migrations/versions/2019_08_19_215dc3cce5c3_fix_default_for_locale.py
tobikrs/ultimate-poll-bot
eaa190ba1fec852c1a7d12c8a4633245f00c435f
[ "MIT" ]
1
2020-03-22T05:49:44.000Z
2020-03-22T05:49:44.000Z
migrations/versions/2019_08_19_215dc3cce5c3_fix_default_for_locale.py
RuslanBitcash/ultimate-poll-bot
33bc71b56f79453359043bd0e778cd153d3a83a3
[ "MIT" ]
null
null
null
migrations/versions/2019_08_19_215dc3cce5c3_fix_default_for_locale.py
RuslanBitcash/ultimate-poll-bot
33bc71b56f79453359043bd0e778cd153d3a83a3
[ "MIT" ]
1
2021-01-29T17:10:11.000Z
2021-01-29T17:10:11.000Z
"""Fix default for locale Revision ID: 215dc3cce5c3 Revises: 294c1896fc24 Create Date: 2019-08-19 15:57:14.724883 """ # revision identifiers, used by Alembic. revision = '215dc3cce5c3' down_revision = '294c1896fc24' branch_labels = None depends_on = None
28.790698
70
0.621163
"""Fix default for locale Revision ID: 215dc3cce5c3 Revises: 294c1896fc24 Create Date: 2019-08-19 15:57:14.724883 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '215dc3cce5c3' down_revision = '294c1896fc24' branch_labels = None depends_on = None def upgrade(...
0
0
0
0
0
884
0
3
90
23d49ee738e43aa66d515d38988b95d1c1f66917
102
py
Python
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
541
2015-05-27T04:34:38.000Z
2022-03-23T18:00:16.000Z
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
85
2015-05-27T14:27:27.000Z
2022-02-27T18:51:08.000Z
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
129
2015-05-27T20:55:43.000Z
2022-03-23T14:18:07.000Z
# Override any settings required for tests here
20.4
51
0.794118
from XXX_PROJECT_NAME_XXX.settings import * # noqa # Override any settings required for tests here
0
0
0
0
0
0
0
22
31
1bf741f1925a17591050d9ca9b6fb89b0f9bd4ac
14,941
py
Python
cloud.py
netcharm/wordcloud_test
d908a8ac7888384c5183c7b7c424c5f1b6b00801
[ "MIT" ]
1
2017-03-18T15:30:08.000Z
2017-03-18T15:30:08.000Z
cloud.py
netcharm/wordcloud_test
d908a8ac7888384c5183c7b7c424c5f1b6b00801
[ "MIT" ]
null
null
null
cloud.py
netcharm/wordcloud_test
d908a8ac7888384c5183c7b7c424c5f1b6b00801
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 #from __future__ import unicode_literals from __future__ import division """ WordCloud Example =============== Generating a wordcloud with given content & options """ import os import sys from os import path from time import time import re ##########################################...
30.997925
199
0.600964
#!/usr/bin/env python #coding:utf-8 #from __future__ import unicode_literals from __future__ import division """ WordCloud Example =============== Generating a wordcloud with given content & options """ import os import sys from os import path from glob import glob from time import time import random import getopt ...
170
0
0
0
0
11,751
0
-21
722
df0e4ba661f26b0e0f58a2215c870bb0f9ea00ab
94
py
Python
store/admin.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
1
2021-06-07T02:14:13.000Z
2021-06-07T02:14:13.000Z
store/admin.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
9
2021-08-14T07:53:47.000Z
2022-03-18T19:07:22.000Z
store/admin.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Entry admin.site.register(Entry)
18.8
32
0.808511
from django.contrib import admin from .models import Group, Entry admin.site.register(Entry)
0
0
0
0
0
0
0
7
0
56a219c7883ee6bde6af2cf144c4ea6151a6d3f7
267
py
Python
rough.py
Praveenstein/bigGanMicro
d669874c0226907fa41b2140cdc8c46bdef2a283
[ "MIT" ]
null
null
null
rough.py
Praveenstein/bigGanMicro
d669874c0226907fa41b2140cdc8c46bdef2a283
[ "MIT" ]
null
null
null
rough.py
Praveenstein/bigGanMicro
d669874c0226907fa41b2140cdc8c46bdef2a283
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_excel("meta/micro_metadata_5.xlsx", index_col=0, engine='openpyxl', header=0) print(df.shape) df.drop(df.loc[df['primary_microconstituent'] == "figure"].index, inplace=True) print(df.shape) df.to_excel("meta/micro_metadata_6.xlsx")
29.666667
90
0.756554
import pandas as pd df = pd.read_excel("meta/micro_metadata_5.xlsx", index_col=0, engine='openpyxl', header=0) print(df.shape) df.drop(df.loc[df['primary_microconstituent'] == "figure"].index, inplace=True) print(df.shape) df.to_excel("meta/micro_metadata_6.xlsx")
0
0
0
0
0
0
0
0
0
8aeb1228330ab727a68ab5fea8e820ebbef799db
9,788
py
Python
examples/sdlevent.py
Rakaneth/python-tcod
70ff1895fd7ae87bf66f16e388211db389d983fd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/sdlevent.py
Rakaneth/python-tcod
70ff1895fd7ae87bf66f16e388211db389d983fd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/sdlevent.py
Rakaneth/python-tcod
70ff1895fd7ae87bf66f16e388211db389d983fd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/env python """ An alternative, more direct implementation of event handling using cffi calls to SDL functions. The current code is incomplete, but can be extended easily by following the official SDL documentation. This module be run directly like any other event get example, but is meant ...
29.130952
79
0.625971
#!/usr/bin/env python """ An alternative, more direct implementation of event handling using cffi calls to SDL functions. The current code is incomplete, but can be extended easily by following the official SDL documentation. This module be run directly like any other event get example, but is meant ...
0
981
0
2,500
348
0
0
0
276
e115be4816aef144989d30eca15486adcab3fe73
10,846
py
Python
development/mpiarray.py
hbar/alsTomographyTools
ec1edd1477367a57ee94e806134aee92e57db977
[ "MIT" ]
null
null
null
development/mpiarray.py
hbar/alsTomographyTools
ec1edd1477367a57ee94e806134aee92e57db977
[ "MIT" ]
null
null
null
development/mpiarray.py
hbar/alsTomographyTools
ec1edd1477367a57ee94e806134aee92e57db977
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
43.384
216
0.588143
import numpy as np import logging logger = logging.getLogger(__name__) class MpiArray(object): # initialize array from a SINGLE source using arr\ # set arr and root # initialize array from remote sources using local_arr # set local_arr and axis def __init__(self, arr=None, ...
0
1,314
0
9,430
0
0
0
-3
47
729f3ca7185f5078bb2a3aac930fa8216b048af2
801
py
Python
oidc_provider/migrations/0011_client_client_type.py
coolapp-dev/django-oidc-provider
0c8cdc6c580b9d72e46c631167b2347affed6e74
[ "MIT" ]
null
null
null
oidc_provider/migrations/0011_client_client_type.py
coolapp-dev/django-oidc-provider
0c8cdc6c580b9d72e46c631167b2347affed6e74
[ "MIT" ]
null
null
null
oidc_provider/migrations/0011_client_client_type.py
coolapp-dev/django-oidc-provider
0c8cdc6c580b9d72e46c631167b2347affed6e74
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-04-04 19:56 from __future__ import unicode_literals
29.666667
112
0.589263
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-04-04 19:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("oidc_provider", "0010_code_is_authentication"), ] operations = [ migrations.Ad...
0
0
0
625
0
0
0
19
46
77ea1915341c5f03ea714180934a1e701da73204
4,950
py
Python
Backend/DHT/Utils.py
dcordb/DSpotify
dfb7ce4bac3a97254b943e0bcf8027f3e49a3d6f
[ "MIT" ]
1
2020-01-11T05:28:22.000Z
2020-01-11T05:28:22.000Z
Backend/DHT/Utils.py
dcordb/DSpotify
dfb7ce4bac3a97254b943e0bcf8027f3e49a3d6f
[ "MIT" ]
null
null
null
Backend/DHT/Utils.py
dcordb/DSpotify
dfb7ce4bac3a97254b943e0bcf8027f3e49a3d6f
[ "MIT" ]
null
null
null
import Pyro4 import sys Pyro4.config.SERIALIZER = "pickle" Pyro4.config.SERIALIZERS_ACCEPTED.add("pickle") Pyro4.config.THREADPOOL_SIZE = THREADPOOL sys.excepthook = Pyro4.util.excepthook # get current alive nodes # return set of tuples (dir, name) of local songs # Note local, NOT shared!!! # return set of Song ...
23.571429
93
0.533131
import logging import hashlib from Pyro4.errors import * from Backend.DHT.Settings import * import Pyro4 import sys import socket import os Pyro4.config.SERIALIZER = "pickle" Pyro4.config.SERIALIZERS_ACCEPTED.add("pickle") Pyro4.config.THREADPOOL_SIZE = THREADPOOL sys.excepthook = Pyro4.util.excepthook # get current ...
0
3,142
0
266
0
811
0
-16
424
6af27b8f804aa457a8a4280da2bf19619511cdad
864
py
Python
pages/admin.py
Joetib/gmsa
5e862f58cffc24b44978d579f1f6137002365309
[ "MIT" ]
null
null
null
pages/admin.py
Joetib/gmsa
5e862f58cffc24b44978d579f1f6137002365309
[ "MIT" ]
7
2021-04-08T20:49:39.000Z
2021-08-04T23:26:40.000Z
pages/admin.py
Joetib/gmsa
5e862f58cffc24b44978d579f1f6137002365309
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Business, ContactMessage, Event, Executive, ExecutiveRole, Configuration, Image, Madarasah, MadarasahCategory, Product, Programme, Course, Book, Project, Scholarship, Slider admin.site.site_header = "GMSA(UCC)" admin.site.index_title = ...
29.793103
193
0.81713
from django.contrib import admin # Register your models here. from .models import Business, ContactMessage, Event, Executive, ExecutiveRole, Configuration, Image, Madarasah, MadarasahCategory, Product, Programme, Course, Book, Project, Scholarship, Slider admin.site.site_header = "GMSA(UCC)" admin.site.index_title = ...
0
0
0
0
0
0
0
0
0
70d03e14c4080f8d4fba262ef494c8785189538c
2,764
py
Python
unicaps/_captcha/image.py
sergey-scat/unicaps
8f4a3c3f802c58464e93f953bcf11ecf44ef8f3b
[ "Apache-2.0" ]
8
2020-07-27T19:18:27.000Z
2022-02-23T04:05:56.000Z
unicaps/_captcha/image.py
sergey-scat/unicaps
8f4a3c3f802c58464e93f953bcf11ecf44ef8f3b
[ "Apache-2.0" ]
2
2021-01-19T07:06:03.000Z
2021-09-03T13:27:12.000Z
unicaps/_captcha/image.py
sergey-scat/unicaps
8f4a3c3f802c58464e93f953bcf11ecf44ef8f3b
[ "Apache-2.0" ]
5
2021-03-22T23:09:05.000Z
2022-01-21T09:00:14.000Z
# -*- coding: UTF-8 -*- """ Image CAPTCHA """
33.707317
93
0.68343
# -*- coding: UTF-8 -*- """ Image CAPTCHA """ import base64 import imghdr import io import pathlib from dataclasses import dataclass from typing import Union, Optional from .base import BaseCaptcha, BaseCaptchaSolution from ..common import CaptchaAlphabet, CaptchaCharType, WorkerLanguage from ..exceptions import BadI...
0
2,382
0
0
0
0
0
88
246
9374ce9893191d34479d20d3be850b1a807dee28
925
py
Python
shop/migrations/0011_auto_20220225_1440.py
yuki5g/furima
9239359f17da0a5520a494910fbff043c26e1eee
[ "BSD-2-Clause" ]
null
null
null
shop/migrations/0011_auto_20220225_1440.py
yuki5g/furima
9239359f17da0a5520a494910fbff043c26e1eee
[ "BSD-2-Clause" ]
1
2022-02-28T05:57:25.000Z
2022-02-28T05:57:25.000Z
shop/migrations/0011_auto_20220225_1440.py
yuki5g/furima
9239359f17da0a5520a494910fbff043c26e1eee
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.1.7 on 2022-02-25 05:40
25
60
0.570811
# Generated by Django 2.1.7 on 2022-02-25 05:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('shop', '0010_remove_modelitemlist_transactionid'), ] operations = [ migrations.RemoveField( model_name='modeltransactionlist', ...
0
0
0
819
0
0
0
11
46
ec9401b5d4ad113525ffa926141655a763dd5062
207
py
Python
easyimap/__init__.py
taolluo/easyimap
bf2dd13204a00295e0ef1ddfbd7f34c2205aee36
[ "BSD-3-Clause" ]
null
null
null
easyimap/__init__.py
taolluo/easyimap
bf2dd13204a00295e0ef1ddfbd7f34c2205aee36
[ "BSD-3-Clause" ]
null
null
null
easyimap/__init__.py
taolluo/easyimap
bf2dd13204a00295e0ef1ddfbd7f34c2205aee36
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ easyimap ~~~~~~~~ Easy Imap wrapper. :license: BSD, see LICENSE.txt for more details. """ __title__ = 'easyimap' from .easyimap import connect __all__ = ['connect',]
12.176471
48
0.637681
# -*- coding: utf-8 -*- """ easyimap ~~~~~~~~ Easy Imap wrapper. :license: BSD, see LICENSE.txt for more details. """ __title__ = 'easyimap' from .easyimap import connect,PARAMS __all__ = ['connect',]
0
0
0
0
0
0
0
7
0
91dc66f540348dc401376f5cfc77e029441a1eff
4,126
py
Python
ritpytrading/tenders.py
SamSamhuns/RIT-trading-python
a12edac5f6ee906e94089001ae00138ed5994e0a
[ "Apache-2.0" ]
12
2019-05-12T09:49:48.000Z
2021-08-09T01:31:43.000Z
ritpytrading/tenders.py
SamSamhuns/RIT-trading-python
a12edac5f6ee906e94089001ae00138ed5994e0a
[ "Apache-2.0" ]
230
2019-02-10T13:35:12.000Z
2022-03-28T07:23:23.000Z
ritpytrading/tenders.py
SamSamhuns/RIT-trading-python
a12edac5f6ee906e94089001ae00138ed5994e0a
[ "Apache-2.0" ]
3
2019-02-01T21:42:40.000Z
2019-10-20T17:55:55.000Z
# This script contains results for the /tenders module # # Sample JSON output formats for the function returns # Tender object return value: JSON formatted # [ # { # "tender_id": 0, # "period": 0, # "tick": 0, # "expires": 0, # "caption": "string", # "quantity": 0, # "action": "BUY", # ...
29.056338
76
0.677169
# This script contains results for the /tenders module # # Sample JSON output formats for the function returns # Tender object return value: JSON formatted # [ # { # "tender_id": 0, # "period": 0, # "tick": 0, # "expires": 0, # "caption": "string", # "quantity": 0, # "action": "BUY", # ...
0
0
0
715
0
506
0
0
69
03f3c2ac19fa2744fbe868153b3b9d1e21d0a8bc
987
py
Python
main.py
dev-shah-2204/roastinator-v2
09a90897ba5e408c242112d0a27d7b251fa44b19
[ "MIT" ]
5
2021-07-08T11:36:45.000Z
2022-01-06T04:23:13.000Z
main.py
very-unique-username/unique-username-discord
6f77eb1552cefe9a29a0726e07f6c0b9e769f60d
[ "MIT" ]
null
null
null
main.py
very-unique-username/unique-username-discord
6f77eb1552cefe9a29a0726e07f6c0b9e769f60d
[ "MIT" ]
1
2021-06-30T09:35:59.000Z
2021-06-30T09:35:59.000Z
import os from bot import Roastinator bot = Roastinator() bot.remove_command('help') cogs = [ 'basic', 'developer', 'error_handler', 'events', 'fun', 'games', 'help', 'moderation', 'utility' ] for cog in cogs: bot.load_extension(f'cogs.{cog}') bot.load_extension('jishaku') ...
25.973684
207
0.693009
import os import discord from utils import checks from bot import Roastinator bot = Roastinator() bot.remove_command('help') cogs = [ 'basic', 'developer', 'error_handler', 'events', 'fun', 'games', 'help', 'moderation', 'utility' ] for cog in cogs: bot.load_extension(f'cogs...
0
575
0
0
0
0
0
-4
68
94b5d302187d6977cdffc44e860668f719605202
105
py
Python
ajaximage/forms.py
lzanuz/django-ajaximage
f0c92016645372db2d5413544e58f5279e3bad46
[ "MIT" ]
null
null
null
ajaximage/forms.py
lzanuz/django-ajaximage
f0c92016645372db2d5413544e58f5279e3bad46
[ "MIT" ]
null
null
null
ajaximage/forms.py
lzanuz/django-ajaximage
f0c92016645372db2d5413544e58f5279e3bad46
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*-
13.125
27
0.67619
#-*- coding: utf-8 -*- from django import forms class FileForm(forms.Form): file = forms.FileField()
0
0
0
32
0
0
0
3
46
ca091bda8db82cf0262325e91f0f2228feccb3f3
331
py
Python
tests/data/format/final_period/function_docstrings.py
DanielNoord/pydocstringformatter
a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe
[ "MIT" ]
4
2022-01-02T22:50:59.000Z
2022-02-09T09:04:37.000Z
tests/data/format/final_period/function_docstrings.py
DanielNoord/pydocstringformatter
a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe
[ "MIT" ]
80
2022-01-02T09:02:50.000Z
2022-03-30T13:34:10.000Z
tests/data/format/final_period/function_docstrings.py
DanielNoord/pydocstringformatter
a69302cee6bd32b9b5cc48912a47d0e8ad3f7abe
[ "MIT" ]
2
2022-01-02T11:58:29.000Z
2022-01-04T18:53:29.000Z
def func() """Docstring""" def inner_func() """Docstring""" def func() """A multi-line docstring """ def inner_func() """A multi-line docstring """ def func() """Summary docstring """ def inner_func() """Summary docstring ...
11.033333
23
0.44713
def func() """Docstring""" def inner_func() """Docstring""" def func() """A multi-line docstring """ def inner_func() """A multi-line docstring """ def func() """Summary docstring """ def inner_func() """Summary docstring ...
0
0
0
0
0
0
0
0
0
4ae0ccc14d703088a82673748b245ea395b8c021
659
py
Python
Authentication/migrations/0012_auto_20180131_1414.py
zhuxiyulu/CloudJudge
62ef8d75b0ddd194ea9813ec9df1f7baaa768f69
[ "Apache-2.0" ]
1
2018-02-07T05:14:28.000Z
2018-02-07T05:14:28.000Z
Authentication/migrations/0012_auto_20180131_1414.py
zhuxiyulu/CloudJudge
62ef8d75b0ddd194ea9813ec9df1f7baaa768f69
[ "Apache-2.0" ]
null
null
null
Authentication/migrations/0012_auto_20180131_1414.py
zhuxiyulu/CloudJudge
62ef8d75b0ddd194ea9813ec9df1f7baaa768f69
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-31 14:14
26.36
102
0.62519
# Generated by Django 2.0.1 on 2018-01-31 14:14 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('Authentication', '0011_user_date_joined'), ] operations = [ migrations.AddField( model_name='user',...
0
0
0
516
0
0
0
26
68
d21714743bac0cba48a7e2619ac79406f653f855
18,749
py
Python
correlator.py
DanWhiting/sensl-hrm-tdc
513c305a6adc6a1552015088660f44576ad6b010
[ "MIT" ]
null
null
null
correlator.py
DanWhiting/sensl-hrm-tdc
513c305a6adc6a1552015088660f44576ad6b010
[ "MIT" ]
null
null
null
correlator.py
DanWhiting/sensl-hrm-tdc
513c305a6adc6a1552015088660f44576ad6b010
[ "MIT" ]
null
null
null
from __future__ import division import wx import matplotlib matplotlib.use('WxAgg') ''' Author - Daniel J. Whiting Date modified - 10/08/2017 Modifications/comments by Renju S. Mathew ''' if __name__ == "__main__": app = wx.App(False) mainframe = MainFrame(None, "correlator.py") app.MainLoop()
51.367123
198
0.628674
from __future__ import division from sensl import HRMTimeAPI import wx import matplotlib matplotlib.use('WxAgg') from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg, NavigationToolbar2WxAgg import matplotlib.pyplot as plt import numpy as np import threading import time import sys import os ''' Author - Da...
0
0
0
18,053
0
112
0
43
222
b67d8743026d23991da25c84f7ff00c1fe42ebb8
3,143
py
Python
planner_online/scripts/reader.py
LorisR/BO_best_view
af5978dcb7491436c6ab50bf1a1b003e14c1227e
[ "CC0-1.0" ]
null
null
null
planner_online/scripts/reader.py
LorisR/BO_best_view
af5978dcb7491436c6ab50bf1a1b003e14c1227e
[ "CC0-1.0" ]
null
null
null
planner_online/scripts/reader.py
LorisR/BO_best_view
af5978dcb7491436c6ab50bf1a1b003e14c1227e
[ "CC0-1.0" ]
null
null
null
#!/home/loris/anaconda3/envs/py3/bin/python # -*- coding: utf-8 -*- """ Created on Wed Sep 30 15:41:33 2020 @author: marco """ import numpy as np import sys import rospy from planner_online.msg import coord_to_reach from std_msgs.msg import String import re from tkinter import filedialog #CHANGE ROOT root = '/home/...
32.071429
147
0.612472
#!/home/loris/anaconda3/envs/py3/bin/python # -*- coding: utf-8 -*- """ Created on Wed Sep 30 15:41:33 2020 @author: marco """ import numpy as np import sys import rospy from planner_online.msg import coord_to_reach from std_msgs.msg import String import re from tkinter import filedialog from tkinter import * #CHAN...
2
0
0
0
0
0
0
0
22
0af886d529daeeec7aa89d7f1102c3f0af2dbe8e
1,077
py
Python
src/cltkv1/sentence/grc.py
todd-cook/cltkv1
90c3daaafda242a1982b38c2b11c52aedab7ddf8
[ "MIT" ]
null
null
null
src/cltkv1/sentence/grc.py
todd-cook/cltkv1
90c3daaafda242a1982b38c2b11c52aedab7ddf8
[ "MIT" ]
null
null
null
src/cltkv1/sentence/grc.py
todd-cook/cltkv1
90c3daaafda242a1982b38c2b11c52aedab7ddf8
[ "MIT" ]
null
null
null
"""Code for sentences tokenization: Greek. Sentence tokenization for Ancient Greek is available using a regular-expression based tokenizer. >>> from cltkv1.sentence.grc import GreekRegexSentenceTokenizer >>> from cltkv1.languages.example_texts import get_example_text >>> splitter = GreekRegexSentenceTokenizer() >>> s...
37.137931
212
0.765088
"""Code for sentences tokenization: Greek. Sentence tokenization for Ancient Greek is available using a regular-expression based tokenizer. >>> from cltkv1.sentence.grc import GreekRegexSentenceTokenizer >>> from cltkv1.languages.example_texts import get_example_text >>> splitter = GreekRegexSentenceTokenizer() >>> s...
371
0
0
244
0
0
0
72
68
dfdb10af9d73c4555420558da9a2db76574e2bfb
482
py
Python
bookapp/models/__init__.py
anandtripathi5/book_store
ecac7a5e714fee8826fa0f950ef6b8e9ea5f2b8c
[ "MIT" ]
2
2018-10-09T09:56:21.000Z
2020-10-27T06:15:59.000Z
bookapp/models/__init__.py
anandtripathi5/book_store
ecac7a5e714fee8826fa0f950ef6b8e9ea5f2b8c
[ "MIT" ]
null
null
null
bookapp/models/__init__.py
anandtripathi5/book_store
ecac7a5e714fee8826fa0f950ef6b8e9ea5f2b8c
[ "MIT" ]
null
null
null
session = None session_obj = None
24.1
64
0.802905
from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session from sqlalchemy.orm import sessionmaker session = None session_obj = None def _get_db_session_obj(database_url): global session_obj session_obj = sessionmaker(bind=create_engine(database_url)) return session_obj def get_sess...
0
0
0
0
0
280
0
53
112
97d86b023373d4bf7084a4f199e82754cc806e1a
7,255
py
Python
examples/diag_example.py
chicagofire/python-sybase
eb9f1905e8a8da1669682e2fa655c22f2f794952
[ "BSD-3-Clause" ]
3
2017-02-24T10:51:45.000Z
2017-05-19T07:07:47.000Z
examples/diag_example.py
chicagofire/python-sybase
eb9f1905e8a8da1669682e2fa655c22f2f794952
[ "BSD-3-Clause" ]
null
null
null
examples/diag_example.py
chicagofire/python-sybase
eb9f1905e8a8da1669682e2fa655c22f2f794952
[ "BSD-3-Clause" ]
5
2016-10-13T23:18:30.000Z
2022-01-13T12:55:47.000Z
#!/usr/bin/python # # From diag_example.c - sybase example program # # Description: # This program accepts a SQL statement from the user and uses # ct_diag to report error messages. The routine 'call_diag' is # called every time you make a call that could generate a error. # # Tests to try: # (1) To test ser...
36.457286
78
0.634183
#!/usr/bin/python # # From diag_example.c - sybase example program # # Description: # This program accepts a SQL statement from the user and uses # ct_diag to report error messages. The routine 'call_diag' is # called every time you make a call that could generate a error. # # Tests to try: # (1) To test ser...
0
0
0
0
0
4,868
0
1
205
07e50ff3808772d69dbe148f21887b89b42e930c
1,411
py
Python
jsengine/util.py
SeaHOH/jsengine
877487315feaf7a3357a3f343b68293428c1a0b5
[ "MIT" ]
4
2022-01-05T15:25:20.000Z
2022-02-20T09:42:03.000Z
jsengine/util.py
SeaHOH/jsengine
877487315feaf7a3357a3f343b68293428c1a0b5
[ "MIT" ]
null
null
null
jsengine/util.py
SeaHOH/jsengine
877487315feaf7a3357a3f343b68293428c1a0b5
[ "MIT" ]
null
null
null
import sys import json try: except ImportError: if sys.version_info > (3,): unicode = str json_encoder = json.JSONEncoder( skipkeys=True, ensure_ascii=False, check_circular=True, allow_nan=True, indent=None, separators=None, default=json_encoder_fallback, ) json_encoder_ensure_ascii...
21.378788
52
0.641389
import os import sys import json from functools import wraps try: from shutil import which except ImportError: from distutils.spawn import find_executable def which(cmd, mode=os.X_OK, path=None): cmd = find_executable(cmd, path) if cmd and os.access(cmd, mode): return cmd if ...
0
248
0
0
0
443
0
19
215
e8ce075c4f5c2d0a317496a6cf7ea5906c75d4c3
692
py
Python
2019/aoc_2019_06/test_aoc_2019_06.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
2019/aoc_2019_06/test_aoc_2019_06.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
2019/aoc_2019_06/test_aoc_2019_06.py
ericcolton/AdventOfCode
58bdf8886d1d6cea5faeee74248c10ddaf97a93b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re if __name__ == '__main__': for symbol in dir(): if re.search('^test_', symbol): print(f"Running {symbol}()") globals()[symbol]()
15.377778
54
0.631503
#!/usr/bin/env python3 import re from aoc_2019_06 import OrbitMap, parse_input_data def test_count_total_orbits(): test_data = """COM)B B)C C)D D)E E)F B)G G)H D)I E)J J)K K)L""" input = parse_input_data(test_data) om = OrbitMap(input) assert om.count_total_orbits() == 42 def test_calc_distance_betwe...
0
0
0
0
0
395
0
29
68
6b4da1c631aa354e2a8e536991d6504d231821c8
1,735
py
Python
__main__.py
Daniel-Chin/mini-Python
b122450a075adc4315cc13c29502f2029584e4bc
[ "MIT" ]
1
2021-12-02T21:13:04.000Z
2021-12-02T21:13:04.000Z
__main__.py
Daniel-Chin/mini-Python
b122450a075adc4315cc13c29502f2029584e4bc
[ "MIT" ]
null
null
null
__main__.py
Daniel-Chin/mini-Python
b122450a075adc4315cc13c29502f2029584e4bc
[ "MIT" ]
null
null
null
main()
29.913793
79
0.570605
import os import argparse from runtime import RunTime, Helicopter, reprString def runScript(entry_filename): dir_location, filename = os.path.split(entry_filename) name, _ = os.path.splitext(filename) runTime = RunTime(dir_location) try: runTime.imPort(name, '__main__') except Helicopter as...
0
0
0
0
0
1,557
0
12
158
93eb19464573357aac0d854f15c8cb2a484d5cb3
730
py
Python
corpus/customcorpus.py
privacyrespected/Alpha
60ffdb73b334e37a87be119ce881d084aef8d7a1
[ "Apache-2.0" ]
null
null
null
corpus/customcorpus.py
privacyrespected/Alpha
60ffdb73b334e37a87be119ce881d084aef8d7a1
[ "Apache-2.0" ]
null
null
null
corpus/customcorpus.py
privacyrespected/Alpha
60ffdb73b334e37a87be119ce881d084aef8d7a1
[ "Apache-2.0" ]
null
null
null
conversation=[ "hi", "hello there" ] conversation1=[ "good morning", "how are you", "i am great thanks", "that great to hear" ] conversation2=[ "thank you", "you are welcome" ] conversation3=[ "where do you live?", "i live in your computer" ] conversation4=[ "who are you", ...
16.590909
65
0.608219
conversation=[ "hi", "hello there" ] conversation1=[ "good morning", "how are you", "i am great thanks", "that great to hear" ] conversation2=[ "thank you", "you are welcome" ] conversation3=[ "where do you live?", "i live in your computer" ] conversation4=[ "who are you", ...
0
0
0
0
0
0
0
0
0
d2de35acdc2dfa5ea0f9a9e8679c10f9aa77d064
1,237
py
Python
app/bootstrap/settings/components/base.py
enix403/django-compose-starter-template
5195ee0a1e59f567fcb314973a91a531324e50b2
[ "Apache-2.0" ]
null
null
null
app/bootstrap/settings/components/base.py
enix403/django-compose-starter-template
5195ee0a1e59f567fcb314973a91a531324e50b2
[ "Apache-2.0" ]
null
null
null
app/bootstrap/settings/components/base.py
enix403/django-compose-starter-template
5195ee0a1e59f567fcb314973a91a531324e50b2
[ "Apache-2.0" ]
null
null
null
from app.utils import resolve_root from app.bootstrap.configmanager import ConfigManager SECRET_KEY = ConfigManager.get('main.secret_key') ALLOWED_HOSTS = ['*'] ROOT_URLCONF = 'app.bootstrap.rooturls' WSGI_APPLICATION = 'app.bootstrap.wsgi.application' INSTALLED_APPS = [ 'django.contrib.contenttypes', 'djang...
25.244898
109
0.678254
from app.utils import resolve_root from app.bootstrap.configmanager import ConfigManager SECRET_KEY = ConfigManager.get('main.secret_key') ALLOWED_HOSTS = ['*'] ROOT_URLCONF = 'app.bootstrap.rooturls' WSGI_APPLICATION = 'app.bootstrap.wsgi.application' INSTALLED_APPS = [ 'django.contrib.contenttypes', 'djang...
0
0
0
0
0
0
0
0
0
08d499fcd5018c57971c188547b8b81d42da152f
444
py
Python
gunicorn.py
pbillerot/drumservice
84a702989aef9b385e3f6fa743bbb607371e7db6
[ "MIT" ]
null
null
null
gunicorn.py
pbillerot/drumservice
84a702989aef9b385e3f6fa743bbb607371e7db6
[ "MIT" ]
1
2021-03-20T08:01:31.000Z
2021-03-20T08:01:31.000Z
gunicorn.py
pbillerot/drumservice
84a702989aef9b385e3f6fa743bbb607371e7db6
[ "MIT" ]
null
null
null
command = '/var/www/__APP_NAME__/venv/bin/gunicorn' pythonpath = '/var/www/__APP_NAME__' workers = 3 user = '__USER_NAME__' bind = '127.0.0.1:8000' pid = '/run/gunicorn/__APP_NAME__-pid' errorlog = '/var/log/__APP_NAME__/error.log' accesslog = '/var/log/__APP_NAME__/access.log' access_log_format = '%({X-Real-IP}i)s %({...
37
121
0.671171
command = '/var/www/__APP_NAME__/venv/bin/gunicorn' pythonpath = '/var/www/__APP_NAME__' workers = 3 user = '__USER_NAME__' bind = '127.0.0.1:8000' pid = '/run/gunicorn/__APP_NAME__-pid' errorlog = '/var/log/__APP_NAME__/error.log' accesslog = '/var/log/__APP_NAME__/access.log' access_log_format = '%({X-Real-IP}i)s %({...
0
0
0
0
0
0
0
0
0
8f0836221c33cb21e0a430930d81a6477333f71e
6,884
py
Python
bust_or_boom/percentile_plot.py
Shom770/data-science-projects
a85ef8c73fbee66ac060414716e2b0440772f07f
[ "MIT" ]
null
null
null
bust_or_boom/percentile_plot.py
Shom770/data-science-projects
a85ef8c73fbee66ac060414716e2b0440772f07f
[ "MIT" ]
null
null
null
bust_or_boom/percentile_plot.py
Shom770/data-science-projects
a85ef8c73fbee66ac060414716e2b0440772f07f
[ "MIT" ]
null
null
null
import datetime from operator import itemgetter import numpy as np import requests import cartopy.crs as ccrs import cartopy.feature as cfeature import matplotlib.pyplot as plt import matplotlib.patheffects as patheffects import matplotlib.colors as colors import matplotlib.cm as cm import scipy.stats from matplotlib....
32.625592
117
0.652673
import datetime from operator import itemgetter import numpy as np import requests import cartopy.crs as ccrs import cartopy.feature as cfeature import matplotlib.pyplot as plt import matplotlib.patheffects as patheffects import matplotlib.colors as colors import matplotlib.cm as cm import scipy.stats from matplotlib....
0
0
0
0
0
201
0
0
23
68abc09372da973f6f60538369e5908f203b60fe
4,917
py
Python
volatility/framework/layers/crash.py
dl9rdz/volatility3
9d9cdfb7d43b98662089503fdb85f103d551b543
[ "Linux-OpenIB" ]
null
null
null
volatility/framework/layers/crash.py
dl9rdz/volatility3
9d9cdfb7d43b98662089503fdb85f103d551b543
[ "Linux-OpenIB" ]
null
null
null
volatility/framework/layers/crash.py
dl9rdz/volatility3
9d9cdfb7d43b98662089503fdb85f103d551b543
[ "Linux-OpenIB" ]
null
null
null
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 #
42.025641
120
0.658532
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # import struct from typing import Tuple, Optional from volatility.framework import constants, exceptions, interfaces from volatility...
0
1,605
0
2,835
0
0
0
106
181
07c1f020e9061cbb8b11d78440d89940bc2e6685
2,225
py
Python
aegnn/models/utils/map.py
uzh-rpg/aegnn
d96e13b2f80f3c7515a65baf966544e0914d068d
[ "MIT" ]
null
null
null
aegnn/models/utils/map.py
uzh-rpg/aegnn
d96e13b2f80f3c7515a65baf966544e0914d068d
[ "MIT" ]
null
null
null
aegnn/models/utils/map.py
uzh-rpg/aegnn
d96e13b2f80f3c7515a65baf966544e0914d068d
[ "MIT" ]
null
null
null
import numpy as np import torch from mapcalc import calculate_map, calculate_map_range from typing import Union def compute_map(detected_bbox: torch.Tensor, gt_bbox: torch.Tensor, gt_batch: torch.LongTensor, iou_threshold: Union[float, np.ndarray] = 0.5) -> float: """Computes the mean average pre...
47.340426
118
0.67236
import numpy as np import torch from mapcalc import calculate_map, calculate_map_range from typing import Dict, Union def compute_map(detected_bbox: torch.Tensor, gt_bbox: torch.Tensor, gt_batch: torch.LongTensor, iou_threshold: Union[float, np.ndarray] = 0.5) -> float: """Computes the mean avera...
0
0
0
0
0
552
0
6
46
222e78b402043448fa48419d45816c508dec2a99
1,120
py
Python
common/colors.py
gwillmer/openpilot
1d45781c973a716c914f5d62a00fd9217e12d3b5
[ "MIT" ]
16
2021-04-21T21:13:19.000Z
2022-03-24T19:52:34.000Z
common/colors.py
gwillmer/openpilot
1d45781c973a716c914f5d62a00fd9217e12d3b5
[ "MIT" ]
10
2021-05-18T20:54:31.000Z
2021-08-19T00:12:11.000Z
common/colors.py
gwillmer/openpilot
1d45781c973a716c914f5d62a00fd9217e12d3b5
[ "MIT" ]
28
2020-06-07T20:15:28.000Z
2022-03-24T19:53:58.000Z
COLORS = COLORS()
26.046512
76
0.616071
class COLORS: def __init__(self): self.HEADER = '\033[95m' self.OKBLUE = '\033[94m' self.CBLUE = '\33[44m' self.BOLD = '\033[1m' self.CITALIC = '\33[3m' self.OKGREEN = '\033[92m' self.CWHITE = '\33[37m' self.ENDC = '\033[0m' + self.CWHITE self.UNDERLINE = '\033[4m' self.PINK = ...
0
0
0
874
0
157
0
0
68
022b9f6cc53f0fcaaae68cbc44b617f2b6e8183c
4,614
py
Python
holoviews/tests/core/teststoreoptions.py
xavArtley/holoviews
7dbb05d3c5fcfdcdd724a9c19103ec7d19bcc9e1
[ "BSD-3-Clause" ]
1
2019-01-02T20:20:09.000Z
2019-01-02T20:20:09.000Z
holoviews/tests/core/teststoreoptions.py
xavArtley/holoviews
7dbb05d3c5fcfdcdd724a9c19103ec7d19bcc9e1
[ "BSD-3-Clause" ]
null
null
null
holoviews/tests/core/teststoreoptions.py
xavArtley/holoviews
7dbb05d3c5fcfdcdd724a9c19103ec7d19bcc9e1
[ "BSD-3-Clause" ]
null
null
null
""" Unit tests of the StoreOptions class used to control custom options on Store as used by the %opts magic. """
39.435897
85
0.607065
""" Unit tests of the StoreOptions class used to control custom options on Store as used by the %opts magic. """ import numpy as np from holoviews import Overlay, Curve, Image, HoloMap from holoviews.core.options import Store, StoreOptions from holoviews.element.comparison import ComparisonTestCase from holoviews impor...
0
3,083
0
1,008
0
0
0
136
272
fd87a89e8f1e2afc8ed6d177879defc3ce6178fa
989
py
Python
mundo3/D82.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo3/D82.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
mundo3/D82.py
KayanOkagawa/Cursoemvideo-Python3-Exercicios
10c8386102cc0928f8f090070eb3218deb3d60fe
[ "MIT" ]
null
null
null
titulo = '\033[01;33m' txt = '\033[37m' nada = '\033[m' lista = list() par = list() impar = list() resposta = 'S' print(f'\n{titulo:-<20} Lista Par e Impar {nada:->14}') while True: if resposta == 'S': lista.append(int(input(f'\n{txt}Digite um nmero: {nada}'))) resposta = ' ' while not respost...
29.088235
92
0.493428
titulo = '\033[01;33m' txt = '\033[37m' nada = '\033[m' lista = list() par = list() impar = list() resposta = 'S' print(f'\n{titulo:-<20} Lista Par e Impar {nada:->14}') while True: if resposta == 'S': lista.append(int(input(f'\n{txt}Digite um número: {nada}'))) resposta = ' ' while not respos...
4
0
0
0
0
0
0
0
0
db993546fe222d7b93290d83f11382ae368bf5cf
41
py
Python
inference_all.py
jaemin93/pytorch-deeplab-xception
4ae96b90d19c22502170ce0bd7d5a9ce87db2f7f
[ "MIT" ]
20
2019-11-06T02:47:20.000Z
2022-03-16T01:43:00.000Z
inference_all.py
jaemin93/pytorch-deeplab-xception
4ae96b90d19c22502170ce0bd7d5a9ce87db2f7f
[ "MIT" ]
null
null
null
inference_all.py
jaemin93/pytorch-deeplab-xception
4ae96b90d19c22502170ce0bd7d5a9ce87db2f7f
[ "MIT" ]
7
2019-10-12T10:30:01.000Z
2022-03-16T01:43:02.000Z
import os os.system('bash inference.sh')
13.666667
30
0.756098
import os os.system('bash inference.sh')
0
0
0
0
0
0
0
0
0
3623de9ed1e1502535d73cdf1eaf4e32f337ba3a
1,702
py
Python
deprecated_examples/affect/mosi_early_fusion.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
deprecated_examples/affect/mosi_early_fusion.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
deprecated_examples/affect/mosi_early_fusion.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.getcwd()) import torch from training_structures.Simple_Early_Fusion import train, test from fusions.common_fusions import ConcatEarly from get_data import get_dataloader from unimodals.common_models import GRU, MLP # Support mosi/mosi_unaligned/mosei/mosei_unaligned traindata,...
32.113208
91
0.742068
import sys import os sys.path.append(os.getcwd()) import torch from training_structures.Simple_Early_Fusion import train, test from fusions.common_fusions import ConcatEarly from get_data import get_dataloader from unimodals.common_models import GRU, MLP # Support mosi/mosi_unaligned/mosei/mosei_unaligned traindata,...
0
0
0
0
0
0
0
0
0
95822aad272b4ef7bae6e99b9da96b6b6a5e1803
1,772
py
Python
5_behavioural_coloning/1_create_dataset.py
IuAyala/Self-Driving-Cars-Course
3171a556726e1a67d43a8fae4512c66d3715cf1c
[ "MIT" ]
null
null
null
5_behavioural_coloning/1_create_dataset.py
IuAyala/Self-Driving-Cars-Course
3171a556726e1a67d43a8fae4512c66d3715cf1c
[ "MIT" ]
null
null
null
5_behavioural_coloning/1_create_dataset.py
IuAyala/Self-Driving-Cars-Course
3171a556726e1a67d43a8fae4512c66d3715cf1c
[ "MIT" ]
null
null
null
"""create_database controller.""" # @utils.profile if __name__ == "__main__": main()
24.611111
82
0.634312
"""create_database controller.""" import os import shutil import json from vehicle import Car import driving_inputs from PIL import Image import utils from pathlib import Path # @utils.profile def main(): # Create the Robot instance. robot = Car() # Get the time step of the current vworld. timestep ...
0
0
0
0
0
1,514
0
-34
199
f74216f426dbc31123e0f8346e16ada73510a9f0
1,651
py
Python
backend/src/photoImposer.py
jayeshjakkani/American-Football-Analytics-Application
54609c0ea1b635425e4edad08f3414bcf3d05459
[ "MIT" ]
null
null
null
backend/src/photoImposer.py
jayeshjakkani/American-Football-Analytics-Application
54609c0ea1b635425e4edad08f3414bcf3d05459
[ "MIT" ]
null
null
null
backend/src/photoImposer.py
jayeshjakkani/American-Football-Analytics-Application
54609c0ea1b635425e4edad08f3414bcf3d05459
[ "MIT" ]
1
2020-10-26T20:52:44.000Z
2020-10-26T20:52:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
40.268293
123
0.643852
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from photoCoordinates import photoCoordinates from PIL import Image, ImageFont, ImageDraw class photoImposer: pc = photoCoordinates() allCoordinates = pc.allCoordinates all_images = {} def __init__(self): self.all_images['KICKOFF'] = "formation...
0
0
0
1,489
0
0
0
46
68
2b2d06788717090c292af0f9e31c94efb60496ee
12,700
py
Python
tests/unit/test_api.py
broskees/ticktick-py
ef102d9019ef7cce41cc265d78c18071df9033ec
[ "MIT" ]
86
2021-01-19T13:54:28.000Z
2022-03-28T02:19:10.000Z
tests/unit/test_api.py
langjihao/ticktick-py
ef102d9019ef7cce41cc265d78c18071df9033ec
[ "MIT" ]
22
2021-01-18T21:58:09.000Z
2022-03-22T20:55:02.000Z
tests/unit/test_api.py
langjihao/ticktick-py
ef102d9019ef7cce41cc265d78c18071df9033ec
[ "MIT" ]
16
2021-07-26T05:24:58.000Z
2022-03-26T05:25:06.000Z
""" Module for testing api.py """ RESPONSE_ONE_URL = 'https://someurl.com/test.json' RESPONSE_TWO_URL = 'https://someotherurl.com/anothertest.json' RESPONSE_THREE_URL = 'https://nojsonresponse.com/'
34.89011
104
0.637244
""" Module for testing api.py """ import pytest import uuid from ticktick.managers.projects import ProjectManager from ticktick.managers.tasks import TaskManager from ticktick.managers.focus import FocusTimeManager from ticktick.managers.habits import HabitManager from ticktick.managers.pomo import PomoManager from t...
0
674
0
10,701
0
337
0
205
570
814a2c59f8e4641ffff26d7f45a51857eca8cba8
7,106
py
Python
src/biotite/structure/io/mol/file.py
alex123012/biotite
5702c6eb4e9a577954177788815b0f517c111c12
[ "BSD-3-Clause" ]
208
2018-04-20T15:59:42.000Z
2022-03-22T07:47:12.000Z
src/biotite/structure/io/mol/file.py
alex123012/biotite
5702c6eb4e9a577954177788815b0f517c111c12
[ "BSD-3-Clause" ]
121
2017-11-15T14:52:07.000Z
2022-03-30T16:31:41.000Z
src/biotite/structure/io/mol/file.py
alex123012/biotite
5702c6eb4e9a577954177788815b0f517c111c12
[ "BSD-3-Clause" ]
49
2018-07-19T09:06:24.000Z
2022-03-23T17:21:34.000Z
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite.structure.io.mol" __author__ = "Patrick Kunzmann" __all__ = ["MOLFile"] # Number of header lines N_HEADER = 3 DATE_FORMAT = "%d%m%y%H%M"
35.888889
81
0.499296
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite.structure.io.mol" __author__ = "Patrick Kunzmann" __all__ = ["MOLFile"] import datetime from warnings import warn import numpy as np from ...at...
0
0
0
6,347
0
148
0
94
201
23aa432049edbaebaaf2fbe23253f1c60cdb1efc
4,254
py
Python
blueprints/google_firewalls/create.py
hciudad/cloudbolt-forge
d1109c90dcd189defa70876906d394e0c91feab5
[ "Apache-2.0" ]
34
2015-08-30T09:26:41.000Z
2022-03-03T13:18:14.000Z
blueprints/google_firewalls/create.py
hciudad/cloudbolt-forge
d1109c90dcd189defa70876906d394e0c91feab5
[ "Apache-2.0" ]
22
2015-11-23T21:24:17.000Z
2022-01-31T04:24:24.000Z
blueprints/google_firewalls/create.py
hciudad/cloudbolt-forge
d1109c90dcd189defa70876906d394e0c91feab5
[ "Apache-2.0" ]
43
2015-11-18T16:26:22.000Z
2021-10-18T13:19:39.000Z
""" Plug-in for creating a Google cloud firewall. """ from __future__ import unicode_literals
31.984962
96
0.668547
""" Plug-in for creating a Google cloud firewall. """ from __future__ import unicode_literals from googleapiclient.discovery import build from oauth2client.service_account import ServiceAccountCredentials from infrastructure.models import CustomField, Environment from common.methods import set_progress import time, jso...
0
0
0
0
0
3,817
0
118
225
60667106d9980f02007c2d63776a46563d39eb3d
469
py
Python
array/wave_array.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
array/wave_array.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
5
2021-03-10T11:49:39.000Z
2022-02-27T01:35:59.000Z
array/wave_array.py
rjsnh1522/geeks-4-geeks-python
9bea0ce4f3fae9b5f9e5952fb5b4b3a8c6186cf4
[ "MIT" ]
null
null
null
arr = [9, 11, 3, 4, 5, 2, 4, 4, 5, 0, 9] # arr = [1, 2, 3, 4] print(wave_form_array_sort(arr))
23.45
59
0.409382
def wave_form_array_sort(arr): size = len(arr) arr.sort() for i in range(size): if i != size-1: if i % 2 == 0: if arr[i] <= arr[i+1]: arr[i], arr[i+1] = arr[i+1], arr[i] else: if arr[i] >= arr[i+1]: arr...
0
0
0
0
0
348
0
0
23
d707bd20b089fcbb733903ed04f1d84749537c20
3,149
py
Python
external/fv3fit/fv3fit/keras/jacobian.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-12-14T23:43:35.000Z
2021-12-14T23:43:35.000Z
external/fv3fit/fv3fit/keras/jacobian.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/fv3fit/fv3fit/keras/jacobian.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from typing import Callable, Mapping, Dict from ..emulation.layers.normalization import standard_deviation_all_features ModelType = Callable[[Mapping[str, tf.Tensor]], Mapping[str, tf.Tensor]] OutputSensitivity = Dict[str, np.ndarray] def get_jacobians( model: ModelTy...
35.784091
84
0.70308
import numpy as np import tensorflow as tf from typing import Callable, Mapping, Dict from ..emulation.layers.normalization import standard_deviation_all_features ModelType = Callable[[Mapping[str, tf.Tensor]], Mapping[str, tf.Tensor]] OutputSensitivity = Dict[str, np.ndarray] def get_jacobians( model: ModelTy...
0
0
0
0
0
862
0
0
46
5b72381ca3cd30bb10743c92e450608676327049
2,005
py
Python
setup.py
erezsh/runtype
e85e5a59f5a79989d9689082c14b68357447f31f
[ "MIT" ]
93
2020-01-15T03:15:27.000Z
2022-03-29T14:16:48.000Z
setup.py
erezsh/runtype
e85e5a59f5a79989d9689082c14b68357447f31f
[ "MIT" ]
3
2021-10-05T09:00:28.000Z
2022-01-24T09:16:05.000Z
setup.py
erezsh/runtype
e85e5a59f5a79989d9689082c14b68357447f31f
[ "MIT" ]
1
2021-10-05T19:43:36.000Z
2021-10-05T19:43:36.000Z
import re from setuptools import setup __version__ ,= re.findall('__version__ = "(.*)"', open('runtype/__init__.py').read()) setup( name = "runtype", version = __version__, packages = ['runtype'], requires = [], install_requires = [], package_data = { '': ['*.md'] }, test_suite = 'tests...
29.057971
88
0.680299
import re from setuptools import setup __version__ ,= re.findall('__version__ = "(.*)"', open('runtype/__init__.py').read()) setup( name = "runtype", version = __version__, packages = ['runtype'], requires = [], install_requires = [], package_data = { '': ['*.md'] }, test_suite = 'tests...
26
0
0
0
0
0
0
0
0
179af64a484e9ac3b632f52fb23795b722b3ee74
6,046
py
Python
states/world_map.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
states/world_map.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
states/world_map.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'eeneku'
34.158192
111
0.56649
# -*- coding: utf-8 -*- __author__ = 'eeneku' import random from pyglet.window import key from pyglet import gl from pyglet.text import Label from pyglet import clock from engine import state from game import tile_map from game import entity class WorldMap(state.State): """ The world map state. """ ...
0
0
0
5,778
0
0
0
20
202
caa04361758254d0ca28e1a231a8f98e6a72a99a
1,906
py
Python
pysmapi/interfaces/Authorization_List_Add.py
lllucius/pysmapi
c0d802edb58e835e4d48cb9c28ccfccfe5b5c686
[ "Apache-2.0" ]
null
null
null
pysmapi/interfaces/Authorization_List_Add.py
lllucius/pysmapi
c0d802edb58e835e4d48cb9c28ccfccfe5b5c686
[ "Apache-2.0" ]
null
null
null
pysmapi/interfaces/Authorization_List_Add.py
lllucius/pysmapi
c0d802edb58e835e4d48cb9c28ccfccfe5b5c686
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 Leland Lucius # # 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...
28.029412
74
0.593389
# Copyright 2018-2019 Leland Lucius # # 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...
0
203
0
1,053
0
0
0
-2
69
285c903a2ae3f7a5335ea60f703309363ada3d6f
2,058
py
Python
workshop/views.py
akash-kd/Robotics_Club_Website
f8ec81a5afc0048bd32ff1f13e928ba9b31f3b97
[ "MIT" ]
null
null
null
workshop/views.py
akash-kd/Robotics_Club_Website
f8ec81a5afc0048bd32ff1f13e928ba9b31f3b97
[ "MIT" ]
20
2021-10-19T07:07:44.000Z
2022-02-04T13:19:44.000Z
workshop/views.py
akash-kd/Robotics_Club_Website
f8ec81a5afc0048bd32ff1f13e928ba9b31f3b97
[ "MIT" ]
3
2021-08-23T17:30:57.000Z
2022-01-15T16:22:29.000Z
# Create your views here.
34.881356
81
0.687561
from django.shortcuts import render, redirect, HttpResponse from django.contrib.auth.decorators import login_required from django.urls import reverse from django.contrib import messages from .models import Workshop from .forms import WorkshopForm from RoboClub.decorators import has_role_head_or_coordinator # Create y...
0
1,400
0
0
0
227
0
154
246
a44cba2b2418c81d7166f269a0c9e4bbacea69de
4,431
py
Python
pygcdm/netcdf_grpc.py
rmcsqrd/pygcdm
0cef2d8220c3fdd9112510f6040a0c9c5e248a25
[ "BSD-3-Clause" ]
2
2021-08-31T16:32:08.000Z
2021-09-03T22:13:27.000Z
pygcdm/netcdf_grpc.py
rmcsqrd/netcdf-grpc
0cef2d8220c3fdd9112510f6040a0c9c5e248a25
[ "BSD-3-Clause" ]
4
2021-09-07T15:26:07.000Z
2021-09-13T21:06:15.000Z
pygcdm/netcdf_grpc.py
rmcsqrd/netcdf-grpc
0cef2d8220c3fdd9112510f6040a0c9c5e248a25
[ "BSD-3-Clause" ]
null
null
null
"""Parent class with type conversions and utilites for encode/decode classes."""
43.871287
162
0.595125
"""Parent class with type conversions and utilites for encode/decode classes.""" from pygcdm.protogen import gcdm_netcdf_pb2 as grpc_msg import numpy as np class gRPC_netCDF(): """Parent netCDF gRPC class with utility items.""" def __init__(self): """Initialization function that defines dictionarie...
0
0
0
4,249
0
0
0
31
68
673319f6dd656f18ee221653d9e649b27f3eda5a
2,737
py
Python
users_app/views.py
Jamesjr95/Capstone_proj
f5b29291ae6621a38020a969719abe5900634cee
[ "MIT" ]
null
null
null
users_app/views.py
Jamesjr95/Capstone_proj
f5b29291ae6621a38020a969719abe5900634cee
[ "MIT" ]
null
null
null
users_app/views.py
Jamesjr95/Capstone_proj
f5b29291ae6621a38020a969719abe5900634cee
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here.
29.75
93
0.627695
from django.shortcuts import render # Create your views here. from django.http.response import JsonResponse from django.shortcuts import get_object_or_404, render, redirect, reverse from django.contrib.auth import ( get_user_model, # returns the AUTH_USER_MODEL variable's value from settings.py authenticate, ...
0
0
0
0
0
2,123
0
321
225
0f706cd861e0931373fd617709e9470e8e347028
2,282
py
Python
Source/calc_test.py
Yash0601/BasicCalculator
0b1b980759afe57bdde533c62155b92434947d03
[ "MIT" ]
null
null
null
Source/calc_test.py
Yash0601/BasicCalculator
0b1b980759afe57bdde533c62155b92434947d03
[ "MIT" ]
null
null
null
Source/calc_test.py
Yash0601/BasicCalculator
0b1b980759afe57bdde533c62155b92434947d03
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
40.75
123
0.658195
import unittest from calculator import Calculate from CsvReader import CsvReader class MyTestCase(unittest.TestCase): def setUp(self) -> None: self.calculator = Calculate() def test_instantiate_calc(self): self.assertIsInstance(self.calculator, Calculate) def test_result_calc(self): ...
0
0
0
2,128
0
0
0
21
67
80ce6d6f1b1444131082f4a5cd290b2d7e3a903d
2,849
py
Python
scraper/kugou/api/scrapers.py
Vinceeee/mypy
8846bb789a9e928a689feab847049027ed2d1a07
[ "Apache-2.0" ]
1
2019-02-01T15:01:04.000Z
2019-02-01T15:01:04.000Z
scraper/kugou/api/scrapers.py
Vinceeee/mypy
8846bb789a9e928a689feab847049027ed2d1a07
[ "Apache-2.0" ]
null
null
null
scraper/kugou/api/scrapers.py
Vinceeee/mypy
8846bb789a9e928a689feab847049027ed2d1a07
[ "Apache-2.0" ]
null
null
null
import os basepath = os.path.abspath(os.path.dirname(__file__)) if __name__ == '__main__': # fileDecoding() lst = songsearch(keyword='',pagesize=5) # for each in getSongGenerator(lst): # each.save() print(each)
39.027397
253
0.648649
import json,random,datetime,re,os import requests basepath = os.path.abspath(os.path.dirname(__file__)) def getSongJson(filehash,albumid): default_url = "http://www.kugou.com/yy/index.php?r=play/getdata&hash={HASH}&_={TIMESTAMP}" current_timestamp = datetime.datetime.utcnow().timestamp() * 1000 # timst...
132
0
0
0
751
1,662
0
18
122
f3938e384502c7bfafe57c39f80ca2302ea21b09
264
py
Python
Task03.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
Task03.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
Task03.py
G00387867/pands-problems
01db5fd26eb0327f6f61da7e06dfe1f2b9f0333c
[ "MIT" ]
null
null
null
# program asks a user to input a string and outputs # every second letter in reverse order sentence = str(input("please Enter a Sentence: ")) reverseSentence = sentence[ : :-1] # reverse the sentence print(reverseSentence[ : :2]) # prints every second letter
26.4
58
0.731061
# program asks a user to input a string and outputs # every second letter in reverse order sentence = str(input("please Enter a Sentence: ")) reverseSentence = sentence[ : :-1] # reverse the sentence print(reverseSentence[ : :2]) # prints every second letter
0
0
0
0
0
0
0
0
0
41b86e3484eb75f47b44db963d59fc23a32f7cc2
2,650
py
Python
tests/test_fisher.py
tlatkowski/tf-feature-selection
910f03764a675841eaf4578415ae697d78860b81
[ "MIT" ]
9
2018-04-23T13:43:58.000Z
2021-09-08T03:32:38.000Z
tests/test_fisher.py
amineremache/tf-feature-selection
86a62e28211f854944822b4aefffae582fa060d8
[ "MIT" ]
18
2017-12-05T10:29:07.000Z
2021-08-25T14:42:51.000Z
tests/test_fisher.py
amineremache/tf-feature-selection
86a62e28211f854944822b4aefffae582fa060d8
[ "MIT" ]
4
2018-01-05T04:33:26.000Z
2020-01-20T03:41:27.000Z
import tensorflow as tf if __name__ == '__main__': tf.test.main()
38.970588
106
0.527925
import numpy as np import tensorflow as tf from methods.selection import fisher from methods.selection_wrapper import SelectionWrapper class TestFisherSelection(tf.test.TestCase): def testFisherCorrectScore(self): with self.test_session() as test_session: data = np.array([[2, 2], ...
0
0
0
2,442
0
0
0
45
90
d0387bdaf1fad8da0129dab0596df1d48c19a4e2
193
py
Python
backend/api/btb/api/constants.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/api/constants.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/api/constants.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
# also update frontend/constants/inputLengths.ts
24.125
48
0.782383
from enum import IntEnum # also update frontend/constants/inputLengths.ts class InputLengths(IntEnum): ULTRA_SHORT_STRING = 12 SHORT_STRING = 50 MIDDLE_STRING = 150 LONG_STRING = 2000
0
0
0
97
0
0
0
3
44
8dc28fce6fe02ab58fa928900d5daa8370ae9f81
491
py
Python
exts/omni.add_on.openxr/omni/add_on/openxr/scripts/extension.py
Toni-SM/omni.add_on.openxr
de29b5348fd6dc748c419910424b43146e3ad67f
[ "MIT" ]
6
2021-10-29T18:07:44.000Z
2022-02-05T00:03:23.000Z
exts/omni.add_on.openxr/omni/add_on/openxr/scripts/extension.py
Toni-SM/omni.add_on.openxr
de29b5348fd6dc748c419910424b43146e3ad67f
[ "MIT" ]
1
2022-01-11T08:20:24.000Z
2022-03-09T00:44:04.000Z
exts/omni.add_on.openxr/omni/add_on/openxr/scripts/extension.py
Toni-SM/omni.add_on.openxr
de29b5348fd6dc748c419910424b43146e3ad67f
[ "MIT" ]
1
2021-10-29T18:14:10.000Z
2021-10-29T18:14:10.000Z
import omni.ext try: except: omni.kit.pipapi.install("opencv-python") try: from .. import _openxr as _openxr except: print(">>>> [DEVELOPMENT] import openxr") from .. import openxr as _openxr __all__ = ["Extension", "_openxr"]
21.347826
53
0.678208
import gc import omni.ext try: import cv2 except: omni.kit.pipapi.install("opencv-python") try: from .. import _openxr as _openxr except: print(">>>> [DEVELOPMENT] import openxr") from .. import openxr as _openxr __all__ = ["Extension", "_openxr"] class Extension(omni.ext.IExt): def on_startu...
0
0
0
198
0
0
0
-23
71
4dde28ddeb60616deba838862e7de8378c05fd9f
3,311
py
Python
main/efl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/efl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/efl/template.py
chimera-linux/cports
37888f8ded3e6afc1a42227a4019bc25e2456afc
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "efl" pkgver = "1.26.1" pkgrel = 0 build_style = "meson" configure_args = [ "-Dbuild-tests=false", "-Dbuild-examples=false", "-Dembedded-lz4=false", "-Dcrypto=openssl", "-Decore-imf-loaders-disabler=scim", # rlottie (json) is pretty useless and unstable so keep that off "-Devas-loa...
38.057471
91
0.678043
pkgname = "efl" pkgver = "1.26.1" pkgrel = 0 build_style = "meson" configure_args = [ "-Dbuild-tests=false", "-Dbuild-examples=false", "-Dembedded-lz4=false", "-Dcrypto=openssl", "-Decore-imf-loaders-disabler=scim", # rlottie (json) is pretty useless and unstable so keep that off "-Devas-loa...
0
230
0
0
0
348
0
0
69
59cee96e1eea36d15f80cffca52f646a8d33cda1
415
py
Python
gui/__init__.py
Penaz91/fjournal
0cf1634f67308f3491241d1bb250772ce4def2a0
[ "MIT" ]
null
null
null
gui/__init__.py
Penaz91/fjournal
0cf1634f67308f3491241d1bb250772ce4def2a0
[ "MIT" ]
null
null
null
gui/__init__.py
Penaz91/fjournal
0cf1634f67308f3491241d1bb250772ce4def2a0
[ "MIT" ]
null
null
null
""" This file is part of the FJournal Project. Copyright 2020, Daniele Penazzo. All Rights Reserved. The use of this code is governed by the MIT license attached. See the LICENSE file for the full license. Created on: 2020-07-03 Author: Penaz """
27.666667
61
0.80241
""" This file is part of the FJournal Project. Copyright © 2020, Daniele Penazzo. All Rights Reserved. The use of this code is governed by the MIT license attached. See the LICENSE file for the full license. Created on: 2020-07-03 Author: Penaz """ from .calendar import Calendar from .weight_entry_popup import Weight...
2
0
0
0
0
0
0
76
88
3eb705f1bba7fc303875604e3ffbf899ec3fdab9
2,006
py
Python
app.py
deedeeshaw/car-sales
0e945a33d2c431e818d2e92f45203c37fc103b64
[ "MIT" ]
1
2019-04-27T23:46:37.000Z
2019-04-27T23:46:37.000Z
app.py
deedeeshaw/car-sales
0e945a33d2c431e818d2e92f45203c37fc103b64
[ "MIT" ]
3
2020-07-16T23:58:42.000Z
2022-02-12T09:27:17.000Z
app.py
deedeeshaw/cycle-trips
0e945a33d2c431e818d2e92f45203c37fc103b64
[ "MIT" ]
null
null
null
# import Flask from flask import Flask # create app passing the __name__ app = Flask(__name__) ###################################################################### # HOME PAGE ###################################################################### ####################################################################...
32.354839
93
0.410768
# import Flask from flask import Flask, render_template, request, redirect, jsonify from data import get_all_data, end_station_location, start_station_location, station_dropdown # create app passing the __name__ app = Flask(__name__) ###################################################################### # HOME PAGE #...
0
427
0
0
0
0
0
117
156
dbb60fa727e2a75a4f9ce09b1ec39e57f315e72f
309
py
Python
r2_11.py
wonghoifung/learning-python
ad1691be1d185bfff828779a553b2c59d36d16ea
[ "MIT" ]
null
null
null
r2_11.py
wonghoifung/learning-python
ad1691be1d185bfff828779a553b2c59d36d16ea
[ "MIT" ]
null
null
null
r2_11.py
wonghoifung/learning-python
ad1691be1d185bfff828779a553b2c59d36d16ea
[ "MIT" ]
null
null
null
s = ' hello\n' print s s1 = s.strip() print s1 s2 = s.lstrip() print s2 s3 = s.rstrip() print s3 t = '-----hello=====' t1 = t.lstrip('-') print t1 t2 = t.rstrip('=') print t2 print t.strip('-=') with open('./r1_19.py') as f: lines = (line.strip() for line in f) for line in lines: print line
9.65625
37
0.563107
s = ' hello\n' print s s1 = s.strip() print s1 s2 = s.lstrip() print s2 s3 = s.rstrip() print s3 t = '-----hello=====' t1 = t.lstrip('-') print t1 t2 = t.rstrip('=') print t2 print t.strip('-=') with open('./r1_19.py') as f: lines = (line.strip() for line in f) for line in lines: print line
0
0
0
0
0
0
0
0
0
dedab55e8feaa1faf7a0b20ed0ab4d3a75f013ce
11,310
py
Python
2d/benchmarks/wavesloshing/wavesloshing.py
erdc-cm/air-water-vv
b035469e525b20395e7879c622812612745095d0
[ "MIT" ]
5
2017-11-15T16:18:47.000Z
2021-07-18T02:32:48.000Z
2d/benchmarks/wavesloshing/wavesloshing.py
erdc-cm/air-water-vv
b035469e525b20395e7879c622812612745095d0
[ "MIT" ]
41
2015-06-03T17:53:17.000Z
2017-07-26T09:15:07.000Z
2d/benchmarks/wavesloshing/wavesloshing.py
erdc/air-water-vv
b035469e525b20395e7879c622812612745095d0
[ "MIT" ]
21
2017-10-27T14:37:54.000Z
2020-02-10T10:31:36.000Z
""" Wavesloshing """ import numpy as np from proteus import Domain from proteus import Context from proteus.mprans import SpatialTools as st from proteus.mprans.SpatialTools import Tank2D import proteus.TwoPhaseFlow.TwoPhaseFlowProblem as TpFlow opts=Context.Options([ # water ("water_depth_fraction", 0.5, ...
32.59366
168
0.589036
""" Wavesloshing """ import numpy as np from math import cos from proteus import Domain from proteus import Context from proteus import FemTools as ft from proteus import MeshTools as mt from proteus import WaveTools as wt from proteus.mprans import SpatialTools as st from proteus.Profiling import logEvent from prote...
0
0
0
838
0
4,344
0
96
757
5de9fef8d86e69dc6cc1b8c4c102175832d18c9c
2,960
py
Python
ggd/show_env.py
mikecormier/ggd-cli
ecda29961947c2f8c7b9a3d0eb008fbbb332b0c2
[ "MIT" ]
null
null
null
ggd/show_env.py
mikecormier/ggd-cli
ecda29961947c2f8c7b9a3d0eb008fbbb332b0c2
[ "MIT" ]
null
null
null
ggd/show_env.py
mikecormier/ggd-cli
ecda29961947c2f8c7b9a3d0eb008fbbb332b0c2
[ "MIT" ]
null
null
null
from __future__ import print_function
38.947368
114
0.580743
from __future__ import print_function import sys import os import re from .check_recipe import check_output def add_show_env(p): c = p.add_parser('show-env', help="show recipe variables available for this conda environment") c.add_argument("-p", "--pattern", help="regular expression pattern to match the name o...
0
0
0
0
0
2,759
0
-18
181
90e5d246b0473b8951b906fc6c1810abad0138a2
1,648
py
Python
scripts/yul/transpile_test.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
414
2021-07-17T13:06:55.000Z
2022-03-31T14:57:10.000Z
scripts/yul/transpile_test.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
78
2021-07-19T12:33:56.000Z
2022-03-29T17:16:27.000Z
scripts/yul/transpile_test.py
sambarnes/warp
f841afa22e665d5554587eaa866c4790698bfc22
[ "Apache-2.0" ]
19
2021-08-18T03:55:54.000Z
2022-03-29T15:29:48.000Z
import os warp_root = os.path.abspath(os.path.join(__file__, "../../..")) test_dir = os.path.join(warp_root, "tests", "golden") tests = [ os.path.join(test_dir, item) for item in os.listdir(test_dir) if item.endswith(".sol") ] cairo_suffix = ".cairo" main_contract = "WARP"
26.580645
66
0.652306
import difflib import os import sys import pytest from warp.yul.main import transpile_from_solidity warp_root = os.path.abspath(os.path.join(__file__, "../../..")) test_dir = os.path.join(warp_root, "tests", "golden") tests = [ os.path.join(test_dir, item) for item in os.listdir(test_dir) if item.endswit...
0
914
0
0
0
283
0
2
159
31ca19c36e9cf2759a15ad712d7224857b73bbe5
13,432
py
Python
PreProcessing/pre_process_neuralynx.py
alexgonzl/TreeMazeAnalyses
a834dc6b59beffe6bce59cdd9749b761fab3fe08
[ "MIT" ]
null
null
null
PreProcessing/pre_process_neuralynx.py
alexgonzl/TreeMazeAnalyses
a834dc6b59beffe6bce59cdd9749b761fab3fe08
[ "MIT" ]
null
null
null
PreProcessing/pre_process_neuralynx.py
alexgonzl/TreeMazeAnalyses
a834dc6b59beffe6bce59cdd9749b761fab3fe08
[ "MIT" ]
null
null
null
############################################################################### ############################################################################### # pre_process_tetrode.py # Collection of routines and subroutines for processing raw neuralynx CSC files. # # Dependencies: # get_neuralynx.py # robust_stats.py...
36.599455
113
0.543032
############################################################################### ############################################################################### # pre_process_tetrode.py # Collection of routines and subroutines for processing raw neuralynx CSC files. # # Dependencies: # get_neuralynx.py # robust_stats.py...
0
0
0
0
0
6,019
0
0
365
733e265aa78ee27966202d711d57363b5003b290
3,202
py
Python
python/preprocess/bigearthnet_nonclouds.py
lewfish/cloud-buster
da31c4acea30bd97f68e1ff99dbbe11e0ba13db6
[ "MIT" ]
null
null
null
python/preprocess/bigearthnet_nonclouds.py
lewfish/cloud-buster
da31c4acea30bd97f68e1ff99dbbe11e0ba13db6
[ "MIT" ]
null
null
null
python/preprocess/bigearthnet_nonclouds.py
lewfish/cloud-buster
da31c4acea30bd97f68e1ff99dbbe11e0ba13db6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # The MIT License (MIT) # ===================== # # Copyright 2020 Azavea # # 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 lim...
34.06383
107
0.682074
#!/usr/bin/env python3 # The MIT License (MIT) # ===================== # # Copyright © 2020 Azavea # # 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 ...
14
0
0
0
0
272
0
-47
201
0451d02a5d0bc9d1ae5593b42219c57141d9058c
8,382
py
Python
git_cache/command_execution.py
seeraven/gitcache
7eebf2cb8bc18bf634f40bd1cec83ec572018600
[ "BSD-3-Clause" ]
5
2020-08-02T17:28:02.000Z
2022-03-18T11:49:37.000Z
git_cache/command_execution.py
seeraven/gitcache
7eebf2cb8bc18bf634f40bd1cec83ec572018600
[ "BSD-3-Clause" ]
6
2021-11-29T09:01:53.000Z
2022-03-17T16:27:02.000Z
git_cache/command_execution.py
seeraven/gitcache
7eebf2cb8bc18bf634f40bd1cec83ec572018600
[ "BSD-3-Clause" ]
2
2022-03-10T10:18:02.000Z
2022-03-26T09:48:14.000Z
# -*- coding: utf-8 -*- """ Module for command execution functions. Copyright: 2022 by Clemens Rabe <clemens.rabe@clemensrabe.de> All rights reserved. This file is part of gitcache (https://github.com/seeraven/gitcache) and is released under the "BSD 3-Clause License". Please see the ``LICENSE`` file...
42.120603
98
0.581723
# -*- coding: utf-8 -*- """ Module for command execution functions. Copyright: 2022 by Clemens Rabe <clemens.rabe@clemensrabe.de> All rights reserved. This file is part of gitcache (https://github.com/seeraven/gitcache) and is released under the "BSD 3-Clause License". Please see the ``LICENSE`` file...
0
0
0
0
0
0
0
0
0
619904e7785a3e54b768842576b282452d6012b1
203
py
Python
test/__init__.py
cacahootie/relately
94df9245c4050aead52c7316f7017463c108af06
[ "MIT" ]
1
2019-08-22T18:08:32.000Z
2019-08-22T18:08:32.000Z
test/__init__.py
cacahootie/relately
94df9245c4050aead52c7316f7017463c108af06
[ "MIT" ]
null
null
null
test/__init__.py
cacahootie/relately
94df9245c4050aead52c7316f7017463c108af06
[ "MIT" ]
null
null
null
import relately.engine as engine
18.454545
51
0.70936
import unittest import relately.engine as engine class RelatelyTest(unittest.TestCase): def setUp(self): "Instantiate a test instance of the engine" self.engine = engine.Engine()
0
0
0
129
0
0
0
-6
46
b95aa31e205c14e85e05f557c979eb8645f5cc9f
2,063
py
Python
match/tests/match/test_match_deleting.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
3
2021-03-07T21:43:55.000Z
2021-09-21T08:24:26.000Z
match/tests/match/test_match_deleting.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
null
null
null
match/tests/match/test_match_deleting.py
NoMariusz/Praeteritum
c32fa017e23de7255224fcf72cd04abdfc3ebff4
[ "MIT" ]
null
null
null
# fixtures # tests def test_if_default_exists(match_manager, match_id): """ check if after making Match match_manager add it to list """ matches_len = len(match_manager.matches) assert matches_len == 1
29.898551
77
0.750364
import asyncio import pytest from channels.db import database_sync_to_async from unittest.mock import patch from match.logic.Match import Match from match.logic.MatchManager import MatchManager from ..utils import make_test_users # fixtures @pytest.fixture def match_manager() -> MatchManager: return MatchManag...
0
1,493
0
0
0
0
0
76
270
485ea2e8520e6b45b612726147bfbb4181e2c540
1,705
py
Python
datastore/writer/redis_backend/redis_messaging_backend_service.py
jsangmeister/openslides-datastore-service
7170f008ccac0b31c37ffeee083b972bc314660d
[ "MIT" ]
2
2020-01-20T13:56:28.000Z
2020-02-17T10:56:26.000Z
datastore/writer/redis_backend/redis_messaging_backend_service.py
jsangmeister/openslides-datastore-service
7170f008ccac0b31c37ffeee083b972bc314660d
[ "MIT" ]
122
2020-01-16T15:13:37.000Z
2022-03-17T10:32:47.000Z
datastore/writer/redis_backend/redis_messaging_backend_service.py
jsangmeister/openslides-datastore-service
7170f008ccac0b31c37ffeee083b972bc314660d
[ "MIT" ]
7
2020-02-20T12:04:17.000Z
2021-11-23T17:54:33.000Z
MODIFIED_FIELDS_TOPIC = "ModifiedFields"
32.169811
88
0.68563
import json from typing import Dict from datastore.shared.di import service_as_singleton from datastore.shared.typing import Fqfield from datastore.shared.util import ( JSON, META_POSITION, Field, Fqid, Position, fqfield_from_fqid_and_field, logger, ) from datastore.writer.core import Messa...
0
1,262
0
0
0
0
0
220
179
151342b321f97cd979fac8834a848bf47fee5e90
2,132
py
Python
utils/show_points.py
mengxingshifen1218/pointnet.pytorch
1585404a8adaecab79e01f218f8cd693fea7dcc1
[ "MIT" ]
null
null
null
utils/show_points.py
mengxingshifen1218/pointnet.pytorch
1585404a8adaecab79e01f218f8cd693fea7dcc1
[ "MIT" ]
null
null
null
utils/show_points.py
mengxingshifen1218/pointnet.pytorch
1585404a8adaecab79e01f218f8cd693fea7dcc1
[ "MIT" ]
null
null
null
''' , :n*3 ''' from __future__ import print_function import os import sys print(sys.path) sys.path.append(os.path.dirname(os.getcwd())) print(sys.path) from show3d_balls import showpoints import numpy as np import torch import torch.nn.parallel import torch.utils.data from torch.autograd import Variable from pointne...
23.688889
85
0.721388
''' 自己写的,用来测试 可视化文件夹下的点云数据 输入:n*3的矩阵 ''' from __future__ import print_function import os import sys print(sys.path) sys.path.append(os.path.dirname(os.getcwd())) print(sys.path) from show3d_balls import showpoints import argparse import numpy as np import torch import torch.nn.parallel import torch.utils.data from to...
291
0
0
0
0
0
0
-6
22
aae08e99167e1dbcc6e3f6d459d52e925b14bf14
5,723
py
Python
qiskit_experiments/randomized_benchmarking/rb_analysis.py
wshanks/qiskit-experiments
38f1b337c77e20d4d902ff4be9435b4692ee999d
[ "Apache-2.0" ]
null
null
null
qiskit_experiments/randomized_benchmarking/rb_analysis.py
wshanks/qiskit-experiments
38f1b337c77e20d4d902ff4be9435b4692ee999d
[ "Apache-2.0" ]
null
null
null
qiskit_experiments/randomized_benchmarking/rb_analysis.py
wshanks/qiskit-experiments
38f1b337c77e20d4d902ff4be9435b4692ee999d
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
37.405229
92
0.602306
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
0
1,019
0
3,657
0
0
0
270
183
6f90c0fa171d31efcdfc6a633c925194dc4ca014
4,263
py
Python
socialdistribution/posts/models.py
CMPUT404W20Project/CMPUT404-project-socialdistribution
234587d65d4ca9ff4466e3eef28a3f181075eebe
[ "Apache-2.0" ]
null
null
null
socialdistribution/posts/models.py
CMPUT404W20Project/CMPUT404-project-socialdistribution
234587d65d4ca9ff4466e3eef28a3f181075eebe
[ "Apache-2.0" ]
45
2020-02-07T03:52:26.000Z
2020-04-08T16:44:25.000Z
socialdistribution/posts/models.py
CMPUT404W20Project/CMPUT404-project-socialdistribution
234587d65d4ca9ff4466e3eef28a3f181075eebe
[ "Apache-2.0" ]
1
2020-02-07T03:48:11.000Z
2020-02-07T03:48:11.000Z
MARKDOWN = 'text/markdown' PLAIN = 'text/plain' BASE64 = 'application/base64' PNG = 'image/png;base64' JPEG = 'image/jpeg;base64' CONTENT_TYPE_CHOICES = ( (MARKDOWN, MARKDOWN), (PLAIN, PLAIN), (BASE64, BASE64), (PNG, PNG), (JPEG, JPEG), ) ''' reference: https://stackoverflow.com/questions/22340...
30.234043
100
0.609899
import uuid from django.db import models from django import forms from profiles.models import Author from multiselectfield import MultiSelectField from datetime import datetime from django.utils import timezone MARKDOWN = 'text/markdown' PLAIN = 'text/plain' BASE64 = 'application/base64' PNG = 'image/png;base64' JPE...
0
140
0
3,386
0
0
0
57
223
68d3a471006fafdf149d94f917850a53d0fa253a
1,659
py
Python
goody.py
ksegarra/CalPlug-Power-Usage-Sim
b29d5fb30875886ac7bf7ce8cf2c69a8d453289a
[ "W3C" ]
null
null
null
goody.py
ksegarra/CalPlug-Power-Usage-Sim
b29d5fb30875886ac7bf7ce8cf2c69a8d453289a
[ "W3C" ]
null
null
null
goody.py
ksegarra/CalPlug-Power-Usage-Sim
b29d5fb30875886ac7bf7ce8cf2c69a8d453289a
[ "W3C" ]
2
2017-05-19T22:39:23.000Z
2019-04-29T21:55:48.000Z
''' Some functions that make life easier @author: Klint ''' def make_int_array(size, start_value=0): '''returns an int list of length size with values start_value, default being 0''' to_return = [] for i in range(size): to_return.append(0) return to_return if __name__ == '__main__': ...
27.65
85
0.547318
''' Some functions that make life easier @author: Klint ''' def input_str(prompt: str, valid = {})-> str: if len(valid) == 0: return input(prompt) else: inp = '' while not inp in valid: inp = input(prompt) if not inp in valid: print('Only the f...
0
0
0
0
0
1,042
0
0
73
4e33ca97f65eaf3ea73c9ef4817d42d41c7c7f63
61,832
py
Python
python/pybindgen/cppclass_typehandlers.py
kokimame/Phonetisaurus
64719ca40c17cb70d810fffadac52c97984ca539
[ "BSD-3-Clause" ]
2
2016-10-25T12:59:33.000Z
2019-10-04T20:51:05.000Z
python/pybindgen/cppclass_typehandlers.py
MontrealCorpusTools/Phonetisaurus
e8905d3d841378dbf29689a3a0c5c1d46afb7277
[ "BSD-3-Clause" ]
1
2017-07-20T19:30:04.000Z
2019-10-04T21:09:30.000Z
python/pybindgen/cppclass_typehandlers.py
MontrealCorpusTools/Phonetisaurus
e8905d3d841378dbf29689a3a0c5c1d46afb7277
[ "BSD-3-Clause" ]
null
null
null
### ### ------------ C++ class parameter type handlers ------------ ### ## ## Core of the custodians-and-wards implementation ## def scan_custodians_and_wards(wrapper): """ Scans the return value and parameters for custodian/ward options, converts them to add_custodian_and_ward...
50.599018
210
0.54454
import warnings from typehandlers.base import ForwardWrapperBase, ReverseWrapperBase, \ Parameter, ReturnValue, TypeConfigurationError, NotSupportedError import cppclass ### ### ------------ C++ class parameter type handlers ------------ ### def common_shared_object_return(value, py_name, cpp_class, code_bloc...
0
0
0
50,081
0
10,288
0
108
371