hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
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
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
c09416d25e79ddab37c35127443d972589822576
796
py
Python
tests/starter/test_starter_admin_email.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/starter/test_starter_admin_email.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/starter/test_starter_admin_email.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
import unittest from mock import patch from starter.starter_AdminEmail import starter_AdminEmail from tests.activity.classes_mock import FakeLogger from tests.classes_mock import FakeLayer1 import tests.settings_mock as settings_mock
34.608696
81
0.761307
c09430f692b1d375bbff6b77320ac21d3531ed34
15,963
py
Python
tests/commit/math/test__tensors.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
tests/commit/math/test__tensors.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
tests/commit/math/test__tensors.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np import phi from phi import math from phi.math import channel, batch from phi.math._shape import CHANNEL_DIM, BATCH_DIM, shape_stack, spatial from phi.math._tensors import TensorStack, CollapsedTensor, wrap, tensor, cached from phi.math.backend import Backend BACKENDS ...
40.930769
178
0.58811
c094fb0ecd2841945312d32ccd2105e21bce1b3b
1,202
py
Python
index/admin.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
1
2019-06-29T15:24:24.000Z
2019-06-29T15:24:24.000Z
index/admin.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2020-01-12T17:47:33.000Z
2020-01-12T17:47:45.000Z
index/admin.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2019-06-29T15:24:26.000Z
2020-01-08T15:15:03.000Z
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from django.contrib import admin from django.shortcuts import reverse from django.utils.html import format_html from .models import Track, Broadca...
33.388889
102
0.757903
c0955acbb8e9da3cf689449a7886da397be4ac74
9,025
py
Python
stacks/firecares_web.py
FireCARES/firecares-ansible
f650798a7a343626402f6d46782651a2f7a5f086
[ "MIT" ]
1
2017-02-12T13:38:57.000Z
2017-02-12T13:38:57.000Z
stacks/firecares_web.py
FireCARES/firecares-ansible
f650798a7a343626402f6d46782651a2f7a5f086
[ "MIT" ]
16
2015-10-21T13:00:54.000Z
2021-09-23T23:21:07.000Z
stacks/firecares_web.py
FireCARES/firecares-ansible
f650798a7a343626402f6d46782651a2f7a5f086
[ "MIT" ]
4
2015-08-19T00:52:54.000Z
2017-02-13T08:14:10.000Z
from datetime import datetime from pytz import timezone from troposphere import Ref, Template, Parameter, GetAZs, Output, Join, GetAtt, autoscaling, ec2, elasticloadbalancing as elb t = Template() t.add_description("Create FireCARES Webserver Load Balancer, Auto-Scaling group and Celery beat VM") base_ami = "ami-7646...
29.493464
125
0.582493
c095ea2cd17b98f861280b8dd90e12ab34027235
513
py
Python
solutions/unitReview/gcd.py
mrparkonline/python3_while
3b24be84d16230e2b923276dca4c943f4c5ad26d
[ "MIT" ]
null
null
null
solutions/unitReview/gcd.py
mrparkonline/python3_while
3b24be84d16230e2b923276dca4c943f4c5ad26d
[ "MIT" ]
null
null
null
solutions/unitReview/gcd.py
mrparkonline/python3_while
3b24be84d16230e2b923276dca4c943f4c5ad26d
[ "MIT" ]
null
null
null
# GCD Program from math import gcd # input num1 = int(input('Enter a number: ')) num2 = int(input('Enter another number: ')) # processing & output divisor = 1 upper_limit = min(num1, num2) gcd_answer = 0 #print(num1, 'and', num2, 'share these factors:') print('GCD of', num1, 'and', num2, 'is:') while divisor <= up...
22.304348
51
0.651072
c096a0804783d5b361fcbd0253a74c4dbbc3423f
447
py
Python
topk/gen_count.py
ririripley/recipes
04267c68a7424326b4aa8dd14b1a879b59ab887c
[ "BSD-3-Clause" ]
1,418
2015-01-07T09:40:09.000Z
2022-03-29T08:37:02.000Z
topk/gen_count.py
algoideas/recipes
77bc5cb180e49edb31983938386ef23f752e2d2f
[ "BSD-3-Clause" ]
22
2015-02-17T17:31:18.000Z
2022-02-08T07:00:29.000Z
topk/gen_count.py
algoideas/recipes
77bc5cb180e49edb31983938386ef23f752e2d2f
[ "BSD-3-Clause" ]
854
2015-01-03T11:56:10.000Z
2022-03-31T08:50:28.000Z
#!/usr/bin/python import random word_len = 5 alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' output = open('word_count', 'w') words = set() N = 1000*1000 for x in xrange(N): arr = [random.choice(alphabet) for i in range(word_len)] words.add(''.join(arr)) print len(words) for word...
20.318182
75
0.686801
c09740c69f29292cd8143f6167d141bb98d730a6
728
py
Python
notification/views.py
ChristopherOloo/KilimoQAPortal
c905a42282bbce70b5477862185ad332185307ce
[ "MIT" ]
67
2022-01-05T18:59:23.000Z
2022-03-18T13:13:39.000Z
notification/views.py
ChristopherOloo/KilimoQAPortal
c905a42282bbce70b5477862185ad332185307ce
[ "MIT" ]
3
2022-01-10T10:03:23.000Z
2022-03-11T16:58:38.000Z
notification/views.py
ChristopherOloo/KilimoQAPortal
c905a42282bbce70b5477862185ad332185307ce
[ "MIT" ]
4
2022-01-08T17:39:19.000Z
2022-02-28T07:40:16.000Z
from django.shortcuts import render from .models import PrivRepNotification,Notification from django.http import JsonResponse, HttpResponseRedirect, HttpResponse
26.962963
96
0.747253
c0984d7ef444e29454bfa97d1cc9a76bb27bd524
1,243
py
Python
sortedListToBST.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
sortedListToBST.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
sortedListToBST.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # Definition for a binary tree node. head = ListNode(1) p1 = ListNode(2) p2 = ListNode(3) p3 = ListNode(4) p4 = ListNode(5) p5 = ListNode(6) p6 = ListNode(7) head.next = p1 p1.next = p2 p2.next = p3 p3.next = p4 p4.next = p5 p5.next = p6 test = Solution() print test.sortedListTo...
21.067797
55
0.584875
c099053af9b9ff299e9a4615defe7551e4d4dfdc
1,105
py
Python
train.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
train.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
train.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras as k import numpy as np from load_and_augment import load_and_augment_data from modelconfig import modelconfig from compile_model import compile_model_adam import compile_model if __name__=='__main__': path=r'/content/drive/My Drive/data' testing_path=r'/c...
42.5
143
0.729412
c09b58cc8746669f100104bd829d92eb5454df67
1,548
py
Python
fb2_get_list.py
kawaiigamer/python-tools
68fd75299657811fef36339732c80539ccad386e
[ "Unlicense" ]
null
null
null
fb2_get_list.py
kawaiigamer/python-tools
68fd75299657811fef36339732c80539ccad386e
[ "Unlicense" ]
null
null
null
fb2_get_list.py
kawaiigamer/python-tools
68fd75299657811fef36339732c80539ccad386e
[ "Unlicense" ]
null
null
null
import os import glob import codecs from typing import List if __name__ == "__main__": f2b_print_data_list()
29.207547
75
0.554264
c09c7f0c8e41ed1996a2664259286c39cad5f12c
2,403
py
Python
simplecaptcha/fields.py
Kromey/django-simplecaptcha
ad462f8742be19b1e87103f097853d41e21d0e0a
[ "MIT" ]
5
2015-11-12T06:31:08.000Z
2017-03-09T06:45:46.000Z
simplecaptcha/fields.py
Kromey/django-simplecaptcha
ad462f8742be19b1e87103f097853d41e21d0e0a
[ "MIT" ]
null
null
null
simplecaptcha/fields.py
Kromey/django-simplecaptcha
ad462f8742be19b1e87103f097853d41e21d0e0a
[ "MIT" ]
null
null
null
import time from django import forms from django.core.exceptions import ValidationError from .widgets import CaptchaWidget from .settings import DURATION
35.338235
90
0.650853
c09e72d5be2ef0cef0c360e31efc8610a74ed555
4,940
py
Python
skills_taxonomy_v2/analysis/sentence_classifier/notebooks/Skills Classifier 1.0 - Doccano Baseline Classifier.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
3
2021-11-21T17:21:12.000Z
2021-12-10T21:19:57.000Z
skills_taxonomy_v2/analysis/sentence_classifier/notebooks/Skills Classifier 1.0 - Doccano Baseline Classifier.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
16
2021-10-06T11:20:35.000Z
2022-02-02T11:44:28.000Z
skills_taxonomy_v2/analysis/sentence_classifier/notebooks/Skills Classifier 1.0 - Doccano Baseline Classifier.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
1
2021-10-04T12:27:20.000Z
2021-10-04T12:27:20.000Z
# --- # jupyter: # jupytext: # cell_metadata_filter: -all # comment_magics: true # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 (ipykernel) # ...
26.417112
130
0.696964
c0a105c9215ae6c27a0f573e79372161fa79223f
3,054
py
Python
exhibitor/migrations/0001_initial.py
Make-Munich/SaBoT
cabc7e2f5e0f7166d94d2ef683f75d8d3be02834
[ "MIT" ]
19
2016-04-09T10:13:26.000Z
2020-06-21T23:14:16.000Z
exhibitor/migrations/0001_initial.py
Make-Munich/SaBoT
cabc7e2f5e0f7166d94d2ef683f75d8d3be02834
[ "MIT" ]
13
2017-01-14T20:42:45.000Z
2019-08-10T22:48:44.000Z
exhibitor/migrations/0001_initial.py
Make-Munich/SaBoT
cabc7e2f5e0f7166d94d2ef683f75d8d3be02834
[ "MIT" ]
9
2016-04-09T12:52:48.000Z
2018-08-16T19:08:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-11 13:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
57.622642
216
0.655206
c0a1254294cd0330d5440776840a312ac8bb2711
1,455
py
Python
pyatlas/tests/programatic_apikey_pytests.py
jasonmimick/pyatlas
4b0198d0c6f87691175d79629b2689f02e58ec8b
[ "Apache-2.0" ]
null
null
null
pyatlas/tests/programatic_apikey_pytests.py
jasonmimick/pyatlas
4b0198d0c6f87691175d79629b2689f02e58ec8b
[ "Apache-2.0" ]
null
null
null
pyatlas/tests/programatic_apikey_pytests.py
jasonmimick/pyatlas
4b0198d0c6f87691175d79629b2689f02e58ec8b
[ "Apache-2.0" ]
null
null
null
import pytest import pprint import string import random import os from pyatlas import AtlasClient #from testutils import * def test_create_apikey(client,project): project_name=project['content']['name'] print(f'project_name={project_name}') desc = f"test key for project {project_name}" key = client.create_api...
25.982143
103
0.707904
c0a2cc928103a456829c10c8f15fb433031cebc9
6,036
py
Python
etils/epath/abstract_path.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
13
2021-12-14T19:18:53.000Z
2022-03-30T17:09:20.000Z
etils/epath/abstract_path.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
2
2022-01-07T01:34:33.000Z
2022-01-12T01:35:33.000Z
etils/epath/abstract_path.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
1
2022-01-04T14:34:30.000Z
2022-01-04T14:34:30.000Z
# Copyright 2022 The etils Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
28.338028
98
0.650431
c0a387ecd74cdd18e1dae76a145f773dea75a7b7
262
py
Python
src/syntax/statements/__init__.py
andaviaco/tronido
08a1619a0e8c10f35ed6710eb6e1f72dc5b87421
[ "MIT" ]
null
null
null
src/syntax/statements/__init__.py
andaviaco/tronido
08a1619a0e8c10f35ed6710eb6e1f72dc5b87421
[ "MIT" ]
null
null
null
src/syntax/statements/__init__.py
andaviaco/tronido
08a1619a0e8c10f35ed6710eb6e1f72dc5b87421
[ "MIT" ]
null
null
null
from .ifstat import IfStat from .returnstat import ReturnStat from .whilestat import WhileStat from .breakstat import BreakStat from .switchstat import SwitchStat from .casestat import CaseStat from .forstat import ForStat from .continuestat import ContinueStat
29.111111
38
0.847328
c0a3c20650d9f2b0b50513762c0375912b29d194
2,594
py
Python
tests/test_action_guest_process_start.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
null
null
null
tests/test_action_guest_process_start.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
2
2019-03-25T18:03:02.000Z
2019-03-26T13:13:59.000Z
tests/test_action_guest_process_start.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
1
2021-03-05T10:12:21.000Z
2021-03-05T10:12:21.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
43.233333
74
0.658443
c0a3f676d422bbdd29b5d1ae6fd198e164330819
4,192
py
Python
src/soda/mutator.py
UCLA-VAST/soda
1b3994ded643d82ebc2fce7b1eb1d13c70800897
[ "MIT" ]
9
2020-05-09T19:52:46.000Z
2021-09-15T13:45:27.000Z
src/soda/mutator.py
UCLA-VAST/soda
1b3994ded643d82ebc2fce7b1eb1d13c70800897
[ "MIT" ]
1
2021-07-26T08:51:49.000Z
2021-07-26T08:51:49.000Z
src/soda/mutator.py
UCLA-VAST/soda
1b3994ded643d82ebc2fce7b1eb1d13c70800897
[ "MIT" ]
1
2020-10-28T03:06:44.000Z
2020-10-28T03:06:44.000Z
from typing import ( Iterable, Mapping, MutableMapping, Optional, Tuple, TypeVar, Union, ) import collections import logging import operator import types from haoda import ir from soda import tensor import soda.visitor _logger = logging.getLogger().getChild(__name__) def shift(obj, offs...
32.246154
80
0.669132
c0a4975e4ff94754e10e515af8e9f52525f2cf81
485
py
Python
tests/skillmap_parser_test.py
niyue/skillmap
ca1011d5f822134ad1d7c5f7f243da30a0731170
[ "MIT" ]
69
2022-02-27T13:05:20.000Z
2022-03-31T23:12:48.000Z
tests/skillmap_parser_test.py
chandrab/skillmap
6d07dc5392b0fd66d310db8cb85051cf9e0e93df
[ "MIT" ]
1
2022-02-27T22:44:36.000Z
2022-03-02T01:15:52.000Z
tests/skillmap_parser_test.py
chandrab/skillmap
6d07dc5392b0fd66d310db8cb85051cf9e0e93df
[ "MIT" ]
2
2022-02-27T23:37:15.000Z
2022-03-14T12:32:22.000Z
from skillmap.skillmap_parser import SkillMapParser
40.416667
93
0.682474
c0a71acf6116e8faa1f0455b3919ee53b2e3be9c
2,923
py
Python
htdocs/plotting/auto/scripts/p66.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
htdocs/plotting/auto/scripts/p66.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
htdocs/plotting/auto/scripts/p66.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
"""Consec days""" import calendar from pandas.io.sql import read_sql from pyiem.plot.use_agg import plt from pyiem.util import get_autoplot_context, get_dbconn PDICT = {'above': 'Temperature At or Above (AOA) Threshold', 'below': 'Temperature Below Threshold'} PDICT2 = {'high': 'High Temperature', ...
34.388235
75
0.584673
c0a82c8edb06be2ad657e3733a1e2ee863cd955f
32
py
Python
resolwe/rest/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
resolwe/rest/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
resolwe/rest/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
"""Resolwe REST API helpers."""
16
31
0.65625
c0a873492ea0286949973b05633bb259a0fc0b1d
422
py
Python
requests/requests-custom_authentication.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
requests/requests-custom_authentication.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
requests/requests-custom_authentication.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from requests.auth import AuthBase
24.823529
73
0.64455
c0a93dc0b3c06bf5e6cdc0aa43def476e965448d
866
py
Python
csv_test.py
mii012345/deep-learning
660785157446583eefeefa9d5dc25927aab6a9e4
[ "MIT" ]
3
2017-06-04T06:59:38.000Z
2017-06-05T14:01:48.000Z
csv_test.py
mii012345/deep-learning
660785157446583eefeefa9d5dc25927aab6a9e4
[ "MIT" ]
null
null
null
csv_test.py
mii012345/deep-learning
660785157446583eefeefa9d5dc25927aab6a9e4
[ "MIT" ]
null
null
null
import csv import numpy as np import pickle with open('data (2).csv','r') as f: csv = csv.reader(f) csvlist = [] for i in csv: csvlist.append(i) #6 mas = [] for i in range(364): i+=6 a = 0 b = 0 c = 0 date = csvlist[i][0] weather = csvlist[i][1] if ...
24.055556
207
0.489607
c0ab2b2d4a6d03d592483deeff8d92956a06c0e7
287
py
Python
src/test_main.py
HenrikPilz/BMEcatConverter
28c6840fc70a3f04e3eae5fc7be32c7bc779c1da
[ "BSD-3-Clause" ]
1
2021-03-14T08:20:51.000Z
2021-03-14T08:20:51.000Z
src/test_main.py
HenrikPilz/BMEcatConverter
28c6840fc70a3f04e3eae5fc7be32c7bc779c1da
[ "BSD-3-Clause" ]
1
2021-11-29T09:56:18.000Z
2021-12-01T22:01:13.000Z
src/test_main.py
HenrikPilz/BMEcatConverter
28c6840fc70a3f04e3eae5fc7be32c7bc779c1da
[ "BSD-3-Clause" ]
2
2021-08-30T08:14:34.000Z
2021-09-28T15:10:23.000Z
import os import test import unittest # if __name__ == '__main__': # Datenmodultests tests()
19.133333
94
0.648084
c0ab90f34a7bc1c416809bd67bdc787e6a30c4a3
99
py
Python
problem/01000~09999/02857/2857.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/02857/2857.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/02857/2857.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
a=1 for i in range(5): if 'FBI' in input(): print(i+1,end=' ') a=0 if a: print('HE GOT AWAY!')
16.5
27
0.555556
c0abaf869bbe93d0c4be20bb53db1ca7697f6d3d
1,971
py
Python
ntm/ntm.py
clemkoa/ntm
723d4ebea63f8f9439fd1c56f36e3cb680c8a277
[ "MIT" ]
41
2020-05-19T05:48:04.000Z
2021-11-24T11:31:08.000Z
ntm/ntm.py
clemkoa/ntm
723d4ebea63f8f9439fd1c56f36e3cb680c8a277
[ "MIT" ]
3
2021-06-07T09:00:59.000Z
2021-12-30T17:21:07.000Z
ntm/ntm.py
clemkoa/ntm
723d4ebea63f8f9439fd1c56f36e3cb680c8a277
[ "MIT" ]
4
2020-12-31T17:39:42.000Z
2021-12-29T14:11:43.000Z
import torch from torch import nn import torch.nn.functional as F from ntm.controller import Controller from ntm.memory import Memory from ntm.head import ReadHead, WriteHead
50.538462
118
0.742263
c0af4a37c3b086f10b2224f1101fb1be4a7fdce1
3,468
py
Python
facebook_business/adobjects/adkeywordstats.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adkeywordstats.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adkeywordstats.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
35.387755
79
0.684544
c0b3ae1a797739b59abdda1942df55aaa68ec172
1,198
py
Python
DQM/TrackingMonitorSource/python/StandaloneTrackMonitor_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/TrackingMonitorSource/python/StandaloneTrackMonitor_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/TrackingMonitorSource/python/StandaloneTrackMonitor_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer standaloneTrackMonitor = DQMEDAnalyzer('StandaloneTrackMonitor', moduleName = cms.untracked.string("StandaloneTrackMonitor"), folderName = cms.untracked.string("highPurityTracks"), vertexTag ...
59.9
104
0.687813
c0b40331943eedccfdcfa2dfe402031536f745fe
7,266
py
Python
tests/test_spatialvector.py
jungr-ait/spatialmath-python
140d499e733ed9775762df90d36e4b2c4c2fc6eb
[ "MIT" ]
183
2020-04-24T02:49:36.000Z
2022-03-31T16:13:38.000Z
tests/test_spatialvector.py
jungr-ait/spatialmath-python
140d499e733ed9775762df90d36e4b2c4c2fc6eb
[ "MIT" ]
29
2020-05-21T04:13:33.000Z
2022-02-15T12:46:17.000Z
tests/test_spatialvector.py
jungr-ait/spatialmath-python
140d499e733ed9775762df90d36e4b2c4c2fc6eb
[ "MIT" ]
39
2020-05-06T11:22:55.000Z
2022-03-21T14:15:16.000Z
import unittest import numpy.testing as nt import numpy as np from spatialmath.spatialvector import * # ---------------------------------------------------------------------------------------# if __name__ == '__main__': unittest.main()
32.58296
90
0.579136
c0b679addf1f8188d5d6b4db7a0f798d7c5b295a
3,048
py
Python
python/meta-regex.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/meta-regex.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/meta-regex.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
1
2018-10-09T02:03:12.000Z
2018-10-09T02:03:12.000Z
# \s Returns a match where the string contains a white space character # \S Returns a match where the string DOES NOT contain a white space character import re s1 = ''' --- slug: python-non-greedy-regexes title: Python non-greedy regexes summary: How to make Python regexes a little less greedy using the `?` modifier....
26.973451
392
0.686024
c0b773458653a85f2fb1e0a33ea41844604c6b4f
3,006
py
Python
xdl-algorithm-solution/DIN_WITH_MOGUJIE_DATA/script/train.py
xiaobaoding/x-deeplearning
1280043aba15ff57ac5e973bcce2489c698380d2
[ "Apache-2.0" ]
null
null
null
xdl-algorithm-solution/DIN_WITH_MOGUJIE_DATA/script/train.py
xiaobaoding/x-deeplearning
1280043aba15ff57ac5e973bcce2489c698380d2
[ "Apache-2.0" ]
null
null
null
xdl-algorithm-solution/DIN_WITH_MOGUJIE_DATA/script/train.py
xiaobaoding/x-deeplearning
1280043aba15ff57ac5e973bcce2489c698380d2
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 # Copyright (C) 2016-2018 Alibaba Group Holding Limited # # 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...
30.06
112
0.663007
c0b94e63b8ef518a54d1b8787a0fbfafc3083387
53
py
Python
script/__init__.py
KaoruNishikawa/nanten_tools
f5af30a40e8d558ae247c8e864fdea5edc0f5fb7
[ "MIT" ]
null
null
null
script/__init__.py
KaoruNishikawa/nanten_tools
f5af30a40e8d558ae247c8e864fdea5edc0f5fb7
[ "MIT" ]
null
null
null
script/__init__.py
KaoruNishikawa/nanten_tools
f5af30a40e8d558ae247c8e864fdea5edc0f5fb7
[ "MIT" ]
null
null
null
__version__ = "0.1.0" __author__ = "Kaoru Nishikawa"
17.666667
30
0.716981
c0ba497faffdf2c98170646061c1181fdbd7ee74
1,542
py
Python
feature_extract/config.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
feature_extract/config.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
2
2016-12-09T21:16:28.000Z
2016-12-09T21:29:10.000Z
feature_extract/config.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 21 18:51:11 2016 @author: brady """ #################### TRAINING #################### # POS DIRS TRAIN_CLEAN = r'C:\Users\brady\GitHub\MinVAD\data\train\positive\clean' TRAIN_0DB = r'C:\Users\brady\GitHub\MinVAD\data\train\positive\0db' TRAIN_5DB = r'C:\Users\brady\GitHu...
41.675676
106
0.732815
c0ba62a6a723e9a0a8608f8d14f5550d2b17eba4
6,735
py
Python
kuka_arm/scripts/IK_server.py
congthanh184/RoboND-Kinematics-Project
4c14ad5a9461fa5cdf465a04f8f11ff296b00760
[ "MIT" ]
null
null
null
kuka_arm/scripts/IK_server.py
congthanh184/RoboND-Kinematics-Project
4c14ad5a9461fa5cdf465a04f8f11ff296b00760
[ "MIT" ]
null
null
null
kuka_arm/scripts/IK_server.py
congthanh184/RoboND-Kinematics-Project
4c14ad5a9461fa5cdf465a04f8f11ff296b00760
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2017 Udacity Inc. # # This file is part of Robotic Arm: Pick and Place project for Udacity # Robotics nano-degree program # # All Rights Reserved. # Author: Harsh Pandya # import modules import rospy import tf from kuka_arm.srv import * from trajectory_msgs.msg import JointTraje...
35.634921
119
0.621678
c0bafd320c0a8a62b60bbf8a3554bd41b71dc5db
12,205
py
Python
bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
import os import csv import glob import time import threading from .misc import name2env as ru_name2env from .misc import get_hostname as ru_get_hostname from .misc import get_hostip as ru_get_hostip from .read_json import read_json as ru_read_json # ---------------------------------...
28.990499
84
0.498484
c0bb7b8a74c23f921be8c3f93658d3fa62727ccc
5,214
py
Python
input_fn.py
ilyakhov/pytorch-word2vec
bb9b0ed408a12e3652d2d897330292b7b93c7997
[ "MIT" ]
12
2019-05-22T13:08:42.000Z
2021-07-11T07:12:37.000Z
input_fn.py
ilyakhov/pytorch-word2vec
bb9b0ed408a12e3652d2d897330292b7b93c7997
[ "MIT" ]
null
null
null
input_fn.py
ilyakhov/pytorch-word2vec
bb9b0ed408a12e3652d2d897330292b7b93c7997
[ "MIT" ]
1
2021-02-20T09:04:19.000Z
2021-02-20T09:04:19.000Z
import numpy as np import torch from torch.utils.data import Dataset
36.71831
77
0.575374
c0bc31b78e193431b864fc09c2a40bbe17627b76
301
py
Python
1 ano/logica-de-programacao/condicionais/peso-animais-maior-menor.py
Biguelini/Atividades-Tecnico-em-Informatica
468e9ac05a666143d8752d053854ecc22bcc8b79
[ "MIT" ]
4
2021-04-27T01:00:32.000Z
2021-09-24T16:25:48.000Z
1 ano/logica-de-programacao/condicionais/peso-animais-maior-menor.py
Biguelini/Atividades-Tecnico-em-Informatica
468e9ac05a666143d8752d053854ecc22bcc8b79
[ "MIT" ]
null
null
null
1 ano/logica-de-programacao/condicionais/peso-animais-maior-menor.py
Biguelini/Atividades-Tecnico-em-Informatica
468e9ac05a666143d8752d053854ecc22bcc8b79
[ "MIT" ]
1
2021-05-12T18:28:06.000Z
2021-05-12T18:28:06.000Z
peso1 = float(input('Digite o peso do primeiro animal... ')) peso2 = float(input('Digite o peso do segundo animal... ')) if peso1 > peso2: print('O primeiro animal mais pesado') elif peso1 < peso2: print('O segundo animal mais pesado') else: print('Os dois animais tm o mesmo peso')
30.1
60
0.681063
c0bd2f1bb8af7bb26fd427d057716fce6e53b345
607
py
Python
uniform_distribution.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
uniform_distribution.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
uniform_distribution.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
# uniform_distribution # used to describe the probability where every event has equal chances of # occuring """ E.g. Generation of random numbers. It has three parameters. a - lower bound - default 0.0 b - upper bound - default 1.0 size = The shape of the returned array """ # 2x3 uniform distribution...
20.233333
75
0.70346
c0c0cf39ce27029feb9aa7a105da2d19af17d25d
1,563
py
Python
delivery/services/external_program_service.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
null
null
null
delivery/services/external_program_service.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
18
2016-11-10T14:32:54.000Z
2019-10-14T07:07:54.000Z
delivery/services/external_program_service.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
6
2016-10-18T12:16:46.000Z
2019-09-11T11:38:17.000Z
from tornado.process import Subprocess from tornado import gen from subprocess import PIPE from delivery.models.execution import ExecutionResult, Execution
29.490566
82
0.621881
c0c468474802f951d70f92ebb743554a56f1d46b
1,577
py
Python
Estructuras de control/ejercicio12.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
Estructuras de control/ejercicio12.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
Estructuras de control/ejercicio12.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
""" Datos de entrada nota_examen_ matematicas-->nem-->float nota_ta1_matematicas-->ntm--> nota_ta2_matematicas-->nttm--> nota_ta3_matematicas-->ntttm--> nota_examen_fisica-->nef-->float nota_ta1_fisica-->ntf-->float nota_ta2_fisica-->nttf-->float nota_examen_quimica-->neq-->float nota_ta1_quimica-->ntq-->float nota_ta2...
38.463415
70
0.726062
c0c491c66e363814a85776c34ddeffc5e419a0b3
9,667
py
Python
xraydb/materials.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
xraydb/materials.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
xraydb/materials.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
import os import numpy as np from collections import namedtuple from .chemparser import chemparse from .xray import mu_elam, atomic_mass from .utils import get_homedir _materials = None Material = namedtuple('Material', ('formula', 'density', 'name', 'categories')) def get_user_materialsfile(): """return name fo...
31.90429
91
0.58529
c0c62d4eee91d75a65403ff152657c9c03089c57
1,069
py
Python
client.py
simondlevy/sockets
f49dd677b6508859f01c9c54101b38e802d6370e
[ "MIT" ]
null
null
null
client.py
simondlevy/sockets
f49dd677b6508859f01c9c54101b38e802d6370e
[ "MIT" ]
null
null
null
client.py
simondlevy/sockets
f49dd677b6508859f01c9c54101b38e802d6370e
[ "MIT" ]
1
2018-06-12T03:32:26.000Z
2018-06-12T03:32:26.000Z
#!/usr/bin/env python3 ''' Server script for simple client/server example Copyright (C) Simon D. Levy 2021 MIT License ''' from threading import Thread from time import sleep import socket from struct import unpack from header import ADDR, PORT def comms(data): ''' Communications thread ''' # Conn...
18.431034
65
0.613658
c0c65039eac0d1c182008b9f53dbb8727df88022
151
py
Python
home/views.py
kerol/kerolgaodotcom
7993bb5f40dd1f6b3ebdef4d90728cd77651c026
[ "BSD-3-Clause" ]
1
2016-03-02T02:49:00.000Z
2016-03-02T02:49:00.000Z
home/views.py
kerol/kerolgaodotcom
7993bb5f40dd1f6b3ebdef4d90728cd77651c026
[ "BSD-3-Clause" ]
null
null
null
home/views.py
kerol/kerolgaodotcom
7993bb5f40dd1f6b3ebdef4d90728cd77651c026
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf8 -*- from django.shortcuts import render # Create your views here.
15.1
40
0.682119
c0c6c96cefa40fab2593e89ee811e26649ffff4f
15,126
py
Python
old/compute_T.py
azhan137/cylinder_t_matrix
73a496c07dbbb02896b2baf727d452765da9aac3
[ "MIT" ]
1
2022-03-18T11:52:36.000Z
2022-03-18T11:52:36.000Z
old/compute_T.py
AmosEgel/cylinder_t_matrix
78f6607993af5babdda384969c45cf3ac6461257
[ "MIT" ]
null
null
null
old/compute_T.py
AmosEgel/cylinder_t_matrix
78f6607993af5babdda384969c45cf3ac6461257
[ "MIT" ]
1
2020-12-07T13:11:00.000Z
2020-12-07T13:11:00.000Z
import numpy as np from numpy.polynomial import legendre from smuthi import spherical_functions as sf import bessel_functions as bf ##Codebase for computing the T-matrix and its derivative with respect to height and radius for a cylindrical scatterer # with circular cross-section in spherical coordinates. # # inputs: ...
52.703833
248
0.628719
c0c7d98ec94365b9cf9f0e166a19f7b2371bc3ed
982
py
Python
run_tests.py
aquarioos/dvik-print
b897936168dab51c9e0f9fd84993065428896be4
[ "MIT" ]
1
2018-09-19T22:27:32.000Z
2018-09-19T22:27:32.000Z
run_tests.py
aquarioos/dvik-print
b897936168dab51c9e0f9fd84993065428896be4
[ "MIT" ]
null
null
null
run_tests.py
aquarioos/dvik-print
b897936168dab51c9e0f9fd84993065428896be4
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import division, absolute_import, print_function import os import sys import datetime as dt import dvik_print as dvp if __name__ == '__main__': print(sys.version) O = { 'lista': ['el1', 'el2', 1, 2, 3, 4, None, False], 'zbir': {1, 2, 1, 2, 'a', 'a', 'b'...
26.540541
98
0.566191
c0c85207554af0054a2d3560e6e8d9cb080608eb
6,200
py
Python
nwb_conversion_tools/datainterfaces/ecephys/basesortingextractorinterface.py
miketrumpis/nwb-conversion-tools
4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1
[ "BSD-3-Clause" ]
null
null
null
nwb_conversion_tools/datainterfaces/ecephys/basesortingextractorinterface.py
miketrumpis/nwb-conversion-tools
4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1
[ "BSD-3-Clause" ]
null
null
null
nwb_conversion_tools/datainterfaces/ecephys/basesortingextractorinterface.py
miketrumpis/nwb-conversion-tools
4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1
[ "BSD-3-Clause" ]
null
null
null
"""Authors: Cody Baker and Ben Dichter.""" from abc import ABC from pathlib import Path import spikeextractors as se import numpy as np from pynwb import NWBFile, NWBHDF5IO from pynwb.ecephys import SpikeEventSeries from jsonschema import validate from ...basedatainterface import BaseDataInterface from ...utils.json_sc...
42.465753
119
0.647581
c0c8cb69c19ab4dd40d043117a7822abefc679ef
1,711
py
Python
buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
"""The libfuzzertest.TestCase for C++ libfuzzer tests.""" import datetime import os from buildscripts.resmokelib import core from buildscripts.resmokelib import utils from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface from buildscripts.resmokelib.testing.testcases import interface
38.022222
100
0.707189
c0c9967167f2ebbfb12ea4280bc6aa6f0ee2cebd
1,278
py
Python
data_curation/genome_annotations/preprocess_SEA.py
talkowski-lab/rCNV2
fcc1142d8c13b58d18a37fe129e9bb4d7bd6641d
[ "MIT" ]
7
2021-01-28T15:46:46.000Z
2022-02-07T06:50:40.000Z
data_curation/genome_annotations/preprocess_SEA.py
talkowski-lab/rCNV2
fcc1142d8c13b58d18a37fe129e9bb4d7bd6641d
[ "MIT" ]
1
2021-03-02T01:33:53.000Z
2021-03-02T01:33:53.000Z
data_curation/genome_annotations/preprocess_SEA.py
talkowski-lab/rCNV2
fcc1142d8c13b58d18a37fe129e9bb4d7bd6641d
[ "MIT" ]
3
2021-02-21T19:49:12.000Z
2021-12-22T15:56:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Ryan L. Collins <rlcollins@g.harvard.edu> # and the Talkowski Laboratory # Distributed under terms of the MIT license. """ Parse simple SEA super-enhancer BED by cell types """ import argparse import csv import subprocess def main(): """ ...
26.081633
89
0.622066
c0cba6784c6a4d07543a90ca7bc4b5a773c81fe7
2,461
py
Python
src/transforms/imageCropDivide/dev/generate_nodenk.py
MrLixm/Foundry_Nuke
078115043b6a4c09bdcf1b5031e995ef296bd604
[ "Apache-2.0" ]
null
null
null
src/transforms/imageCropDivide/dev/generate_nodenk.py
MrLixm/Foundry_Nuke
078115043b6a4c09bdcf1b5031e995ef296bd604
[ "Apache-2.0" ]
null
null
null
src/transforms/imageCropDivide/dev/generate_nodenk.py
MrLixm/Foundry_Nuke
078115043b6a4c09bdcf1b5031e995ef296bd604
[ "Apache-2.0" ]
null
null
null
""" python>3 """ import os.path import re from pathlib import Path VERSION = 7 BASE = r""" set cut_paste_input [stack 0] version 12.2 v5 push $cut_paste_input Group { name imageCropDivide tile_color 0x5c3d84ff note_font_size 25 note_font_color 0xffffffff selected true xpos 411 ypos -125 addUserKnob {20 User} ...
25.905263
213
0.683056
c0cd5d7d340b27b3217620ef4b12a1391841820b
2,294
py
Python
workflow/tests/test_experiment_qc.py
JAMKuttan/chipseq_analysis
f8e4853bfdb4de8540026ae0b23235d72a1114ad
[ "MIT" ]
null
null
null
workflow/tests/test_experiment_qc.py
JAMKuttan/chipseq_analysis
f8e4853bfdb4de8540026ae0b23235d72a1114ad
[ "MIT" ]
null
null
null
workflow/tests/test_experiment_qc.py
JAMKuttan/chipseq_analysis
f8e4853bfdb4de8540026ae0b23235d72a1114ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import os import pandas as pd from io import StringIO import experiment_qc test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ '/../output/experimentQC/' DESIGN_STRING = """sample_id\texperiment_id\tbiosample\tfactor\ttreatment\treplicate\tcontrol_id...
30.586667
107
0.773322
c0d13bb4fa90665ac270a6c1d4953230e7cffcc2
371
py
Python
sensors/routing.py
edisondotme/motoPi
18ddd46d97a4db0918fd2c3cc1ffc60600158124
[ "MIT" ]
2
2021-05-10T22:04:36.000Z
2022-01-10T03:23:04.000Z
sensors/routing.py
edisondotme/motoPi
18ddd46d97a4db0918fd2c3cc1ffc60600158124
[ "MIT" ]
1
2017-02-13T08:18:49.000Z
2017-02-14T07:11:18.000Z
sensors/routing.py
edisondotme/motoPi
18ddd46d97a4db0918fd2c3cc1ffc60600158124
[ "MIT" ]
1
2021-05-10T22:04:57.000Z
2021-05-10T22:04:57.000Z
from channels.routing import route from .consumers import ws_message, ws_connect, ws_disconnect # TODO: Edit this to make proper use of channels.routing.route() or not channel_routing = { # route("websocket.receive", ws_message, path=r"^/chat/"), "websocket.connect": ws_connect, "websocket.receive": ws_mes...
30.916667
72
0.74124
c0d1e420d8a5ef2c04e4e14f531037003c9ed4f0
3,626
py
Python
native_client_sdk/src/build_tools/tests/test_generate_make.py
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
5
2018-03-10T13:08:42.000Z
2021-07-26T15:02:11.000Z
native_client_sdk/src/build_tools/tests/test_generate_make.py
quisquous/chromium
b25660e05cddc9d0c3053b3514f07037acc69a10
[ "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
native_client_sdk/src/build_tools/tests/test_generate_make.py
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import datetime import os import posixpath import subprocess import sys import unittest SCRIPT_DIR = os.path.dirname(o...
29.008
79
0.671539
c0d2686a32c098e3878691628a43110629043f78
1,089
py
Python
main.py
YasunoriMATSUOKA/photo-hunt
e3ca9e8f42c8a6c6b02c9fdcee9ea44a30d18f66
[ "MIT" ]
null
null
null
main.py
YasunoriMATSUOKA/photo-hunt
e3ca9e8f42c8a6c6b02c9fdcee9ea44a30d18f66
[ "MIT" ]
null
null
null
main.py
YasunoriMATSUOKA/photo-hunt
e3ca9e8f42c8a6c6b02c9fdcee9ea44a30d18f66
[ "MIT" ]
null
null
null
from PhotoHunt import PhotoHunt # Todo: URL12 url_list = [ "https://www.saizeriya.co.jp/entertainment/images/1710/body.png", "https://www.saizeriya.co.jp/entertainment/images/1801/body.png", "https://www.saizeriya.co.jp/entertainment/images/1804/body.png", "https://www.saizeriya.co.jp/entertainment/ima...
47.347826
69
0.733701
c0d317f2e8f8665da9e599f1dc02201ed251fea1
568
py
Python
Curso_em_Video_py3/ex069.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
1
2021-05-11T12:39:43.000Z
2021-05-11T12:39:43.000Z
Curso_em_Video_py3/ex069.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
null
null
null
Curso_em_Video_py3/ex069.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
null
null
null
a = b = c = 0 while True: flag = '' i = -1 s = '' while i < 0: i = int(input('idade:\t')) while s != 'M' and s != 'F': s = str(input('Sexo [M] [F]:\t')).strip().upper()[0] if i > 18: a += 1 if s == 'M': b += 1 elif i < 20: c += 1 while flag != ...
27.047619
100
0.452465
c0d3bab4c52e7bb6548865457b438ad24de1affe
6,152
py
Python
hatfieldcmr/ingest/name.py
bcgov/nr_rfc_processing
7e414b97a29ed5bae8ba3c6decea39733be9a2db
[ "Apache-2.0" ]
null
null
null
hatfieldcmr/ingest/name.py
bcgov/nr_rfc_processing
7e414b97a29ed5bae8ba3c6decea39733be9a2db
[ "Apache-2.0" ]
6
2021-02-08T16:47:02.000Z
2022-01-30T21:58:18.000Z
hatfieldcmr/ingest/name.py
bcgov/rfc_processing
7e414b97a29ed5bae8ba3c6decea39733be9a2db
[ "Apache-2.0" ]
2
2021-02-22T19:13:26.000Z
2021-05-03T23:58:56.000Z
""" Contains data ingest related functions """ import re import os.path from dateutil.parser import parse as dateparser import typing from typing import Dict import cmr from hatfieldcmr.ingest.file_type import MODISBlobType MODIS_NAME = "modis-terra" TITLE_PATTERN_STRING = r"\w+:([\w]+\.[\w]+):\w+" TITLE_PATTERN = r...
34.561798
95
0.658973
c0d3c4a39dc9908b549fa2b113fe0a1b00c9a7a2
9,520
py
Python
twittersmash/management/commands/smash_stuff.py
mrkurt/twittersmash
095af27fafa6f2074e0ce82596196c2141d0b7de
[ "MIT" ]
1
2016-05-09T11:29:35.000Z
2016-05-09T11:29:35.000Z
twittersmash/management/commands/smash_stuff.py
mrkurt/twittersmash
095af27fafa6f2074e0ce82596196c2141d0b7de
[ "MIT" ]
null
null
null
twittersmash/management/commands/smash_stuff.py
mrkurt/twittersmash
095af27fafa6f2074e0ce82596196c2141d0b7de
[ "MIT" ]
null
null
null
import twitter import datetime import feedparser import re import string from django.core.management.base import BaseCommand from optparse import make_option from twittersmash.models import Feed, TwitterAccount, Message import pytz from pytz import timezone central = timezone('US/Central') utc = pytz.utc # Parses th...
42.5
101
0.463866
c0d42b9fa731f071b00e48d88b5dd1b3baf8c28b
8,661
py
Python
tests/test_lib.py
bluefloyd00/snowflet
a1676158bffc5f44970845b054d1ad221e9540c7
[ "MIT" ]
1
2020-06-23T14:14:48.000Z
2020-06-23T14:14:48.000Z
tests/test_lib.py
bluefloyd00/snowflet
a1676158bffc5f44970845b054d1ad221e9540c7
[ "MIT" ]
2
2020-06-19T15:05:05.000Z
2020-06-19T15:07:22.000Z
tests/test_lib.py
bluefloyd00/snowflet
a1676158bffc5f44970845b054d1ad221e9540c7
[ "MIT" ]
null
null
null
import os import unittest from snowflet.lib import read_sql from snowflet.lib import logging_config from snowflet.lib import extract_args from snowflet.lib import apply_kwargs from snowflet.lib import strip_table from snowflet.lib import extract_tables_from_query from snowflet.lib import add_database_id_prefix from sno...
37.012821
225
0.419467
c0d5ca80bb24462f1f4a71c0cb35cf7b23654b5a
3,207
py
Python
etl/parsers/etw/Microsoft_Windows_AssignedAccess.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_AssignedAccess.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_AssignedAccess.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-AssignedAccess GUID : 8530db6e-51c0-43d6-9d02-a8c2088526cd """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from ...
28.891892
123
0.707827
c0d5daf30a2f4bfa690f7a0a63f28bb7cf1048fc
249
py
Python
smarcambuddy/take_a_photo.py
senaranya/SmartCamBuddy
e60632a7661f4fdcfa994e6424f598538f6b7be6
[ "MIT" ]
null
null
null
smarcambuddy/take_a_photo.py
senaranya/SmartCamBuddy
e60632a7661f4fdcfa994e6424f598538f6b7be6
[ "MIT" ]
null
null
null
smarcambuddy/take_a_photo.py
senaranya/SmartCamBuddy
e60632a7661f4fdcfa994e6424f598538f6b7be6
[ "MIT" ]
null
null
null
from capture_image import CaptureImage if __name__ == '__main__': """ This can be directly used from CLI e.g.: source /home/pi/.smartcambuddy_venv/bin/activate python smarcambuddy/take_a_photo.py """ CaptureImage.trigger()
24.9
58
0.702811
c0d6aa4598374762a450e52b8af29f49f301387d
105
py
Python
oyster/celeryconfig.py
jamesturk/oyster
c6e93fdd48ed1ead1ea5b163c6ba9cf227f831ae
[ "BSD-3-Clause" ]
1
2020-09-03T08:10:43.000Z
2020-09-03T08:10:43.000Z
oyster/celeryconfig.py
jamesturk/oyster
c6e93fdd48ed1ead1ea5b163c6ba9cf227f831ae
[ "BSD-3-Clause" ]
null
null
null
oyster/celeryconfig.py
jamesturk/oyster
c6e93fdd48ed1ead1ea5b163c6ba9cf227f831ae
[ "BSD-3-Clause" ]
null
null
null
from oyster.conf import settings CELERY_IMPORTS = ['oyster.tasks'] + list(settings.CELERY_TASK_MODULES)
26.25
70
0.8
c0d718d76a48ce7c669cb050436654bea3cdd296
2,891
py
Python
annotation/black_action/fu.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
annotation/black_action/fu.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
annotation/black_action/fu.py
windfall-shogi/feature-annotation
83ff7c3fa31e542221cf45186b2ea3ef2a10310f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sonnet as snt import tensorflow as tf from .drop_mask import make_drop_mask1 from .promotion_mask import make_promotion_mask from ..boolean_board.black import select_black_fu_board, select_non_black_board from ..boolean_board.empty import select_empty_board from .....
31.769231
79
0.648219
c0d827e88a1ab4916995d9e81ac4218d54ad748c
631
py
Python
tests/bdd/test_fixures.py
othercodes/connect-devops-testing-library
700f1a86f92c3b7f91a3882bf29ed62d98fe9dcd
[ "Apache-2.0" ]
3
2021-11-19T08:10:17.000Z
2022-01-05T15:37:28.000Z
tests/bdd/test_fixures.py
othercodes/connect-devops-testing-library
700f1a86f92c3b7f91a3882bf29ed62d98fe9dcd
[ "Apache-2.0" ]
1
2021-12-09T16:33:15.000Z
2021-12-09T16:33:15.000Z
tests/bdd/test_fixures.py
othercodes/connect-devops-testing-library
700f1a86f92c3b7f91a3882bf29ed62d98fe9dcd
[ "Apache-2.0" ]
2
2021-11-08T08:39:11.000Z
2021-11-08T08:40:23.000Z
from connect.devops_testing.bdd.fixtures import use_connect_request_dispatcher, use_connect_request_builder from connect.devops_testing.request import Builder, Dispatcher
39.4375
107
0.865293
c0d85d28668ecd7ceba3957da1e2fcc7a48d395d
83
py
Python
kwueBackend/kwue/apps.py
bounswe/bounswe2016group4
cbc8201aa86049b81f20ef44ee37eb065a469d46
[ "Apache-2.0" ]
6
2016-02-14T18:04:48.000Z
2016-12-18T20:09:15.000Z
kwueBackend/kwue/apps.py
bounswe/bounswe2016group4
cbc8201aa86049b81f20ef44ee37eb065a469d46
[ "Apache-2.0" ]
113
2016-02-14T18:06:57.000Z
2021-06-10T17:57:12.000Z
kwueBackend/kwue/apps.py
bounswe/bounswe2016group4
cbc8201aa86049b81f20ef44ee37eb065a469d46
[ "Apache-2.0" ]
1
2017-02-15T18:48:55.000Z
2017-02-15T18:48:55.000Z
from django.apps import AppConfig
13.833333
33
0.73494
c0dc3d97cf9bff141a470ed5055719904a5f9f4c
2,492
py
Python
src/commands/refactor/convert_to_arrow_function.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
690
2017-04-11T06:45:01.000Z
2022-03-21T23:20:29.000Z
src/commands/refactor/convert_to_arrow_function.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
74
2017-11-22T18:05:26.000Z
2021-05-05T16:25:31.000Z
src/commands/refactor/convert_to_arrow_function.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
42
2017-04-13T10:22:40.000Z
2021-05-27T19:19:04.000Z
import sublime, sublime_plugin import os, traceback from ...libs import util from ...libs import FlowCLI
31.544304
111
0.634831
c0dde640a5c1e4f5414f4bf02dfa8a2f03ee959e
33,374
py
Python
apps/xdmac/xdmac_memory_transfer/firmware/at91bootstrap_sam_a5d2_xult.X/scripts/mpconfig/mpconfig.py
Techdisc/Microchip
ea8391c689c4badbe2f9ac5181e21bbd5d9d1e54
[ "0BSD" ]
82
2015-02-05T10:29:59.000Z
2022-03-09T22:13:56.000Z
apps/xdmac/xdmac_memory_transfer/firmware/at91bootstrap_sam_a5d2_xult.X/scripts/mpconfig/mpconfig.py
Techdisc/Microchip
ea8391c689c4badbe2f9ac5181e21bbd5d9d1e54
[ "0BSD" ]
128
2015-01-05T00:56:17.000Z
2022-03-03T19:06:11.000Z
apps/xdmac/xdmac_memory_transfer/firmware/at91bootstrap_sam_a5d2_xult.X/scripts/mpconfig/mpconfig.py
Techdisc/Microchip
ea8391c689c4badbe2f9ac5181e21bbd5d9d1e54
[ "0BSD" ]
219
2015-01-01T11:27:14.000Z
2022-03-25T08:33:54.000Z
import os import sys import base64 import fnmatch from kconfiglib import Kconfig, expr_value, Symbol, Choice, MENU, COMMENT, BOOL, STRING, INT, HEX from java.awt import BorderLayout, Dimension, FlowLayout from java.awt.event import ActionListener, MouseEvent from javax.swing import BorderFactory, BoxLayout, ImageIcon, ...
39.921053
442
0.651825
c0df3129d8955fe3aa993705e4ac485becb1c9ed
3,495
py
Python
functional_test/test_sqlite.py
penguinolog/sqlalchemy_jsonfield
552bc52af2f2e9c4ebe85928070e2b1b42d9a5d8
[ "Apache-2.0" ]
17
2017-05-19T14:03:15.000Z
2022-01-16T08:33:34.000Z
functional_test/test_sqlite.py
penguinolog/sqlalchemy_jsonfield
552bc52af2f2e9c4ebe85928070e2b1b42d9a5d8
[ "Apache-2.0" ]
5
2018-08-01T09:55:48.000Z
2020-07-06T08:54:00.000Z
functional_test/test_sqlite.py
penguinolog/sqlalchemy_jsonfield
552bc52af2f2e9c4ebe85928070e2b1b42d9a5d8
[ "Apache-2.0" ]
2
2018-08-01T09:47:40.000Z
2020-07-05T15:31:17.000Z
# coding=utf-8 # pylint: disable=missing-docstring, unused-argument import os.path import sqlite3 import tempfile import unittest import sqlalchemy.ext.declarative import sqlalchemy.orm try: # noinspection PyPackageRequirements import ujson as json except ImportError: import json import sqlalchemy_jsonf...
30.391304
118
0.631187
c0e271f6251b995e55557dc615aa3e3800aa1106
587
py
Python
demos/cyk_test.py
wannaphong/pycfg
ffa67958ed1c3deb73cadb3969ac086336fb1269
[ "MIT" ]
8
2017-12-18T08:51:27.000Z
2020-11-26T02:21:06.000Z
demos/cyk_test.py
wannaphong/pycfg
ffa67958ed1c3deb73cadb3969ac086336fb1269
[ "MIT" ]
1
2020-01-09T15:41:09.000Z
2020-01-09T15:41:09.000Z
demos/cyk_test.py
wannaphong/pycfg
ffa67958ed1c3deb73cadb3969ac086336fb1269
[ "MIT" ]
6
2017-06-12T16:58:40.000Z
2019-11-27T06:55:07.000Z
'''Run Example 4.8 from Aho & Ullman p. 315-316, printing the steps to stdout. ''' from cfg import aho_ullman, core import sys CFG = core.ContextFreeGrammar G = CFG(''' S -> AA | AS | b A -> SA | AS | a ''') w = map(core.Terminal, 'abaab') print 'G:' print G print print 'w =', ''.join(map(str, w)) print T = aho_u...
18.935484
80
0.691652
c0e326802c17cadedbdcc95d716b27c009b7245b
495
py
Python
generic_op/pool_op.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
2
2021-03-28T16:19:06.000Z
2022-02-26T08:58:33.000Z
generic_op/pool_op.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
null
null
null
generic_op/pool_op.py
cap-lab/MidapSim
4f92a9f9413c29d7e1f37e863cce90ebdde8b420
[ "MIT" ]
1
2021-02-22T08:44:20.000Z
2021-02-22T08:44:20.000Z
from .convpool_op_base import ConvPoolOpBase
26.052632
63
0.60202
c0e6f4156c765d61d6562b34e46e4af7e1c03fe7
1,958
py
Python
cegs_portal/search/json_templates/v1/tests/test_search_results.py
ReddyLab/cegs-portal
a83703a3557167be328c24bfb866b6aa019ba059
[ "MIT" ]
null
null
null
cegs_portal/search/json_templates/v1/tests/test_search_results.py
ReddyLab/cegs-portal
a83703a3557167be328c24bfb866b6aa019ba059
[ "MIT" ]
null
null
null
cegs_portal/search/json_templates/v1/tests/test_search_results.py
ReddyLab/cegs-portal
a83703a3557167be328c24bfb866b6aa019ba059
[ "MIT" ]
null
null
null
import pytest from django.db.models import Manager from cegs_portal.search.json_templates.v1.dna_region import dnaregions from cegs_portal.search.json_templates.v1.search_results import ( search_results as sr_json, ) from cegs_portal.search.models import DNARegion, Facet from cegs_portal.search.models.utils import...
38.392157
111
0.62666
c0ebac4ab996b305d4af158e61ede7d45f0985a2
5,002
py
Python
models/special_tensors.py
LaudateCorpus1/learning-compressible-subspaces
94db8191f5f4d32c1e86834284fcf9f89e4d445b
[ "AML" ]
6
2021-11-02T23:10:05.000Z
2021-11-26T06:46:21.000Z
models/special_tensors.py
LaudateCorpus1/learning-compressible-subspaces
94db8191f5f4d32c1e86834284fcf9f89e4d445b
[ "AML" ]
null
null
null
models/special_tensors.py
LaudateCorpus1/learning-compressible-subspaces
94db8191f5f4d32c1e86834284fcf9f89e4d445b
[ "AML" ]
2
2021-12-02T00:06:41.000Z
2022-03-26T11:33:04.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2021 Apple Inc. All Rights Reserved. # """Utility functions to tag tensors with metadata. The metadata remains with the tensor under torch operations that don't change the values, e.g. .clone(), .contiguous(), .permute(), etc. """ import collections imp...
31.859873
80
0.658137
c0f028af70b526fd95e136fc02b10d25bfdd263a
2,705
py
Python
porodynhe_example2d.py
sfepy/example_largedef_porodyn
4116abc7daed195eee15277b2bd564cec3762ac6
[ "MIT" ]
null
null
null
porodynhe_example2d.py
sfepy/example_largedef_porodyn
4116abc7daed195eee15277b2bd564cec3762ac6
[ "MIT" ]
null
null
null
porodynhe_example2d.py
sfepy/example_largedef_porodyn
4116abc7daed195eee15277b2bd564cec3762ac6
[ "MIT" ]
null
null
null
# Rohan E., Luke V. # Modeling large-deforming fluid-saturated porous media using # an Eulerian incremental formulation. # Advances in Engineering Software, 113:84-95, 2017, # https://doi.org/10.1016/j.advengsoft.2016.11.003 # # Run simulation: # # ./simple.py example_largedef_porodyn-1/porodynhe_example2d.py # # The...
31.823529
76
0.528651
c0f0b3100db352f07b237c204da41ba3ca9a0b70
260
py
Python
mailcheck/__init__.py
shacker/django-mailcheck
878dd21dcd599bd3761e225ba0c2717af458c000
[ "BSD-3-Clause" ]
1
2019-05-24T12:40:49.000Z
2019-05-24T12:40:49.000Z
mailcheck/__init__.py
shacker/django-mailcheck
878dd21dcd599bd3761e225ba0c2717af458c000
[ "BSD-3-Clause" ]
null
null
null
mailcheck/__init__.py
shacker/django-mailcheck
878dd21dcd599bd3761e225ba0c2717af458c000
[ "BSD-3-Clause" ]
null
null
null
""" Pluggable Django email backend for capturing outbound mail for QA/review purposes. """ __version__ = "1.0" __author__ = "Scot Hacker" __email__ = "shacker@birdhouse.org" __url__ = "https://github.com/shacker/django-mailcheck" __license__ = "BSD License"
23.636364
82
0.75
c0f1710109fd0bcc8c80d8dbd1890e68264eb994
4,923
py
Python
nistapttools/histogram_functions.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
nistapttools/histogram_functions.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
nistapttools/histogram_functions.py
bcaplins/NIST_APT_TOOLS
80c25498e8b069b8ee289a2d09c76c932c054cea
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Aug 28 13:41:03 2019 @author: bwc """ import numpy as np def edges_to_centers(*edges): """ Convert bin edges to bin centers Parameters ---------- *edges : bin edges Returns ------- centers : list of bin centers """ centers = [] f...
24.615
110
0.549868
c0f3c763fc8fb9b275792346291c6e8ea034e967
1,138
py
Python
bage_utils/inspect_util.py
bage79/nlp4kor
016a20270774325579fc816a0364fb1695e60b51
[ "MIT" ]
60
2017-04-26T04:43:45.000Z
2021-11-08T13:01:11.000Z
bage_utils/inspect_util.py
bage79/nlp4kor
016a20270774325579fc816a0364fb1695e60b51
[ "MIT" ]
null
null
null
bage_utils/inspect_util.py
bage79/nlp4kor
016a20270774325579fc816a0364fb1695e60b51
[ "MIT" ]
17
2017-05-21T17:27:20.000Z
2021-01-16T22:35:44.000Z
import inspect # http://docs.python.org/2/library/inspect.html from pprint import pprint from bage_utils.dict_util import DictUtil # @UnusedImport if __name__ == '__main__': pprint(InspectUtil.summary()) # __test()
24.212766
88
0.579086
c0f597adef0dae65ff023459c242c4d6daf5a5e9
2,812
py
Python
kod/zeropython/zerocon/seriesdefinition.py
piotrmaslanka/zero
4a4e8341b06032b7ade6d7a56d9ae33dd1a5f47d
[ "BSD-3-Clause" ]
null
null
null
kod/zeropython/zerocon/seriesdefinition.py
piotrmaslanka/zero
4a4e8341b06032b7ade6d7a56d9ae33dd1a5f47d
[ "BSD-3-Clause" ]
null
null
null
kod/zeropython/zerocon/seriesdefinition.py
piotrmaslanka/zero
4a4e8341b06032b7ade6d7a56d9ae33dd1a5f47d
[ "BSD-3-Clause" ]
null
null
null
import struct
29.291667
106
0.599218
c0f5fb0852a3f468b938572e90b83ad69c9f9511
3,914
py
Python
Common.py
DongDong-123/zgg_active
7b7304bc9391e1d370052087d4ad2e6d05db670c
[ "Apache-2.0" ]
null
null
null
Common.py
DongDong-123/zgg_active
7b7304bc9391e1d370052087d4ad2e6d05db670c
[ "Apache-2.0" ]
null
null
null
Common.py
DongDong-123/zgg_active
7b7304bc9391e1d370052087d4ad2e6d05db670c
[ "Apache-2.0" ]
null
null
null
import os import random import time import xlwt from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.ui import WebDriverWait from front_login import * from readConfig import ReadConfig from db import DbOperate from selenium.webdriver.chrome.options import Options from mysql...
32.347107
109
0.601175
c0f64387b72b3f7cb9554217c9f76926a2cb5bad
5,367
py
Python
dashboard_generator.py
vgm236/exec-dash
5c446849ffc0ced5ec6c286d87603afa280f6017
[ "MIT" ]
1
2019-06-20T03:14:22.000Z
2019-06-20T03:14:22.000Z
dashboard_generator.py
vgm236/exec-dash
5c446849ffc0ced5ec6c286d87603afa280f6017
[ "MIT" ]
null
null
null
dashboard_generator.py
vgm236/exec-dash
5c446849ffc0ced5ec6c286d87603afa280f6017
[ "MIT" ]
null
null
null
# dashboard_generator.py import os.path # helps to save in a different folder import pandas as pd import itertools import locale # from https://stackoverflow.com/Questions/320929/currency-formatting-in-python from os import listdir from os.path import isfile, join #for chart generation import matplotlib import matplo...
27.80829
157
0.63406
c0f84e0c95d431aa5ccd03662827d19008ac7c6c
2,235
py
Python
product_spider/spiders/medicalisotopes_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/medicalisotopes_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
product_spider/spiders/medicalisotopes_spider.py
Pandaaaa906/product_spider
cc7f865f53fd3ed68f4869be3ba917c8373dfcf2
[ "MIT" ]
null
null
null
from urllib.parse import urljoin from scrapy import Request from product_spider.items import RawData from product_spider.utils.functions import strip from product_spider.utils.spider_mixin import BaseSpider
46.5625
118
0.619239
c0f8d44852a7507fedd1ad9b67823c5e5f22423a
117
py
Python
fnexchange/core/config.py
dnif-archive/fnExchange
d75431b37da3193447b919b4be2e0104266156f1
[ "Apache-2.0" ]
1
2017-07-19T22:13:54.000Z
2017-07-19T22:13:54.000Z
fnexchange/core/config.py
dnif/fnExchange
d75431b37da3193447b919b4be2e0104266156f1
[ "Apache-2.0" ]
1
2021-03-25T21:27:21.000Z
2021-03-25T21:27:21.000Z
fnexchange/core/config.py
dnif-archive/fnExchange
d75431b37da3193447b919b4be2e0104266156f1
[ "Apache-2.0" ]
1
2021-07-07T18:55:19.000Z
2021-07-07T18:55:19.000Z
import yaml
14.625
32
0.615385
c0fa6359178c8344bf4c2736824c78112998b09b
511
py
Python
books_and_notes/professional_courses/operating_system/sources/ucore_os_lab/docs/ucore实验指导书/lab2/rename.py
gxw1/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
640
2019-03-30T11:32:43.000Z
2022-03-31T14:05:18.000Z
books_and_notes/professional_courses/operating_system/sources/ucore_os_lab/docs/ucore实验指导书/lab2/rename.py
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
6
2019-07-22T01:57:24.000Z
2022-01-20T15:03:16.000Z
books_and_notes/professional_courses/operating_system/sources/ucore_os_lab/docs/ucore实验指导书/lab2/rename.py
yyzVegst/review_the_national_post-graduate_entrance_examination
8812779a7a4ce185a531d120562d5194b697c0c9
[ "MIT" ]
212
2019-04-10T02:31:50.000Z
2022-03-30T02:32:47.000Z
#!/usr/bin/python import os lines = [line for line in open("hehe.txt")] for line in lines: i = 0 for c in line: if (c != '_' and not (c >= '0' and c <= '9')): break i+=1 cmd = "mv " + line[0:i].strip() + line[i+5:].strip() + " lab2_" + line[0:i].strip() + line[i+5:].strip() print cmd os.system(cmd) c...
19.653846
106
0.547945
c0fa6b58d78457006cba2d731fe207bcc18728f5
9,819
py
Python
smiles_parsers/Smarts.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
smiles_parsers/Smarts.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
smiles_parsers/Smarts.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/enb python import string, re import Handler ####################### # Define some regular expressions inside a quoted string # then turn the string into the actual data structure. # (I found it was easiest to understand when done this way.) definitions = r""" # These are the atomic symbols Da...
31.776699
76
0.575517
c0fc8fa48988775dbfa087aacb17d54064d6211e
2,915
py
Python
visartm/settings_default.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
1
2020-10-01T10:11:21.000Z
2020-10-01T10:11:21.000Z
visartm/settings_default.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
null
null
null
visartm/settings_default.py
alexeyev/visartm
d19e193b3c084d7f355a45b966c8bb2ebb6fa366
[ "BSD-3-Clause" ]
null
null
null
# This is default settings for VisARTM for local usage import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATA_DIR = os.path.join(BASE_DIR, "data") SECRET_KEY = 'yj_fhwf$-8ws1%a_vl5c0lf($#ke@c3+lu3l-f733k(j-!q*57' DEBUG = True ALLOWED_HOSTS = ["127.0.0.1"] THREADING = True REGISTRAT...
23.699187
71
0.646312
c0fe21b15a59a46814a6a24b71ed4f6e93699049
8,402
py
Python
pyvizio/const.py
jezzab/pyvizio
8086f9e5aac49d1d99ade02684ca35c05e03a7eb
[ "MIT" ]
72
2017-08-08T19:32:12.000Z
2022-03-18T03:18:41.000Z
pyvizio/const.py
raman325/pyvizio
9cf45fcc9b409caf223a38d8f79c775742ab4127
[ "MIT" ]
48
2017-09-16T16:37:54.000Z
2022-01-23T20:43:42.000Z
pyvizio/const.py
ConnectionMaster/pyvizio
0fe4558557917509d3da3bb24f9221f15ba901ce
[ "MIT" ]
42
2017-09-04T22:59:21.000Z
2022-03-18T03:18:30.000Z
"""pyvizio constants.""" DEVICE_CLASS_SPEAKER = "speaker" DEVICE_CLASS_TV = "tv" DEVICE_CLASS_CRAVE360 = "crave360" DEFAULT_DEVICE_ID = "pyvizio" DEFAULT_DEVICE_CLASS = DEVICE_CLASS_TV DEFAULT_DEVICE_NAME = "Python Vizio" DEFAULT_PORTS = [7345, 9000] DEFAULT_TIMEOUT = 5 MAX_VOLUME = {DEVICE_CLASS_TV: 100, DEVICE_CLA...
28.100334
190
0.416448
8d00ab8273f452e2946deb1ce6f8cb6b06b174a7
1,858
py
Python
etl/steps/data/garden/owid/latest/covid.py
c1x1x00xxPentium/etl
4c9c4e466287deefba1aaae12c473c38d9ecb3cd
[ "MIT" ]
5
2021-11-01T18:54:52.000Z
2022-03-10T17:19:14.000Z
etl/steps/data/garden/owid/latest/covid.py
c1x1x00xxPentium/etl
4c9c4e466287deefba1aaae12c473c38d9ecb3cd
[ "MIT" ]
98
2021-09-24T19:29:34.000Z
2022-03-31T15:57:18.000Z
etl/steps/data/garden/owid/latest/covid.py
c1x1x00xxPentium/etl
4c9c4e466287deefba1aaae12c473c38d9ecb3cd
[ "MIT" ]
2
2021-12-15T07:53:38.000Z
2022-02-05T14:50:43.000Z
# # covid19.py # owid/latest/covid # from owid.catalog.meta import License, Source import datetime as dt import pandas as pd from owid.catalog import Dataset, Table from etl.helpers import downloaded MEGAFILE_URL = "https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/owid-covid-data.csv"
30.966667
163
0.656082
8d0131fd0dd77260df8028fcae8b87ef1c39cda9
1,175
py
Python
tests/integration_tests/test_suassystem_interop_client.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
tests/integration_tests/test_suassystem_interop_client.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
tests/integration_tests/test_suassystem_interop_client.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
import unittest import interop from SUASSystem import InteropClientConverter from SUASSystem import Location
27.97619
110
0.621277
8d061cbc92ba43ecf28dbdbaa3d14137c3609085
3,244
py
Python
xlremed/dataset/docred.py
osainz59/XLREMed
d7fb0c322126676fe95f71ced0014076cb7a9e4d
[ "Apache-2.0" ]
4
2020-10-01T16:58:24.000Z
2021-11-30T09:29:03.000Z
xlremed/dataset/docred.py
osainz59/XLREMed
d7fb0c322126676fe95f71ced0014076cb7a9e4d
[ "Apache-2.0" ]
null
null
null
xlremed/dataset/docred.py
osainz59/XLREMed
d7fb0c322126676fe95f71ced0014076cb7a9e4d
[ "Apache-2.0" ]
null
null
null
import os import json #import fire from collections import defaultdict from pprint import pprint from itertools import product from .dataset import Dataset if __name__ == "__main__": #fire.Fire(test) test()
33.791667
109
0.544698
8d0629eab200e0d853386685fca3ce29b3fc85c5
295
py
Python
models/account.py
Tingesplatform/tokenomics
b541a54b1709a1282c5133e731b26a6ca05ac901
[ "MIT" ]
2
2021-01-12T04:44:06.000Z
2022-03-15T23:34:41.000Z
models/account.py
Tingesplatform/tokenomics
b541a54b1709a1282c5133e731b26a6ca05ac901
[ "MIT" ]
5
2019-01-14T07:17:34.000Z
2021-06-01T23:38:58.000Z
models/account.py
Tingesplatform/tokenomics
b541a54b1709a1282c5133e731b26a6ca05ac901
[ "MIT" ]
2
2019-01-11T17:07:48.000Z
2022-03-03T17:26:41.000Z
import os
19.666667
50
0.616949
8d06a575c43d8f20bdee54e0f28161929a56cf8b
7,955
py
Python
swyft/networks/classifier.py
undark-lab/swyft
50aa524e2f3a2b3d1354543178ff72bc7f055a35
[ "MIT" ]
104
2020-11-26T09:46:03.000Z
2022-03-18T06:22:03.000Z
swyft/networks/classifier.py
cweniger/swyft
2c0ed514622a37e8ec4e406b99a8327ecafb7ab4
[ "MIT" ]
83
2021-03-02T15:54:26.000Z
2022-03-10T08:09:05.000Z
swyft/networks/classifier.py
undark-lab/swyft
50aa524e2f3a2b3d1354543178ff72bc7f055a35
[ "MIT" ]
10
2021-02-04T14:27:36.000Z
2022-03-31T17:39:34.000Z
from abc import ABC, abstractmethod from typing import Dict, Hashable, Tuple import torch import torch.nn as nn import swyft import swyft.utils from swyft.networks.channelized import ResidualNetWithChannel from swyft.networks.standardization import ( OnlineDictStandardizingLayer, OnlineStandardizingLayer, ) f...
34.737991
118
0.669893
8d0744d0d6c3d370aff01717e44e415269208d73
238
py
Python
output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.date.schema_instance.nistschema_sv_iv_list_date_min_length_1_xsd.nistschema_sv_iv_list_date_min_length_1 import NistschemaSvIvListDateMinLength1 __all__ = [ "NistschemaSvIvListDateMinLength1", ]
39.666667
182
0.886555
8d09e1e56a5c8747b2ab32acaa6c0733d2870eb2
12,386
py
Python
mstrio/distribution_services/contact/contact.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
1
2022-02-15T13:18:04.000Z
2022-02-15T13:18:04.000Z
mstrio/distribution_services/contact/contact.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
null
null
null
mstrio/distribution_services/contact/contact.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from enum import auto from typing import Iterable, List, Optional, TYPE_CHECKING, Union from mstrio import config from mstrio.api import contacts from mstrio.distribution_services.contact_group import ContactGroup from mstrio.distribution_services.device import Device from mstrio.ut...
35.797688
98
0.619086
8d0a2cafd43bfa146f864191d3b8493254f59ce2
330
py
Python
sources/t04/t04ej15.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t04/t04ej15.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t04/t04ej15.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
# Iterador a partir de una funcin generadora f = fib() # Recorremos nuestro iterador, llamando a next(). Dentro del for se llama automticamente a iter(f) print(0, end=' ') for n in range(16): print(next(f), end=' ')
25.384615
99
0.630303
8d0bafb0014137256cbe170eed5e636723c3e6ff
1,166
py
Python
setup.py
snower/sevent
a11e4488e500a4008b07f4391119ad3288a1f07f
[ "MIT" ]
14
2018-02-16T10:33:04.000Z
2021-09-28T02:04:50.000Z
setup.py
snower/sevent
a11e4488e500a4008b07f4391119ad3288a1f07f
[ "MIT" ]
null
null
null
setup.py
snower/sevent
a11e4488e500a4008b07f4391119ad3288a1f07f
[ "MIT" ]
1
2021-09-26T06:09:38.000Z
2021-09-26T06:09:38.000Z
#!/usr/bin/env python import os import sys import platform from setuptools import setup, Extension if platform.system() != 'Windows' and platform.python_implementation() == "CPython": ext_modules = [Extension('sevent/cbuffer', sources=['sevent/cbuffer.c'])] else: ext_modules = [] if os.path.exist...
27.116279
85
0.610635
8d0d1deb21adb6e5f10d2c2fc89468f8264b3969
1,229
py
Python
pyOCD/target/target_lpc1768.py
karlp/pyOCD
cfb76afdc8f50eeaf2c6a841ed9de1f5070e8916
[ "Apache-2.0" ]
1
2016-01-05T04:08:57.000Z
2016-01-05T04:08:57.000Z
pyOCD/target/target_lpc1768.py
karlp/pyOCD
cfb76afdc8f50eeaf2c6a841ed9de1f5070e8916
[ "Apache-2.0" ]
null
null
null
pyOCD/target/target_lpc1768.py
karlp/pyOCD
cfb76afdc8f50eeaf2c6a841ed9de1f5070e8916
[ "Apache-2.0" ]
null
null
null
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2013 ARM Limited 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 ...
30.725
73
0.689992
8d0d5fc54b12bc4a2778b7b411b9ddf33d8564a9
16,444
py
Python
CORNISH_B-CNN_Trainer_And_Optimiser.py
s-neilson/CORNISH-CNN-classifier
983754c582276a80f0bc28ccf5e8124840958d03
[ "MIT" ]
2
2019-06-23T06:58:51.000Z
2019-11-21T01:36:48.000Z
CORNISH_B-CNN_Trainer_And_Optimiser.py
s-neilson/CORNISH-CNN-classifier
983754c582276a80f0bc28ccf5e8124840958d03
[ "MIT" ]
null
null
null
CORNISH_B-CNN_Trainer_And_Optimiser.py
s-neilson/CORNISH-CNN-classifier
983754c582276a80f0bc28ccf5e8124840958d03
[ "MIT" ]
null
null
null
import os import warnings warnings.simplefilter("ignore") import csv import numpy import hyperopt from hyperopt import Trials,tpe,hp,fmin from keras.utils import to_categorical import pickle from loadConfiguration import Configuration from objectCreation import createImagedObjects from trainBCNN import run...
62.287879
220
0.769582
2386c477dd9e245a8edc63bb8d5ff08d06c30f67
1,202
py
Python
core/systems/cart_pole.py
ivandariojr/core
c4dec054a3e80355ed3812d48ca2bba286584a67
[ "MIT" ]
6
2021-01-26T21:00:24.000Z
2022-02-28T23:57:50.000Z
core/systems/cart_pole.py
ivandariojr/core
c4dec054a3e80355ed3812d48ca2bba286584a67
[ "MIT" ]
15
2020-01-28T22:49:18.000Z
2021-12-14T08:34:39.000Z
core/systems/cart_pole.py
ivandariojr/core
c4dec054a3e80355ed3812d48ca2bba286584a67
[ "MIT" ]
6
2019-06-07T21:31:20.000Z
2021-12-13T01:00:02.000Z
from torch import cat, cos, float64, sin, stack, tensor from torch.nn import Module, Parameter from core.dynamics import RoboticDynamics
29.317073
72
0.526622
2389a78f5b884ed87e17e07d946941aa063ef130
2,674
py
Python
export.py
nicolasm/lastfm-export
43456161c7083b490d09a1d2638a38c9771e1b3f
[ "MIT" ]
7
2015-11-17T20:40:29.000Z
2022-02-03T17:55:23.000Z
export.py
nicolasm/lastfm-export
43456161c7083b490d09a1d2638a38c9771e1b3f
[ "MIT" ]
2
2021-12-30T22:32:11.000Z
2021-12-30T22:32:12.000Z
export.py
nicolasm/lastfm-export
43456161c7083b490d09a1d2638a38c9771e1b3f
[ "MIT" ]
1
2020-08-03T09:19:11.000Z
2020-08-03T09:19:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################################################################### # This script imports your Last.fm listening history # # inside a MySQL or Sqlite database. # # ...
31.093023
89
0.613687
238ac0373309554dc94b4fa70cb2b5d3ddfb8bbc
2,617
py
Python
final_project/code/src/data_attention.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
final_project/code/src/data_attention.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
final_project/code/src/data_attention.py
jschmidtnj/cs584
d1d4d485d1fac8743cdbbc2996792db249dcf389
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ data file read in data """ from typing import Tuple, Any import pandas as pd import tensorflow as tf from loguru import logger from utils import file_path_relative import numpy as np from transformers import DistilBertTokenizer NUM_ROWS_TRAIN: int = 15000 TEST_RATIO: float = 0.2 def _run...
27.260417
131
0.649599
2390d6b6f9cc47e9e8fe109965cc9769d5444907
2,875
py
Python
applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
null
null
null
applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
null
null
null
applications/WindEngineeringApplication/tests/test_WindEngineeringApplication.py
clazaro/Kratos
b947b82c90dfcbf13d60511427f85990d36b90be
[ "BSD-4-Clause" ]
null
null
null
# Kratos imports import KratosMultiphysics import KratosMultiphysics.KratosUnittest as UnitTest from KratosMultiphysics.WindEngineeringApplication.test_suite import SuiteFlags, TestSuite import run_cpp_tests # STL imports import pathlib def AssembleTestSuites(enable_mpi=False): """ Populates the test suites to ...
31.25
103
0.681391
2392d8b12f4d624279784bb31763afce245b714a
5,739
py
Python
src/cadorsfeed/fpr.py
kurtraschke/cadors-parse
67ac398ef318562dcbd7c60ef7c0d91e7980111a
[ "MIT" ]
1
2018-01-05T12:54:13.000Z
2018-01-05T12:54:13.000Z
src/cadorsfeed/fpr.py
kurtraschke/cadors-parse
67ac398ef318562dcbd7c60ef7c0d91e7980111a
[ "MIT" ]
null
null
null
src/cadorsfeed/fpr.py
kurtraschke/cadors-parse
67ac398ef318562dcbd7c60ef7c0d91e7980111a
[ "MIT" ]
null
null
null
import re import uuid from copy import deepcopy from datetime import datetime from lxml import etree from lxml.html import xhtml_to_html from geoalchemy import WKTSpatialElement from geolucidate.functions import _cleanup, _convert from geolucidate.parser import parser_re from cadorsfeed import db from cadorsfeed.mo...
34.781818
76
0.626067
2393234a05bc91425b68a33c2343314b4950796f
1,016
py
Python
sstcam_sandbox/d191122_dc_tf/generate_pedestal.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/d191122_dc_tf/generate_pedestal.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
null
null
null
sstcam_sandbox/d191122_dc_tf/generate_pedestal.py
watsonjj/CHECLabPySB
91330d3a6f510a392f635bd7f4abd2f77871322c
[ "BSD-3-Clause" ]
1
2021-03-30T09:46:56.000Z
2021-03-30T09:46:56.000Z
from sstcam_sandbox import get_checs from TargetCalibSB.pedestal import PedestalTargetCalib from TargetCalibSB import get_cell_ids_for_waveform from CHECLabPy.core.io import TIOReader from tqdm import tqdm from glob import glob if __name__ == '__main__': main()
29.028571
94
0.714567