hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2babf4e4bd3e68a473c074165d433e91949c229a
2,657
py
Python
hansard_malaysia/hansard_1b_absence.py
Thevesh/data
d9fd297dc70144037748a17b575a5e8bfbcd44a2
[ "MIT" ]
2
2022-03-31T06:34:10.000Z
2022-03-31T08:48:44.000Z
hansard_malaysia/hansard_1b_absence.py
Thevesh/data
d9fd297dc70144037748a17b575a5e8bfbcd44a2
[ "MIT" ]
null
null
null
hansard_malaysia/hansard_1b_absence.py
Thevesh/data
d9fd297dc70144037748a17b575a5e8bfbcd44a2
[ "MIT" ]
null
null
null
import pandas as pd from datetime import date import PyPDF2 from pdfminer.high_level import extract_text attendance_start = date(2021,7,26) ss = pd.read_csv('sessions.csv',dtype=str) ss.date = pd.to_datetime(ss.date).dt.date ss = ss[ss.date >= attendance_start] sessions = ss.session.tolist() session_date =...
43.557377
121
0.672563
da4c498e108573b8ba881d48cb9eb9eefc186e3d
112
py
Python
py/new_methods.py
eirikaa/Human-Activity-Evaluation
eb5b1ff1af50df89d0baa4e94bb6afa587291d31
[ "MIT" ]
1
2017-04-27T09:38:32.000Z
2017-04-27T09:38:32.000Z
py/new_methods.py
eirikaa/dataCapture
eb5b1ff1af50df89d0baa4e94bb6afa587291d31
[ "MIT" ]
null
null
null
py/new_methods.py
eirikaa/dataCapture
eb5b1ff1af50df89d0baa4e94bb6afa587291d31
[ "MIT" ]
1
2017-11-21T12:08:23.000Z
2017-11-21T12:08:23.000Z
# -*- coding: utf-8 -*- __author__ = 'eirikaa' def smooth_data(): # TODO: interpolation pass
12.444444
26
0.553571
77ff58fafb4a54fcc39cc7c9499a36789602692d
611
py
Python
send_mms.py
m3ngineer/gthr
56ad5ef7ec4fa8a21da8b18b5ee26fd68ecbcbe8
[ "MIT" ]
null
null
null
send_mms.py
m3ngineer/gthr
56ad5ef7ec4fa8a21da8b18b5ee26fd68ecbcbe8
[ "MIT" ]
1
2021-06-01T23:46:56.000Z
2021-06-01T23:46:56.000Z
send_mms.py
m3ngineer/gthr
56ad5ef7ec4fa8a21da8b18b5ee26fd68ecbcbe8
[ "MIT" ]
null
null
null
# Download the helper library from https://www.twilio.com/docs/python/install from twilio.rest import Client import os # Your Account Sid and Auth Token from twilio.com/console # DANGER! This is insecure. See http://twil.io/secure account_sid = os.environ['twilio_account_sid'] auth_token = os.environ['twilio_auth_toke...
30.55
80
0.715221
c7f35188e08244e1ad00a48b8c2a0833ccfc585c
4,335
py
Python
train.py
weihaoning/DDI-project
bf493a6f0fa6e93ab5ae56e82b2b94f33dd3125b
[ "Apache-2.0" ]
1
2019-07-15T11:15:59.000Z
2019-07-15T11:15:59.000Z
train.py
weihaoning/DDI-project
bf493a6f0fa6e93ab5ae56e82b2b94f33dd3125b
[ "Apache-2.0" ]
null
null
null
train.py
weihaoning/DDI-project
bf493a6f0fa6e93ab5ae56e82b2b94f33dd3125b
[ "Apache-2.0" ]
null
null
null
from load_data_ddi import load_data, sentence_split_for_pcnn from model import CNN, MCCNN, BILSTM, PCNN, MC_PCNN, MC_PCNN_ATT from config import Config # Get hyperparameter informaction import numpy as np if __name__ == '__main__': cfg = Config() (tr_sentences2idx, tr_d1_pos_lst, tr_d2_pos_lst, tr_pos_tuple_l...
54.873418
150
0.702422
e63ac144d1a33bd7105f2c4419ca7aaeb0d57a6f
10,862
py
Python
hydrus/hydraspec/doc_maker.py
vddesai1871/hydrus
69c159864e85be3d4493a06e22d96b96edd4c6c4
[ "MIT" ]
1
2020-06-12T10:22:32.000Z
2020-06-12T10:22:32.000Z
hydrus/hydraspec/doc_maker.py
vddesai1871/hydrus
69c159864e85be3d4493a06e22d96b96edd4c6c4
[ "MIT" ]
2
2021-03-20T05:31:12.000Z
2021-03-26T00:36:52.000Z
hydrus/hydraspec/doc_maker.py
vddesai1871/hydrus
69c159864e85be3d4493a06e22d96b96edd4c6c4
[ "MIT" ]
1
2019-03-22T05:18:16.000Z
2019-03-22T05:18:16.000Z
'''Contsructor to take a Python dict containing an API Documentation and create a HydraDoc object for it''' import re import json from hydrus.samples.doc_writer_sample import api_doc as sample_document from hydrus.hydraspec.doc_writer import HydraDoc, HydraClass, HydraClassProp, HydraClassOp from hydrus.hydraspec.doc_w...
34.592357
118
0.635795
a4cfd85f00beb049dd5dc0968cbc5b4807c73469
451
py
Python
.silver-system-programs/dir.py
divu050704/silver-system-kde
4e5f1f01b8b01459e674b2446c5171b0a765d47b
[ "Apache-2.0" ]
null
null
null
.silver-system-programs/dir.py
divu050704/silver-system-kde
4e5f1f01b8b01459e674b2446c5171b0a765d47b
[ "Apache-2.0" ]
1
2021-02-27T12:19:45.000Z
2021-02-27T12:19:45.000Z
.silver-system-programs/dir.py
divu050704/silver-system-kde
4e5f1f01b8b01459e674b2446c5171b0a765d47b
[ "Apache-2.0" ]
null
null
null
import os class color(): purple = '\033[95m' cyan = '\033[96m' darkcyan = '\033[36m' blue = '\033[94m' blued = '\033[92m' yellow = '\033[93m' red = '\033[91m' silver = '\033[3;30;47m' orange= '\033[31;43m' bold = '\033[1m' green = '\033[32m' underline = '\033[4m' end = '\033[0m' ...
21.47619
69
0.556541
5517eb01b5a5f0683ae37361046bd1b32d0ea821
8,498
py
Python
config/settings/production.py
OmenApps/endossier
b322e343e42d4c819910e70e6a16af11dd721769
[ "Apache-2.0" ]
1
2018-04-10T20:38:18.000Z
2018-04-10T20:38:18.000Z
config/settings/production.py
OmenApps/endossier
b322e343e42d4c819910e70e6a16af11dd721769
[ "Apache-2.0" ]
null
null
null
config/settings/production.py
OmenApps/endossier
b322e343e42d4c819910e70e6a16af11dd721769
[ "Apache-2.0" ]
null
null
null
import logging from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allow...
39.71028
114
0.607319
db6d6b31f13c41e1464b8466850c35daadf2246f
1,571
py
Python
Medium/103.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/103.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/103.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 103. Binary Tree Zigzag Level Order Traversal # # Description: # Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). # For example: # Given binary tree [3,9,20,null,n...
24.169231
171
0.487588
6841c8023c31a809e6c9a17ff3b514d5c331596e
111
py
Python
another_test.py
joeybryson001/machine_learning
52991fdf4ec19790f1219b8956d626b6d6b8f26a
[ "MIT" ]
null
null
null
another_test.py
joeybryson001/machine_learning
52991fdf4ec19790f1219b8956d626b6d6b8f26a
[ "MIT" ]
null
null
null
another_test.py
joeybryson001/machine_learning
52991fdf4ec19790f1219b8956d626b6d6b8f26a
[ "MIT" ]
null
null
null
j = [1,1,1,1,1] t = list(j) k = list(j) t[2] += 1 k[2] -= 1 print(j) print(t) print(k) for i in range(-1):
11.1
19
0.486486
4c5ba659bd371fb7319766123992588f4e0c7af2
6,753
py
Python
mars/lib/sparse/matrix.py
wdkwyf/mars
3f750e360e64380eab779301a5103994d4886b6a
[ "Apache-2.0" ]
null
null
null
mars/lib/sparse/matrix.py
wdkwyf/mars
3f750e360e64380eab779301a5103994d4886b6a
[ "Apache-2.0" ]
null
null
null
mars/lib/sparse/matrix.py
wdkwyf/mars
3f750e360e64380eab779301a5103994d4886b6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding Ltd. # # 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-...
32.311005
107
0.594847
8313d0065f2f9b804ec448ba7e9a30fe80461798
682
py
Python
helpers/block_exts_handler.py
thechosenone07/betaautoforwardrobot
88954eab410aad5e18d84cabaa4d19780d24b567
[ "MIT" ]
65
2021-04-10T02:42:16.000Z
2022-03-18T10:09:10.000Z
helpers/block_exts_handler.py
Tahim15/Forward-Client
42c81d2f079557759071de3d034a424dbcef04d4
[ "MIT" ]
19
2021-04-24T17:35:56.000Z
2022-03-06T14:44:20.000Z
helpers/block_exts_handler.py
Tahim15/Forward-Client
42c81d2f079557759071de3d034a424dbcef04d4
[ "MIT" ]
185
2021-04-09T16:58:58.000Z
2022-03-30T22:05:52.000Z
# (c) @AbirHasan2005 from configs import Config from pyrogram.types import Message async def CheckBlockedExt(event: Message): media = event.document or event.video or event.audio or event.animation if (Config.BLOCK_FILES_WITHOUT_EXTENSIONS is True) and ("." not in media.file_name): return True if...
34.1
116
0.634897
d7d597e18035b31ebbe74609b6febe325f81cbfd
289
py
Python
model.py
rj172/iweb2018
b7c2ea7128ef52d5f3d848b06ee9f54d08a9b08a
[ "Apache-2.0" ]
null
null
null
model.py
rj172/iweb2018
b7c2ea7128ef52d5f3d848b06ee9f54d08a9b08a
[ "Apache-2.0" ]
null
null
null
model.py
rj172/iweb2018
b7c2ea7128ef52d5f3d848b06ee9f54d08a9b08a
[ "Apache-2.0" ]
null
null
null
from google.appengine.ext import ndb class Info(ndb.Model): 'to describe a book class' First = ndb.StringProperty(required=True) Email = ndb.StringProperty() City = ndb.StringProperty() State= ndb.StringProperty() Zip = ndb.StringProperty()
20.642857
46
0.647059
91611b8c08dc5988e24d1e24f0af89587dcc2ed2
142,506
py
Python
sympy/matrices/matrices.py
GayanSandaruwan/sympy
7b127bdf71a36d85216315f80c1b54d22b060818
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/matrices.py
GayanSandaruwan/sympy
7b127bdf71a36d85216315f80c1b54d22b060818
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/matrices.py
GayanSandaruwan/sympy
7b127bdf71a36d85216315f80c1b54d22b060818
[ "BSD-3-Clause" ]
1
2020-01-01T19:49:22.000Z
2020-01-01T19:49:22.000Z
from __future__ import print_function, division import collections from sympy.assumptions.refine import refine from sympy.core.add import Add from sympy.core.basic import Basic, Atom from sympy.core.expr import Expr from sympy.core.power import Pow from sympy.core.symbol import (Symbol, Dummy, symbols, _uniquely_n...
33.681399
115
0.53336
f2584ba826654d007ae25d0f8d58ae4b6813f4c1
346
py
Python
hopex/services/trade/get_open_orders.py
hopex-hk/hopex_Python
c97133535e014d4b8ee8c35b163fb96b03af9647
[ "Apache-2.0" ]
null
null
null
hopex/services/trade/get_open_orders.py
hopex-hk/hopex_Python
c97133535e014d4b8ee8c35b163fb96b03af9647
[ "Apache-2.0" ]
null
null
null
hopex/services/trade/get_open_orders.py
hopex-hk/hopex_Python
c97133535e014d4b8ee8c35b163fb96b03af9647
[ "Apache-2.0" ]
null
null
null
from hopex.connection.restapi_sync_client import RestApiSyncClient, HttpMethod class GetOpenOrdersService: def __init__(self, params): self.params = params def request(self, **kwargs): channel = "/api/v1/order_info" return RestApiSyncClient(**kwargs).request_process(HttpMethod.GET_SI...
28.833333
101
0.734104
75f8dd9e98e900e48c43f2db6ee824cf9bdf56f2
2,050
py
Python
server.py
ayaankazerouni/OpenDSA
47d733371a159d4f5fd710b304f92e0eb01b36ab
[ "MIT" ]
1
2022-01-02T00:54:31.000Z
2022-01-02T00:54:31.000Z
server.py
ayaankazerouni/OpenDSA
47d733371a159d4f5fd710b304f92e0eb01b36ab
[ "MIT" ]
null
null
null
server.py
ayaankazerouni/OpenDSA
47d733371a159d4f5fd710b304f92e0eb01b36ab
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Runs a simple web server for viewing OpenDSA books. This allows us to see the Khan Academy exercises and JSAV code objects correctly without a full webserver running. With python 3 installed, just run the command: 'python3 server.py'. Then point your web browser to one of the addresses liste...
43.617021
88
0.66
0b7eb7ff4251cdb9b7e15ee374e12d61bf09d351
774
bzl
Python
tensorflow_data_validation/workspace.bzl
etiennedaspe/data-validation
4cc4826f3e67e5fdda8bfefb777c71cfeeebbbf5
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/workspace.bzl
etiennedaspe/data-validation
4cc4826f3e67e5fdda8bfefb777c71cfeeebbbf5
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/workspace.bzl
etiennedaspe/data-validation
4cc4826f3e67e5fdda8bfefb777c71cfeeebbbf5
[ "Apache-2.0" ]
null
null
null
"""TensorFlow Data Validation external dependencies that can be loaded in WORKSPACE files. """ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace") def tf_data_validation_workspace(): """All TensorFlow Data Validation external depe...
35.181818
90
0.715762
4c43db66666bdb1fb4cfc368ffdc12b512278c6c
13,065
py
Python
doc/source/conf.py
amitsadaphule/ray
0b9fbc1c0f767e14b80e5bbf92b898ed6c9e1cff
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
amitsadaphule/ray
0b9fbc1c0f767e14b80e5bbf92b898ed6c9e1cff
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
amitsadaphule/ray
0b9fbc1c0f767e14b80e5bbf92b898ed6c9e1cff
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Ray documentation build configuration file, created by # sphinx-quickstart on Fri Jul 1 13:19:58 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
34.291339
111
0.709529
6ba0e7bcbdb7bfe9ba32e9e1f05d5baf16db7f3b
2,587
py
Python
config/settings/local.py
szymanskirafal/tryread
f7e395c318e33de84992c79eaa5844028c378a2d
[ "MIT" ]
null
null
null
config/settings/local.py
szymanskirafal/tryread
f7e395c318e33de84992c79eaa5844028c378a2d
[ "MIT" ]
null
null
null
config/settings/local.py
szymanskirafal/tryread
f7e395c318e33de84992c79eaa5844028c378a2d
[ "MIT" ]
null
null
null
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY', de...
39.8
113
0.581368
b0d2376a1f9eecf2b04ac4dbcf3fbe654ee095c7
11,238
py
Python
msmart/device.py
aa755/midea-msmart
e04bfd392a3747bd0ef129d8b76272792a919274
[ "MIT" ]
2
2021-05-31T15:56:34.000Z
2021-06-01T16:04:09.000Z
msmart/device.py
aa755/midea-msmart
e04bfd392a3747bd0ef129d8b76272792a919274
[ "MIT" ]
null
null
null
msmart/device.py
aa755/midea-msmart
e04bfd392a3747bd0ef129d8b76272792a919274
[ "MIT" ]
null
null
null
import logging from enum import Enum import msmart.crc8 as crc8 from msmart.lan import lan from msmart.command import appliance_response from msmart.command import base_command as request_status_command from msmart.command import set_command from msmart.packet_builder import packet_builder VERSION = '0.1....
31.478992
99
0.620306
197f6392b86d13ebde6c141304d8dad3d94352be
42,105
py
Python
autodoist.py
joelberger76/autodoist
c0a2a5d83c94620d99b6bc1a584f1d9aa3d0810b
[ "MIT" ]
null
null
null
autodoist.py
joelberger76/autodoist
c0a2a5d83c94620d99b6bc1a584f1d9aa3d0810b
[ "MIT" ]
null
null
null
autodoist.py
joelberger76/autodoist
c0a2a5d83c94620d99b6bc1a584f1d9aa3d0810b
[ "MIT" ]
1
2022-02-25T21:01:22.000Z
2022-02-25T21:01:22.000Z
#!/usr/bin/python3 from todoist.api import TodoistAPI import sys import time import requests import argparse import logging from datetime import datetime, timedelta import time # Makes --help text wider def make_wide(formatter, w=120, h=36): """Return a wider HelpFormatter, if possible.""" try: # ht...
40.838991
294
0.492198
37b16c414533aa2526d51836de3e11a791c1d8f2
1,797
py
Python
utils/losses/__init__.py
spytensor/pytorch_segmentation
9adebec1182212b08c847d7d3fc1c13a06bbd25c
[ "Apache-2.0" ]
3
2020-09-08T10:09:16.000Z
2022-03-09T07:23:20.000Z
utils/losses/__init__.py
spytensor/pytorch_segmentation
9adebec1182212b08c847d7d3fc1c13a06bbd25c
[ "Apache-2.0" ]
null
null
null
utils/losses/__init__.py
spytensor/pytorch_segmentation
9adebec1182212b08c847d7d3fc1c13a06bbd25c
[ "Apache-2.0" ]
1
2020-11-03T10:03:44.000Z
2020-11-03T10:03:44.000Z
from .boundary_loss import BDLoss,SoftDiceLoss,DC_and_BD_loss,DC_and_HDBinary_loss,DistBinaryDiceLoss,HDDTBinaryLoss from .dice_loss import DC_and_CE_loss,DC_and_topk_loss,GDiceLoss,GDiceLossV2,SSLoss,IoULoss,TopKLoss,TverskyLoss,FocalTversky_loss from .dice_loss import AsymLoss,PenaltyGDiceLoss,ExpLog_loss from .fo...
47.289474
131
0.822482
b40b6eba333072f3e090d860d165e30512156ae5
636
py
Python
pysal/model/spvcm/upper_level/tests/test_upper_sma.py
ocefpaf/pysal
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
[ "BSD-3-Clause" ]
1
2021-08-16T02:47:35.000Z
2021-08-16T02:47:35.000Z
pysal/model/spvcm/upper_level/tests/test_upper_sma.py
ocefpaf/pysal
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
[ "BSD-3-Clause" ]
null
null
null
pysal/model/spvcm/upper_level/tests/test_upper_sma.py
ocefpaf/pysal
7e397bdb4c22d4e2442b4ee88bcd691d2421651d
[ "BSD-3-Clause" ]
1
2016-11-11T19:20:51.000Z
2016-11-11T19:20:51.000Z
from pysal.model.spvcm import upper_level as upper from pysal.model.spvcm import utils from pysal.model.spvcm.tests.utils import Model_Mixin from pysal.model.spvcm.abstracts import Trace import unittest as ut import pandas as pd import os FULL_PATH = os.path.dirname(os.path.abspath(__file__)) class Test_Upper_SMA(ut....
33.473684
77
0.726415
109f30dad665dd444333698b5f570ce97b4704ed
2,365
py
Python
selenium/selenium_baiduzhaopin.py
HLRJ/py-crawler
326128f8aa8e83cb7a142a31efedc7d944dac4da
[ "MIT" ]
1
2022-03-29T16:01:41.000Z
2022-03-29T16:01:41.000Z
selenium/selenium_baiduzhaopin.py
HLRJ/py-crawler
326128f8aa8e83cb7a142a31efedc7d944dac4da
[ "MIT" ]
null
null
null
selenium/selenium_baiduzhaopin.py
HLRJ/py-crawler
326128f8aa8e83cb7a142a31efedc7d944dac4da
[ "MIT" ]
1
2022-03-29T16:02:10.000Z
2022-03-29T16:02:10.000Z
import csv import json import time import requests from bs4 import BeautifulSoup from selenium.webdriver import Chrome from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.support import ui, expected_conditions # chrom...
34.275362
92
0.704017
a8f890f537470813009043a953d60bf776a8d57a
1,555
py
Python
active-speaker-detection/active_speaker/active_speaker_evaluation/mAP_mrc/input/format_ground_truth.py
EGO4D/audio-visual
bed9d837f4212e89540fe73f54399f69739b73f5
[ "MIT" ]
15
2021-12-06T14:13:23.000Z
2022-03-14T02:02:53.000Z
active-speaker-detection/active_speaker/active_speaker_evaluation/mAP_talknet/input/format_ground_truth.py
EGO4D/audio-visual
bed9d837f4212e89540fe73f54399f69739b73f5
[ "MIT" ]
null
null
null
active-speaker-detection/active_speaker/active_speaker_evaluation/mAP_talknet/input/format_ground_truth.py
EGO4D/audio-visual
bed9d837f4212e89540fe73f54399f69739b73f5
[ "MIT" ]
3
2021-11-25T19:10:21.000Z
2022-03-11T12:10:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Usage: python3 format_ground_truth.py data_set import os.path import cv2 as cv import numpy as np import sys with open('v.txt') as f: content = f.readlines() filenames = [x.strip() for x in content] data_set = sys.argv[1] # 'test' or 'val' if data_set == 'test': ...
28.796296
111
0.502251
31a1e5575734b14f3f06a6f106f270d25c0d81d0
2,279
py
Python
opensfm/actions/extract_metadata.py
mwerlberger/OpenSfM
44b9c64aea7ba3264caed245a868abb3a1be1d3e
[ "BSD-2-Clause" ]
null
null
null
opensfm/actions/extract_metadata.py
mwerlberger/OpenSfM
44b9c64aea7ba3264caed245a868abb3a1be1d3e
[ "BSD-2-Clause" ]
null
null
null
opensfm/actions/extract_metadata.py
mwerlberger/OpenSfM
44b9c64aea7ba3264caed245a868abb3a1be1d3e
[ "BSD-2-Clause" ]
null
null
null
import copy import logging import time from functools import partial from opensfm import exif from opensfm.dataset import DataSetBase logger = logging.getLogger(__name__) logging.getLogger("exifread").setLevel(logging.WARNING) def run_dataset(data: DataSetBase): """ Extract metadata from images' EXIF tag. """ ...
30.386667
77
0.638877
1bba3841a82b7e9eff9c0ce005242b70391355fe
23,909
py
Python
src/slides.py
jonhermansen/gbi
46ca12176395294d034d064c12410cb1123cea09
[ "BSD-3-Clause" ]
1
2019-04-19T22:52:57.000Z
2019-04-19T22:52:57.000Z
src/slides.py
jonhermansen/gbi
46ca12176395294d034d064c12410cb1123cea09
[ "BSD-3-Clause" ]
null
null
null
src/slides.py
jonhermansen/gbi
46ca12176395294d034d064c12410cb1123cea09
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk, GLib import threading from time import sleep import sys import os installer = "/usr/local/lib/gbi/" rcconfgbsd = "/etc/rc.conf.ghostbsd" rcconfdbsd = "/etc/rc.conf.desktopbsd" sys.path.append(installer) cssProvider = G...
46.606238
340
0.623782
f1140fd7286f9b7b0c4242ff373544242cd91719
7,422
py
Python
setup.py
telenordigital/horde-python
6f9d3e385845cc81bd69af88447c28620e31c074
[ "Apache-2.0" ]
2
2018-10-03T12:28:16.000Z
2019-07-19T17:56:30.000Z
setup.py
telenordigital/horde-python
6f9d3e385845cc81bd69af88447c28620e31c074
[ "Apache-2.0" ]
1
2019-10-22T08:54:40.000Z
2019-10-22T08:54:40.000Z
setup.py
telenordigital/horde-python
6f9d3e385845cc81bd69af88447c28620e31c074
[ "Apache-2.0" ]
1
2019-11-25T14:39:18.000Z
2019-11-25T14:39:18.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) # Get the long description...
40.118919
98
0.69294
222e23fc3f8ddd8422c158f5a40eeb6cf4554d7f
1,784
py
Python
project/text_recognizer/datasets/dataset_sequence.py
desireechen/handwriting-recognition
0aebf318535f8208ddefa55654c4469a1c9ea14f
[ "MIT" ]
null
null
null
project/text_recognizer/datasets/dataset_sequence.py
desireechen/handwriting-recognition
0aebf318535f8208ddefa55654c4469a1c9ea14f
[ "MIT" ]
null
null
null
project/text_recognizer/datasets/dataset_sequence.py
desireechen/handwriting-recognition
0aebf318535f8208ddefa55654c4469a1c9ea14f
[ "MIT" ]
null
null
null
"""DatasetSequence class.""" import numpy as np from tensorflow.keras.utils import Sequence # This contains a base object for fitting to a sequence of data, such as a dataset. def _shuffle(x, y): """Shuffle x and y maintaining their association.""" shuffled_indices = np.random.permutation(x.shape[0]) re...
32.436364
129
0.626682
579d5df51a482ff6df19570c46be39a02f812493
366
py
Python
setup.py
vahtras/gantt
26f62ed2997493f5bc33e1dd323adabebb783730
[ "MIT" ]
1
2020-04-07T03:00:02.000Z
2020-04-07T03:00:02.000Z
setup.py
vahtras/gantt
26f62ed2997493f5bc33e1dd323adabebb783730
[ "MIT" ]
null
null
null
setup.py
vahtras/gantt
26f62ed2997493f5bc33e1dd323adabebb783730
[ "MIT" ]
2
2018-01-30T11:04:45.000Z
2019-12-11T12:13:04.000Z
import setuptools from gantt import __version__ setuptools.setup( name="minimal-gantt", author="Olav Vahtras", author_email="olav.vahtras@gmail.com", description="A minimal Gantt chart generator", license="MIT", version=__version__, py_modules=["gantt"], scripts=["csv2gantt"], insta...
22.875
50
0.674863
cd0b269692951b85f9e1726927c0fa4b7e0d5b4e
28,088
py
Python
google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
dwsupplee/python-billingbudgets
bef9509b7f4cb6427ef4f0b27c57e0ba69694be7
[ "Apache-2.0" ]
null
null
null
google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
dwsupplee/python-billingbudgets
bef9509b7f4cb6427ef4f0b27c57e0ba69694be7
[ "Apache-2.0" ]
null
null
null
google/cloud/billing_budgets_v1beta1/proto/budget_model_pb2.py
dwsupplee/python-billingbudgets
bef9509b7f4cb6427ef4f0b27c57e0ba69694be7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/billing/budgets_v1beta1/proto/budget_model.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.proto...
36.668407
2,327
0.654586
1e8587f831eb0191924a6fb1115988c766870ce9
689
py
Python
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/core/conventions/keypoints_mapping/instavariety.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
INSTAVARIETY_KEYPOINTS = [ 'right_heel_openpose', 'right_knee_openpose', 'right_hip_openpose', 'left_hip_openpose', 'left_knee_openpose', 'left_heel_openpose', 'right_wrist_openpose', 'right_elbow_openpose', 'right_shoulder_openpose', 'left_shoulder_openpose', 'left_elbow_ope...
24.607143
30
0.699565
aa63486f2e2a4e9447e86d0e6d51231f6e335b80
804
py
Python
Chapter10/1. firstlook.py
Mikma03/Python-Data-Cleaning
bac38dd7eaebdba3b7e546238601dd2ad21e3841
[ "MIT" ]
null
null
null
Chapter10/1. firstlook.py
Mikma03/Python-Data-Cleaning
bac38dd7eaebdba3b7e546238601dd2ad21e3841
[ "MIT" ]
null
null
null
Chapter10/1. firstlook.py
Mikma03/Python-Data-Cleaning
bac38dd7eaebdba3b7e546238601dd2ad21e3841
[ "MIT" ]
null
null
null
# import pandas and os and sys libraries import pandas as pd import os import sys nls97 = pd.read_csv("data/nls97f.csv") nls97.set_index('personid', inplace=True) # import the basicdescriptives module sys.path.append(os.getcwd() + "/helperfunctions") from helperfunctions import basicdescriptives as bd # import importl...
26.8
51
0.762438
0f99105997d507e32dadd110f586bdcdd7e3c60c
541
py
Python
topobank/publication/migrations/0004_auto_20210510_1252.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
3
2021-12-03T19:11:07.000Z
2021-12-27T17:14:39.000Z
topobank/publication/migrations/0004_auto_20210510_1252.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
268
2021-03-19T13:57:00.000Z
2022-03-31T20:58:26.000Z
topobank/publication/migrations/0004_auto_20210510_1252.py
ContactEngineering/TopoBank
12710c24cc158801db20f030c3e0638060e24a0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.20 on 2021-05-10 10:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('publication', '0003_publication_publisher_orcid_id'), ] operations = [ migrations.AlterField( model_name='publication', ...
28.473684
182
0.606285
dc12d5a21546503d7103af4824a483fc61a563c5
7,253
py
Python
main.py
jandix/data-collection-www-lc-jena
6e8c00f79a8fb400771e76c0d4b315811d906c03
[ "MIT" ]
null
null
null
main.py
jandix/data-collection-www-lc-jena
6e8c00f79a8fb400771e76c0d4b315811d906c03
[ "MIT" ]
null
null
null
main.py
jandix/data-collection-www-lc-jena
6e8c00f79a8fb400771e76c0d4b315811d906c03
[ "MIT" ]
null
null
null
# load dependencies import requests import pandas as pd import matplotlib.pyplot as plt from bs4 import BeautifulSoup from datetime import date, datetime, timedelta headers = {"User-Agent": "Jan D. <jan.d@correlaid.org>"} def fetch_ags() -> pd.DataFrame: """ Fetch Amtliche Gemeindeschlüssel for Thüringen and...
36.265
100
0.654488
79df358631eaf39a14210cc7578935a26082c2d6
5,651
py
Python
docs/source/conf.py
sliderSun/pytorch-transformers
42853055db130a161e5dc0ccde5988f6fd4a20bf
[ "Apache-2.0" ]
457
2019-09-01T09:09:16.000Z
2022-03-30T03:12:13.000Z
docs/source/conf.py
sliderSun/pytorch-transformers
42853055db130a161e5dc0ccde5988f6fd4a20bf
[ "Apache-2.0" ]
17
2019-09-13T12:09:42.000Z
2021-06-02T00:21:20.000Z
docs/source/conf.py
sliderSun/pytorch-transformers
42853055db130a161e5dc0ccde5988f6fd4a20bf
[ "Apache-2.0" ]
123
2019-09-02T05:29:32.000Z
2021-12-27T07:39:35.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
30.058511
83
0.654751
12686988c1f169b40bc3d2ab2af9dc903178c5cb
2,375
py
Python
function/python/brightics/function/extraction/test/array_column_conversion_test.py
parkjh80/studio
6d8d8384272e5e1b2838b12e5557272a19408e89
[ "Apache-2.0" ]
202
2018-10-23T04:37:35.000Z
2022-01-27T05:51:10.000Z
function/python/brightics/function/extraction/test/array_column_conversion_test.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
444
2018-11-07T08:41:14.000Z
2022-03-16T06:48:57.000Z
function/python/brightics/function/extraction/test/array_column_conversion_test.py
data-weirdo/studio
48852c4f097f773ce3d408b59f79fda2e2d60470
[ "Apache-2.0" ]
99
2018-11-08T04:12:13.000Z
2022-03-30T05:36:27.000Z
""" Copyright 2019 Samsung SDS 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...
43.981481
118
0.722526
6410a1af5d247c98f23ebd9f3efb449df9e12a63
9,406
py
Python
old_projects/hilbert/fractal_porn.py
ishandutta2007/manim
55674f64a5b4b3bf1ab05243410e81a94eca1e26
[ "MIT" ]
null
null
null
old_projects/hilbert/fractal_porn.py
ishandutta2007/manim
55674f64a5b4b3bf1ab05243410e81a94eca1e26
[ "MIT" ]
null
null
null
old_projects/hilbert/fractal_porn.py
ishandutta2007/manim
55674f64a5b4b3bf1ab05243410e81a94eca1e26
[ "MIT" ]
null
null
null
from big_ol_pile_of_manim_imports import * from old_projects.hilbert.curves import * class Intro(TransformOverIncreasingOrders): @staticmethod def args_to_string(*args): return "" @staticmethod def string_to_args(string): raise Exception("string_to_args Not Implemented!") ...
27.746313
97
0.540081
3ed98a9b4d2d7aeacd1336146459973569f8dddb
5,338
py
Python
Server/BaseServer.py
Overkillus/Paper-Football
c72a04270c2b20ffcac1785cf1b7e105df3d912b
[ "MIT" ]
null
null
null
Server/BaseServer.py
Overkillus/Paper-Football
c72a04270c2b20ffcac1785cf1b7e105df3d912b
[ "MIT" ]
null
null
null
Server/BaseServer.py
Overkillus/Paper-Football
c72a04270c2b20ffcac1785cf1b7e105df3d912b
[ "MIT" ]
5
2020-11-11T17:47:14.000Z
2021-04-09T00:04:57.000Z
import pickle import socket import threading class Server: def __init__(self, server, port): self.SERVER = server self.PORT = port # message variables recognised by both client and servers. self.HEADER_SIZE = 10 self.FORMAT = "utf-8" self.DISCONNECT_MSG = "!GETOUT"...
38.402878
85
0.589734
9e816f513154f0fb8ba87516b3a5990e9e2c3481
6,141
py
Python
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListResourcesRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The k...
24.762097
102
0.55675
9933506fcb29ba9f63275f4c6559951a063a8b7b
3,056
py
Python
tests/unit/common/test_logging.py
varuntiwari27/rally
948fba0e8fe8214dd3716451d2a52e014a4115be
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
tests/unit/common/test_logging.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/unit/common/test_logging.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
34.727273
78
0.595877
9511a1ebe1cce90002f94eae2df01b02b5b1d7e6
5,443
py
Python
qnarre/prep/tokens/byt5.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/byt5.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/tokens/byt5.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.798611
136
0.614183
09362034acb27d0916fbaa4cdfd905a5de5475c0
2,131
py
Python
tests/compute/test_rackspace.py
coyo8/libcloud.rest
07e662eceeb18e6659dffb0d1073adbb0b960efe
[ "Apache-2.0" ]
1
2019-04-16T22:06:45.000Z
2019-04-16T22:06:45.000Z
tests/compute/test_rackspace.py
coyo8/libcloud.rest
07e662eceeb18e6659dffb0d1073adbb0b960efe
[ "Apache-2.0" ]
null
null
null
tests/compute/test_rackspace.py
coyo8/libcloud.rest
07e662eceeb18e6659dffb0d1073adbb0b960efe
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import httplib import unittest2 try: import simplejson as json except ImportError: import json from werkzeug.test import Client from werkzeug.wrappers import BaseResponse import libcloud from libcloud.test.compute.test_openstack import OpenStackMockHttp from libcloud_rest.api.versions ...
40.207547
71
0.672454
fc63a331d52bdf0850b8ec864903beeb89bf858e
3,737
py
Python
affine.py
tranduytrung/camera-alignment
aad918336847cde36b78e22be6ed8a7529cb0874
[ "Apache-2.0" ]
null
null
null
affine.py
tranduytrung/camera-alignment
aad918336847cde36b78e22be6ed8a7529cb0874
[ "Apache-2.0" ]
null
null
null
affine.py
tranduytrung/camera-alignment
aad918336847cde36b78e22be6ed8a7529cb0874
[ "Apache-2.0" ]
null
null
null
import os import cv2 as cv import numpy as np import utils def calibrate_affine( src_cam: cv.VideoCapture, dst_cam: cv.VideoCapture, n_images=10, chessboard_size=(6, 9), size=(640, 480), ): src_points = [] dst_points = [] n_captured_images = 0 while n_captured_images < n_images: ...
26.692857
108
0.604228
f6ca379c62ac34f4bf8e155cbf3f6f30c76d5469
310
py
Python
Language Skills/Python/Unit 05 Lists & Dictionaries/01 Python Lists and Dictionaries/Lists Capabilities and Functions/5-List Slicing.py
rhyep/Python_tutorials
f5c8a64b91802b005dfe7dd9035f8d8daae8c3e3
[ "MIT" ]
346
2016-02-22T20:21:10.000Z
2022-01-27T20:55:53.000Z
Language Skills/Python/Unit 5/1-Python Lists and Dictionaries/Lists Capabilities and Functions/5-List Slicing.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
55
2016-04-07T13:58:44.000Z
2020-06-25T12:20:24.000Z
Language Skills/Python/Unit 5/1-Python Lists and Dictionaries/Lists Capabilities and Functions/5-List Slicing.py
vpstudios/Codecademy-Exercise-Answers
ebd0ee8197a8001465636f52c69592ea6745aa0c
[ "MIT" ]
477
2016-02-21T06:17:02.000Z
2021-12-22T10:08:01.000Z
suitcase = ["sunglasses", "hat", "passport", "laptop", "suit", "shoes"] first = suitcase[0:2] # The first and second items (index zero and one) print first middle = suitcase[2:4] # Third and fourth items (index two and three) print middle last = suitcase[4:6] # The last two items (index four and five)
38.75
73
0.687097
0249d30d4edfceabf231a7cc4ca4b352a9b6fbef
17,756
py
Python
test/functional/test_framework/test_node.py
phm87/bitcoin-abc
e0c55f5e6fbb3f4c19a9e203223f8ad2f3eba7b9
[ "MIT" ]
1
2021-06-12T04:50:08.000Z
2021-06-12T04:50:08.000Z
test/functional/test_framework/test_node.py
phm87/bitcoin-abc
e0c55f5e6fbb3f4c19a9e203223f8ad2f3eba7b9
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
phm87/bitcoin-abc
e0c55f5e6fbb3f4c19a9e203223f8ad2f3eba7b9
[ "MIT" ]
1
2019-09-08T15:35:38.000Z
2019-09-08T15:35:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for bitcoind node under test""" import contextlib import decimal import errno import http.client impo...
40.538813
167
0.613145
9887b3c8aaecb8048275fee8744194a271809175
1,762
py
Python
crosshair/examples/hypothesis/bugs_detected/simple_strategies.py
orsinium-forks/CrossHair
241f1fd5de04ea77c92364518996ca0bf9d2891b
[ "MIT" ]
null
null
null
crosshair/examples/hypothesis/bugs_detected/simple_strategies.py
orsinium-forks/CrossHair
241f1fd5de04ea77c92364518996ca0bf9d2891b
[ "MIT" ]
1
2021-10-29T23:39:25.000Z
2021-10-30T09:08:06.000Z
crosshair/examples/hypothesis/bugs_detected/simple_strategies.py
nicpayne713/CrossHair
98bc53798467f03c71ad63f041c7177894c86aa8
[ "MIT" ]
null
null
null
from hypothesis import given, infer from hypothesis import strategies as st @given(st.integers()) def positive(s): assert s >= 0 @given(st.tuples(st.booleans(), st.booleans())) def tuples(t): assert t != (False, True) # TODO: Various example cases to work on below # @given(st.characters()) # def not_u_ch...
24.136986
74
0.595914
31afc6db8dd0996159ce6680ff9400e0a9fe7a54
6,128
py
Python
intmcp/model/belief.py
RDLLab/i-ntmcp
63deec3d956d41a0ad4b66a707536893859e4e9f
[ "MIT" ]
null
null
null
intmcp/model/belief.py
RDLLab/i-ntmcp
63deec3d956d41a0ad4b66a707536893859e4e9f
[ "MIT" ]
null
null
null
intmcp/model/belief.py
RDLLab/i-ntmcp
63deec3d956d41a0ad4b66a707536893859e4e9f
[ "MIT" ]
null
null
null
"""Belief data structures """ import random from pprint import pformat from typing import Optional, Dict, Sequence, List import numpy as np from intmcp.model.state import State class BaseBelief: """An abstract belief class """ def sample(self) -> State: """Returns a state from the belief """ ...
29.747573
75
0.609987
815621de32903428f70a56fce0a8d990fabaf398
375
py
Python
auth-api/migrations/versions/c0152c02cd5f_merge.py
argush3/sbc-auth
96a4de3a4358b3158540aea8c4d99e06909793f2
[ "Apache-2.0" ]
null
null
null
auth-api/migrations/versions/c0152c02cd5f_merge.py
argush3/sbc-auth
96a4de3a4358b3158540aea8c4d99e06909793f2
[ "Apache-2.0" ]
null
null
null
auth-api/migrations/versions/c0152c02cd5f_merge.py
argush3/sbc-auth
96a4de3a4358b3158540aea8c4d99e06909793f2
[ "Apache-2.0" ]
1
2019-07-25T18:20:41.000Z
2019-07-25T18:20:41.000Z
"""merge Revision ID: c0152c02cd5f Revises: 7b0cde979ba5, 1786b8de5f43 Create Date: 2020-04-06 17:04:45.702652 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c0152c02cd5f' down_revision = ('7b0cde979ba5', '1786b8de5f43') branch_labels = None depends_on = None...
15
48
0.738667
d0c27521445673c5fc824286fdae8de16bdde93f
1,407
py
Python
ocean_utils/utils/utilities.py
oceanprotocol/common-utils-py
f577f4762841496584e114baaec0d476e73c700e
[ "Apache-2.0" ]
null
null
null
ocean_utils/utils/utilities.py
oceanprotocol/common-utils-py
f577f4762841496584e114baaec0d476e73c700e
[ "Apache-2.0" ]
2
2019-12-16T11:26:21.000Z
2021-03-18T13:06:31.000Z
ocean_utils/utils/utilities.py
oceanprotocol/common-utils-py
f577f4762841496584e114baaec0d476e73c700e
[ "Apache-2.0" ]
null
null
null
"""Utilities class""" # Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 import hashlib import json import uuid from datetime import datetime def generate_new_id(): """ Generate a new id without prefix. :return: Id, str """ return uuid.uuid4().hex + uuid.uuid4().h...
17.810127
97
0.618337
a9b4bfab1d966b6e32f4e155d67bbbfc2c093366
2,338
py
Python
xlsxwriter/test/comparison/test_chart_gridlines02.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
1
2015-05-19T22:17:15.000Z
2015-05-19T22:17:15.000Z
xlsxwriter/test/comparison/test_chart_gridlines02.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_chart_gridlines02.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest....
25.977778
79
0.505988
8ef83073d6fa5d6ede84131134a74112db73bb37
840
bzl
Python
c2_test_defs.bzl
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
c2_test_defs.bzl
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
c2_test_defs.bzl
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
load("@fbsource//tools/build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test") load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "APPLE", "CXX", "IOS", "MACOSX") load("@fbsource//xplat/caffe2:c2_defs.bzl", "get_c2_default_cxx_args") def c2_cxx_test(**kwargs): args = get_c2_default_cxx_args() arg...
40
97
0.7
0e4a76273bb91aceb4c598096462d19e42c2a04d
3,592
py
Python
locallibrary/settings.py
loctnmps08790/django_local_library
0a3772e6da5c9a90b60a7638707ba62f927ec819
[ "Unlicense" ]
null
null
null
locallibrary/settings.py
loctnmps08790/django_local_library
0a3772e6da5c9a90b60a7638707ba62f927ec819
[ "Unlicense" ]
4
2021-03-30T13:45:45.000Z
2021-09-22T19:14:52.000Z
locallibrary/settings.py
loctnmps08790/django_local_library
0a3772e6da5c9a90b60a7638707ba62f927ec819
[ "Unlicense" ]
null
null
null
""" Django settings for locallibrary project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
27.212121
91
0.711581
a4f5f22dab0d02a22423dec0dc98f5ab4ae4d259
783
py
Python
load_and_clean.py
gqfiddler/movieRatings
2930b66393fd9a8bc99b52fa9db74f85048652d6
[ "MIT" ]
null
null
null
load_and_clean.py
gqfiddler/movieRatings
2930b66393fd9a8bc99b52fa9db74f85048652d6
[ "MIT" ]
null
null
null
load_and_clean.py
gqfiddler/movieRatings
2930b66393fd9a8bc99b52fa9db74f85048652d6
[ "MIT" ]
null
null
null
import pandas as pd def load_and_clean(movieFilepath, ratingsFilepath): # load and merge movies_df = pd.read_csv(movieFilepath) raw_ratings_df = pd.read_csv(ratingsFilepath) ratings_df = pd.merge( raw_ratings_df, movies_df, left_on="movieId", right_on="mo...
37.285714
94
0.673052
9c8f7ab613c805a85200a262efcb1df50365927a
3,447
py
Python
Lessons/source/stack.py
capt-alien/CS-1.3-Core-Data-Structures
690f028e2fdded39063496afe581b1a2d47b21f8
[ "MIT" ]
null
null
null
Lessons/source/stack.py
capt-alien/CS-1.3-Core-Data-Structures
690f028e2fdded39063496afe581b1a2d47b21f8
[ "MIT" ]
null
null
null
Lessons/source/stack.py
capt-alien/CS-1.3-Core-Data-Structures
690f028e2fdded39063496afe581b1a2d47b21f8
[ "MIT" ]
null
null
null
#!python from linkedlist import LinkedList # Implement LinkedStack below, then change the assignment at the bottom # to use this Stack implementation to verify it passes all tests class LinkedStack(object): def __init__(self, iterable=None): """Initialize this stack and push the given items, if any.""" ...
32.828571
78
0.616478
8d55184f5031b0c08803219006edf97a361e8a60
32,312
py
Python
graphflow.py
cooltony128/AirportsDelayModel
ef152c0cafd8e6d02ea8a39006b3d6fbe16e60c8
[ "MIT" ]
1
2019-11-24T23:49:36.000Z
2019-11-24T23:49:36.000Z
graphflow.py
cooltony128/AirportsDelayModel
ef152c0cafd8e6d02ea8a39006b3d6fbe16e60c8
[ "MIT" ]
null
null
null
graphflow.py
cooltony128/AirportsDelayModel
ef152c0cafd8e6d02ea8a39006b3d6fbe16e60c8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import networkx as nx import matplotlib.pyplot as plt import random import keras from keras.models import Sequential from keras.layers.core import Dense, Activation from keras.utils import np_utils from sklearn.model_selection import train_test_split from sklearn.linear_model im...
42.072917
153
0.605193
c98866ebdee5a5b495ac808e6276f06a4098a6b5
490
py
Python
apps/faq/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
3
2021-03-12T18:32:39.000Z
2021-11-08T10:21:04.000Z
apps/faq/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
null
null
null
apps/faq/models.py
mehrbodjavadi79/AIC21-Backend
9f4342781f0722804a2eb704b43b52984c81b40a
[ "MIT" ]
2
2021-01-29T14:52:53.000Z
2022-03-05T10:24:24.000Z
from django.db import models class QuestionTitle(models.Model): title = models.CharField(max_length=512) class QuestionWithAnswer(models.Model): title = models.ForeignKey(QuestionTitle, related_name='faqs', on_delete=models.CASCADE, null=True) question_en = models.CharField...
32.666667
66
0.726531
7c55b9b3dbe91e45e18fe4755747906b8dc83f61
31,950
py
Python
src/scenic/core/vectors.py
BehaviorPredictionTestingPlatform/scenic-1
a2e0d08d8dd0be06aaf0071058ba337209361328
[ "BSD-3-Clause" ]
1
2020-12-02T08:40:23.000Z
2020-12-02T08:40:23.000Z
src/scenic/core/vectors.py
BehaviorPredictionTestingPlatform/scenic-1
a2e0d08d8dd0be06aaf0071058ba337209361328
[ "BSD-3-Clause" ]
null
null
null
src/scenic/core/vectors.py
BehaviorPredictionTestingPlatform/scenic-1
a2e0d08d8dd0be06aaf0071058ba337209361328
[ "BSD-3-Clause" ]
4
2021-08-09T18:21:26.000Z
2022-03-22T22:20:02.000Z
"""Scenic vectors and vector fields.""" from __future__ import annotations import math from math import sin, cos import random import collections import itertools import shapely.geometry import wrapt from scenic.core.distributions import (Samplable, Distribution, MethodDistribution, needsSampling, makeOperatorH...
37.544066
130
0.741596
ed44b4d3fa4b39526cb634ef9ea85f85a8a4f3ba
1,066
py
Python
autumn/modules/sql/chatbot_sql.py
famouskaykay/Autumn
5fc4df3e7118027cf7cd7e0714eba91e3fe46532
[ "MIT" ]
null
null
null
autumn/modules/sql/chatbot_sql.py
famouskaykay/Autumn
5fc4df3e7118027cf7cd7e0714eba91e3fe46532
[ "MIT" ]
null
null
null
autumn/modules/sql/chatbot_sql.py
famouskaykay/Autumn
5fc4df3e7118027cf7cd7e0714eba91e3fe46532
[ "MIT" ]
1
2021-07-16T02:18:40.000Z
2021-07-16T02:18:40.000Z
import threading from sqlalchemy import Column, String from autumn.modules.sql import BASE, SESSION class KukiChats(BASE): __tablename__ = "kuki_chats" chat_id = Column(String(14), primary_key=True) def __init__(self, chat_id): self.chat_id = chat_id KukiChats.__table__.create(checkfirst=True) INS...
24.790698
61
0.665103
71e6dfb26037a5550f291ef62a4c78041c8ca095
1,324
py
Python
lucent_cavern/urls.py
ErnestaMajute/lucentCavern
a98253c5192456637f7af6400eee39cf5363d838
[ "W3C", "PostgreSQL" ]
null
null
null
lucent_cavern/urls.py
ErnestaMajute/lucentCavern
a98253c5192456637f7af6400eee39cf5363d838
[ "W3C", "PostgreSQL" ]
null
null
null
lucent_cavern/urls.py
ErnestaMajute/lucentCavern
a98253c5192456637f7af6400eee39cf5363d838
[ "W3C", "PostgreSQL" ]
1
2021-07-19T14:29:15.000Z
2021-07-19T14:29:15.000Z
"""lucent_cavern URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
40.121212
77
0.695619
8d9ab607877dc27318b8447cdbad12a9562e266f
7,631
py
Python
notions/cli/run.py
micktwomey/notions
b58b7491c802dd90f16bf525b42fd37bf54b8c76
[ "MIT" ]
1
2022-03-18T09:24:29.000Z
2022-03-18T09:24:29.000Z
notions/cli/run.py
micktwomey/notions
b58b7491c802dd90f16bf525b42fd37bf54b8c76
[ "MIT" ]
null
null
null
notions/cli/run.py
micktwomey/notions
b58b7491c802dd90f16bf525b42fd37bf54b8c76
[ "MIT" ]
null
null
null
"""Common run function which does the heavy lifting of formatting output""" import csv import enum import itertools import logging import typing from notions.flatten import flatten_item from notions.models.database import Database from notions.models.page import Page, PageTitleProperty from . import yaml from .confi...
30.646586
88
0.689425
a7c00a4e0b85c71344ab0569a39748f4ed25176e
7,405
py
Python
src/app.py
mmaz2301/s3toftp
65c418335ead32f0a0978033aad521191e4604ef
[ "Apache-2.0" ]
null
null
null
src/app.py
mmaz2301/s3toftp
65c418335ead32f0a0978033aad521191e4604ef
[ "Apache-2.0" ]
null
null
null
src/app.py
mmaz2301/s3toftp
65c418335ead32f0a0978033aad521191e4604ef
[ "Apache-2.0" ]
null
null
null
""" This module provides the functionality of uploading files from s3 to an FTP server. """ import base64 import json import logging import os import boto3 import paramiko from botocore.exceptions import ClientError from exceptions import BinarySecretError, InvalidAuthTypeError SECRET_KEY = os.getenv("SECRET_KEY") V...
32.195652
88
0.608508
5005071f76a86d4fcedad27a5252a5f8f46a3daf
479
py
Python
packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/mesh3d/lightposition/_x.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class XValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="x", parent_name="mesh3d.lightposition", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edi...
34.214286
86
0.632568
73a2e6c981d35df70b1a71b478d5e10419df7034
1,945
py
Python
benchmark.py
CCInc/pynanoflann
bf82d7c63a883b7026907dd6e1c23e3b03f30ec0
[ "BSD-2-Clause" ]
null
null
null
benchmark.py
CCInc/pynanoflann
bf82d7c63a883b7026907dd6e1c23e3b03f30ec0
[ "BSD-2-Clause" ]
null
null
null
benchmark.py
CCInc/pynanoflann
bf82d7c63a883b7026907dd6e1c23e3b03f30ec0
[ "BSD-2-Clause" ]
null
null
null
import time from matplotlib import pyplot as plt import pandas as pd import seaborn as sns import numpy as np import pynanoflann from contexttimer import Timer from sklearn import neighbors n_index_points = 200000 n_query_points = 1000 n_repititions = 5 data_dim = 3 n_neighbors = 100 index_type = np.float32 data = n...
32.416667
129
0.73162
09f3e9d89f846ddbc265865edef1e1a3d2eb5952
405
py
Python
experiments/fdtd-2d/tmp_files/9794.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/9794.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/9794.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/9794.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
22.5
116
0.716049
1d393c269e61cad97c80500e7257baf0977e9a6a
6,750
py
Python
tests/solr_tests/tests/solr_query.py
pculture/django-haystack
4fb267623b58c5581be96a9a9504ca10a72eb0d8
[ "BSD-3-Clause" ]
2
2015-01-10T09:14:47.000Z
2018-11-19T13:45:55.000Z
tests/solr_tests/tests/solr_query.py
pculture/django-haystack
4fb267623b58c5581be96a9a9504ca10a72eb0d8
[ "BSD-3-Clause" ]
null
null
null
tests/solr_tests/tests/solr_query.py
pculture/django-haystack
4fb267623b58c5581be96a9a9504ca10a72eb0d8
[ "BSD-3-Clause" ]
1
2018-11-19T13:45:55.000Z
2018-11-19T13:45:55.000Z
import datetime from django.test import TestCase from haystack import connections from haystack.inputs import Exact from haystack.models import SearchResult from haystack.query import SQ from core.models import MockModel, AnotherMockModel class SolrSearchQueryTestCase(TestCase): def setUp(self): super(Sol...
48.214286
241
0.661333
12e28b33d757d6999377ebb4f682d3a63b7dcc3f
2,257
py
Python
nflows/transforms/reshape.py
Tennessee-Wallaceh/nflows
ac0bf432fc7904458a933ed14180f0ac26e3f93d
[ "MIT" ]
522
2020-02-26T16:51:51.000Z
2022-03-31T15:38:48.000Z
nflows/transforms/reshape.py
Tennessee-Wallaceh/nflows
ac0bf432fc7904458a933ed14180f0ac26e3f93d
[ "MIT" ]
47
2020-03-24T18:36:59.000Z
2022-03-25T09:47:18.000Z
nflows/transforms/reshape.py
Tennessee-Wallaceh/nflows
ac0bf432fc7904458a933ed14180f0ac26e3f93d
[ "MIT" ]
77
2020-03-21T21:00:44.000Z
2022-03-31T00:41:51.000Z
import torch from nflows.transforms.base import Transform import nflows.utils.typechecks as check class SqueezeTransform(Transform): """A transformation defined for image data that trades spatial dimensions for channel dimensions, i.e. "squeezes" the inputs along the channel dimensions. Implementation a...
32.710145
89
0.605671
73c5389801285766f41d74d63ec6e62e70ba2047
330
py
Python
wagtail/images/migrations/0019_delete_filter.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
1
2022-02-09T05:25:30.000Z
2022-02-09T05:25:30.000Z
wagtail/images/migrations/0019_delete_filter.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/images/migrations/0019_delete_filter.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-08 23:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("wagtailimages", "0018_remove_rendition_filter"), ] operations = [ migrations.DeleteModel( name="Filter", ...
19.411765
58
0.606061
ab7860296985c00ee73ea1c5e38d21431f5e55c2
3,772
py
Python
examples/svm/plot_iris_svc.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
27
2015-01-22T22:30:09.000Z
2022-02-15T07:33:06.000Z
examples/svm/plot_iris_svc.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
29
2021-03-04T02:56:48.000Z
2021-04-06T04:06:45.000Z
examples/svm/plot_iris_svc.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
25
2015-07-30T13:47:25.000Z
2021-08-03T07:48:38.000Z
""" ================================================== Plot different SVM classifiers in the iris dataset ================================================== Comparison of different linear SVM classifiers on a 2D projection of the iris dataset. We only consider the first 2 features of this dataset: - Sepal length - Se...
31.173554
78
0.656416
7b0ed0b55487ef3ccff4ec364fb53d4a36e5d9fc
16,574
py
Python
firmware/micropython/original/sargs.py
open-lv/air-pilot
6e5a5f1abf4cd230812665ea0353425a439bbbd6
[ "MIT" ]
5
2021-09-23T14:10:06.000Z
2022-02-14T12:36:23.000Z
firmware/micropython/original/sargs.py
open-lv/air-pilot
6e5a5f1abf4cd230812665ea0353425a439bbbd6
[ "MIT" ]
25
2021-09-23T12:08:55.000Z
2022-03-20T14:51:03.000Z
firmware/micropython/original/sargs.py
open-lv/air-pilot
6e5a5f1abf4cd230812665ea0353425a439bbbd6
[ "MIT" ]
2
2021-09-23T11:40:26.000Z
2021-12-20T21:01:03.000Z
import binascii import gc import logging import machine import mhz19 import network import http_utils import ota_utils from . import mqtt_airguard from . import sargsui from . import portal import sys import time import uasyncio import urequests from machine import Pin, I2C, UART, ADC, reset from uasyncio import Cancel...
38.454756
130
0.606854
1ac820e986f553841b77ec5a5fbf24d3fef30c67
32,008
py
Python
panel/layout.py
hoseppan/panel
8a879b952534320c575abfa47b7ca7bfb4e6e554
[ "BSD-3-Clause" ]
null
null
null
panel/layout.py
hoseppan/panel
8a879b952534320c575abfa47b7ca7bfb4e6e554
[ "BSD-3-Clause" ]
null
null
null
panel/layout.py
hoseppan/panel
8a879b952534320c575abfa47b7ca7bfb4e6e554
[ "BSD-3-Clause" ]
null
null
null
""" Defines Layout classes which may be used to arrange panes and widgets in flexible ways to build complex dashboards. """ from __future__ import absolute_import, division, unicode_literals from collections import OrderedDict import param import numpy as np from bokeh.models import (Column as BkColumn, Row as BkRow...
34.014878
89
0.526525
b9fa6ed2c3b32280030d6d5f480d4826a046139e
175
py
Python
example/django31/todo/urls.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
76
2015-03-01T11:46:57.000Z
2022-02-18T10:57:44.000Z
example/django31/todo/urls.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
119
2015-01-14T11:53:08.000Z
2022-03-30T08:22:50.000Z
example/django31/todo/urls.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
46
2015-02-09T23:50:57.000Z
2022-01-06T16:04:40.000Z
from django.urls import include, path from . import views urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('notes/', include('notes.urls')), ]
21.875
54
0.662857
af3e244a63502cdbd909564b96e9d5b1c31a5a3c
336
py
Python
Lektion_3/11_pass_schleifen.py
ready-to-code/python-fuer-frauen
ad8fd7bc53f7d40d9e530106d0954ce634e30230
[ "MIT" ]
1
2021-01-04T15:33:01.000Z
2021-01-04T15:33:01.000Z
Lektion_3/11_pass_schleifen.py
ready-to-code/python-fuer-frauen
ad8fd7bc53f7d40d9e530106d0954ce634e30230
[ "MIT" ]
11
2021-04-08T20:33:42.000Z
2022-03-12T00:52:28.000Z
Lektion_3/11_pass_schleifen.py
ready-to-code/python-fuer-frauen
ad8fd7bc53f7d40d9e530106d0954ce634e30230
[ "MIT" ]
4
2020-07-02T13:32:33.000Z
2020-07-06T20:09:03.000Z
# Platzhalter mit 'pass' aktion = int(input("Aktion wählen: ")) if aktion == 0: print("Hier könnte bereits fertiger Quellcode stehen") print("Ausführen der Aktion") elif aktion == 1: pass # TODO: Hier muss noch implementiert werden elif aktion == 2: pass # TODO: Hier ebenfalls else: print("Ung...
25.846154
58
0.678571
ee813d22c9b2ed64102600b52b1aa0de0897d1ab
4,384
py
Python
app/routes.py
Dek1on/flask-microblog
eab6dea76545351d454a997515da0696bb0b48b5
[ "MIT" ]
3
2018-09-02T11:51:52.000Z
2020-01-16T05:00:22.000Z
app/routes.py
Dek1on/flask-microblog
eab6dea76545351d454a997515da0696bb0b48b5
[ "MIT" ]
null
null
null
app/routes.py
Dek1on/flask-microblog
eab6dea76545351d454a997515da0696bb0b48b5
[ "MIT" ]
null
null
null
from datetime import datetime from flask import flash, redirect, render_template, request, url_for from flask_login import current_user, login_required, login_user, logout_user from werkzeug.urls import url_parse from app import app, db from app.forms import EditProfileForm, LoginForm, RegistrationForm from app.model...
31.768116
80
0.658531
8ace359bcb071eefb77f404de32edf3fc27d793d
3,004
py
Python
nvflare/app_common/app_event_type.py
ArnovanHilten/NVFlare
bb45e7d606849c6bc8f7542347459c6ba1be00c4
[ "Apache-2.0" ]
2
2021-12-01T15:56:19.000Z
2021-12-02T09:00:07.000Z
nvflare/app_common/app_event_type.py
ArnovanHilten/NVFlare
bb45e7d606849c6bc8f7542347459c6ba1be00c4
[ "Apache-2.0" ]
1
2022-02-16T03:51:39.000Z
2022-02-16T08:24:38.000Z
nvflare/app_common/app_event_type.py
ArnovanHilten/NVFlare
bb45e7d606849c6bc8f7542347459c6ba1be00c4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
41.722222
74
0.789281
868eac36340e7f66abc0a6741fbbd974713c4a00
1,480
py
Python
numba_dppy/tests/test_parfor_lower_message.py
1e-to/numba-dppy
70bd9d6621b1e93819ee3d9c107a60314043bf6f
[ "Apache-2.0" ]
null
null
null
numba_dppy/tests/test_parfor_lower_message.py
1e-to/numba-dppy
70bd9d6621b1e93819ee3d9c107a60314043bf6f
[ "Apache-2.0" ]
11
2021-11-24T12:21:02.000Z
2022-02-07T12:05:59.000Z
numba_dppy/tests/test_parfor_lower_message.py
1e-to/numba-dppy
70bd9d6621b1e93819ee3d9c107a60314043bf6f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Intel Corporation # # 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...
27.924528
74
0.683784
859f4ff27e435c605f778330e3f11d17ad3dada4
2,185
py
Python
object_detection/streamlit.py
saams4u/mwml-torch-object-detection
3edb57d88d232f52aab765b9d37c306075229a0d
[ "MIT" ]
null
null
null
object_detection/streamlit.py
saams4u/mwml-torch-object-detection
3edb57d88d232f52aab765b9d37c306075229a0d
[ "MIT" ]
null
null
null
object_detection/streamlit.py
saams4u/mwml-torch-object-detection
3edb57d88d232f52aab765b9d37c306075229a0d
[ "MIT" ]
null
null
null
import streamlit as st import cv2 from PIL import Image import numpy as np import os from const import CLASSES, COLORS from settings import DEFAULT_CONFIDENCE_THRESHOLD, DEMO_IMAGE, MODEL, PROTOTXT @st.cache def process_image(image): blob = cv2.dnn.blobFromImage( cv2.resize(image, (300, 300)), 0.007843, ...
30.774648
88
0.649428
f4fdab826cd8f6af8bb812b422c54389c1319a46
825
py
Python
tests/unit_tests/modules/s3/s3gis/WFSLayer.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
1
2017-07-22T18:49:34.000Z
2017-07-22T18:49:34.000Z
tests/unit_tests/modules/s3/s3gis/WFSLayer.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
null
null
null
tests/unit_tests/modules/s3/s3gis/WFSLayer.py
PeterDaveHello/eden
26174a9dde2f19cd3bc879694f373ad5f765b6ed
[ "MIT" ]
1
2019-12-16T15:14:46.000Z
2019-12-16T15:14:46.000Z
s3gis_tests = load_module("tests.unit_tests.modules.s3.s3gis") def test_WFSLayer(): s3gis_tests.layer_test( db, db.gis_layer_wfs, dict( name = "Test WFS", description = "Test WFS layer", enabled = True, created_on = datetime.datetime.now(), ...
25.78125
62
0.433939
cb661e950985ee68713dfa63285e9f22283d2606
88,398
py
Python
lib/galaxy/jobs/__init__.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/jobs/__init__.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/jobs/__init__.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
""" Support for running a tool in Galaxy via an internal job management system """ import copy import datetime import galaxy import logging import os import pwd import random import re import shutil import subprocess import sys import threading import traceback from galaxy import model, util from galaxy.datatypes impo...
50.484295
300
0.606552
90afe40ede0ff46f2c9fa5b4ec67f1eb43a4039b
395
py
Python
countymap/countymap/wsgi.py
ProgramYuriyG/HomePhilosopher
bcb2ee2eeb8691b654d18bbddc890ff6ee421924
[ "MIT" ]
null
null
null
countymap/countymap/wsgi.py
ProgramYuriyG/HomePhilosopher
bcb2ee2eeb8691b654d18bbddc890ff6ee421924
[ "MIT" ]
null
null
null
countymap/countymap/wsgi.py
ProgramYuriyG/HomePhilosopher
bcb2ee2eeb8691b654d18bbddc890ff6ee421924
[ "MIT" ]
null
null
null
""" WSGI config for countymap project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
d61eb833325b63c1d1fbeb7b3d3c54b848a97cf8
632
py
Python
test.py
hugopukito/M1_algoGeo
34e05a82053ca0ac169644000272cd5a6f4bcd69
[ "MIT" ]
null
null
null
test.py
hugopukito/M1_algoGeo
34e05a82053ca0ac169644000272cd5a6f4bcd69
[ "MIT" ]
null
null
null
test.py
hugopukito/M1_algoGeo
34e05a82053ca0ac169644000272cd5a6f4bcd69
[ "MIT" ]
null
null
null
import halfedge_mesh # .off are supported mesh = halfedge_mesh.HalfedgeMesh("tests/data/mesh02.off") # Returns a list of Vertex type (in order of file)--similarly for halfedges, # and facets mesh.vertices # The number of facets in the mesh len(mesh.facets) # Get the 10th halfedge mesh.halfedges[10] ...
23.407407
77
0.724684
f6b2c3a19254846880c3cd9a586411ebe1a83d4f
10,518
py
Python
keras/layers/preprocessing/preprocessing_stage.py
slowy07/keras
d3688b72924a4235598f0f80038de8c897f44799
[ "Apache-2.0" ]
11
2015-11-27T18:33:56.000Z
2020-08-12T22:51:57.000Z
keras/layers/preprocessing/preprocessing_stage.py
slowy07/keras
d3688b72924a4235598f0f80038de8c897f44799
[ "Apache-2.0" ]
3
2017-03-19T16:38:43.000Z
2017-07-06T09:35:30.000Z
keras/layers/preprocessing/preprocessing_stage.py
slowy07/keras
d3688b72924a4235598f0f80038de8c897f44799
[ "Apache-2.0" ]
2
2015-12-08T06:15:54.000Z
2016-01-09T08:30:11.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.100372
82
0.660487
73e17a70e39667e6ab26c72f9d533e1fe39ede55
18,646
py
Python
python/test/lib/app/sciond_test.py
cyrill-k/netsec-scion
4698f6057d1f4851d6bd24d9c925f9e6201ce371
[ "Apache-2.0" ]
null
null
null
python/test/lib/app/sciond_test.py
cyrill-k/netsec-scion
4698f6057d1f4851d6bd24d9c925f9e6201ce371
[ "Apache-2.0" ]
null
null
null
python/test/lib/app/sciond_test.py
cyrill-k/netsec-scion
4698f6057d1f4851d6bd24d9c925f9e6201ce371
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 ETH Zurich # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
47.205063
100
0.679502
344747bf3064c48826997250c3b647ee426eeba6
7,872
py
Python
slingpy/data_access/data_sources/abstract_data_source.py
LachlanStuart/slingpy
35a9582f0546a1714927f402ef6cca058faf8cdc
[ "MIT" ]
null
null
null
slingpy/data_access/data_sources/abstract_data_source.py
LachlanStuart/slingpy
35a9582f0546a1714927f402ef6cca058faf8cdc
[ "MIT" ]
null
null
null
slingpy/data_access/data_sources/abstract_data_source.py
LachlanStuart/slingpy
35a9582f0546a1714927f402ef6cca058faf8cdc
[ "MIT" ]
null
null
null
""" Copyright (C) 2021 Patrick Schwab, Arash Mehrjou, GlaxoSmithKline plc; Andrew Jesson, University of Oxford; Ashkan Soleymani, MIT 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 restr...
39.164179
130
0.649009
6c3007831236dc8898a444f2e13beb214a1cb012
250
py
Python
tests/data_context/fixtures/plugins/my_custom_v3_api_datasource.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
6,451
2017-09-11T16:32:53.000Z
2022-03-31T23:27:49.000Z
tests/data_context/fixtures/plugins/my_custom_v3_api_datasource.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
3,892
2017-09-08T18:57:50.000Z
2022-03-31T23:15:20.000Z
tests/data_context/fixtures/plugins/my_custom_v3_api_datasource.py
victorcouste/great_expectations
9ee46d83feb87e13c769e2ae35b899b3f18d73a4
[ "Apache-2.0" ]
1,023
2017-09-08T15:22:05.000Z
2022-03-31T21:17:08.000Z
from great_expectations.datasource import Datasource class MyCustomV3ApiDatasource(Datasource): """ This class is used only for testing. E.g. ensuring appropriate usage stats messaging when using plugin functionality. """ pass
22.727273
84
0.748
52dd0b48727b7d47aa5aaf0c1bd5fde6e8b16445
5,857
py
Python
tf_quant_finance/black_scholes/implied_vol_newton_root_test.py
alexanu/tf-quant-finance
d0eb0e778d2422c6190844ef8f8c457ae25f9265
[ "Apache-2.0" ]
1
2020-07-02T16:13:19.000Z
2020-07-02T16:13:19.000Z
tf_quant_finance/black_scholes/implied_vol_newton_root_test.py
alexanu/tf-quant-finance
d0eb0e778d2422c6190844ef8f8c457ae25f9265
[ "Apache-2.0" ]
2
2020-02-14T12:34:59.000Z
2020-02-27T09:13:08.000Z
tf_quant_finance/black_scholes/implied_vol_newton_root_test.py
alexanu/tf-quant-finance
d0eb0e778d2422c6190844ef8f8c457ae25f9265
[ "Apache-2.0" ]
1
2021-01-12T20:31:02.000Z
2021-01-12T20:31:02.000Z
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
38.788079
95
0.645382
e042ce681a6c4cd459dbd2db1bb07f3efd9206aa
4,536
py
Python
python/nodel_stdio.py
justparking/nodel-stdio
73a859d4ddb1acfe6c7e8cc4d2174701e17bcddd
[ "MIT" ]
null
null
null
python/nodel_stdio.py
justparking/nodel-stdio
73a859d4ddb1acfe6c7e8cc4d2174701e17bcddd
[ "MIT" ]
null
null
null
python/nodel_stdio.py
justparking/nodel-stdio
73a859d4ddb1acfe6c7e8cc4d2174701e17bcddd
[ "MIT" ]
null
null
null
import json import sys import fileinput # lookup tables _actionInfos_byReducedName = {} _eventInfos_byReducedName = {} _node_instance = None class _NodelPointInfo: '''(works for Actions and Events)''' name = None reduced = None func = None metadata = None def __init__(self, name=None, func=No...
25.92
91
0.626323
e0249ebdee99913380776122fba3f31dba3bf08e
528
py
Python
Programmers/[cutz]truck.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
3
2019-11-26T14:31:01.000Z
2020-01-10T18:19:46.000Z
Programmers/[cutz]truck.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
Programmers/[cutz]truck.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
from collections import deque def solution(bridge_length, weight, truck_weights): time = 0 queue = deque([0]*bridge_length) truck_weights = deque(truck_weights) weight_sum = 0 while queue: time += 1 w = queue.popleft() weight_sum -= w if truck_weights: if...
29.333333
55
0.581439
2a5ea0a8d63e79b7551a51b82cca63b815962109
6,251
py
Python
ctm_api_client/models/ctmvar_set_results.py
tadinve/ctm_python_client
de44e5012214ec42bb99b7f9b4ebc5394cd14328
[ "BSD-3-Clause" ]
null
null
null
ctm_api_client/models/ctmvar_set_results.py
tadinve/ctm_python_client
de44e5012214ec42bb99b7f9b4ebc5394cd14328
[ "BSD-3-Clause" ]
null
null
null
ctm_api_client/models/ctmvar_set_results.py
tadinve/ctm_python_client
de44e5012214ec42bb99b7f9b4ebc5394cd14328
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.215 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from ctm_api_cl...
26.264706
93
0.566149
d56d54f6d87fe0a6033bb8a442fcc790602a0d86
17,483
py
Python
src/foreign_if/python/main/python/frovedis/matrix/ml_data.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
null
null
null
src/foreign_if/python/main/python/frovedis/matrix/ml_data.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
null
null
null
src/foreign_if/python/main/python/frovedis/matrix/ml_data.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
null
null
null
"""ml_data.py""" import numpy as np import pandas as pd from scipy.sparse import issparse, csr_matrix from ..exrpc.server import FrovedisServer from ..exrpc.rpclib import distinct_count, check_server_exception from .dvector import FrovedisDvector from .crs import FrovedisCRSMatrix from .dense import FrovedisDenseMatri...
40.190805
81
0.53349
b8e55ff5e711a5c4ad9bbd7979e11492357150c4
2,092
py
Python
version.py
CatarinaSMorais/zulip
e943d717b84291397328bd4dc578c04eed21885e
[ "Apache-2.0" ]
1
2021-08-10T07:31:27.000Z
2021-08-10T07:31:27.000Z
version.py
CatarinaSMorais/zulip
e943d717b84291397328bd4dc578c04eed21885e
[ "Apache-2.0" ]
1
2021-08-05T14:46:02.000Z
2021-08-05T14:46:02.000Z
version.py
CatarinaSMorais/zulip
e943d717b84291397328bd4dc578c04eed21885e
[ "Apache-2.0" ]
1
2021-08-05T14:27:13.000Z
2021-08-05T14:27:13.000Z
import os ZULIP_VERSION = "5.0-dev+git" # Add information on number of commits and commit hash to version, if available zulip_git_version_file = os.path.join( os.path.dirname(os.path.abspath(__file__)), "zulip-git-version" ) lines = [ZULIP_VERSION, ""] if os.path.exists(zulip_git_version_file): with open(zuli...
40.230769
85
0.766252
6df7971a1bed289404c6a4941bdd290b4d10b6ca
3,354
py
Python
lasso/utils/ConsoleColoring.py
sharkweek/lasso-python
727957a8b9cf04240b25d18ab730153b9ab8db24
[ "BSD-3-Clause" ]
null
null
null
lasso/utils/ConsoleColoring.py
sharkweek/lasso-python
727957a8b9cf04240b25d18ab730153b9ab8db24
[ "BSD-3-Clause" ]
null
null
null
lasso/utils/ConsoleColoring.py
sharkweek/lasso-python
727957a8b9cf04240b25d18ab730153b9ab8db24
[ "BSD-3-Clause" ]
null
null
null
import subprocess class ConsoleColoring: ''' Holds coloring escape sequences for command line shells ''' # text coloring LIGHT_GREEN = '\033[92m' LIGHT_RED = '\033[91m' LIGHT_CYAN = '\033[96m' LIGHT_BLUE = '\033[94m' LIGHT_PURPLE = '\033[95m' LIGHT_YELLOW = '\033[93m' PURPLE...
24.304348
77
0.531604
3cb2647530140d69c9e7947115b74dfc4e5c7490
541
py
Python
cranworth/manage.py
cjoc/cranworth
c048437b2dfb8b7908f8c2b7a7382502d461bb5e
[ "MIT" ]
null
null
null
cranworth/manage.py
cjoc/cranworth
c048437b2dfb8b7908f8c2b7a7382502d461bb5e
[ "MIT" ]
null
null
null
cranworth/manage.py
cjoc/cranworth
c048437b2dfb8b7908f8c2b7a7382502d461bb5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cranworth.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Ar...
33.8125
73
0.687616
64f44073f29dd5c75cd02513aa624b35ddb64527
13,877
py
Python
venv/lib/python3.6/site-packages/playhouse/postgres_ext.py
ayushgit2498/Secure-Torrent-System
28e7d48973b41feaf00e1e7ac0075f7b5087c4d0
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/playhouse/postgres_ext.py
ayushgit2498/Secure-Torrent-System
28e7d48973b41feaf00e1e7ac0075f7b5087c4d0
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/playhouse/postgres_ext.py
ayushgit2498/Secure-Torrent-System
28e7d48973b41feaf00e1e7ac0075f7b5087c4d0
[ "MIT" ]
null
null
null
""" Collection of postgres-specific extensions, currently including: * Support for hstore, a key/value type storage """ import json import logging import uuid from peewee import * from peewee import ColumnBase from peewee import Expression from peewee import Node from peewee import NodeList from peewee import SENTINE...
29.214737
79
0.62146
1cbfa77cb83e8150c26e7aef131b3d7bdfaea434
937
py
Python
app.py
arnetogo/geojsonvalidate
c54f2e11609d4df71c66edb25f31dfb87903b485
[ "Apache-2.0" ]
null
null
null
app.py
arnetogo/geojsonvalidate
c54f2e11609d4df71c66edb25f31dfb87903b485
[ "Apache-2.0" ]
null
null
null
app.py
arnetogo/geojsonvalidate
c54f2e11609d4df71c66edb25f31dfb87903b485
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from flask import Flask, request, jsonify import json from subprocess import Popen,PIPE,STDOUT app = Flask(__name__) @app.route("/", methods=['GET']) def send_error(): return jsonify(error = 'Method not allowed') @app.route('/', methods=['POST']) def get_request(): payload = request....
26.027778
83
0.66809
a9465274affbf669937a0869ecee6115e363f93e
129
py
Python
data/models/create_test_mpc_screen.py
ska-telescope/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
22
2016-12-14T11:20:07.000Z
2021-08-13T15:23:41.000Z
data/models/create_test_mpc_screen.py
ska-telescope/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
30
2017-06-27T09:15:38.000Z
2020-09-11T18:16:37.000Z
data/models/create_test_mpc_screen.py
SKA-ScienceDataProcessor/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
20
2017-07-02T03:45:49.000Z
2019-12-11T17:19:01.000Z
version https://git-lfs.github.com/spec/v1 oid sha256:8d9c6f199a258d16cfd771cdc6fe8742e841ec2bf1ab01ec94814b9acda2c986 size 2070
32.25
75
0.883721
757d6122b77beee917893ee20b8009489df06e61
6,470
py
Python
deprecated/POS_LSTM_keras_w2v_saved.py
minchen57/deeplearningNLP
133caade3e3674027a32a2028f623085d04ae282
[ "Apache-2.0" ]
null
null
null
deprecated/POS_LSTM_keras_w2v_saved.py
minchen57/deeplearningNLP
133caade3e3674027a32a2028f623085d04ae282
[ "Apache-2.0" ]
null
null
null
deprecated/POS_LSTM_keras_w2v_saved.py
minchen57/deeplearningNLP
133caade3e3674027a32a2028f623085d04ae282
[ "Apache-2.0" ]
null
null
null
import nltk, gensim, os import numpy as np from keras.utils import plot_model import matplotlib.pyplot as plt from keras.preprocessing.sequence import pad_sequences from keras.utils.np_utils import to_categorical from keras.layers import Embedding from keras.layers import Dense, Input from keras.layers import TimeDistr...
33.697917
116
0.700464
1c51cba9803622d2fed5e57d28755d461ce302cb
883
py
Python
tutorial/flask-pocoo-org--docs-10-tutorial/flask-tutorial/flaskr/db.py
james-w-balcomb/webapp-python
941305a643c713ee77834af7d39280db1105b14a
[ "Apache-2.0" ]
null
null
null
tutorial/flask-pocoo-org--docs-10-tutorial/flask-tutorial/flaskr/db.py
james-w-balcomb/webapp-python
941305a643c713ee77834af7d39280db1105b14a
[ "Apache-2.0" ]
13
2020-02-11T23:27:42.000Z
2022-03-11T23:34:41.000Z
tutorial/flask-pocoo-org--docs-10-tutorial/flask-tutorial/flaskr/db.py
james-w-balcomb/webapp-python
941305a643c713ee77834af7d39280db1105b14a
[ "Apache-2.0" ]
null
null
null
import sqlite3 import click from flask import current_app from flask import g from flask.cli import with_appcontext def init_app(app): app.teardown_appcontext(close_db) app.cli.add_command(init_db_command) def init_db(): db = get_db() with current_app.open_resource("schema.sql") as file_handle: ...
20.068182
64
0.663647
8b505678103c1eba5266fd1ab2dbff62abfbfaa7
31,005
py
Python
gender_novels/corpus_gen.py
elenaboal/gender_novels
e14411e5ccc1fcead98169af02e6eb77a4a199e9
[ "BSD-3-Clause" ]
null
null
null
gender_novels/corpus_gen.py
elenaboal/gender_novels
e14411e5ccc1fcead98169af02e6eb77a4a199e9
[ "BSD-3-Clause" ]
null
null
null
gender_novels/corpus_gen.py
elenaboal/gender_novels
e14411e5ccc1fcead98169af02e6eb77a4a199e9
[ "BSD-3-Clause" ]
null
null
null
import csv import os import re import time from pathlib import Path from shutil import copyfile import gender_guesser.detector as gender_guesser import pywikibot from gutenberg.acquire import get_metadata_cache from gutenberg.cleanup import strip_headers from gutenberg.query import get_metadata from gender_novels imp...
33.848253
148
0.6577
b71b3a3832bfedadd488f625a4560d0ccaeb3fbb
236
py
Python
Advanced-Data-Engineering-with-Databricks/Solutions/Includes/Classroom-Setup.py
co360/advanced-data-engineering-with-databricks
bee17c18f3b98e3bca7129b2062ee28705aae866
[ "CC0-1.0" ]
11
2022-01-17T07:54:49.000Z
2022-03-28T06:31:44.000Z
Advanced-Data-Engineering-with-Databricks/Solutions/Includes/Classroom-Setup.py
co360/advanced-data-engineering-with-databricks
bee17c18f3b98e3bca7129b2062ee28705aae866
[ "CC0-1.0" ]
1
2021-10-29T22:41:15.000Z
2021-10-29T22:41:15.000Z
Advanced-Data-Engineering-with-Databricks/Solutions/Includes/Classroom-Setup.py
co360/advanced-data-engineering-with-databricks
bee17c18f3b98e3bca7129b2062ee28705aae866
[ "CC0-1.0" ]
5
2022-01-24T16:09:19.000Z
2022-03-23T17:12:49.000Z
# Databricks notebook source # MAGIC %run ./_databricks-academy-helper $lesson="0" # COMMAND ---------- # MAGIC %run ./_utility-functions # COMMAND ---------- DA.cleanup() DA.init(create_db=False) DA.conclude_setup(validate=False)
16.857143
53
0.677966
c75a8f0336a697af35c462a6d2a5b053d5e40177
2,700
py
Python
backend/location/migrations/0001_initial.py
crowdbotics-apps/mob-28753
351e82a26c8523d01c45c69c843300e90d778510
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/location/migrations/0001_initial.py
crowdbotics-apps/mob-28753
351e82a26c8523d01c45c69c843300e90d778510
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/location/migrations/0001_initial.py
crowdbotics-apps/mob-28753
351e82a26c8523d01c45c69c843300e90d778510
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.24 on 2021-07-12 13:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('task_profile', '0001_initial'), ] operations = [ migrations.CreateModel( n...
47.368421
173
0.60963