hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f73d652ad0c3d27bb81bd48b3d14ae8911feb47a
11,395
py
Python
test/unit_tests/utils/test_state.py
Georgi2704/orchestrator-core
bf072caf6b83ac8401426879df41e967f33f9f85
[ "Apache-2.0" ]
1
2021-04-10T19:24:39.000Z
2021-04-10T19:24:39.000Z
test/unit_tests/utils/test_state.py
Georgi2704/orchestrator-core
bf072caf6b83ac8401426879df41e967f33f9f85
[ "Apache-2.0" ]
null
null
null
test/unit_tests/utils/test_state.py
Georgi2704/orchestrator-core
bf072caf6b83ac8401426879df41e967f33f9f85
[ "Apache-2.0" ]
null
null
null
# type: ignore from typing import List, Optional from uuid import uuid4 import pytest from nwastdlib import const from orchestrator.domain.lifecycle import change_lifecycle from orchestrator.forms import FormPage, post_process from orchestrator.types import State, SubscriptionLifecycle from orchestrator.utils.state ...
37.731788
117
0.72681
from typing import List, Optional from uuid import uuid4 import pytest from nwastdlib import const from orchestrator.domain.lifecycle import change_lifecycle from orchestrator.forms import FormPage, post_process from orchestrator.types import State, SubscriptionLifecycle from orchestrator.utils.state import extract...
true
true
f73d653ef65bad08ea7599fb8b916f48a269eeac
771
py
Python
Problemset/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
1
2021-01-30T01:52:46.000Z
2021-01-30T01:52:46.000Z
Problemset/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
1
2021-12-15T14:54:06.000Z
2021-12-15T14:54:06.000Z
Problemset/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof/he-wei-sde-lian-xu-zheng-shu-xu-lie-lcof.py
worldwonderer/algorithm
083178b2d987de7f6020aceca869a353c0b4b1f3
[ "MIT" ]
2
2021-04-19T03:32:18.000Z
2021-06-22T07:06:01.000Z
# @Title: 和为s的连续正数序列 (和为s的连续正数序列 LCOF) # @Author: 18015528893 # @Date: 2021-01-29 17:00:07 # @Runtime: 172 ms # @Memory: 14.9 MB from typing import List class Solution: def findContinuousSequence(self, target: int) -> List[List[int]]: left = 0 right = 0 window = 0 l = range(1, ta...
20.837838
69
0.494163
from typing import List class Solution: def findContinuousSequence(self, target: int) -> List[List[int]]: left = 0 right = 0 window = 0 l = range(1, target//2+2) res = list() while right < len(l): c = l[right] right += 1 w...
true
true
f73d65448899b47be5da38b026548020692ca4aa
8,335
py
Python
test/functional/feature_proxy.py
VersessCTO/versesscoin
a60f468e97a78fe5bf410e07357dc280bcf7f954
[ "MIT" ]
3
2019-08-12T09:35:22.000Z
2019-11-13T03:11:28.000Z
test/functional/feature_proxy.py
VersessCTO/versesscoin
a60f468e97a78fe5bf410e07357dc280bcf7f954
[ "MIT" ]
null
null
null
test/functional/feature_proxy.py
VersessCTO/versesscoin
a60f468e97a78fe5bf410e07357dc280bcf7f954
[ "MIT" ]
1
2019-08-19T05:40:49.000Z
2019-08-19T05:40:49.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-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. """Test bitcoind with different proxy configuration. Test plan: - Start versessd's with different proxy c...
41.262376
121
0.625675
import socket import os from test_framework.socks5 import Socks5Configuration, Socks5Command, Socks5Server, AddressType from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( PORT_MIN, PORT_RANGE, assert_equal, ) from test_framework.netutil import test_ipv6_lo...
true
true
f73d667e2b26289b1354411abf4adfbb54dec9e5
554
py
Python
instagram_clone/images/migrations/0003_image_tags.py
ItsNED/instagram-clone
5f8fc387a5e59adc98f980df75218247b344bd71
[ "MIT" ]
null
null
null
instagram_clone/images/migrations/0003_image_tags.py
ItsNED/instagram-clone
5f8fc387a5e59adc98f980df75218247b344bd71
[ "MIT" ]
10
2020-06-05T19:49:02.000Z
2022-02-26T13:11:21.000Z
instagram_clone/images/migrations/0003_image_tags.py
ItsNED/instagram-clone
5f8fc387a5e59adc98f980df75218247b344bd71
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2018-10-28 15:38 from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('images', '0002_auto_20181028_1656'), ] operations = [ migrations.AddField( ...
26.380952
162
0.638989
from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('images', '0002_auto_20181028_1656'), ] operations = [ migrations.AddField( model_name='image', name='...
true
true
f73d67096f169d8be37fa9e44dd92371ad41819b
1,745
py
Python
tests/v2/test_security_monitoring_signal_list_request.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v2/test_security_monitoring_signal_list_request.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v2/test_security_monitoring_signal_list_request.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
35.612245
115
0.798281
from __future__ import absolute_import import sys import unittest import datadog_api_client.v2 try: from datadog_api_client.v2.model import security_monitoring_signal_list_request_filter except ImportError: security_monitoring_signal_list_request_filter = sys.modules[ 'datadog_api_client.v2.mode...
true
true
f73d6788fe4e281f30d3f0f27fd1c5afdc7393ea
1,239
py
Python
test/test_repository_api.py
angeiv/python-harbor
98e1c096f031da4974dc5a5717272f55813c391c
[ "MIT" ]
1
2022-01-26T18:08:56.000Z
2022-01-26T18:08:56.000Z
test/test_repository_api.py
angeiv/python-harbor
98e1c096f031da4974dc5a5717272f55813c391c
[ "MIT" ]
null
null
null
test/test_repository_api.py
angeiv/python-harbor
98e1c096f031da4974dc5a5717272f55813c391c
[ "MIT" ]
1
2022-01-25T18:18:45.000Z
2022-01-25T18:18:45.000Z
# coding: utf-8 """ Harbor API These APIs provide services for manipulating Harbor project. # noqa: E501 OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import harbor from api.repository_api...
19.983871
78
0.640032
from __future__ import absolute_import import unittest import harbor from api.repository_api import RepositoryApi from harbor.rest import ApiException class TestRepositoryApi(unittest.TestCase): def setUp(self): self.api = api.repository_api.RepositoryApi() def tearDown(self): pass ...
true
true
f73d685d50f58b52538063a6a3e03978d4fbefcd
1,546
py
Python
tensor2tensor/utils/usr_dir.py
medicode/tensor2tensor
3386fa537957fcf8133536322fcadec0630dde11
[ "Apache-2.0" ]
1
2022-03-17T22:46:18.000Z
2022-03-17T22:46:18.000Z
tensor2tensor/utils/usr_dir.py
medicode/tensor2tensor
3386fa537957fcf8133536322fcadec0630dde11
[ "Apache-2.0" ]
63
2017-12-19T20:29:10.000Z
2021-08-04T21:49:36.000Z
tensor2tensor/utils/usr_dir.py
medicode/tensor2tensor
3386fa537957fcf8133536322fcadec0630dde11
[ "Apache-2.0" ]
1
2018-11-20T20:20:25.000Z
2018-11-20T20:20:25.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
33.608696
74
0.759379
from __future__ import absolute_import from __future__ import division from __future__ import print_function import importlib import os import sys import tensorflow as tf INTERNAL_USR_DIR_PACKAGE = "t2t_usr_dir_internal" def import_usr_dir(usr_dir): if not usr_dir: return if usr_dir == INTERN...
true
true
f73d68a1c15853e365c43ac033b561a59f2a4964
690
py
Python
holmes/migrations/versions/2932df901655_removing_settings_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/2932df901655_removing_settings_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/2932df901655_removing_settings_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
"""Removing settings table Revision ID: 2932df901655 Revises: 155c6ce689ed Create Date: 2014-04-03 10:45:09.592592 """ # revision identifiers, used by Alembic. revision = '2932df901655' down_revision = '155c6ce689ed' from alembic import op import sqlalchemy as sa def upgrade(): op.drop_table('settings') def...
19.714286
72
0.642029
revision = '2932df901655' down_revision = '155c6ce689ed' from alembic import op import sqlalchemy as sa def upgrade(): op.drop_table('settings') def downgrade(): op.create_table( 'settings', sa.Column('id', sa.Integer, primary_key=True), sa.Column( 'lambda_score', ...
true
true
f73d6940dc466548076d6aed367e4b21dba6a2da
38,838
py
Python
kowalski/alert_watcher_zuds.py
dmitryduev/broker
7b9582fae6cd37bbd334bca228ef429d96e0e498
[ "MIT" ]
1
2021-12-15T09:46:00.000Z
2021-12-15T09:46:00.000Z
kowalski/alert_watcher_zuds.py
dmitryduev/broker
7b9582fae6cd37bbd334bca228ef429d96e0e498
[ "MIT" ]
null
null
null
kowalski/alert_watcher_zuds.py
dmitryduev/broker
7b9582fae6cd37bbd334bca228ef429d96e0e498
[ "MIT" ]
null
null
null
import argparse import os import sys import io import time import json from bson.json_util import dumps import traceback import confluent_kafka from ast import literal_eval import avro.schema import fastavro import subprocess import datetime import multiprocessing # import threading import pymongo import pytz from nu...
36.027829
120
0.539781
import argparse import os import sys import io import time import json from bson.json_util import dumps import traceback import confluent_kafka from ast import literal_eval import avro.schema import fastavro import subprocess import datetime import multiprocessing import pymongo import pytz from numba import jit imp...
true
true
f73d6b42dc785957c1eb596b00a1cec072cc6432
262
py
Python
ex50/app.py
phyupyarko/python-exercises
f231ca8c8c1f2614bb166cc72ce45860eff88c1d
[ "MIT" ]
null
null
null
ex50/app.py
phyupyarko/python-exercises
f231ca8c8c1f2614bb166cc72ce45860eff88c1d
[ "MIT" ]
null
null
null
ex50/app.py
phyupyarko/python-exercises
f231ca8c8c1f2614bb166cc72ce45860eff88c1d
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template app = Flask(__name__) @app.route("/") def index(): greeting = "Hello World" return render_template("index.html", greeting=greeting) if __name__ == "__main__": app.run() © 2018 GitHub, Inc.
18.714286
59
0.698473
from flask import Flask from flask import render_template app = Flask(__name__) @app.route("/") def index(): greeting = "Hello World" return render_template("index.html", greeting=greeting) if __name__ == "__main__": app.run() © 2018 GitHub, Inc.
false
true
f73d6cd897ef8812b769f1d9383c8e52951c6300
1,705
py
Python
tests/test_utils.py
nhoffman/uwgroups
fab9cb266d2e0c794370c1bdf62b26610dd33aef
[ "MIT", "Unlicense" ]
1
2018-11-30T00:43:06.000Z
2018-11-30T00:43:06.000Z
tests/test_utils.py
nhoffman/uwgroups
fab9cb266d2e0c794370c1bdf62b26610dd33aef
[ "MIT", "Unlicense" ]
2
2018-08-20T17:00:18.000Z
2018-08-27T17:30:54.000Z
tests/test_utils.py
nhoffman/uwgroups
fab9cb266d2e0c794370c1bdf62b26610dd33aef
[ "MIT", "Unlicense" ]
1
2018-08-21T15:06:54.000Z
2018-08-21T15:06:54.000Z
""" Test utils module. """ import logging from uwgroups.utils import reconcile, grouper from .__init__ import TestBase log = logging.getLogger(__name__) class TestReconcile(TestBase): def test01(self): to_add, to_remove = reconcile( current=set(), desired=set()) self.as...
25.073529
58
0.556012
import logging from uwgroups.utils import reconcile, grouper from .__init__ import TestBase log = logging.getLogger(__name__) class TestReconcile(TestBase): def test01(self): to_add, to_remove = reconcile( current=set(), desired=set()) self.assertSetEqual(to_add, set())...
true
true
f73d6cfb87fbb21ee85c9cb6b53f48624e6c46e7
809
py
Python
StartPython.py
rghvat/-TitlePython-Programming-A-Concise-Introduction
70019b068b44fa961d4a398b5836d2ebba00ea12
[ "BSD-3-Clause" ]
null
null
null
StartPython.py
rghvat/-TitlePython-Programming-A-Concise-Introduction
70019b068b44fa961d4a398b5836d2ebba00ea12
[ "BSD-3-Clause" ]
null
null
null
StartPython.py
rghvat/-TitlePython-Programming-A-Concise-Introduction
70019b068b44fa961d4a398b5836d2ebba00ea12
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 16 08:10:35 2021 @author: RAGHAV ATREYA """ # -StartPython.py *- coding: utf-8 -*- """ Spyder Editor #%% starts a new cell. Use second green triangle to run just the cell that your mouse has last clicked in (or Ctrl-Enter on a PC or Command-Return on a Macintosh or Menu>...
19.731707
77
0.646477
def hello(): print("Hello, world!") def myname(): print("My name is Bill") def ourschool(): print("Coursera is our school") def forever(): while True: pass hello() myname() ourschool()
true
true
f73d6d4923b15b74cc505745ab7cc9ac98401729
13,102
py
Python
cirq/google/api/v1/programs.py
jshede/Cirq
5db0f6aa8c009735a9ce0b0b7909ffe2532c396d
[ "Apache-2.0" ]
null
null
null
cirq/google/api/v1/programs.py
jshede/Cirq
5db0f6aa8c009735a9ce0b0b7909ffe2532c396d
[ "Apache-2.0" ]
null
null
null
cirq/google/api/v1/programs.py
jshede/Cirq
5db0f6aa8c009735a9ce0b0b7909ffe2532c396d
[ "Apache-2.0" ]
1
2018-10-25T19:36:50.000Z
2018-10-25T19:36:50.000Z
# Copyright 2018 The Cirq Developers # # 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 agreed to in ...
35.797814
80
0.641429
import json from typing import (Any, cast, Dict, Iterable, Optional, Sequence, Tuple, TYPE_CHECKING) import numpy as np import sympy from cirq import devices, ops, protocols, value from cirq.schedules import Schedule, ScheduledOperation from cirq.value import Timestamp if TYPE_CHECKIN...
true
true
f73d6dc14ef6a43f91508b8146f58328ea5a0e89
5,752
py
Python
contrib/automation_tests/orbit_testing.py
Mu-L/orbit
9a3338d1fda66c4c3723333023dd039acc3c40a0
[ "BSD-2-Clause" ]
1
2021-10-18T03:20:42.000Z
2021-10-18T03:20:42.000Z
contrib/automation_tests/orbit_testing.py
Mu-L/orbit
9a3338d1fda66c4c3723333023dd039acc3c40a0
[ "BSD-2-Clause" ]
3
2022-02-15T02:46:06.000Z
2022-02-28T01:28:39.000Z
contrib/automation_tests/orbit_testing.py
Mu-L/orbit
9a3338d1fda66c4c3723333023dd039acc3c40a0
[ "BSD-2-Clause" ]
1
2021-01-15T22:58:10.000Z
2021-01-15T22:58:10.000Z
""" Copyright (c) 2020 The Orbit 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 logging import time import pywinauto from pywinauto.application import Application def wait_for_orbit(): """Waits for Orbit to start up.""" ...
39.129252
89
0.727225
import logging import time import pywinauto from pywinauto.application import Application def wait_for_orbit(): logging.info('Start waiting for Orbit.') while True: try: Application(backend='uia').connect(title_re='orbitprofiler') break except pywinauto.findwindows.Ele...
true
true
f73d6ed15aeadc2bd3889c97cc16df6985d8fb21
525
py
Python
python/kyu-6/find-the-odd-int/test_find_the_odd_int.py
ledwindra/codewars
0552669a69e801cfe5f9a3696a4d98be63a96951
[ "WTFPL" ]
1
2020-11-13T16:55:04.000Z
2020-11-13T16:55:04.000Z
python/kyu-6/find-the-odd-int/test_find_the_odd_int.py
ledwindra/codewars
0552669a69e801cfe5f9a3696a4d98be63a96951
[ "WTFPL" ]
1
2020-01-28T15:48:17.000Z
2020-01-28T15:48:17.000Z
python/kyu-6/find-the-odd-int/test_find_the_odd_int.py
ledwindra/codewars
0552669a69e801cfe5f9a3696a4d98be63a96951
[ "WTFPL" ]
null
null
null
from find_the_odd_int import find_it class TestFindIt: def test_0(self): assert find_it([20,1,-1,2,-2,3,3,5,5,1,2,4,20,4,-1,-2,5]) == 5 def test_1(self): assert find_it([1,1,2,-2,5,2,4,4,-1,-2,5]) == -1 def test_2(self): assert find_it([20,1,1,2,2,3,3,5,5,4,20,4,5]) == 5 def...
25
70
0.540952
from find_the_odd_int import find_it class TestFindIt: def test_0(self): assert find_it([20,1,-1,2,-2,3,3,5,5,1,2,4,20,4,-1,-2,5]) == 5 def test_1(self): assert find_it([1,1,2,-2,5,2,4,4,-1,-2,5]) == -1 def test_2(self): assert find_it([20,1,1,2,2,3,3,5,5,4,20,4,5]) == 5 def...
true
true
f73d6f69dd11e8e1810bdaa07fa48776c6dedf82
478
py
Python
posts/views.py
mshRoR/post-api-django
d649ac7974a2960d026fb099cf3b82912c07cbfa
[ "MIT" ]
null
null
null
posts/views.py
mshRoR/post-api-django
d649ac7974a2960d026fb099cf3b82912c07cbfa
[ "MIT" ]
null
null
null
posts/views.py
mshRoR/post-api-django
d649ac7974a2960d026fb099cf3b82912c07cbfa
[ "MIT" ]
1
2020-12-11T09:03:36.000Z
2020-12-11T09:03:36.000Z
# from django.shortcuts import render from rest_framework import generics from .models import Post from .permissions import IsAuthororReadOnly from .serializers import PostSerializer class PostList(generics.ListCreateAPIView): queryset = Post.objects.all() serializer_class = PostSerializer class PostDetail(g...
29.875
56
0.807531
from rest_framework import generics from .models import Post from .permissions import IsAuthororReadOnly from .serializers import PostSerializer class PostList(generics.ListCreateAPIView): queryset = Post.objects.all() serializer_class = PostSerializer class PostDetail(generics.RetrieveUpdateDestroyAPIView)...
true
true
f73d6fe813b1cedafeaf34aca38601d281b4561f
1,424
py
Python
online_doctor/appointment/serializers.py
zawad2221/online-doctor-server
1ad4f34da0c95a0304527fceebbbbd7d955e294e
[ "MIT" ]
null
null
null
online_doctor/appointment/serializers.py
zawad2221/online-doctor-server
1ad4f34da0c95a0304527fceebbbbd7d955e294e
[ "MIT" ]
null
null
null
online_doctor/appointment/serializers.py
zawad2221/online-doctor-server
1ad4f34da0c95a0304527fceebbbbd7d955e294e
[ "MIT" ]
null
null
null
from custom_user.serializers import RelatedFieldAlternative from rest_framework import serializers from .models import Appointment from visiting_schedule.models import VisitingSchedule from patient.models import Patient from visiting_schedule.serializers import VisitingScheduleSerializer from patient.serializers import...
37.473684
105
0.691713
from custom_user.serializers import RelatedFieldAlternative from rest_framework import serializers from .models import Appointment from visiting_schedule.models import VisitingSchedule from patient.models import Patient from visiting_schedule.serializers import VisitingScheduleSerializer from patient.serializers import...
true
true
f73d700bd81e8e3d2979c18bcdf6a1119812c6e4
3,484
py
Python
main.py
Pop-DJ/Plant_data_base_app
7697bb7595bf008cf3b34209aa4fe2ee385b58f7
[ "MIT" ]
null
null
null
main.py
Pop-DJ/Plant_data_base_app
7697bb7595bf008cf3b34209aa4fe2ee385b58f7
[ "MIT" ]
null
null
null
main.py
Pop-DJ/Plant_data_base_app
7697bb7595bf008cf3b34209aa4fe2ee385b58f7
[ "MIT" ]
null
null
null
import kivy kivy.require('1.9.0') from kivy.app import App from kivy.properties import ObjectProperty, StringProperty from kivy.uix.listview import ListItemButton from kivy.uix.boxlayout import BoxLayout from kivy.uix.screenmanager import ScreenManager, Screen temp_x= "temp" temp_y= "temp" class PlantListButton(List...
31.107143
102
0.617107
import kivy kivy.require('1.9.0') from kivy.app import App from kivy.properties import ObjectProperty, StringProperty from kivy.uix.listview import ListItemButton from kivy.uix.boxlayout import BoxLayout from kivy.uix.screenmanager import ScreenManager, Screen temp_x= "temp" temp_y= "temp" class PlantListButton(List...
true
true
f73d70a5c58fea2b34fa8d39b7f260309d7f7312
4,110
py
Python
bin/Lib/idlelib/GrepDialog.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
1
2020-05-25T22:18:25.000Z
2020-05-25T22:18:25.000Z
bin/Lib/idlelib/GrepDialog.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
null
null
null
bin/Lib/idlelib/GrepDialog.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
1
2019-09-18T05:37:46.000Z
2019-09-18T05:37:46.000Z
import os import fnmatch import sys from tkinter import * from idlelib import SearchEngine from idlelib.SearchDialogBase import SearchDialogBase def grep(text, io=None, flist=None): root = text._root() engine = SearchEngine.get(root) if not hasattr(engine, "_grepdialog"): engine._grepdialog = GrepD...
32.109375
76
0.546715
import os import fnmatch import sys from tkinter import * from idlelib import SearchEngine from idlelib.SearchDialogBase import SearchDialogBase def grep(text, io=None, flist=None): root = text._root() engine = SearchEngine.get(root) if not hasattr(engine, "_grepdialog"): engine._grepdialog = GrepD...
true
true
f73d70f8c5fed93f329168d9bef40d1ef1bab910
2,055
py
Python
sarpy/io/nitf/tres/unclass/OBJCTA.py
anielsen001/sarpy
07bf157f54a5304185fc0e1c34010053fd6ae9d9
[ "MIT" ]
null
null
null
sarpy/io/nitf/tres/unclass/OBJCTA.py
anielsen001/sarpy
07bf157f54a5304185fc0e1c34010053fd6ae9d9
[ "MIT" ]
null
null
null
sarpy/io/nitf/tres/unclass/OBJCTA.py
anielsen001/sarpy
07bf157f54a5304185fc0e1c34010053fd6ae9d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class OBJ(TREElement): def __init__(self, value): super(OBJ, self).__init__() self.add_field('OBJ_TY', 's', 20, value) self.add_field('OBJ_NM',...
39.519231
65
0.596594
from ..tre_elements import TREExtension, TREElement __classification__ = "UNCLASSIFIED" __author__ = "Thomas McCullough" class OBJ(TREElement): def __init__(self, value): super(OBJ, self).__init__() self.add_field('OBJ_TY', 's', 20, value) self.add_field('OBJ_NM', 's', 15, value) ...
true
true
f73d715386bdc7e5ed7e6f3c7b59b95d097ad367
49,024
py
Python
test/test_scan_template_service_discovery_tcp.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
test/test_scan_template_service_discovery_tcp.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
test/test_scan_template_service_discovery_tcp.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
1,195.707317
48,043
0.49178
from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.scan_template_service_discovery_tcp import ScanTemplateServiceDiscoveryTcp from swagger_client.rest import ApiException class TestScanTemplateServiceDiscoveryTcp(unittest.TestCase): def setUp(self): ...
true
true
f73d733677d25e51cb836aafc226e7c6f1531e77
2,971
py
Python
hw6/ch9/quiz/randomQuizGenerator.py
jonescarissa/csc221
1052b4cf9f3aab86c063c1b3845895a590bc2083
[ "CC0-1.0" ]
null
null
null
hw6/ch9/quiz/randomQuizGenerator.py
jonescarissa/csc221
1052b4cf9f3aab86c063c1b3845895a590bc2083
[ "CC0-1.0" ]
null
null
null
hw6/ch9/quiz/randomQuizGenerator.py
jonescarissa/csc221
1052b4cf9f3aab86c063c1b3845895a590bc2083
[ "CC0-1.0" ]
1
2021-09-02T03:55:17.000Z
2021-09-02T03:55:17.000Z
#! python3 # randomQuizGenerator.py - Creates quizzes with questions and answers in # random order, along with the answer key. from pathlib import Path import random # The quiz data. Keys are states and values are their capitals capitals = {'Alabama': 'Montgomery', 'Alaska': 'Juneau', 'Arizona': 'Phoenix', ...
44.343284
98
0.64894
from pathlib import Path import random capitals = {'Alabama': 'Montgomery', 'Alaska': 'Juneau', 'Arizona': 'Phoenix', 'Arkansas': 'Little Rock', 'California': 'Sacramento', 'Colorado': 'Denver', 'Connecticut': 'Hartford', 'Delaware': 'Dover', 'Florida': 'Tallahassee', 'Georgia': 'Atlanta', 'Hawa...
true
true
f73d74247449e7898239279e239c93aa71ebeb32
678
py
Python
pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/RegisteredTypeInfo.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/RegisteredTypeInfo.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
pyy1/.pycharm_helpers/python_stubs/-1550516950/gi/_gi/RegisteredTypeInfo.py
pyy1988/pyy_test1
6bea878409e658aa87441384419be51aaab061e7
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # module gi._gi # from /usr/lib/python3/dist-packages/gi/_gi.cpython-35m-x86_64-linux-gnu.so # by generator 1.145 # no doc # imports import _gobject as _gobject # <module '_gobject'> import _glib as _glib # <module '_glib'> import gi as __gi import gobject as __gobject class RegisteredTypeInfo(__gi...
23.37931
76
0.682891
import _gobject as _gobject import _glib as _glib import gi as __gi import gobject as __gobject class RegisteredTypeInfo(__gi.BaseInfo): def get_g_type(self, *args, **kwargs): pass def get_type_init(self, *args, **kwargs): pass def get_type_name(self, *args, **kwargs): ...
true
true
f73d74d29d2cdd3f57476faf5af7f738ab906946
5,549
py
Python
detect_single_image.py
gideont/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10
f8b24ccba44e3a55cc20da2ed0ad44d7ad2216bf
[ "Apache-2.0" ]
null
null
null
detect_single_image.py
gideont/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10
f8b24ccba44e3a55cc20da2ed0ad44d7ad2216bf
[ "Apache-2.0" ]
1
2020-01-28T22:46:08.000Z
2020-01-28T22:46:08.000Z
detect_single_image.py
gideont/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10
f8b24ccba44e3a55cc20da2ed0ad44d7ad2216bf
[ "Apache-2.0" ]
null
null
null
######## Image Object Detection Using Tensorflow-trained Classifier ######### # # Author: Evan Juras # Date: 1/15/18 # Description: # This program uses a TensorFlow-trained neural network to perform object detection. # It loads the classifier and uses it to perform object detection on an image. # It draws boxes, score...
37.748299
139
0.777257
s_ops.tf = tf.compat.v1 # Patch the location of gfile tf.gfile = tf.io.gfile # Path to frozen detection graph .pb file, which contains the model that is used # for object detection. PATH_TO_CKPT = os.path.join(CWD_PATH,MODEL_NAME,'frozen_inference_graph.pb') # Path to label map file PATH_TO_LABELS = os.path.join(CWD...
true
true
f73d754e75fdecb89296f67d555b4aa0da840e4a
870
py
Python
webserver/app/main/controller/auth_controller.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
14
2019-02-19T01:31:08.000Z
2021-12-12T12:56:08.000Z
webserver/app/main/controller/auth_controller.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
2
2020-03-10T12:12:10.000Z
2020-03-10T12:12:10.000Z
webserver/app/main/controller/auth_controller.py
pansila/Auto-Test-System
bfe51a277466939a32daa08f27a89cf3c1900def
[ "MIT" ]
4
2019-07-09T02:00:13.000Z
2020-08-18T14:04:24.000Z
from sanic import Blueprint from sanic.response import json from sanic_openapi import doc from ..model.database import User from ..service.auth_helper import Auth from ..util.dto import AuthDto, json_response from ..util.response import response_message, USER_NOT_EXIST, SUCCESS user_auth = AuthDto.user_auth bp = Blu...
27.1875
69
0.762069
from sanic import Blueprint from sanic.response import json from sanic_openapi import doc from ..model.database import User from ..service.auth_helper import Auth from ..util.dto import AuthDto, json_response from ..util.response import response_message, USER_NOT_EXIST, SUCCESS user_auth = AuthDto.user_auth bp = Blu...
true
true
f73d75a7a1f7fbe10ce29bba7f70a94aa32dd614
1,458
py
Python
deprecated/fleet_x/examples/resnet_app.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/fleet_x/examples/resnet_app.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/fleet_x/examples/resnet_app.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.45
74
0.781893
import paddle import fleetx as X import paddle.distributed.fleet as fleet paddle.enable_static() configs = X.parse_train_configs() fleet.init(is_collective=True) model = X.applications.Resnet50() downloader = X.utils.Downloader() local_path = downloader.download_from_bos( fs_yaml='https://fleet.bj.bc...
true
true
f73d76b09c135ba5d55ef4f0f5b231a916ed2b28
977
py
Python
pythonspain/contrib/sites/migrations/0003_set_site_domain_and_name.py
python-spain/socios.es.python.org
993153dcb3f35b928633c933a84e0330aae59524
[ "MIT" ]
null
null
null
pythonspain/contrib/sites/migrations/0003_set_site_domain_and_name.py
python-spain/socios.es.python.org
993153dcb3f35b928633c933a84e0330aae59524
[ "MIT" ]
null
null
null
pythonspain/contrib/sites/migrations/0003_set_site_domain_and_name.py
python-spain/socios.es.python.org
993153dcb3f35b928633c933a84e0330aae59524
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
30.53125
129
0.710338
from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): Site = apps.get_model("sites", "Site") Site.objects.update_or_create( id=settings.SITE_ID, defaults={"domain": "es.python.org", "name": "Python Spain"}, ) def update_site_backw...
true
true
f73d78d4c87d7d3dc474fae5ea527ac7c5a4240f
2,307
py
Python
synapse/rest/client/custom/custom.py
alirad18/matrix
c26283017b168cf29be8db70ea661a59e8e14e68
[ "Apache-2.0" ]
null
null
null
synapse/rest/client/custom/custom.py
alirad18/matrix
c26283017b168cf29be8db70ea661a59e8e14e68
[ "Apache-2.0" ]
null
null
null
synapse/rest/client/custom/custom.py
alirad18/matrix
c26283017b168cf29be8db70ea661a59e8e14e68
[ "Apache-2.0" ]
null
null
null
from synapse.api.errors import Codes, LoginError, SynapseError from synapse.api.ratelimiting import Ratelimiter from synapse.http.server import finish_request from synapse.http.servlet import ( RestServlet, parse_json_object_from_request, parse_string, ) from synapse.http.site import SynapseRequest from syn...
34.432836
76
0.718249
from synapse.api.errors import Codes, LoginError, SynapseError from synapse.api.ratelimiting import Ratelimiter from synapse.http.server import finish_request from synapse.http.servlet import ( RestServlet, parse_json_object_from_request, parse_string, ) from synapse.http.site import SynapseRequest from syn...
true
true
f73d794d94e01d51ad469bc5cce5961e458b530f
887
py
Python
singletask_sql/tests/task.py
lenaKuznetsova/singletask-sql
460d1c3ca41e3a5c4ca263a4ebe03ab7664ddcdb
[ "MIT" ]
null
null
null
singletask_sql/tests/task.py
lenaKuznetsova/singletask-sql
460d1c3ca41e3a5c4ca263a4ebe03ab7664ddcdb
[ "MIT" ]
null
null
null
singletask_sql/tests/task.py
lenaKuznetsova/singletask-sql
460d1c3ca41e3a5c4ca263a4ebe03ab7664ddcdb
[ "MIT" ]
null
null
null
from singletask_sql.tests import DBTestCase from sqlalchemy import orm from sqlalchemy import func from singletask_sql.tables import TasksTable from singletask_sql.tables.utils import query as query_utils # https://docs.sqlalchemy.org/en/14/orm/query.html def create_task(description): task = TasksTable() ta...
28.612903
60
0.689966
from singletask_sql.tests import DBTestCase from sqlalchemy import orm from sqlalchemy import func from singletask_sql.tables import TasksTable from singletask_sql.tables.utils import query as query_utils def create_task(description): task = TasksTable() task.description = description task.domains = f"...
true
true
f73d7a3da7b1dac0df68ad168d117cc906b15f50
5,920
py
Python
BlakesWork/dat_to_csv.py
benjaminy/ThreadMeasurement
4223eed47d776c611a5e3c299ab2f368dae9d5be
[ "MIT" ]
null
null
null
BlakesWork/dat_to_csv.py
benjaminy/ThreadMeasurement
4223eed47d776c611a5e3c299ab2f368dae9d5be
[ "MIT" ]
null
null
null
BlakesWork/dat_to_csv.py
benjaminy/ThreadMeasurement
4223eed47d776c611a5e3c299ab2f368dae9d5be
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 '''This takes an input .dat file name and an output file name as parameters. If no output file name is supplied, it will have the same name as the .dat file except it will be .csv. The input file is assumed to be in the Linux Ftrace .dat format. This program reads the input file and converts i...
29.89899
167
0.556419
import sys, subprocess, tempfile, csv import matplotlib.pyplot as plt def main (): if len(sys.argv) <= 1 or len(sys.argv) > 3: print ('Please supply the .dat file name as the first parameter. You may supply the desired output file name as the second parameter if you wish.') exit(-1) if (len...
true
true
f73d7a91601d85d365c564ff12cdc3232fdd1951
35,827
py
Python
test/functional/wallet_importdescriptors.py
widecoin-project/widecoin
143b190a61f95a4b7d40c5da484cdde8f0c5ac3f
[ "MIT" ]
8
2021-04-17T16:11:50.000Z
2021-06-23T05:30:39.000Z
test/functional/wallet_importdescriptors.py
widecoin-project/widecoin
143b190a61f95a4b7d40c5da484cdde8f0c5ac3f
[ "MIT" ]
1
2021-04-18T11:57:59.000Z
2021-04-18T11:57:59.000Z
test/functional/wallet_importdescriptors.py
widecoin-project/widecoin
143b190a61f95a4b7d40c5da484cdde8f0c5ac3f
[ "MIT" ]
7
2021-04-17T16:04:12.000Z
2021-06-10T00:54:53.000Z
#!/usr/bin/env python3 # Copyright (c) 2019-2020 The Widecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the importdescriptors RPC. Test importdescriptors by generating keys on node0, importing the cor...
52.998521
182
0.578195
from test_framework.address import key_to_p2pkh from test_framework.blocktools import COINBASE_MATURITY from test_framework.test_framework import WidecoinTestFramework from test_framework.descriptors import descsum_create from test_framework.util import ( assert_equal, assert_raises_rpc_error, find_vou...
true
true
f73d7ae59576ac8158f30f0ad064d086b98b60ff
839
py
Python
LC206.py
urjits25/leetcode-solutions
1a10b0585aead439d450bad7c3ee3340f41849c6
[ "MIT" ]
null
null
null
LC206.py
urjits25/leetcode-solutions
1a10b0585aead439d450bad7c3ee3340f41849c6
[ "MIT" ]
null
null
null
LC206.py
urjits25/leetcode-solutions
1a10b0585aead439d450bad7c3ee3340f41849c6
[ "MIT" ]
null
null
null
''' REVERSE A LINKED LIST Reverse a singly linked list. ''' # Recursive Solution, Time Complexity: O(N) ; Space Complexity: O(N) (Stack) def reverseList(head: ListNode) -> ListNode: return self.reverse(head, None) def reverse(node: ListNode, prev: ListNode) -> ListNode: if not node: return ...
27.064516
114
0.562574
def reverseList(head: ListNode) -> ListNode: return self.reverse(head, None) def reverse(node: ListNode, prev: ListNode) -> ListNode: if not node: return prev n = node.next node.next = prev return self.reverse(n, node) def reverseList(head: ListNode) -> ListNode: ...
true
true
f73d7b7cdff38817d185cc2462c05e5c24cc28b0
4,345
py
Python
experiments/saved_exp_res/exp_helpers.py
farzana0/pgm_graph_inference
37f1ea68f191d4f3021e7fdc8dd246d945e37ead
[ "MIT" ]
null
null
null
experiments/saved_exp_res/exp_helpers.py
farzana0/pgm_graph_inference
37f1ea68f191d4f3021e7fdc8dd246d945e37ead
[ "MIT" ]
null
null
null
experiments/saved_exp_res/exp_helpers.py
farzana0/pgm_graph_inference
37f1ea68f191d4f3021e7fdc8dd246d945e37ead
[ "MIT" ]
null
null
null
""" Experiment specifications: an experiment is defined by train,test dataset pair, each dataset is loaded from graphical_models/datasets. Authors: kkorovin@cs.cmu.edu """ import os import numpy as np from graphical_models import BinaryMRF from inference import get_algorithm from graphical_models.data_gen import st...
35.909091
95
0.502417
import os import numpy as np from graphical_models import BinaryMRF from inference import get_algorithm from graphical_models.data_gen import struct_names from constants import * data_specs = { "debug": {"star": [5], "fc": []}, "larger_debug": {"star": [10], ...
true
true
f73d7c412e13812ba9d3f5a2f42a24333926c8d0
3,987
py
Python
tests/test_weighted_quantile.py
jasperroebroek/sklearn-quantile
d357240527f32b04b0fec3dcd308bb23de517209
[ "BSD-3-Clause" ]
2
2022-02-04T19:31:42.000Z
2022-02-08T15:11:41.000Z
tests/test_weighted_quantile.py
jasperroebroek/sklearn-quantile
d357240527f32b04b0fec3dcd308bb23de517209
[ "BSD-3-Clause" ]
null
null
null
tests/test_weighted_quantile.py
jasperroebroek/sklearn-quantile
d357240527f32b04b0fec3dcd308bb23de517209
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from sklearn_quantile.utils import weighted_quantile from numpy.testing import assert_equal from numpy.testing import assert_array_almost_equal from numpy.testing import assert_almost_equal from numpy.testing import assert_raises def test_quantile_equal_weights(): rng = np.rando...
34.076923
112
0.658139
import numpy as np import pytest from sklearn_quantile.utils import weighted_quantile from numpy.testing import assert_equal from numpy.testing import assert_array_almost_equal from numpy.testing import assert_almost_equal from numpy.testing import assert_raises def test_quantile_equal_weights(): rng = np.rando...
true
true
f73d7c69dfbce5801bb2c5b1c7be7656f5865aca
75,978
py
Python
yggdrasil/drivers/CModelDriver.py
ghanashyamchalla/cis_interface
7b59439276eacb66f1f6ea4177d3a85cc061eed5
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/drivers/CModelDriver.py
ghanashyamchalla/cis_interface
7b59439276eacb66f1f6ea4177d3a85cc061eed5
[ "BSD-3-Clause" ]
null
null
null
yggdrasil/drivers/CModelDriver.py
ghanashyamchalla/cis_interface
7b59439276eacb66f1f6ea4177d3a85cc061eed5
[ "BSD-3-Clause" ]
null
null
null
import os import re import warnings import copy import shutil import subprocess import numpy as np import sysconfig from collections import OrderedDict from yggdrasil import platform, tools from yggdrasil.drivers.CompiledModelDriver import ( CompiledModelDriver, CompilerBase, ArchiverBase) from yggdrasil.metaschema...
44.173256
89
0.514175
import os import re import warnings import copy import shutil import subprocess import numpy as np import sysconfig from collections import OrderedDict from yggdrasil import platform, tools from yggdrasil.drivers.CompiledModelDriver import ( CompiledModelDriver, CompilerBase, ArchiverBase) from yggdrasil.metaschema...
true
true
f73d7d000729389fe47de62071a43de71388f14f
83,677
py
Python
src/transformers/trainer.py
marcoabrate/transformers
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
[ "Apache-2.0" ]
null
null
null
src/transformers/trainer.py
marcoabrate/transformers
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
[ "Apache-2.0" ]
null
null
null
src/transformers/trainer.py
marcoabrate/transformers
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020-present the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
47.06243
190
0.642626
import collections import inspect import math import os import re import shutil import time import warnings from pathlib import Path from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union from .integrations import ( default_hp_search_backend, get_reporting_integr...
true
true
f73d7dcdd2b75c3e2d601b0bc9f55544bdb55821
277
py
Python
excript/aulas/aula95_desempacotar.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula95_desempacotar.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula95_desempacotar.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
#Aula 95 - Exemplo de desempacotamento lista = [11, 10, 12] tupla = 11, 10, 12 def func(a, b, c): print(a) print(b) print(c) print(30*'-') lista.sort() func(*lista) l = [*tupla] #Ou l = list(tupla) l.sort() func(*l) func(**dict(zip(("b", "a", "c"), tupla)))
16.294118
41
0.552347
lista = [11, 10, 12] tupla = 11, 10, 12 def func(a, b, c): print(a) print(b) print(c) print(30*'-') lista.sort() func(*lista) l = [*tupla] l.sort() func(*l) func(**dict(zip(("b", "a", "c"), tupla)))
true
true
f73d7ddf0b297c9a7d70e6d1a60d749ab20bdc40
27
py
Python
nntools/__init__.py
ClementPla/NNTools
61562be2d931a7f720ceee1bd91a37a2b9a329af
[ "MIT" ]
null
null
null
nntools/__init__.py
ClementPla/NNTools
61562be2d931a7f720ceee1bd91a37a2b9a329af
[ "MIT" ]
null
null
null
nntools/__init__.py
ClementPla/NNTools
61562be2d931a7f720ceee1bd91a37a2b9a329af
[ "MIT" ]
null
null
null
from .utils.const import *
13.5
26
0.740741
from .utils.const import *
true
true
f73d7df910c1012f1dd56922ca0caae27182a5de
17,473
py
Python
doc/tutorials/pymunk_platformer/pymunk_demo_platformer_11.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2021-03-04T14:02:29.000Z
2021-03-04T14:02:29.000Z
doc/tutorials/pymunk_platformer/pymunk_demo_platformer_11.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
1
2019-08-11T18:47:27.000Z
2019-08-12T03:02:11.000Z
doc/tutorials/pymunk_platformer/pymunk_demo_platformer_11.py
LiorAvrahami/arcade
fce254a9eb89629de1f99d57a63759a2953184e9
[ "MIT" ]
null
null
null
""" Example of Pymunk Physics Engine Platformer """ import math from typing import Optional import arcade SCREEN_TITLE = "PyMunk Platformer" # How big are our image tiles? SPRITE_IMAGE_SIZE = 128 # Scale sprites up or down SPRITE_SCALING_PLAYER = 0.5 SPRITE_SCALING_TILES = 0.5 # Scaled sprite size for tiles SPRITE_...
39.002232
105
0.630115
import math from typing import Optional import arcade SCREEN_TITLE = "PyMunk Platformer" SPRITE_IMAGE_SIZE = 128 SPRITE_SCALING_PLAYER = 0.5 SPRITE_SCALING_TILES = 0.5 SPRITE_SIZE = int(SPRITE_IMAGE_SIZE * SPRITE_SCALING_PLAYER) SCREEN_GRID_WIDTH = 25 SCREEN_GRID_HEIGHT = 15 SCREEN_WIDTH = SPRITE_SIZE * SCRE...
true
true
f73d7e5362fa80beec94c4a86bffe6012f48abaf
8,085
py
Python
src/xuex-ai/storage/config.py
johnlito123/Xuez_AI
5eba129ba9e6864bf32cbe0fd7551a4ac27f7f9d
[ "MIT" ]
null
null
null
src/xuex-ai/storage/config.py
johnlito123/Xuez_AI
5eba129ba9e6864bf32cbe0fd7551a4ac27f7f9d
[ "MIT" ]
null
null
null
src/xuex-ai/storage/config.py
johnlito123/Xuez_AI
5eba129ba9e6864bf32cbe0fd7551a4ac27f7f9d
[ "MIT" ]
null
null
null
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
40.628141
130
0.657267
from programy.utils.logging.ylogger import YLogger from programy.config.base import BaseConfigurationData from programy.storage.stores.sql.config import SQLStorageConfiguration from programy.storage.stores.file.config import FileStorageConfiguration from programy.storage.stores.logger.config import LoggerStorageConfi...
true
true
f73d7f12150adc685b1d858eaebc4bc7d08995d2
12,517
py
Python
app.py
peilinja/A-medical-business-data-quality-check-web-tool
eb88d8430dd176ee0c80735c24d4e27da1c137e3
[ "MIT" ]
1
2022-02-21T18:26:59.000Z
2022-02-21T18:26:59.000Z
app.py
peilinja/A-medical-business-data-quality-check-web-tool
eb88d8430dd176ee0c80735c24d4e27da1c137e3
[ "MIT" ]
null
null
null
app.py
peilinja/A-medical-business-data-quality-check-web-tool
eb88d8430dd176ee0c80735c24d4e27da1c137e3
[ "MIT" ]
null
null
null
import dash from dash import html from dash import dcc import dash_bootstrap_components as dbc from dash.dependencies import Input, Output from server import app from views.db_connect import db_conn_page from views.data_general_situation import data_general_situation_page from views.data_overall import data_overall_p...
56.382883
235
0.465846
import dash from dash import html from dash import dcc import dash_bootstrap_components as dbc from dash.dependencies import Input, Output from server import app from views.db_connect import db_conn_page from views.data_general_situation import data_general_situation_page from views.data_overall import data_overall_p...
true
true
f73d7f9435ed3aa7ce7bcdd711f4dd6803fee23e
166
py
Python
tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_ConstantTrend_Seasonal_Hour_ARX.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_ConstantTrend_Seasonal_Hour_ARX.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_Difference/model_control_one_enabled_Difference_ConstantTrend_Seasonal_Hour_ARX.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Difference'] , ['ConstantTrend'] , ['Seasonal_Hour'] , ['ARX'] );
41.5
88
0.759036
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Difference'] , ['ConstantTrend'] , ['Seasonal_Hour'] , ['ARX'] );
true
true
f73d8156d4b988e90a7c12cef74e01e7d878240d
2,678
py
Python
models/fairgnn.py
arpitdm/nifty
b5f58c4dc83cbf8eb957361f85e845373b5ad256
[ "MIT" ]
13
2021-02-26T05:27:16.000Z
2022-03-17T11:24:27.000Z
models/fairgnn.py
AI4LIFE-GROUP/unified_representation
763792d2ddc72f2af8c6d1372c5ed8d04c741ae1
[ "MIT" ]
1
2022-03-31T02:20:26.000Z
2022-03-31T23:11:59.000Z
models/fairgnn.py
AI4LIFE-GROUP/unified_representation
763792d2ddc72f2af8c6d1372c5ed8d04c741ae1
[ "MIT" ]
6
2021-03-09T10:52:13.000Z
2022-03-28T01:09:12.000Z
import torch.nn as nn from models import * import torch import gc def get_model(nfeat, args): if args.model == "gcn": model = GCN_Body(nfeat,args.num_hidden,args.dropout) elif args.model == "gat": heads = ([args.num_heads] * args.num_layers) + [args.num_out_heads] model = GAT_body(args...
33.061728
131
0.622106
import torch.nn as nn from models import * import torch import gc def get_model(nfeat, args): if args.model == "gcn": model = GCN_Body(nfeat,args.num_hidden,args.dropout) elif args.model == "gat": heads = ([args.num_heads] * args.num_layers) + [args.num_out_heads] model = GAT_body(args...
true
true
f73d81de47bb5ec52082c7809e462677bbb2fd34
289
py
Python
search_algorithm/4th_stochastic_SA/setup.py
koty08/Python_AI
5b656d24c648bf6ea06a875f3b485c7f7f23da8b
[ "MIT" ]
null
null
null
search_algorithm/4th_stochastic_SA/setup.py
koty08/Python_AI
5b656d24c648bf6ea06a875f3b485c7f7f23da8b
[ "MIT" ]
null
null
null
search_algorithm/4th_stochastic_SA/setup.py
koty08/Python_AI
5b656d24c648bf6ea06a875f3b485c7f7f23da8b
[ "MIT" ]
null
null
null
#HillClimbing과 Problem에 사용되는 부모 클래스 Setup 정의 class Setup: # delta, alpha, dx... 와 같은 설정들 initializing. def __init__(self) -> None: self._delta = 0 self._alpha = 0 self._dx = 0 self._numRestart = 0 self._numSample = 0 self._numExp = 0
28.9
48
0.584775
class Setup: def __init__(self) -> None: self._delta = 0 self._alpha = 0 self._dx = 0 self._numRestart = 0 self._numSample = 0 self._numExp = 0
true
true
f73d82c2bf0823edb9073479376ed0bebcf5639d
1,085
py
Python
src/instructions.py
Kareeeeem/abyad
6e0284d5653632b761dac5f17b9604369110c2ae
[ "Unlicense" ]
1
2016-05-21T22:16:18.000Z
2016-05-21T22:16:18.000Z
src/instructions.py
Kareeeeem/abyad
6e0284d5653632b761dac5f17b9604369110c2ae
[ "Unlicense" ]
null
null
null
src/instructions.py
Kareeeeem/abyad
6e0284d5653632b761dac5f17b9604369110c2ae
[ "Unlicense" ]
null
null
null
'''This module defines all instructions.''' from collections import namedtuple from tokens import PUSH, DUP, SWAP, POP, ADD, SUB, MUL, DIV, MOD, MARK, JUMP, \ JUMP_Z, JUMP_N, EXIT, CALL, END, STORE, LOAD, OUTC, OUTI, INC, INI Ins = namedtuple('Ins', 'opcode param_type token') class ParamTypes: INTEGER = 'si...
27.820513
79
0.601843
from collections import namedtuple from tokens import PUSH, DUP, SWAP, POP, ADD, SUB, MUL, DIV, MOD, MARK, JUMP, \ JUMP_Z, JUMP_N, EXIT, CALL, END, STORE, LOAD, OUTC, OUTI, INC, INI Ins = namedtuple('Ins', 'opcode param_type token') class ParamTypes: INTEGER = 'signed' LABEL = 'unsigned' instructionse...
true
true
f73d83a6dde9aeac5fb6686b77e647225fc34eff
1,410
py
Python
pyramid_stocks/setup.py
dsnowb/pyramid-stocks
8cea2942a4036caebf912fa9f774454ba17bc687
[ "MIT" ]
null
null
null
pyramid_stocks/setup.py
dsnowb/pyramid-stocks
8cea2942a4036caebf912fa9f774454ba17bc687
[ "MIT" ]
null
null
null
pyramid_stocks/setup.py
dsnowb/pyramid-stocks
8cea2942a4036caebf912fa9f774454ba17bc687
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'plaster_pastedeploy', 'pyramid >= 1.9a', ...
23.114754
86
0.6
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'plaster_pastedeploy', 'pyramid >= 1.9a', ...
true
true
f73d83a6ffdb863a39dce4aa5663f6ac471ac96a
39
py
Python
disaster_tweets/utils/__init__.py
Galeos93/disaster_tweets
7be3a7935c3f4d91dcf4ed218b6064f01f782436
[ "MIT" ]
null
null
null
disaster_tweets/utils/__init__.py
Galeos93/disaster_tweets
7be3a7935c3f4d91dcf4ed218b6064f01f782436
[ "MIT" ]
7
2021-06-16T20:10:39.000Z
2021-07-25T20:21:45.000Z
disaster_tweets/utils/__init__.py
Galeos93/disaster_tweets
7be3a7935c3f4d91dcf4ed218b6064f01f782436
[ "MIT" ]
null
null
null
from .util import * from .nlp import *
13
19
0.692308
from .util import * from .nlp import *
true
true
f73d83b22fdaf29444a918468c1fcb4f2f1fed76
18,585
py
Python
studygroups/models/__init__.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
10
2016-05-03T20:41:25.000Z
2021-09-17T18:42:01.000Z
studygroups/models/__init__.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
655
2016-05-04T19:00:35.000Z
2022-03-28T13:09:20.000Z
studygroups/models/__init__.py
p2pu/learning-circles
ccd94208ec18082f8fda6d7f21eacdd71bad6023
[ "MIT" ]
8
2016-05-06T10:24:27.000Z
2020-10-21T00:56:59.000Z
# coding=utf-8 from django.db import models from django.db.models import Count, Max, Q, Sum, Case, When, IntegerField, Value, OuterRef, Subquery from django.db.models import F from django.utils import timezone from dateutil.relativedelta import relativedelta from django.utils.translation import ugettext_lazy as _ from ...
44.25
236
0.730535
from django.db import models from django.db.models import Count, Max, Q, Sum, Case, When, IntegerField, Value, OuterRef, Subquery from django.db.models import F from django.utils import timezone from dateutil.relativedelta import relativedelta from django.utils.translation import ugettext_lazy as _ from django.conf im...
true
true
f73d85e2ac0163e63f2ca05b291ba49c130c98f6
10,242
py
Python
tensorflow/python/keras/saving/model_architectures.py
buchgr/tensorflow
2938772a08ed02ced4663ca38168ab3f82e8f81b
[ "Apache-2.0" ]
1
2020-03-12T10:39:06.000Z
2020-03-12T10:39:06.000Z
tensorflow/python/keras/saving/model_architectures.py
buchgr/tensorflow
2938772a08ed02ced4663ca38168ab3f82e8f81b
[ "Apache-2.0" ]
2
2021-08-25T15:57:54.000Z
2022-02-10T01:14:29.000Z
tensorflow/python/keras/saving/model_architectures.py
buchgr/tensorflow
2938772a08ed02ced4663ca38168ab3f82e8f81b
[ "Apache-2.0" ]
3
2020-03-09T19:17:02.000Z
2020-06-26T23:14:31.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...
35.439446
80
0.69547
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections from tensorflow.python import keras ModelFn = collections.namedtuple('ModelFn', ['model', 'input_shape', 'target_shape']) def basic_sequent...
true
true
f73d85fac979a7f6858805336dc68fb35d88d761
576
py
Python
setup.py
Kleen-Lab/linelength_event_detector
b4cc707214cfa053164b37a90ea0988e87aa17ec
[ "CC0-1.0" ]
1
2021-08-03T11:36:43.000Z
2021-08-03T11:36:43.000Z
setup.py
Kleen-Lab/linelength_event_detector
b4cc707214cfa053164b37a90ea0988e87aa17ec
[ "CC0-1.0" ]
null
null
null
setup.py
Kleen-Lab/linelength_event_detector
b4cc707214cfa053164b37a90ea0988e87aa17ec
[ "CC0-1.0" ]
null
null
null
from distutils.core import setup import setuptools with open("README.md", "r") as fh: long_description = fh.read() setup( name='linelength_event_detector', version='0.1.0', author='Emma D\'Esopo', author_email='emma.d\'esopo@ucsf.edu', description='Tool for detecting spikes in EEG data usi...
27.428571
96
0.677083
from distutils.core import setup import setuptools with open("README.md", "r") as fh: long_description = fh.read() setup( name='linelength_event_detector', version='0.1.0', author='Emma D\'Esopo', author_email='emma.d\'esopo@ucsf.edu', description='Tool for detecting spikes in EEG data usi...
true
true
f73d870854643f1775a707904fbf7cbbea01e023
2,000
py
Python
forflask/app.py
yellowjung/docker-movie-project
d151c13e39ad58ab313f311cd836034fd7a4b1dc
[ "Apache-2.0" ]
null
null
null
forflask/app.py
yellowjung/docker-movie-project
d151c13e39ad58ab313f311cd836034fd7a4b1dc
[ "Apache-2.0" ]
null
null
null
forflask/app.py
yellowjung/docker-movie-project
d151c13e39ad58ab313f311cd836034fd7a4b1dc
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, Response from flask_restx import Resource, Api, fields from flask import abort, jsonify from flask_cors import CORS app = Flask(__name__) CORS(app) api = Api(app) ns_movies = api.namespace('ns_movies', description='Movies APIs') movie_data = api.model( 'Movie Data', { ...
24.390244
72
0.66
from flask import Flask, request, Response from flask_restx import Resource, Api, fields from flask import abort, jsonify from flask_cors import CORS app = Flask(__name__) CORS(app) api = Api(app) ns_movies = api.namespace('ns_movies', description='Movies APIs') movie_data = api.model( 'Movie Data', { ...
true
true
f73d889d738be23e250b203e5fc4a1636e8f18e9
2,065
py
Python
code/deployment/triton/bidaf_utils.py
gvashishtha/azureml-examples
dc7ee4c01410757beeaa52a4f696882ca38e0be7
[ "MIT" ]
1
2021-03-19T13:24:03.000Z
2021-03-19T13:24:03.000Z
code/deployment/triton/bidaf_utils.py
gvashishtha/azureml-examples
dc7ee4c01410757beeaa52a4f696882ca38e0be7
[ "MIT" ]
null
null
null
code/deployment/triton/bidaf_utils.py
gvashishtha/azureml-examples
dc7ee4c01410757beeaa52a4f696882ca38e0be7
[ "MIT" ]
null
null
null
"""score_bidaf.py Scoring script for use with the Bi-directional Attention Flow model from the ONNX model zoo. https://github.com/onnx/models/tree/master/text/machine_comprehension/bidirectional_attention_flow """ import json import nltk import numpy as np import os from nltk import word_tokenize from utils import g...
29.927536
116
0.677482
import json import nltk import numpy as np import os from nltk import word_tokenize from utils import get_model_info, parse_model_http, triton_init, triton_infer from tritonclientutils import triton_to_np_dtype def preprocess(text, dtype): nltk.download("punkt") tokens = word_tokenize(text) words =...
true
true
f73d88bdc2fdc43e9668d90098358a30c8d175d3
1,304
py
Python
radioAndCheckBoxes.py
islam-shamiul/Selenium_python
ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a
[ "MIT" ]
null
null
null
radioAndCheckBoxes.py
islam-shamiul/Selenium_python
ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a
[ "MIT" ]
null
null
null
radioAndCheckBoxes.py
islam-shamiul/Selenium_python
ee4cea5e58ab9afa88b3ba3e70aef52ec4808d4a
[ "MIT" ]
1
2020-07-21T08:43:25.000Z
2020-07-21T08:43:25.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Chrome(executable_path="E:/SQA/chromedriver_win32/chromedriver.exe") driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407") textBoxes = driver.find_elements_by_class_name("text_fiel...
48.296296
87
0.798313
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Chrome(executable_path="E:/SQA/chromedriver_win32/chromedriver.exe") driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407") textBoxes = driver.find_elements_by_class_name("text_fiel...
true
true
f73d88d4d47d28596af860eaef19301c1435b217
1,917
py
Python
src/command_modules/azure-cli-profile/setup.py
taliesins/azure-cli
a2451fe7148dfdd005f0f2ec797915eb479f6f6a
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-profile/setup.py
taliesins/azure-cli
a2451fe7148dfdd005f0f2ec797915eb479f6f6a
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-profile/setup.py
taliesins/azure-cli
a2451fe7148dfdd005f0f2ec797915eb479f6f6a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
31.42623
94
0.598852
from codecs import open from setuptools import setup try: from azure_bdist_wheel import cmdclass except ImportError: from distutils import log as logger logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} VERSION = "2.0.24" CLASSIFIERS = [ 'Development Status :: 5...
true
true
f73d88dec5a5ca5d76e34a0b7f60d9bbee4e3ff1
9,980
py
Python
django_iceberg/models/webhook_models.py
Iceberg-Marketplace/django-iceberg
22bff29dfa1ab6435991ecca71bea5853509c717
[ "MIT" ]
null
null
null
django_iceberg/models/webhook_models.py
Iceberg-Marketplace/django-iceberg
22bff29dfa1ab6435991ecca71bea5853509c717
[ "MIT" ]
null
null
null
django_iceberg/models/webhook_models.py
Iceberg-Marketplace/django-iceberg
22bff29dfa1ab6435991ecca71bea5853509c717
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ from .base_models import IcebergBaseModel WEBHOOK_MAX_TRIGGER_AGGREGATION = getattr(settings, 'WEBHOOK_MAX_TRIGGER_AGGREGATION', 200) WEBHOOK_DEFAULT_AGGREGATION_DELAY = getatt...
48.682927
120
0.693888
from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ from .base_models import IcebergBaseModel WEBHOOK_MAX_TRIGGER_AGGREGATION = getattr(settings, 'WEBHOOK_MAX_TRIGGER_AGGREGATION', 200) WEBHOOK_DEFAULT_AGGREGATION_DELAY = getattr(settings, 'WEBHOOK_DE...
true
true
f73d89e88b8f2a4e3ad5941f68479993ab9674a7
33,783
py
Python
qa/rpc-tests/fundrawtransaction.py
ChaosPolis/polis
80e0c058ff28a14ae13e4470e83158bc71cb90a1
[ "MIT" ]
null
null
null
qa/rpc-tests/fundrawtransaction.py
ChaosPolis/polis
80e0c058ff28a14ae13e4470e83158bc71cb90a1
[ "MIT" ]
1
2019-09-05T12:59:08.000Z
2019-09-05T16:21:13.000Z
qa/rpc-tests/fundrawtransaction.py
ChaosPolis/polis
80e0c058ff28a14ae13e4470e83158bc71cb90a1
[ "MIT" ]
3
2019-08-29T21:28:36.000Z
2019-09-01T18:54:39.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * def ge...
43.703752
214
0.569606
from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * def get_unspent(listunspent, amount): for utx in listunspent: if utx['amount'] == amount: return utx raise AssertionError('Could not find unspent with amount={}'.format(amount)) class Ra...
true
true
f73d8e8be8d1951962c3e8024c9d536d40e4d73c
887
py
Python
day8/day8.py
Ps-spectre/advent2019
f5aa79f3da8156434aa51b369ec57b1e5ad52697
[ "MIT" ]
null
null
null
day8/day8.py
Ps-spectre/advent2019
f5aa79f3da8156434aa51b369ec57b1e5ad52697
[ "MIT" ]
null
null
null
day8/day8.py
Ps-spectre/advent2019
f5aa79f3da8156434aa51b369ec57b1e5ad52697
[ "MIT" ]
null
null
null
from collections import Counter a = input().strip() W = 25 H = 6 def get_layers(a, w, h): total = w * h layers = [] for i, v in enumerate(a): if i == 0 or i % total == 0: layers.append(list()) layers[-1].append(int(v)) return layers def part1(a, w, h): layers = get_l...
18.87234
41
0.482525
from collections import Counter a = input().strip() W = 25 H = 6 def get_layers(a, w, h): total = w * h layers = [] for i, v in enumerate(a): if i == 0 or i % total == 0: layers.append(list()) layers[-1].append(int(v)) return layers def part1(a, w, h): layers = get_l...
true
true
f73d8ea647e489e0d6ba7eccd9286fea0e1d8d10
147
py
Python
openselfsup/__init__.py
neuroailab/OpenSelfSup
37709c326173a981292fed12c336c82d3356cab2
[ "Apache-2.0" ]
null
null
null
openselfsup/__init__.py
neuroailab/OpenSelfSup
37709c326173a981292fed12c336c82d3356cab2
[ "Apache-2.0" ]
null
null
null
openselfsup/__init__.py
neuroailab/OpenSelfSup
37709c326173a981292fed12c336c82d3356cab2
[ "Apache-2.0" ]
null
null
null
#from .version import __version__, short_version __version__ = '0.2.0+802fbf2' short_version = '0.2.0' __all__ = ['__version__', 'short_version']
24.5
48
0.741497
__version__ = '0.2.0+802fbf2' short_version = '0.2.0' __all__ = ['__version__', 'short_version']
true
true
f73d8ed23868ba52f022e4f17ca43ad0a39cd922
287
py
Python
hiicart/gateway/amazon/urls.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
hiicart/gateway/amazon/urls.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
5
2020-10-29T01:05:05.000Z
2020-10-29T01:05:19.000Z
hiicart/gateway/amazon/urls.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
import hiicart.gateway.amazon.views from django.conf.urls.defaults import * urlpatterns = patterns('', (r'cbui/?$', 'hiicart.gateway.amazon.views.cbui'), (r'ipn/?$', 'hiicart.gateway.amazon.views.ipn'), )
28.7
88
0.515679
import hiicart.gateway.amazon.views from django.conf.urls.defaults import * urlpatterns = patterns('', (r'cbui/?$', 'hiicart.gateway.amazon.views.cbui'), (r'ipn/?$', 'hiicart.gateway.amazon.views.ipn'), )
true
true
f73d8f17cb86b7e95d78ab2094bea74ecef36925
1,613
py
Python
com/LimePencil/Q2206/_.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
2
2021-07-17T13:05:42.000Z
2021-09-12T09:14:24.000Z
com/LimePencil/Q2206/_.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
com/LimePencil/Q2206/_.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
import sys from collections import deque def BFS(): queue = deque() queue.append((0,0,1,False)) visited = [[[0]*2 for _ in range(m)]for _ in range(n)] visited[0][0][0] = 1 while queue: x,y,d,b = queue.popleft() if x== n-1 and y == m-1: return d if 0<=x+1<n and ro...
34.319149
69
0.453193
import sys from collections import deque def BFS(): queue = deque() queue.append((0,0,1,False)) visited = [[[0]*2 for _ in range(m)]for _ in range(n)] visited[0][0][0] = 1 while queue: x,y,d,b = queue.popleft() if x== n-1 and y == m-1: return d if 0<=x+1<n and ro...
true
true
f73d919be2e880e239f009271cf0b1adf2ffb08b
13
py
Python
src/core/src/core/cmd_config.py
RizkiMufrizal/Axway-API-Gateway-Docker
2a3a39f89ea695c5d48dec0392d5d7c8e868cce1
[ "Linux-OpenIB" ]
null
null
null
src/core/src/core/cmd_config.py
RizkiMufrizal/Axway-API-Gateway-Docker
2a3a39f89ea695c5d48dec0392d5d7c8e868cce1
[ "Linux-OpenIB" ]
null
null
null
src/core/src/core/cmd_config.py
RizkiMufrizal/Axway-API-Gateway-Docker
2a3a39f89ea695c5d48dec0392d5d7c8e868cce1
[ "Linux-OpenIB" ]
1
2021-07-10T09:21:13.000Z
2021-07-10T09:21:13.000Z
VERBOSE=None
6.5
12
0.846154
VERBOSE=None
true
true
f73d9290f23f8296813ec0fc4d326d31abecbdc9
520
py
Python
espresso/optim/lr_scheduler/__init__.py
huangruizhe/espresso
ee658bcc959bfbe8a7a61d7374d532d082d2aa26
[ "MIT" ]
1
2021-01-08T02:51:16.000Z
2021-01-08T02:51:16.000Z
espresso/optim/lr_scheduler/__init__.py
huangruizhe/espresso
ee658bcc959bfbe8a7a61d7374d532d082d2aa26
[ "MIT" ]
null
null
null
espresso/optim/lr_scheduler/__init__.py
huangruizhe/espresso
ee658bcc959bfbe8a7a61d7374d532d082d2aa26
[ "MIT" ]
2
2021-01-15T09:55:07.000Z
2021-01-15T10:02:31.000Z
# Copyright (c) Yiming Wang # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os # automatically import any Python files in the optim/lr_scheduler/ directory for file in os.listdir(os.path.dirname(__file__)): if n...
34.666667
86
0.728846
import importlib import os for file in os.listdir(os.path.dirname(__file__)): if not file.startswith("_") and not file.startswith(".") and file.endswith(".py"): file_name = file[: file.find(".py")] importlib.import_module("espresso.optim.lr_scheduler." + file_name)
true
true
f73d92c3cd9d4331182c50f2a7075c0ebd9fb9bd
2,908
py
Python
src/gluonts/core/serde/_repr.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
2,648
2019-06-03T17:18:27.000Z
2022-03-31T08:29:22.000Z
src/gluonts/core/serde/_repr.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
1,220
2019-06-04T09:00:14.000Z
2022-03-31T10:45:43.000Z
src/gluonts/core/serde/_repr.py
Xiaoxiong-Liu/gluon-ts
097c492769258dd70b7f223f826b17b0051ceee9
[ "Apache-2.0" ]
595
2019-06-04T01:04:31.000Z
2022-03-30T10:40:26.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
24.233333
76
0.590784
import itertools import json import math from functools import singledispatch from typing import Any from gluonts.core import fqname_for from ._base import Kind, encode, decode from ._parse import parse @singledispatch def as_repr(x): if isinstance(x, (int, type(None))): return str(x) r...
true
true
f73d92f9441efc0cc1ab98703b57e2d4168de1c0
1,557
py
Python
util/visualize_light_samples.py
wi1k1n/nrf-accelerations
3075d63177e8ac04ee91784d5b0c56379335740f
[ "MIT" ]
null
null
null
util/visualize_light_samples.py
wi1k1n/nrf-accelerations
3075d63177e8ac04ee91784d5b0c56379335740f
[ "MIT" ]
null
null
null
util/visualize_light_samples.py
wi1k1n/nrf-accelerations
3075d63177e8ac04ee91784d5b0c56379335740f
[ "MIT" ]
null
null
null
import argparse, sys, os, os.path as op, json, subprocess import numpy as np import open3d as o3d import plotly.graph_objects as go PATH = 'D:\\edu\\UniBonn\\Study\\thesis\\codes\\NSVF\\' # PATH2MODEL = 'D:\\edu\\UniBonn\\Study\\thesis\\codes\\blender\\projects\\brdf_sphere\\brdf_sphere.ply' plotData = [] light_sta...
31.14
104
0.639049
import argparse, sys, os, os.path as op, json, subprocess import numpy as np import open3d as o3d import plotly.graph_objects as go PATH = 'D:\\edu\\UniBonn\\Study\\thesis\\codes\\NSVF\\' plotData = [] light_start = np.load(op.join(PATH, 'light_start.npy')) light_dirs = np.load(op.join(PATH, 'light_dirs.npy')) hit...
true
true
f73d93627dfb19b29d516107c1935542a8ba44f8
6,177
py
Python
wca/logger.py
egernst/workload-collocation-agent
95f3d0de4cc4f67a98679daad8cebb18cb7c09f2
[ "Apache-2.0" ]
null
null
null
wca/logger.py
egernst/workload-collocation-agent
95f3d0de4cc4f67a98679daad8cebb18cb7c09f2
[ "Apache-2.0" ]
null
null
null
wca/logger.py
egernst/workload-collocation-agent
95f3d0de4cc4f67a98679daad8cebb18cb7c09f2
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 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...
32.510526
97
0.650639
import logging import sys import time from typing import List, Dict from collections import Counter, defaultdict from wca.metrics import Metric, MetricType import colorlog TRACE = 9 DEFAULT_MODULE = 'wca' log = logging.getLogger(__name__) _module_record_counters = defaultdict(Counter) class Counti...
true
true
f73d93eb929b304e3496c2dd1244ed93c6581d64
27,783
py
Python
asadm.py
aerospike/aerospike-admin
dde7b15e798bf199b1c59279f65e5f963d4e3789
[ "Apache-2.0" ]
37
2015-02-20T20:50:40.000Z
2021-11-11T18:54:02.000Z
asadm.py
aerospike/aerospike-admin
dde7b15e798bf199b1c59279f65e5f963d4e3789
[ "Apache-2.0" ]
23
2015-02-26T01:11:49.000Z
2021-06-30T22:08:58.000Z
asadm.py
aerospike/aerospike-admin
dde7b15e798bf199b1c59279f65e5f963d4e3789
[ "Apache-2.0" ]
19
2015-01-07T01:17:39.000Z
2021-11-07T16:12:34.000Z
#!/usr/bin/env python3 # Copyright 2013-2021 Aerospike, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
31.464326
144
0.521974
import cmd import getpass import os import re import shlex import sys import logging import traceback if sys.version_info[0] < 3: raise Exception( "asadm requires Python 3. Use Aerospike tools package <= 3.27.x for Python 2 support." ) if "-e" not in sys.argv and "--asinfo" not in sys...
true
true
f73d93f3030366dca7556789baf83d627a52dd97
1,100
py
Python
arppoison.py
Xavier8502/ProyectoFinal
ab3be9aea9ddb89ba2135cb25b0c0ecdfff15ee8
[ "Apache-2.0" ]
20
2017-05-03T21:24:19.000Z
2021-07-18T13:45:48.000Z
arppoison.py
Xavier8502/ProyectoFinal
ab3be9aea9ddb89ba2135cb25b0c0ecdfff15ee8
[ "Apache-2.0" ]
1
2021-04-26T06:59:32.000Z
2021-04-26T06:59:32.000Z
arppoison.py
Xavier8502/ProyectoFinal
ab3be9aea9ddb89ba2135cb25b0c0ecdfff15ee8
[ "Apache-2.0" ]
9
2016-12-26T16:25:30.000Z
2020-01-02T05:17:57.000Z
#!/usr/bin/env python # # Execute with sudo python arppoison.py # # ARP Poisoning Script for testing defendARP.py and defendARP.bat # import time import sys from scapy.all import * from optparse import OptionParser def main(argv): # Create option parser parser = OptionParser() # Define options parser.add_option("-...
26.829268
83
0.705455
import time import sys from scapy.all import * from optparse import OptionParser def main(argv): parser = OptionParser() parser.add_option("-v", "--victim", dest="victim", help="Victim's IP address.") parser.add_option("-s", "--spoof", dest="spoof", help="Gateway's IP address.") parser.add_option("-m", "...
true
true
f73d9593a5050638dfe37f3f4badfff9e0f85d38
4,307
py
Python
corehq/apps/tzmigration/api.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/tzmigration/api.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/tzmigration/api.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
import threading from django.conf import settings from corehq.apps.tzmigration.exceptions import TimezoneMigrationProgressError from corehq.util.quickcache import skippable_quickcache from corehq.util.soft_assert import soft_assert from corehq.util.view_utils import get_request from models import TimezoneMigrationProgr...
34.18254
80
0.729974
import threading from django.conf import settings from corehq.apps.tzmigration.exceptions import TimezoneMigrationProgressError from corehq.util.quickcache import skippable_quickcache from corehq.util.soft_assert import soft_assert from corehq.util.view_utils import get_request from models import TimezoneMigrationProgr...
true
true
f73d9678be2d0e3879b67e22c220f32454b9c95d
1,529
py
Python
lightnion/extend.py
pthevenet/lightnion
c9e842d3c269d0d39fa62d68f7f83ffb17c5161e
[ "BSD-3-Clause" ]
120
2019-02-24T20:34:17.000Z
2021-11-24T16:03:43.000Z
lightnion/extend.py
pthevenet/lightnion
c9e842d3c269d0d39fa62d68f7f83ffb17c5161e
[ "BSD-3-Clause" ]
5
2020-01-20T11:45:41.000Z
2020-03-03T12:22:42.000Z
lightnion/extend.py
pthevenet/lightnion
c9e842d3c269d0d39fa62d68f7f83ffb17c5161e
[ "BSD-3-Clause" ]
3
2019-03-18T21:24:43.000Z
2020-10-09T02:53:00.000Z
import random import base64 import io import nacl.public import lightnion as lnn def circuit(state, descriptor): onion_key = base64.b64decode(descriptor['ntor-onion-key'] + '====') eidentity = descriptor['identity']['master-key'] # (assuming ed25519 here) identity = base64.b64decode(descriptor['router'][...
33.977778
78
0.673643
import random import base64 import io import nacl.public import lightnion as lnn def circuit(state, descriptor): onion_key = base64.b64decode(descriptor['ntor-onion-key'] + '====') eidentity = descriptor['identity']['master-key'] identity = base64.b64decode(descriptor['router']['identity'] + '====') ...
true
true
f73d96a8a1a2ad070e8daa3d9eeeaf0354482ba9
13,941
py
Python
tools/docco/rl_doc_utils.py
nn3un/reportlab-mirror
292f63579729b2ef8c23a7c7279c068c657d8e41
[ "BSD-3-Clause" ]
55
2019-09-21T02:45:18.000Z
2021-12-10T13:38:51.000Z
tools/docco/rl_doc_utils.py
nn3un/reportlab-mirror
292f63579729b2ef8c23a7c7279c068c657d8e41
[ "BSD-3-Clause" ]
4
2019-09-26T03:16:50.000Z
2021-12-10T13:40:49.000Z
tools/docco/rl_doc_utils.py
nn3un/reportlab-mirror
292f63579729b2ef8c23a7c7279c068c657d8e41
[ "BSD-3-Clause" ]
26
2019-09-25T03:54:30.000Z
2022-03-21T14:03:12.000Z
#!/bin/env python #Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details #history https://hg.reportlab.com/hg-public/reportlab/log/tip/tools/docco/rl_doc_utils.py __version__='3.3.0' __doc__ = """ This module contains utilities for generating guides """ import os, sys, glob import string from...
33.431655
93
0.620615
__version__='3.3.0' __doc__ = """ This module contains utilities for generating guides """ import os, sys, glob import string from reportlab.lib.utils import asUnicode from .rltemplate import RLDocTemplate from .stylesheet import getStyleSheet styleSheet = getStyleSheet() from reportlab.lib.units import inch f...
true
true
f73d97557226c71d9596083bcefe0c22636293e7
16,544
py
Python
paynow/model.py
DonnC/Paynow-Python-SDK
6adbbea444dac3286006d7c2191f23978bc3fa95
[ "MIT" ]
1
2021-05-19T13:49:54.000Z
2021-05-19T13:49:54.000Z
paynow/model.py
DonnC/paynow2
6adbbea444dac3286006d7c2191f23978bc3fa95
[ "MIT" ]
null
null
null
paynow/model.py
DonnC/paynow2
6adbbea444dac3286006d7c2191f23978bc3fa95
[ "MIT" ]
null
null
null
import requests import hashlib from six.moves.urllib_parse import quote_plus, parse_qs class HashMismatchException(Exception): """ Exception thrown when hash from Paynow does not match locally generated hash """ def __init__(self, message): super(HashMismatchException, self).__init__(message) ...
32.249513
117
0.613939
import requests import hashlib from six.moves.urllib_parse import quote_plus, parse_qs class HashMismatchException(Exception): def __init__(self, message): super(HashMismatchException, self).__init__(message) class StatusResponse: paid=bool status=str amount=float reference=str ...
true
true
f73d9816ed2d91d4b9af83e71b96110a4fb322e7
5,452
py
Python
grr/core/grr_response_core/lib/parsers/windows_registry_parser_test.py
ahmednofal/grr
08a57f6873ee13f425d0106e4143663bc6dbdd60
[ "Apache-2.0" ]
null
null
null
grr/core/grr_response_core/lib/parsers/windows_registry_parser_test.py
ahmednofal/grr
08a57f6873ee13f425d0106e4143663bc6dbdd60
[ "Apache-2.0" ]
null
null
null
grr/core/grr_response_core/lib/parsers/windows_registry_parser_test.py
ahmednofal/grr
08a57f6873ee13f425d0106e4143663bc6dbdd60
[ "Apache-2.0" ]
2
2020-08-24T00:22:03.000Z
2020-11-14T08:34:43.000Z
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- """Tests for grr.parsers.windows_registry_parser.""" from __future__ import absolute_import from __future__ import unicode_literals from grr_response_core.lib import flags from grr_response_core.lib import utils from grr_response_core.lib.parsers import wi...
43.269841
79
0.701577
from __future__ import absolute_import from __future__ import unicode_literals from grr_response_core.lib import flags from grr_response_core.lib import utils from grr_response_core.lib.parsers import windows_registry_parser from grr_response_core.lib.rdfvalues import client_fs as rdf_client_fs from grr_response_co...
true
true
f73d98e943ab352668b9803e39f6a89805e1c46f
783
py
Python
5.py
christi-john/hackerrank-algorithms
9d83a5afdc6305a0bd80a0c0f3d11b081a7143a1
[ "MIT" ]
null
null
null
5.py
christi-john/hackerrank-algorithms
9d83a5afdc6305a0bd80a0c0f3d11b081a7143a1
[ "MIT" ]
null
null
null
5.py
christi-john/hackerrank-algorithms
9d83a5afdc6305a0bd80a0c0f3d11b081a7143a1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/diagonal-difference/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'diagonalDifference' function below. # # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY arr as parameter. # def diagona...
19.097561
67
0.646232
import math import os import random import re import sys def diagonalDifference(arr): num1=0 num2=0 for i in range(n): num1+=arr[i][i] num2+=arr[i][-i-1] return abs(num2-num1) if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') n = int(input(...
true
true
f73d992a11b52412d69cb2fb86f9a867f309152f
819
py
Python
var/spack/repos/builtin/packages/py-nbformat/package.py
nkianggiss/spack
3477d3375142a30f5714bb5966a6d8bb22c33c06
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/py-nbformat/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/py-nbformat/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyNbformat(PythonPackage): """The Jupyter Notebook format""" homepage = "https://gith...
35.608696
73
0.698413
from spack import * class PyNbformat(PythonPackage): homepage = "https://github.com/jupyter/nbformat" url = "https://github.com/jupyter/nbformat/archive/4.1.0.tar.gz" version('4.1.0', '826b4fc4ec42553b20144f53b57b4e7b') version('4.0.1', 'ab7172e517c9d561c0c01eef5631b4c8') version('4.0....
true
true
f73d994a1b75cb3a02aaabfa6ea0feb071e1c1c4
29,386
py
Python
myeloma_snv/commands.py
evenrus/myeloma_SNV
b8faa365babcc5583bc7b8431e4c5053acb35cb9
[ "MIT" ]
1
2019-12-27T01:31:01.000Z
2019-12-27T01:31:01.000Z
myeloma_snv/commands.py
evenrus/myeloma_SNV
b8faa365babcc5583bc7b8431e4c5053acb35cb9
[ "MIT" ]
null
null
null
myeloma_snv/commands.py
evenrus/myeloma_SNV
b8faa365babcc5583bc7b8431e4c5053acb35cb9
[ "MIT" ]
null
null
null
"""variants_process main command.""" import timeit import re from datetime import datetime from os.path import join import pandas as pd import numpy as np import pybedtools as pyb START = timeit.default_timer() ## IMPORT VARIANTS FILE def import_variants(path): """ Determine filetype and import, returns pand...
40.310014
80
0.512795
import timeit import re from datetime import datetime from os.path import join import pandas as pd import numpy as np import pybedtools as pyb START = timeit.default_timer() ath): if re.search('.csv$', path): try: variants = pd.read_csv( filepath_or_buffer=path, ...
true
true
f73d99b41963c10d750605b3decbbe408f7bde2d
81
py
Python
gtagora/models/breadcrumb.py
fsantini/gtagora-connector-py
e97edf0da8adbdfb6d238caf1add42b70d2482f2
[ "MIT" ]
3
2020-06-30T14:26:46.000Z
2022-01-12T19:44:26.000Z
gtagora/models/breadcrumb.py
fsantini/gtagora-connector-py
e97edf0da8adbdfb6d238caf1add42b70d2482f2
[ "MIT" ]
null
null
null
gtagora/models/breadcrumb.py
fsantini/gtagora-connector-py
e97edf0da8adbdfb6d238caf1add42b70d2482f2
[ "MIT" ]
2
2019-02-27T13:54:41.000Z
2019-10-07T13:55:27.000Z
from gtagora.models.base import BaseModel class Breadcrumb(BaseModel): pass
16.2
41
0.790123
from gtagora.models.base import BaseModel class Breadcrumb(BaseModel): pass
true
true
f73d99f41d988acaae6ac06db6d2b5bfb2342d65
2,839
py
Python
build/lib/swaggerjmx/get_swagger.py
QAInsights/swaggerjmx
29308c8b2cdcf33819a9681aa669ab57cfbc88c7
[ "MIT" ]
1
2021-08-20T08:04:31.000Z
2021-08-20T08:04:31.000Z
swaggerjmx/get_swagger.py
QAInsights/swaggerjmx
29308c8b2cdcf33819a9681aa669ab57cfbc88c7
[ "MIT" ]
null
null
null
swaggerjmx/get_swagger.py
QAInsights/swaggerjmx
29308c8b2cdcf33819a9681aa669ab57cfbc88c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests import json def get_test_plan(swagger_url=None, swagger_url_json_path=None): global data if swagger_url is None: try: with open(swagger_url_json_path, 'r', encoding='utf-8') as f: data = json.load(f, strict=False) except Type...
48.948276
113
0.525185
import requests import json def get_test_plan(swagger_url=None, swagger_url_json_path=None): global data if swagger_url is None: try: with open(swagger_url_json_path, 'r', encoding='utf-8') as f: data = json.load(f, strict=False) except TypeError: rais...
true
true
f73d9b6cea09c514af06574f04344dc5a19d72d6
14,901
py
Python
salt/utils/dictdiffer.py
hvbarker/salt
0b1e299b8983854bd55163439e4ac20d81a9dab7
[ "Apache-2.0" ]
1
2020-05-17T18:00:38.000Z
2020-05-17T18:00:38.000Z
salt/utils/dictdiffer.py
hvbarker/salt
0b1e299b8983854bd55163439e4ac20d81a9dab7
[ "Apache-2.0" ]
null
null
null
salt/utils/dictdiffer.py
hvbarker/salt
0b1e299b8983854bd55163439e4ac20d81a9dab7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Calculate the difference between two dictionaries as: (1) items added (2) items removed (3) keys same in both but changed values (4) keys same in both and unchanged values Originally posted at http://stackoverflow.com/questions/1165352/fast-comparison-between-two-python-d...
35.819712
127
0.517818
from __future__ import absolute_import, print_function, unicode_literals import copy from collections.abc import Mapping from salt.ext import six def diff(current_dict, past_dict): return DictDiffer(current_dict, past_dict) class DictDiffer(object): def __init__(self, current_dict, past_dict): s...
true
true
f73d9bbcd9b1bda9942dc3cce52dcb1c4b3fd9cc
35,070
py
Python
katdal/h5datav2.py
rubyvanrooyen/katdal
e90bca3c2cd6305492d03ddc9aa48e67c1800428
[ "BSD-3-Clause" ]
null
null
null
katdal/h5datav2.py
rubyvanrooyen/katdal
e90bca3c2cd6305492d03ddc9aa48e67c1800428
[ "BSD-3-Clause" ]
null
null
null
katdal/h5datav2.py
rubyvanrooyen/katdal
e90bca3c2cd6305492d03ddc9aa48e67c1800428
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # Copyright (c) 2011-2021, National Research Foundation (SARAO) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the License at # # ...
51.878698
119
0.643057
st(zip(WEIGHT_NAMES, WEIGHT_DESCRIPTIONS))) self._weights_select = [] self._weights_keep = 'all' cache = {} def register_sensor(name, obj): if isinstance(obj, h5py.Dataset) and obj.shape != () and \ obj.dtype.names == ('timestamp', 'value',...
true
true
f73d9c6b7fdc7a86f8577e78f0eaf9fbe8b79689
788
py
Python
kingfisher_scrapy/items.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
7
2020-07-24T13:15:37.000Z
2021-12-11T22:40:07.000Z
kingfisher_scrapy/items.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
418
2020-04-27T22:15:27.000Z
2022-03-31T23:49:34.000Z
kingfisher_scrapy/items.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
6
2020-05-28T16:06:53.000Z
2021-03-16T02:54:15.000Z
# https://docs.scrapy.org/en/latest/topics/items.html import scrapy class Item(scrapy.Item): file_name = scrapy.Field() url = scrapy.Field() validate = True class File(Item): data = scrapy.Field() data_type = scrapy.Field() # Added by the FilesStore extension, for the KingfisherProcessAPI ...
21.297297
97
0.685279
import scrapy class Item(scrapy.Item): file_name = scrapy.Field() url = scrapy.Field() validate = True class File(Item): data = scrapy.Field() data_type = scrapy.Field() path = scrapy.Field() files_store = scrapy.Field() class FileItem(Item): number = scrapy.Field() dat...
true
true
f73d9cb0127b034f466f748f81ab0ccff916ad23
3,808
py
Python
doc/sphinxarg/parser.py
zifengqi123/robot_upstart
987376f5c49864e9e250e5bb5b88ae13e0ed6973
[ "BSD-3-Clause" ]
158
2015-01-30T09:45:02.000Z
2022-03-14T18:03:38.000Z
doc/sphinxarg/parser.py
zifengqi123/robot_upstart
987376f5c49864e9e250e5bb5b88ae13e0ed6973
[ "BSD-3-Clause" ]
93
2015-01-09T08:27:17.000Z
2022-02-22T07:52:39.000Z
doc/sphinxarg/parser.py
zifengqi123/robot_upstart
987376f5c49864e9e250e5bb5b88ae13e0ed6973
[ "BSD-3-Clause" ]
96
2015-02-13T13:00:07.000Z
2022-03-16T05:04:42.000Z
from argparse import _HelpAction, _SubParsersAction import re class NavigationException(Exception): pass def parser_navigate(parser_result, path, current_path=None): if isinstance(path, str): if path == '': return parser_result path = re.split(r'\s+', path) current_path = cur...
34.618182
79
0.57563
from argparse import _HelpAction, _SubParsersAction import re class NavigationException(Exception): pass def parser_navigate(parser_result, path, current_path=None): if isinstance(path, str): if path == '': return parser_result path = re.split(r'\s+', path) current_path = cur...
true
true
f73d9cd2eb95d3f0d9a90211d763018289b675a6
2,317
gyp
Python
Mozc-for-iOS/src/converter/converter_main.gyp
spanfish/JapaneseKeyboard
84fa7ef799d145fb9897b6e86bc7bc50610ccb2b
[ "Apache-2.0" ]
33
2015-01-21T09:50:21.000Z
2022-02-12T15:18:25.000Z
Mozc-for-iOS/src/converter/converter_main.gyp
spanfish/JapaneseKeyboard
84fa7ef799d145fb9897b6e86bc7bc50610ccb2b
[ "Apache-2.0" ]
1
2019-03-08T08:07:14.000Z
2019-03-08T08:07:14.000Z
Mozc-for-iOS/src/converter/converter_main.gyp
spanfish/JapaneseKeyboard
84fa7ef799d145fb9897b6e86bc7bc50610ccb2b
[ "Apache-2.0" ]
8
2015-06-08T15:57:25.000Z
2019-05-15T08:52:58.000Z
# Copyright 2010-2014, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
40.649123
74
0.715149
{ 'variables': { 'relative_mozc_dir': '', 'gen_out_mozc_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_mozc_dir)', }, 'targets': [ { 'target_name': 'converter_main', 'type': 'executable', 'sources': [ 'converter_main.cc', ], 'dependenci...
true
true
f73d9ce52f85067f94782a29c44063bd133920b6
538
py
Python
manage.py
Shekcon/Web_django
63e1a4d6e4e5307b33c2caf9fb24ca68c531a501
[ "MIT" ]
1
2019-01-14T17:22:55.000Z
2019-01-14T17:22:55.000Z
manage.py
Shekcon/Web_django
63e1a4d6e4e5307b33c2caf9fb24ca68c531a501
[ "MIT" ]
null
null
null
manage.py
Shekcon/Web_django
63e1a4d6e4e5307b33c2caf9fb24ca68c531a501
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Houses.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are y...
33.625
73
0.685874
import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Houses.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installe...
true
true
f73d9d036d7b740cd46b8185f60c619665f14626
773
py
Python
test/timing_system_test-2.0.1.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
test/timing_system_test-2.0.1.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
test/timing_system_test-2.0.1.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
"""Delay line linearity characterization Friedrich Schotte, Jul 22, 2015 - Jul 23, 2015 Setup: Ramsay-100B RF Generator, 351.93398 MHz +10 dBm -> FPGA RF IN FPGA 1: X-scope trig -> CH1, DC50, 500 mV/div FPGA 13: ps L oscill -> DC block -> 90-MHz low-pass -> CH2, DC50, 500 mV/div Timebase 5 ns/div Measurement P1 CH2, ti...
32.208333
89
0.702458
__version__ = "2.0.1" from instrumentation import lxd,bcf,lecroy_scope from scan import rscan delay = lecroy_scope("pico21").measurement(1) tmax = 5/bcf def scan(): lxd.value = 0 global data data = rscan([lxd,delay.gate.start,delay.gate.stop],0,[tmax,-tmax,-tmax], 640,delay,averaging_time=60.0,logf...
true
true
f73d9d4077640cd984b300592a49749be06c379c
6,674
py
Python
freight/admin.py
buahaha/aa-freight
69eb85188988d7cfaffc7c485d22ddb442a4a2b3
[ "MIT" ]
null
null
null
freight/admin.py
buahaha/aa-freight
69eb85188988d7cfaffc7c485d22ddb442a4a2b3
[ "MIT" ]
null
null
null
freight/admin.py
buahaha/aa-freight
69eb85188988d7cfaffc7c485d22ddb442a4a2b3
[ "MIT" ]
null
null
null
from django.contrib import admin from . import tasks from .app_settings import FREIGHT_DEVELOPER_MODE from .models import ( Contract, ContractCustomerNotification, ContractHandler, EveEntity, Location, Pricing, ) from .tasks import update_locations @admin.register(Location) class LocationAdmi...
26.589641
84
0.630656
from django.contrib import admin from . import tasks from .app_settings import FREIGHT_DEVELOPER_MODE from .models import ( Contract, ContractCustomerNotification, ContractHandler, EveEntity, Location, Pricing, ) from .tasks import update_locations @admin.register(Location) class LocationAdmi...
true
true
f73d9db33588aaa977bf8161f86b487813b08884
2,685
py
Python
cortado/cutcovfactor.py
Statfactory/ColdBrew
ee16eee73e8dc89646abd6ee3e19858e49c6ffb7
[ "MIT" ]
8
2020-04-26T09:42:29.000Z
2021-04-27T21:55:49.000Z
cortado/cutcovfactor.py
pm390/cortado
ee16eee73e8dc89646abd6ee3e19858e49c6ffb7
[ "MIT" ]
2
2020-03-24T23:37:45.000Z
2021-08-23T20:49:01.000Z
cortado/cutcovfactor.py
pm390/cortado
ee16eee73e8dc89646abd6ee3e19858e49c6ffb7
[ "MIT" ]
4
2020-06-10T06:49:43.000Z
2021-09-17T14:04:20.000Z
from cortado.abstractfactor import AbstractFactor import numpy as np from cortado.seq import Seq from cortado.funcslicer import FuncSlicer from cortado.consts import HEADLENGTH, SLICELEN, MISSINGLEVEL from numba import jit from numba.typed import Dict from numba import types @jit(nopython=True, cache=False) def g_left...
29.833333
164
0.575047
from cortado.abstractfactor import AbstractFactor import numpy as np from cortado.seq import Seq from cortado.funcslicer import FuncSlicer from cortado.consts import HEADLENGTH, SLICELEN, MISSINGLEVEL from numba import jit from numba.typed import Dict from numba import types @jit(nopython=True, cache=False) def g_left...
true
true
f73d9ddc42aa94f59ee3852e9e992473d92b432d
891
py
Python
oosc/oosc/absence/serializers.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
oosc/oosc/absence/serializers.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
oosc/oosc/absence/serializers.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
from oosc.absence.models import Absence from rest_framework import serializers from oosc.students.serializers import SimpleStudentSerializer from datetime import datetime class AbsenceSerializer(serializers.ModelSerializer): class Meta: model=Absence fields=('id','student','_class','reasons','date...
35.64
98
0.725028
from oosc.absence.models import Absence from rest_framework import serializers from oosc.students.serializers import SimpleStudentSerializer from datetime import datetime class AbsenceSerializer(serializers.ModelSerializer): class Meta: model=Absence fields=('id','student','_class','reasons','date...
true
true
f73d9e918e4201fec3820bd47fa3fc21170831aa
67,103
py
Python
ultracart/models/coupon.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/coupon.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/coupon.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Coupon(object): """N...
40.133373
1,910
0.718373
import pprint import re import six class Coupon(object): swagger_types = { 'affiliate_oid': 'int', 'allow_multiple_one_time_codes': 'bool', 'amount_off_items': 'CouponAmountOffItems', 'amount_off_shipping': 'CouponAmountOffShipping', 'amount_off_shipping_with_items_...
true
true
f73d9e9e11ebdd211c93b619889a1739178c14b6
685
py
Python
setup.py
dcutt/eo-flow
9383be39cfa6fe623916cb17b77d307539adac5e
[ "MIT" ]
null
null
null
setup.py
dcutt/eo-flow
9383be39cfa6fe623916cb17b77d307539adac5e
[ "MIT" ]
null
null
null
setup.py
dcutt/eo-flow
9383be39cfa6fe623916cb17b77d307539adac5e
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages def parse_requirements(file): return sorted(set( line.partition('#')[0].strip() for line in open(os.path.join(os.path.dirname(__file__), file)) ) - set('')) setup( name='eo-flow', python_requires='>=3.5', version='1.1.0', ...
27.4
104
0.684672
import os from setuptools import setup, find_packages def parse_requirements(file): return sorted(set( line.partition('#')[0].strip() for line in open(os.path.join(os.path.dirname(__file__), file)) ) - set('')) setup( name='eo-flow', python_requires='>=3.5', version='1.1.0', ...
true
true
f73da007b7a7b3d23f55105514956d1d3fa81264
11,210
py
Python
eve/utils.py
gregorynicholas/eve
4562ec94d1d2ee9174faa244bd9fc3797106dfde
[ "BSD-3-Clause" ]
null
null
null
eve/utils.py
gregorynicholas/eve
4562ec94d1d2ee9174faa244bd9fc3797106dfde
[ "BSD-3-Clause" ]
null
null
null
eve/utils.py
gregorynicholas/eve
4562ec94d1d2ee9174faa244bd9fc3797106dfde
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ eve.utils ~~~~~~~~~ Utility functions and classes. :copyright: (c) 2013 by Nicola Iarocci. :license: BSD, see LICENSE for more details. """ import eve import hashlib from flask import request from flask import current_app as app from datetime import datetime, timedelt...
31.846591
79
0.648885
import eve import hashlib from flask import request from flask import current_app as app from datetime import datetime, timedelta from bson.json_util import dumps import werkzeug.exceptions class Config(object): def __getattr__(self, name): try: return app.config.g...
true
true
f73da2181f1cfdd65a4c8bdd67e1ca34b902e63c
45,812
py
Python
main_old.py
primasanjaya/muat-github
4603c6c960188643fb38d8dba82e0dcc1ba00b40
[ "Apache-2.0" ]
null
null
null
main_old.py
primasanjaya/muat-github
4603c6c960188643fb38d8dba82e0dcc1ba00b40
[ "Apache-2.0" ]
null
null
null
main_old.py
primasanjaya/muat-github
4603c6c960188643fb38d8dba82e0dcc1ba00b40
[ "Apache-2.0" ]
1
2022-03-22T15:35:57.000Z
2022-03-22T15:35:57.000Z
# make deterministic from mingpt.utils import set_seed set_seed(42) #frompc import numpy as np import torch import torch.nn as nn from torch.nn import functional as F import math from torch.utils.data import Dataset from mingpt.model import * from mingpt.trainer import Trainer, TrainerConfig from ming...
52.296804
291
0.608683
from mingpt.utils import set_seed set_seed(42) import numpy as np import torch import torch.nn as nn from torch.nn import functional as F import math from torch.utils.data import Dataset from mingpt.model import * from mingpt.trainer import Trainer, TrainerConfig from mingpt.utils import sample imp...
true
true
f73da25349e92dccf2eb30151609fa1c48c757f9
374
py
Python
bike-sharing-demand/one_hot_encoder_transformer.py
Bartosz-D3V/ml-dataset-analysis
cb2458dcb7cecba01f52be5b12e816ca00ce7da4
[ "MIT" ]
null
null
null
bike-sharing-demand/one_hot_encoder_transformer.py
Bartosz-D3V/ml-dataset-analysis
cb2458dcb7cecba01f52be5b12e816ca00ce7da4
[ "MIT" ]
null
null
null
bike-sharing-demand/one_hot_encoder_transformer.py
Bartosz-D3V/ml-dataset-analysis
cb2458dcb7cecba01f52be5b12e816ca00ce7da4
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin class OneHotEncoderTransformer(BaseEstimator, TransformerMixin): def __init__(self, columns) -> None: self.columns = columns def fit(self, X, y=None): return self def transform(self, X, y=None): X = pd....
23.375
64
0.684492
import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin class OneHotEncoderTransformer(BaseEstimator, TransformerMixin): def __init__(self, columns) -> None: self.columns = columns def fit(self, X, y=None): return self def transform(self, X, y=None): X = pd....
true
true
f73da2d7eebd1de32958ef149f23f75b023f780b
181
py
Python
chapter_eleven/give_the_interface_a_native_feel_with_objects/test_flyweight.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
21
2021-09-10T12:46:26.000Z
2022-03-23T02:50:39.000Z
chapter_eleven/give_the_interface_a_native_feel_with_objects/test_flyweight.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
null
null
null
chapter_eleven/give_the_interface_a_native_feel_with_objects/test_flyweight.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
6
2021-09-02T08:32:37.000Z
2022-03-17T21:15:25.000Z
from .calculate_coordinates import Particle test = Particle(4, 6) test_two = Particle(3, 8) test_three = Particle(4, 6) print(id(test)) print(id(test_three)) print(id(test_two))
16.454545
43
0.740331
from .calculate_coordinates import Particle test = Particle(4, 6) test_two = Particle(3, 8) test_three = Particle(4, 6) print(id(test)) print(id(test_three)) print(id(test_two))
true
true
f73da378a893de05bf0a378ab7e152c97a9c621b
1,315
py
Python
practice_python/33_birthday_dictionaries.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
null
null
null
practice_python/33_birthday_dictionaries.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
null
null
null
practice_python/33_birthday_dictionaries.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
1
2021-10-11T00:25:14.000Z
2021-10-11T00:25:14.000Z
import os # This exercise is Part 1 of 4 of the birthday data exercise series. # For this exercise, we will keep track of when our friend’s birthdays are, and be able to find that information based on their name. # Create a dictionary (in your file) of names and birthdays. # When you run your program it should ask th...
30.581395
133
0.670722
import os # Benjamin Franklin # >>> Benjamin Franklin's birthday is 01/17/1706. BIRTHDAYS = { 'Gaston Costas': '01/01/0000', 'Gaston Gonzalez': '02/01/0000', 'Jose Diaz': '03/01/0000', 'Marcio Riviere': '04/01/0000', 'Ignacio Gonzalez Ley': '05/01/0000' } def run(): os.system('cl...
true
true
f73da3fbe1b53fab6068d70faf53d1acf12b8ea9
1,893
py
Python
app_sme12/migrations/0012_auto_20200503_0207.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
null
null
null
app_sme12/migrations/0012_auto_20200503_0207.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
5
2021-03-19T02:32:48.000Z
2021-06-10T19:01:30.000Z
app_sme12/migrations/0012_auto_20200503_0207.py
konjing/django_sme_award
840ed3685299c77be8516acf1e8a0123930dd63d
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-03 02:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app_sme12', '0011_auto_20200502_0716'), ] operations = [ migrations.CreateModel( name='Authoriz...
40.276596
138
0.602219
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app_sme12', '0011_auto_20200502_0716'), ] operations = [ migrations.CreateModel( name='AuthorizeCapital', fields=[ ...
true
true
f73da43b89d671a9e31ca3905fec01ac0f2ef4ab
890
py
Python
doc/release/report_functions_without_rst_generated.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
10,024
2015-01-01T13:06:43.000Z
2022-03-31T12:45:25.000Z
doc/release/report_functions_without_rst_generated.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
3,191
2015-01-01T18:13:11.000Z
2022-03-31T22:06:00.000Z
doc/release/report_functions_without_rst_generated.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
3,272
2015-01-01T05:04:53.000Z
2022-03-31T17:46:35.000Z
import os import inspect import networkx as nx print("Run this script from the doc/ directory of the repository") funcs = inspect.getmembers(nx, inspect.isfunction) for n, f in funcs: # print(n + ": "+str(f)) cmd = r"find . -name *\." + n + ".rst -print" # print(cmd) result = os.popen(cmd).read() ...
25.428571
66
0.608989
import os import inspect import networkx as nx print("Run this script from the doc/ directory of the repository") funcs = inspect.getmembers(nx, inspect.isfunction) for n, f in funcs: cmd = r"find . -name *\." + n + ".rst -print" result = os.popen(cmd).read() old_names = ( "find_co...
true
true
f73da4a3f39a3addbf145c7510c3fd158e0128ed
1,241
py
Python
netforce_hr/setup.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_hr/setup.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_hr/setup.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
#!/usr/bin/env python3 # Copyright (c) 2012-2015 Netforce Co. Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, co...
42.793103
80
0.763094
from setuptools import setup setup( name="netforce_hr", version="3.1.0", description="HR module", )
true
true
f73da53b6092a031a07e14b133deb565dd0587b6
9,386
py
Python
docs/conf.py
vidyasagar-r/django-simple-pagination
8cb68b2b51b06cf8f72a13afa64564b1c49c3b41
[ "MIT" ]
null
null
null
docs/conf.py
vidyasagar-r/django-simple-pagination
8cb68b2b51b06cf8f72a13afa64564b1c49c3b41
[ "MIT" ]
null
null
null
docs/conf.py
vidyasagar-r/django-simple-pagination
8cb68b2b51b06cf8f72a13afa64564b1c49c3b41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # pietrack documentation build configuration file, created by # sphinx-quickstart on Wed Jul 29 18:10:32 2015. # # 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. # # ...
32.254296
81
0.721394
import sys import os import shlex extensions = [ 'sphinx.ext.autodoc', ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = u'django-simple-pagination' copyright = u'2016, Micro Pyramid' author = u'Micro Pyramid' # |version| and |release|...
true
true
f73da557cb00e868a90c0d89edb360f9632ad256
8,869
py
Python
tests/thread/stress_aes.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
tests/thread/stress_aes.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
tests/thread/stress_aes.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# Stress test for threads using AES encryption routines. # # AES was chosen because it is integer based and inplace so doesn't use the # heap. It is therefore a good test of raw performance and correctness of the # VM/runtime. It can be used to measure threading performance (concurrency is # in principle possible) an...
32.487179
91
0.588567
# heap. It is therefore a good test of raw performance and correctness of the # VM/runtime. It can be used to measure threading performance (concurrency is # in principle possible) and correctness (it's non trivial for the encryption/ t_idx = 0 if i % nk == 0: t[0] = aes_s_box(w[w_idx...
true
true
f73da55b24da55a3ee69d0f00e5ee751c2b39a47
32,856
py
Python
venv/lib/python3.8/site-packages/pyobs/events.py
landrs-toolkit/PySOSA
1993668bd75bc882286da818955a40dd01d2f7c6
[ "Apache-2.0" ]
1
2019-12-21T06:08:35.000Z
2019-12-21T06:08:35.000Z
venv/lib/python3.8/site-packages/pyobs/events.py
landrs-toolkit/PySOSA
1993668bd75bc882286da818955a40dd01d2f7c6
[ "Apache-2.0" ]
7
2020-06-23T15:07:12.000Z
2020-07-14T13:50:50.000Z
venv/lib/python3.8/site-packages/pyobs/events.py
landrs-toolkit/PySOSA
1993668bd75bc882286da818955a40dd01d2f7c6
[ "Apache-2.0" ]
2
2019-11-25T06:39:46.000Z
2020-03-27T13:20:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # THIS FILE WAS GENERATED BY generate_classes.py - DO NOT EDIT # # (Generated on 2019-09-11 10:14:02.142913) # from .base_classes import BaseEvent class SwitchScenes(BaseEvent): """ Indicates a scene change. :Returns: *scene_name* ...
25.891253
111
0.572163
from .base_classes import BaseEvent class SwitchScenes(BaseEvent): def __init__(self): BaseEvent.__init__(self) self._name = 'SwitchScenes' self._returns['scene-name'] = None self._returns['sources'] = None @property def scene_name(self): return sel...
true
true