hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
6b8b3dd970c2381dc6fab482c6f4e706bdbe8c46
25
py
Python
core_dev/datetime_/__init__.py
alexzanderr/_core-dev
831f69dad524e450c4243b1dd88f26de80e1d444
[ "MIT" ]
null
null
null
core_dev/datetime_/__init__.py
alexzanderr/_core-dev
831f69dad524e450c4243b1dd88f26de80e1d444
[ "MIT" ]
null
null
null
core_dev/datetime_/__init__.py
alexzanderr/_core-dev
831f69dad524e450c4243b1dd88f26de80e1d444
[ "MIT" ]
null
null
null
from .datetime_ import *
12.5
24
0.76
0
0
0
0
0
0
0
0
0
0
6b8ba5e38a11991c07975fe01f68ff669ab459c0
811
py
Python
badx12/common/click.py
agaddis02/badX12
7362a4d9629e570be8cd3b42af5210cda39e0efc
[ "MIT" ]
null
null
null
badx12/common/click.py
agaddis02/badX12
7362a4d9629e570be8cd3b42af5210cda39e0efc
[ "MIT" ]
null
null
null
badx12/common/click.py
agaddis02/badX12
7362a4d9629e570be8cd3b42af5210cda39e0efc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import Iterable import click def add_commands(click_group, commands): if not isinstance(click_group, click.core.Group): raise TypeError( f"add_commands() expects click.core.Group for click_group, got {type(click_group)}" ) if not isinstanc...
30.037037
103
0.633785
0
0
0
0
0
0
0
0
270
0.332922
6b8bb153d1b8da0157b44ec53267ac54fdb21350
1,706
py
Python
snakebids/admin.py
LouFel/snakebids
6fdf64fb65471868b9cc9d55fd77654096c07686
[ "MIT" ]
null
null
null
snakebids/admin.py
LouFel/snakebids
6fdf64fb65471868b9cc9d55fd77654096c07686
[ "MIT" ]
2
2022-02-11T22:08:36.000Z
2022-02-11T22:08:47.000Z
snakebids/admin.py
kaitj/snakebids
f205ab279223e9f5bb87ba170fe29d8324bc7484
[ "MIT" ]
null
null
null
"""Script to generate a Snakebids project.""" import argparse import os from pathlib import Path from cookiecutter.main import cookiecutter import snakebids from snakebids.app import SnakeBidsApp from snakebids.cli import add_dynamic_args def create_app(_): cookiecutter(os.path.join(snakebids.__path__[0], "pro...
28.433333
88
0.715709
0
0
0
0
0
0
0
0
558
0.327081
6b8c93d8422ed7233811fd0f7290cad989fa723c
4,500
py
Python
estimateHR_unittest.py
RingoYen85/HeartRateMonitor
8bbecfd0969c1a91b8a5c3117869ac248c31cf17
[ "MIT" ]
null
null
null
estimateHR_unittest.py
RingoYen85/HeartRateMonitor
8bbecfd0969c1a91b8a5c3117869ac248c31cf17
[ "MIT" ]
null
null
null
estimateHR_unittest.py
RingoYen85/HeartRateMonitor
8bbecfd0969c1a91b8a5c3117869ac248c31cf17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 23 21:54:45 2016 @author: ringoyen """ import numpy as np import unittest class tester(unittest.TestCase): def test_low_pass_filter(self): """ Unit Test for a moving averager (convolution) to serve as a low pass filter to remove noise :retur...
31.690141
112
0.607556
4,325
0.961111
0
0
0
0
0
0
1,466
0.325778
6b8d70280f0cb0d3625c06ba1c69384706890a4a
2,602
py
Python
sequence/fastx_translate.py
shenwei356/bio_scripts
703cec8d21903516346e2aae4d77d23385c30905
[ "MIT" ]
94
2015-03-26T04:32:29.000Z
2022-03-22T13:44:11.000Z
sequence/fastx_translate.py
xinwang-bio/bio_scripts
64fda3a72ba14edf87952a809c3d52871f155cca
[ "MIT" ]
null
null
null
sequence/fastx_translate.py
xinwang-bio/bio_scripts
64fda3a72ba14edf87952a809c3d52871f155cca
[ "MIT" ]
70
2015-04-01T10:27:05.000Z
2021-11-08T01:46:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # https://github.com/shenwei356/bio_scripts from __future__ import print_function import argparse import gzip import logging import os import re import sys from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord def parse_args(): parser = a...
35.162162
130
0.601076
0
0
0
0
0
0
0
0
815
0.313221
6b8db4952ad5c55aa4611431b1886cf54a31f84a
682
py
Python
Assignment 3. Paxos/Simulation/Network/Network.py
WailAbou/Distributed-Processing
46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b
[ "MIT" ]
null
null
null
Assignment 3. Paxos/Simulation/Network/Network.py
WailAbou/Distributed-Processing
46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b
[ "MIT" ]
null
null
null
Assignment 3. Paxos/Simulation/Network/Network.py
WailAbou/Distributed-Processing
46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b
[ "MIT" ]
null
null
null
from Simulation.Network.Actions import send_message class Network: def __init__(self, proposers, acceptors): self.queue = [] self.proposers = proposers self.acceptors = acceptors def queue_message(self, message): self.queue.append(message) def extract_message(self): ...
27.28
77
0.651026
627
0.919355
0
0
0
0
0
0
56
0.082111
6b8defc3a09a8d03e2adb7a13517e975cbd888f3
697
py
Python
test/test_db_matches_ui.py
ProOksana/python_training
2174f08ebd52905bf28e7b32baf1b1401a05f79e
[ "Apache-2.0" ]
null
null
null
test/test_db_matches_ui.py
ProOksana/python_training
2174f08ebd52905bf28e7b32baf1b1401a05f79e
[ "Apache-2.0" ]
null
null
null
test/test_db_matches_ui.py
ProOksana/python_training
2174f08ebd52905bf28e7b32baf1b1401a05f79e
[ "Apache-2.0" ]
null
null
null
from model.contact import Contacts def test_contacts_list(app, db): ui_list = app.contact.get_contacts_list() def clean(contact): return (Contacts(id=id, firstname=contact.firstname, middlename=contact.middlename, lastname=contact.lastname, nickname=contact.nickname, company=...
58.083333
186
0.734577
0
0
0
0
0
0
0
0
0
0
6b904ccd419a7dbc39df362dd10c4cbe6f6a6b80
859
py
Python
DjangoBlog/account/models.py
marasiali/Django-bog
faac81275d27b501dda0be32c82200c80941b7de
[ "MIT" ]
null
null
null
DjangoBlog/account/models.py
marasiali/Django-bog
faac81275d27b501dda0be32c82200c80941b7de
[ "MIT" ]
null
null
null
DjangoBlog/account/models.py
marasiali/Django-bog
faac81275d27b501dda0be32c82200c80941b7de
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import AbstractUser class User(AbstractUser): is_author = models.BooleanField(default=False, verbose_name='نویسنده', help_text='نشان میدهد که آیا این کاربر میتواند مطلب ارسال کند یا خیر.') premium_date = models.Date...
35.791667
146
0.735739
856
0.879753
0
0
0
0
0
0
261
0.268243
6b90cf31e44e1e7e27466082bc57a29d138e03cf
7,345
py
Python
pyfilter/test/test_filter.py
zkscpqm/pyfilter
39c284681ec6f377059907b75346028d99cbdd4c
[ "MIT" ]
null
null
null
pyfilter/test/test_filter.py
zkscpqm/pyfilter
39c284681ec6f377059907b75346028d99cbdd4c
[ "MIT" ]
1
2021-04-28T18:40:13.000Z
2021-04-28T18:40:13.000Z
pyfilter/test/test_filter.py
zkscpqm/pyfilter
39c284681ec6f377059907b75346028d99cbdd4c
[ "MIT" ]
null
null
null
import unittest import os from typing import Any, Text, NoReturn, Set, Union from parameterized import parameterized from pyfilter import FilterContext from pyfilter import TextFilter class TestFilter(unittest.TestCase): def setUp(self) -> Any: self.any_inclusion_keywords: Set[Text] = {'dog', 'cat'} ...
53.224638
116
0.644384
7,155
0.974132
0
0
2,987
0.406671
0
0
1,484
0.202042
6b90ec08ade0528601d7d5711be814ac665fc15d
1,694
py
Python
song_bond.py
skullydazed/PyRoombaAdapter
88824e91b0f0cec008b16cfaa5a62a6546f1226e
[ "MIT" ]
null
null
null
song_bond.py
skullydazed/PyRoombaAdapter
88824e91b0f0cec008b16cfaa5a62a6546f1226e
[ "MIT" ]
null
null
null
song_bond.py
skullydazed/PyRoombaAdapter
88824e91b0f0cec008b16cfaa5a62a6546f1226e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """James Bond Theme, Composed by Monty Norman Adapted for Roomba by Zach White """ from time import sleep from pyroombaadapter import PyRoombaAdapter notes0 = ( # note, duration 'B3', '1/2', 'C4', '1/2', 'C#4', '1/2', 'C4', '1/2', 'B3', '1/2', 'C4', '1/2', 'C#4',...
18.822222
57
0.485832
0
0
0
0
0
0
0
0
714
0.421488
6b91473adaa0d54ec3df16837118bb8c64722382
227
py
Python
users/views.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
2
2021-04-11T11:59:51.000Z
2021-04-12T06:56:23.000Z
users/views.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
8
2021-04-10T10:40:27.000Z
2022-01-25T16:32:22.000Z
users/views.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.views import generic from . import models def profile_view(request): return render(request, "users/profile.html")
22.7
57
0.806167
0
0
0
0
0
0
0
0
20
0.088106
6b934399f266b4f9c4b7a0180b20fcdaa634e13b
4,263
py
Python
tests/conftest.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
13
2021-12-11T11:52:32.000Z
2022-03-11T12:58:56.000Z
tests/conftest.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
1
2021-12-19T19:15:29.000Z
2021-12-26T14:09:16.000Z
tests/conftest.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
1
2022-01-10T15:01:04.000Z
2022-01-10T15:01:04.000Z
from pathlib import Path import sys import time # add parent dir of imxpy sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from easydict import EasyDict as edict import pytest from imx_client import IMXClient from imx_objects import * def random_number(): import random return random.randint(0...
21.861538
84
0.697162
0
0
277
0.064978
3,439
0.806709
0
0
1,052
0.246775
6b93b639b40dce2081a3f1509a8777312189b2f5
73
py
Python
airbyte-integrations/connectors/source-twilio-singer/source_twilio_singer/__init__.py
rajatariya21/airbyte
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
[ "MIT" ]
2
2021-03-02T09:17:41.000Z
2021-03-02T11:02:23.000Z
airbyte-integrations/connectors/source-twilio-singer/source_twilio_singer/__init__.py
rajatariya21/airbyte
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
[ "MIT" ]
4
2021-09-01T00:33:50.000Z
2022-02-27T16:13:46.000Z
airbyte-integrations/connectors/source-twilio-singer/source_twilio_singer/__init__.py
rajatariya21/airbyte
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
[ "MIT" ]
1
2021-07-02T15:08:53.000Z
2021-07-02T15:08:53.000Z
from .source import SourceTwilioSinger __all__ = ["SourceTwilioSinger"]
18.25
38
0.808219
0
0
0
0
0
0
0
0
20
0.273973
6b93c4cb81d74f0acde8f0cc82aaa2e1626a119a
1,088
py
Python
off_policy_rl/off_policy_rl/utils/epoch.py
dti-research/ur-learning-shifting-for-grasping
2dfecf6b2dbe67b65af00fc0ae5f73be2cb8a801
[ "BSD-3-Clause" ]
1
2021-04-12T07:04:26.000Z
2021-04-12T07:04:26.000Z
off_policy_rl/off_policy_rl/utils/epoch.py
dti-research/ur-learning-shifting-for-grasping
2dfecf6b2dbe67b65af00fc0ae5f73be2cb8a801
[ "BSD-3-Clause" ]
1
2021-11-10T15:51:15.000Z
2021-11-10T15:51:15.000Z
off_policy_rl/off_policy_rl/utils/epoch.py
dti-research/ur-learning-shifting-for-grasping
2dfecf6b2dbe67b65af00fc0ae5f73be2cb8a801
[ "BSD-3-Clause" ]
null
null
null
from typing import List import numpy as np from off_policy_rl.utils.selection_method import SelectionMethod class Epoch: def __init__( self, number_episodes: int, selection_methods: List[SelectionMethod], probabilities: List[float] = None ): self.number_episodes = numb...
35.096774
106
0.661765
976
0.897059
0
0
0
0
0
0
135
0.124081
6b940f509f4451581eb06a07caf3cae0277d933c
306
py
Python
nodestack/settings_example.py
chriscslaughter/nodestack
1905d5fd7d0e208287ceb6016852ada6d32b0984
[ "MIT" ]
null
null
null
nodestack/settings_example.py
chriscslaughter/nodestack
1905d5fd7d0e208287ceb6016852ada6d32b0984
[ "MIT" ]
3
2020-02-11T23:15:56.000Z
2021-06-10T20:52:54.000Z
nodestack/settings_example.py
chriscslaughter/nodestack
1905d5fd7d0e208287ceb6016852ada6d32b0984
[ "MIT" ]
null
null
null
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': '', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': 5432 } } REDIS_HOST = '18.215.184.182' REDIS_PORT = 6379 REDIS_PASSWORD = 'vwTe6yLaw5hX9dIdbfW0' REDIS_DB = 0
19.125
59
0.53268
0
0
0
0
0
0
0
0
137
0.447712
6b947dc36dc1850a2e02965bc2a02ae7eeca3cad
11,761
py
Python
model/deterministic_decoder.py
illc-uva/deep-generative-lm
c65bdf9d72e7d9d4e02576b1e84bce623725a0cd
[ "MIT" ]
26
2019-04-18T13:07:34.000Z
2021-03-24T11:55:26.000Z
model/deterministic_decoder.py
illc-uva/deep-generative-lm
c65bdf9d72e7d9d4e02576b1e84bce623725a0cd
[ "MIT" ]
null
null
null
model/deterministic_decoder.py
illc-uva/deep-generative-lm
c65bdf9d72e7d9d4e02576b1e84bce623725a0cd
[ "MIT" ]
9
2019-04-18T23:00:46.000Z
2021-09-23T15:34:56.000Z
""" A deterministic decoder. """ import numpy as np import sys import os.path as osp from collections import defaultdict from warnings import warn import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence # We include the path of the t...
45.762646
122
0.596803
11,026
0.937505
0
0
338
0.028739
0
0
4,134
0.351501
6b96bddabe2ed1e571fa0fb67e8fe24ad3b42daf
2,316
py
Python
trove/tests/scenario/runners/instance_force_delete_runners.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
244
2015-01-01T12:04:44.000Z
2022-03-25T23:38:39.000Z
trove/tests/scenario/runners/instance_force_delete_runners.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
6
2015-08-18T08:19:10.000Z
2022-03-05T02:32:36.000Z
trove/tests/scenario/runners/instance_force_delete_runners.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
178
2015-01-02T15:16:58.000Z
2022-03-23T03:30:20.000Z
# Copyright 2016 Tesora Inc. # 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 a...
38.6
78
0.702936
1,481
0.639465
0
0
0
0
0
0
747
0.322539
6b976f533f13bffac48ebcfedaef5b78d985ab9b
489
py
Python
tests/providers/test_twilio.py
yaakov-github/notifiers
ae204bc08fd9efa06597e5e2cf30ad0a305c94bb
[ "MIT" ]
2
2019-10-06T01:53:42.000Z
2019-11-19T07:52:17.000Z
tests/providers/test_twilio.py
Delgan/notifiers
8dd2a8aaa81a9433034a8f347d984c8aa80be9af
[ "MIT" ]
null
null
null
tests/providers/test_twilio.py
Delgan/notifiers
8dd2a8aaa81a9433034a8f347d984c8aa80be9af
[ "MIT" ]
null
null
null
import pytest provider = 'twilio' class TestTwilio: def test_twilio_metadata(self, provider): assert provider.metadata == { 'base_url': 'https://api.twilio.com/2010-04-01/Accounts/{}/Messages.json', 'name': 'twilio', 'site_url': 'https://www.twilio.com/' } ...
23.285714
86
0.570552
451
0.92229
0
0
166
0.339468
0
0
142
0.290389
6b97a216ca7bed17169dea75598a8db7b38aa938
3,225
py
Python
tests/conftest.py
jeromedockes/neuroquery_image_search
2222caf464de84694273a494ec2d00071b3d14a2
[ "BSD-3-Clause" ]
3
2021-01-26T20:27:24.000Z
2021-09-28T19:51:36.000Z
tests/conftest.py
jeromedockes/neuroquery_image_search
2222caf464de84694273a494ec2d00071b3d14a2
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
jeromedockes/neuroquery_image_search
2222caf464de84694273a494ec2d00071b3d14a2
[ "BSD-3-Clause" ]
1
2021-01-21T22:27:16.000Z
2021-01-21T22:27:16.000Z
from pathlib import Path import tempfile from unittest.mock import MagicMock import pytest import numpy as np import pandas as pd from scipy import sparse import nibabel import nilearn from nilearn.datasets import _testing from nilearn.datasets._testing import request_mocker # noqa: F401 def make_fake_img(): r...
32.25
78
0.68093
0
0
0
0
930
0.288372
0
0
447
0.138605
6b9b875fc942d57331cb053f791fdadd062c380c
515
py
Python
src/handlers/os.py
rodones/daemon
5bcc680962274390ab1a7ca36eb3a621d4a2144d
[ "BSD-3-Clause" ]
null
null
null
src/handlers/os.py
rodones/daemon
5bcc680962274390ab1a7ca36eb3a621d4a2144d
[ "BSD-3-Clause" ]
null
null
null
src/handlers/os.py
rodones/daemon
5bcc680962274390ab1a7ca36eb3a621d4a2144d
[ "BSD-3-Clause" ]
null
null
null
from core.handler import handle import os from datetime import datetime import psutil @handle("os/name") def get_name(): return os.uname().nodename @handle("os/kernel") def get_kernel(): return os.uname().release @handle("os/user") def get_user(): return psutil.Process().username() @handle("os/boott...
17.166667
83
0.699029
0
0
0
0
414
0.803883
0
0
75
0.145631
6b9bad3a40c3c22732dfc5fe66b2f8ecdcf3a1fd
1,162
py
Python
mall_spider/spiders/actions/action.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
12
2019-06-06T12:23:08.000Z
2021-06-15T17:50:07.000Z
mall_spider/spiders/actions/action.py
524243642/mall_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
3
2021-03-31T19:02:47.000Z
2022-02-11T03:43:15.000Z
mall_spider/spiders/actions/action.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
5
2019-09-17T03:55:56.000Z
2020-12-18T03:34:03.000Z
# coding: utf-8 import traceback from abc import ABCMeta, abstractmethod from mall_spider.spiders.actions.executable import Executable class Action(Executable): __metaclass__ = ABCMeta def execute(self, context): self.on_create(context=context) self.on_start(context=context) try: ...
22.784314
70
0.623924
1,023
0.880379
0
0
379
0.326162
0
0
60
0.051635
6b9e0d5209b7b62f3db7419587e03282debb98ce
524
py
Python
Praticas/pratica03/latitude_longitude.py
andrepinto42/Processamento-de-Linguagens
98facba0d1c9ca751743b1c83dca7f441aa182e9
[ "MIT" ]
1
2022-03-18T21:39:47.000Z
2022-03-18T21:39:47.000Z
Praticas/pratica03/latitude_longitude.py
andrepinto42/Processamento-de-Linguagens
98facba0d1c9ca751743b1c83dca7f441aa182e9
[ "MIT" ]
null
null
null
Praticas/pratica03/latitude_longitude.py
andrepinto42/Processamento-de-Linguagens
98facba0d1c9ca751743b1c83dca7f441aa182e9
[ "MIT" ]
null
null
null
import re import sys real_num = r'[+-]?\d+(?:\.\d+)?' # Falta colocar as os paratenses para identificar o grupo correto coord = rf'\(({real_num}),\s*({real_num})\)' for line in sys.stdin: line = re.sub(coord,r"<point lat='\1', lon='\2' />",line) if (line): print(line) quit() # Tambem dá para e...
22.782609
71
0.574427
0
0
0
0
0
0
0
0
277
0.527619
6b9f0ffcb6c75b079a5eb98125aa38eb4f61fd76
375
py
Python
includes/prav_modules/test2.py
praveen868686/DAGAirflow-with-Python
483fffc2e7f987e523ae3653a90869a67cdad886
[ "MIT" ]
null
null
null
includes/prav_modules/test2.py
praveen868686/DAGAirflow-with-Python
483fffc2e7f987e523ae3653a90869a67cdad886
[ "MIT" ]
null
null
null
includes/prav_modules/test2.py
praveen868686/DAGAirflow-with-Python
483fffc2e7f987e523ae3653a90869a67cdad886
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def see(): m = pd.read_csv('C:/dag/Expenditure.csv') #m = pd.read_csv('C:\dag\Expendture.csv') # print(m.head()) countt= m ['Category'].value_counts(sort=True, ascending=True).to_frame() print(countt) pivottable= m.pivot_table(index=['Category'], values=[...
25
83
0.656
0
0
0
0
0
0
0
0
115
0.306667
6ba002cacb0aea0efbea0d09c9f0563aeccf4db3
4,134
py
Python
MLP/generate_args.py
AMNoureldin/COMP551-HW4
0c855372862300cc0454f144bb40b2e72ba93861
[ "Apache-2.0" ]
15
2021-03-18T03:00:15.000Z
2022-02-28T04:42:54.000Z
MLP/generate_args.py
AMNoureldin/COMP551-HW4
0c855372862300cc0454f144bb40b2e72ba93861
[ "Apache-2.0" ]
null
null
null
MLP/generate_args.py
AMNoureldin/COMP551-HW4
0c855372862300cc0454f144bb40b2e72ba93861
[ "Apache-2.0" ]
2
2021-11-05T15:50:20.000Z
2022-01-16T11:48:27.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.046512
94
0.618287
0
0
0
0
0
0
0
0
2,123
0.513546
6ba2a99855aee76d9f42b28ebf924f529a089bcd
854
py
Python
data/datatable.py
sisiwei/impossible-food
567e0811d5d88a83eae6dadf526bc048e7057121
[ "MIT" ]
1
2015-04-11T10:27:29.000Z
2015-04-11T10:27:29.000Z
data/datatable.py
sisiwei/impossible-food
567e0811d5d88a83eae6dadf526bc048e7057121
[ "MIT" ]
null
null
null
data/datatable.py
sisiwei/impossible-food
567e0811d5d88a83eae6dadf526bc048e7057121
[ "MIT" ]
null
null
null
import json import sys from multiprocessing import Pool DOMAIN = "TM" def read_file(year): data = [] with open("%s-%s.json" % (DOMAIN, year), 'rb') as f: j = json.loads(f.read()) for row in j: data.append({ 'domain': row[1], 'country': row[2], 'country_code': int(row[3]), ...
22.473684
54
0.539813
0
0
0
0
0
0
0
0
213
0.249415
6ba35922a8da9226341017db55248451774263a5
38,712
py
Python
EasyRegression.py
pankajchejara23/EasyRegression
7f76d92c4a9d056a83bde6abc2fd6eb980602e44
[ "MIT" ]
1
2021-04-19T16:47:27.000Z
2021-04-19T16:47:27.000Z
EasyRegression.py
pankajchejara23/EasyRegression
7f76d92c4a9d056a83bde6abc2fd6eb980602e44
[ "MIT" ]
null
null
null
EasyRegression.py
pankajchejara23/EasyRegression
7f76d92c4a9d056a83bde6abc2fd6eb980602e44
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import librosa import seaborn as sns from sklearn.model_selection import train_test_split import math from sklearn.model_selection import LeaveOneGroupOut from sklearn.metrics import mean_squared_error, mean_absolute_error import traceback import statistics # Regress...
41.139214
457
0.517462
36,259
0.936635
0
0
0
0
0
0
10,166
0.262606
6ba459622ba98919bfa10ab43ed05d7011713aea
469
py
Python
Moderate/Prime Numbers/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/Prime Numbers/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/Prime Numbers/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: n = int(line) primes = set([2]) num = 3 while num < n: if all(num % i != 0 for i in primes): primes = set(list(pri...
26.055556
52
0.45629
0
0
0
0
0
0
0
0
18
0.03838
6ba4e572e52707590a52608ce4cc12b513909627
2,117
py
Python
gemtown/users/serializers.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/users/serializers.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/users/serializers.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from rest_framework import serializers from gemtown.modelphotos import models as modelphoto_models from gemtown.modelers import models as modeler_models from gemtown.musicians import models as musician_models from . import models import time class TimestampField(serializers.Field): def to_representation(self, valu...
25.817073
60
0.561171
1,860
0.878602
0
0
0
0
0
0
308
0.145489
6ba6fc313f5304844d20f830ba30be7f1409ef35
8,294
py
Python
neaps-api/neaps_lib/delivery_time_test.py
HotelsDotCom/neaps
4222016d60d27a168f4fb5569d696ec1731f8698
[ "Apache-2.0" ]
6
2018-01-18T11:31:41.000Z
2019-11-11T19:56:06.000Z
neaps-api/neaps_lib/delivery_time_test.py
HotelsDotCom/neaps
4222016d60d27a168f4fb5569d696ec1731f8698
[ "Apache-2.0" ]
null
null
null
neaps-api/neaps_lib/delivery_time_test.py
HotelsDotCom/neaps
4222016d60d27a168f4fb5569d696ec1731f8698
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 Expedia Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
22.176471
74
0.437545
424
0.051121
0
0
0
0
0
0
7,244
0.873402
6ba78991985070dc29bb6e09cbc030857e571e30
6,702
py
Python
alexa_skills/cis_diagnosis.py
paramraghavan/sls-py-alexa-color-picker
da4752442dd4ead19832930103adb9d81cfc163a
[ "MIT" ]
null
null
null
alexa_skills/cis_diagnosis.py
paramraghavan/sls-py-alexa-color-picker
da4752442dd4ead19832930103adb9d81cfc163a
[ "MIT" ]
null
null
null
alexa_skills/cis_diagnosis.py
paramraghavan/sls-py-alexa-color-picker
da4752442dd4ead19832930103adb9d81cfc163a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from ask_sdk_core.skill_builder import SkillBuilder from ask_sdk_core.utils import is_request_type, is_intent_name from ask_sdk_core.handler_input import HandlerInput from ask_sdk_model import Response from ask_sdk_model.ui import SimpleCard import os from alexa_skills import aw...
32.852941
110
0.716801
337
0.050283
0
0
4,198
0.62638
0
0
2,389
0.356461
6ba87f59c7f750ad17a00d25ed32add4e2688d55
9,360
py
Python
layouts/params.py
JAOP1/pyristicLab
fb3f0eb88af5b964bf91875e20fb3c42b04e257d
[ "MIT" ]
null
null
null
layouts/params.py
JAOP1/pyristicLab
fb3f0eb88af5b964bf91875e20fb3c42b04e257d
[ "MIT" ]
null
null
null
layouts/params.py
JAOP1/pyristicLab
fb3f0eb88af5b964bf91875e20fb3c42b04e257d
[ "MIT" ]
null
null
null
""" --------------------------------------------------------------------- Continuos Optimization Problems --------------------------------------------------------------------- """ """ --------------------------------------------------------------------- GA configuration ------...
25.57377
72
0.290278
0
0
0
0
0
0
0
0
3,807
0.405561
6ba8948db01a555810296ad83a1297622916c86e
988
py
Python
armautils_cli/smdimerge.py
KoffeinFlummi/ArmaUtils
2f1fdc8fb561fb54077f3c328d7a788e75c78dad
[ "MIT" ]
1
2015-02-19T17:31:17.000Z
2015-02-19T17:31:17.000Z
armautils_cli/smdimerge.py
KoffeinFlummi/ArmaUtils
2f1fdc8fb561fb54077f3c328d7a788e75c78dad
[ "MIT" ]
null
null
null
armautils_cli/smdimerge.py
KoffeinFlummi/ArmaUtils
2f1fdc8fb561fb54077f3c328d7a788e75c78dad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np from PIL import Image def smdimerge(pargs, oargs): if len(pargs) != 3: return -1 path_spec, path_gloss, path_target = pargs try: spec = Image.open(path_spec).convert("RGBA") gloss = Image.open(path_gloss).convert("RGBA") except: ...
23.52381
72
0.601215
0
0
0
0
0
0
0
0
213
0.215587
6ba92406854249e5b9f75ef7a1b017bf6c889193
932
py
Python
logstash-pruner/prune_logs.py
wuvt/containers
729469c4e878027da589afb9b37d61de104a5713
[ "0BSD" ]
1
2017-09-16T04:54:33.000Z
2017-09-16T04:54:33.000Z
logstash-pruner/prune_logs.py
wuvt/containers
729469c4e878027da589afb9b37d61de104a5713
[ "0BSD" ]
null
null
null
logstash-pruner/prune_logs.py
wuvt/containers
729469c4e878027da589afb9b37d61de104a5713
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 import datetime import os import requests import sys if sys.version_info[0] >= 3: import urllib.parse as urllib else: import urllib endpoint = os.environ['ELASTICSEARCH_URL'] username = os.environ['ELASTICSEARCH_USERNAME'] password = os.environ['ELASTICSEARCH_PASSWORD'] prune_start = datet...
29.125
70
0.604077
0
0
0
0
0
0
0
0
128
0.137339
6baa9c56ec82f3de3e848ccc5b1bc7bfad503442
7,001
py
Python
detect_motor_test3.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
detect_motor_test3.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
detect_motor_test3.py
binghaohuang1/object-detective-visual-tracking
e61680a771dc13a006113d96965e59ff1bc3ce6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python #!coding=utf-8 import rospy import numpy as np import PIL.Image as pilimage from sensor_msgs.msg import CompressedImage from sensor_msgs.msg import Image from std_msgs.msg import Float64 from cv_bridge import CvBridge, CvBridgeError import cv2 import time from yolo import YOLO from sensor_msgs.ms...
32.868545
114
0.571347
0
0
0
0
0
0
0
0
1,512
0.204684
6baa9dca059c9918a2a7be0aeb44d2c0167aca74
1,841
py
Python
venv/lib/python3.8/site-packages/ansible/utils/collection_loader/_collection_meta.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible/utils/collection_loader/_collection_meta.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/ansible/utils/collection_loader/_collection_meta.py
saeedya/docker-ansible
6fb0cfc6bc4a5925b21380952a5a4502ec02119a
[ "Apache-2.0" ]
null
null
null
# (c) 2019 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # CAUTION: There are two implementations of the collection loader. # They must be kept functionally identical, although their implementations may differ. # # 1) The controller implementation...
48.447368
125
0.76969
0
0
0
0
0
0
0
0
1,319
0.716458
6bab2761f4e78590b87af2ab8a2f23f2ce26ee32
69
py
Python
tests/test_resources/test_jobs_package/test_jobs_package/throw_an_exception_job.py
ni/hoplite
bc1b01aa08ba21daa36f46b06000b62890096787
[ "MIT" ]
16
2016-02-25T16:41:28.000Z
2020-11-07T13:27:40.000Z
tests/test_resources/test_jobs_package/test_jobs_package/throw_an_exception_job.py
ni/hoplite
bc1b01aa08ba21daa36f46b06000b62890096787
[ "MIT" ]
null
null
null
tests/test_resources/test_jobs_package/test_jobs_package/throw_an_exception_job.py
ni/hoplite
bc1b01aa08ba21daa36f46b06000b62890096787
[ "MIT" ]
8
2016-02-11T16:44:52.000Z
2020-01-23T19:45:37.000Z
def run(config, status): raise TypeError("THE SKY IS FALLING!!")
23
43
0.681159
0
0
0
0
0
0
0
0
22
0.318841
6baba2b5a50d24a7e67ce4b5e3c206e3e6b416ad
7,184
py
Python
git_pull_all.py
searKing/git-pull-all
b77a1b0461cd00a5f3ccd48253a12674557302b6
[ "MIT" ]
null
null
null
git_pull_all.py
searKing/git-pull-all
b77a1b0461cd00a5f3ccd48253a12674557302b6
[ "MIT" ]
null
null
null
git_pull_all.py
searKing/git-pull-all
b77a1b0461cd00a5f3ccd48253a12674557302b6
[ "MIT" ]
null
null
null
#!/usr/bin/python import git from git import * import threading import os import sys import getopt from enum import Enum class GitCommandType(Enum): pull = 1 push = 2 nop = 3 def yes_or_no(msg: str): yes_no = input(msg + " ? [Y]es or [n]o?") yes_no = yes_no.lower() if yes_no == "yes" or yes...
39.256831
121
0.579065
140
0.019488
0
0
0
0
0
0
1,027
0.142957
6bac63dfef6fa2d50e75637d8cb0e279922534d7
1,943
py
Python
03-dearsanta/dateconvert.py
hugovk/NaNoGenMo-2016
e71b333173b221066f56adcdea4fe8cfdfd4e7c7
[ "FTL" ]
null
null
null
03-dearsanta/dateconvert.py
hugovk/NaNoGenMo-2016
e71b333173b221066f56adcdea4fe8cfdfd4e7c7
[ "FTL" ]
null
null
null
03-dearsanta/dateconvert.py
hugovk/NaNoGenMo-2016
e71b333173b221066f56adcdea4fe8cfdfd4e7c7
[ "FTL" ]
null
null
null
#!/usr/bin/env python3 """ Take a timestamp like: 25/11/2016 23:05:03 Convert it to: 25 November 2016, 13:05 PST 25 November 2016, 16:05 EST 25 November 2016, 21:05 GMT 25 November 2016, 21:05 UTC 25 November 2016, 23:05 EET 26 November 2016, 02:35 IST 26 November 2016, 05:05 CST 26 November 2016, 06:05 JST 26 Novembe...
25.906667
74
0.662378
0
0
0
0
0
0
0
0
819
0.421513
6bad66e09e43cf21ce9d5331e922f80d18955982
799
py
Python
priv_tube/database/repositories/system_flags.py
ActionCactus/prive_tube
d6d53b87e1a91248e32532a86b23f2d2f3196c58
[ "MIT" ]
null
null
null
priv_tube/database/repositories/system_flags.py
ActionCactus/prive_tube
d6d53b87e1a91248e32532a86b23f2d2f3196c58
[ "MIT" ]
null
null
null
priv_tube/database/repositories/system_flags.py
ActionCactus/prive_tube
d6d53b87e1a91248e32532a86b23f2d2f3196c58
[ "MIT" ]
null
null
null
from priv_tube.database.models.system_flags import SystemFlags as Model from priv_tube.database import db class SystemFlags: """ Repository for interacting with the `system_flags` database table responsible for system-wide toggles. """ @staticmethod def is_enabled(setting_name: str) -> bool: ...
29.592593
106
0.693367
690
0.863579
0
0
531
0.664581
0
0
118
0.147685
6baec59b9ec0b23b54791668f80cdb75f7f78fe2
2,899
py
Python
borisat/models/rd/unnested.py
CircleOnCircles/borisat
4f170ee1a0b11f06b1c3e99f42823061d7e0028e
[ "MIT" ]
null
null
null
borisat/models/rd/unnested.py
CircleOnCircles/borisat
4f170ee1a0b11f06b1c3e99f42823061d7e0028e
[ "MIT" ]
1
2020-10-10T08:18:29.000Z
2020-10-10T08:18:29.000Z
borisat/models/rd/unnested.py
CircleOnCircles/borisat
4f170ee1a0b11f06b1c3e99f42823061d7e0028e
[ "MIT" ]
null
null
null
""" { 'vNID': { 'anyType': [ '0105558096348' ] }, 'vtin': None, 'vtitleName': { 'anyType': [ 'บริษัท' ] }, 'vName': { 'anyType': [ 'โฟลว์แอคเคาท์ จำกัด' ] }, 'vSurname': { 'anyT...
19.993103
137
0.397378
0
0
0
0
0
0
0
0
2,203
0.707223
6bb2d695f2072ac119b9190737ac6f9ea82daea3
7,969
py
Python
Kernelized-Rank-Learning-master/dataset.py
zsyasd/drug-response-test
65bff3423a0cc972dd4664b7f547767c1f10f635
[ "MIT" ]
1
2021-01-22T04:06:57.000Z
2021-01-22T04:06:57.000Z
Kernelized-Rank-Learning-master/dataset.py
zsyasd/drug-response-test
65bff3423a0cc972dd4664b7f547767c1f10f635
[ "MIT" ]
null
null
null
Kernelized-Rank-Learning-master/dataset.py
zsyasd/drug-response-test
65bff3423a0cc972dd4664b7f547767c1f10f635
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import urllib2 import zipfile import numpy as np import pandas as pd from openpyxl import load_workbook from misc import intersect_index def main(): # Read URLs to GDSC datasets urls_file = sys.argv[1] urls = [] with open(urls_file) as f: for line i...
40.866667
136
0.677626
0
0
0
0
0
0
0
0
1,523
0.191116
6bb3065e877b04d04efa39f8cb2dec584e2b65df
3,696
py
Python
app/utils/logger.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
6
2021-03-27T08:58:04.000Z
2021-05-23T17:07:09.000Z
app/utils/logger.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
2
2021-05-30T08:06:53.000Z
2021-06-02T17:02:06.000Z
app/utils/logger.py
janaSunrise/ZeroCOM
7197684ce708f080fe215b0a6e57c12836e4c0ab
[ "Apache-2.0" ]
null
null
null
# -- Imports -- from datetime import datetime from colorama import Back from rich.console import Console from .colors import get_bright_color, get_color # -- Mappings -- log_color_mapping = { "error": get_bright_color("RED"), "warning": get_bright_color("YELLOW"), "message": get_color("CYAN"), "succe...
29.806452
102
0.619589
2,674
0.723485
0
0
320
0.08658
0
0
1,217
0.329275
6bb44465b2c1e375804bcf23757d647344be8b01
1,506
py
Python
modasci/data_connector.py
ArashLab/MoDaSci
3f173a9ca686edf00a2f143814b603d4e3be9de2
[ "MIT" ]
null
null
null
modasci/data_connector.py
ArashLab/MoDaSci
3f173a9ca686edf00a2f143814b603d4e3be9de2
[ "MIT" ]
null
null
null
modasci/data_connector.py
ArashLab/MoDaSci
3f173a9ca686edf00a2f143814b603d4e3be9de2
[ "MIT" ]
1
2021-09-11T13:59:13.000Z
2021-09-11T13:59:13.000Z
from munch import Munch from .utils import import_class from .serialization import YAMLMixin from .micro_task import import_class class DataConnector(YAMLMixin): """Encapsulates a data handler along with zero or more micro tasks. With the earliest access to the underlying data (through the `values` property...
40.702703
117
0.717131
1,372
0.911023
0
0
501
0.332669
0
0
564
0.374502
6bb46fd7a793cdd2673a191ac0ee65bd9e96f260
682
py
Python
gallery/migrations/0011_auto_20161126_1821.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
19
2018-01-28T14:35:40.000Z
2020-12-04T03:04:02.000Z
gallery/migrations/0011_auto_20161126_1821.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
8
2018-06-02T14:28:28.000Z
2021-08-06T10:22:37.000Z
gallery/migrations/0011_auto_20161126_1821.py
danielsinaga1/djangonewsfix
04b84240daabb840c1e715fbade8ae15b3b0f22c
[ "BSD-3-Clause" ]
21
2018-02-25T14:07:48.000Z
2020-05-28T23:10:52.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-11-26 16:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gallery', '0010_auto_20161126_1543'), ] operations = [ migrations.AlterField...
26.230769
84
0.612903
525
0.769795
0
0
0
0
0
0
197
0.288856
6bb5785201bd7a9127918db4d2b10a17a6eb105d
1,213
py
Python
mechanic/drive_navigate_boost/drive_navigate_boost.py
oxrock/DisasterBot
36260e9ef8730edbae018ba87aa19aaad72c8814
[ "MIT" ]
11
2018-11-18T09:30:39.000Z
2021-08-24T18:47:48.000Z
mechanic/drive_navigate_boost/drive_navigate_boost.py
oxrock/DisasterBot
36260e9ef8730edbae018ba87aa19aaad72c8814
[ "MIT" ]
6
2020-01-31T11:37:56.000Z
2020-05-01T19:13:54.000Z
mechanic/drive_navigate_boost/drive_navigate_boost.py
oxrock/DisasterBot
36260e9ef8730edbae018ba87aa19aaad72c8814
[ "MIT" ]
7
2018-11-17T20:02:19.000Z
2020-05-01T15:07:13.000Z
from rlbot.agents.base_agent import SimpleControllerState from mechanic.base_mechanic import BaseMechanic from mechanic.drive_arrive_in_time import DriveArriveInTime from skeleton.util.structure import Player from util.linear_algebra import norm from util.path_finder import find_fastest_path, first_target, optional_b...
40.433333
101
0.73042
878
0.723825
0
0
0
0
0
0
159
0.13108
6bb5a3ae1541a6323233d61a349487d06b8c5714
1,907
py
Python
Simplex_Files/Dual_Problem.py
c-randall/Primal-Simplex-Method
620d7598691ed9717d2d18706c44e462f75e85c5
[ "BSD-3-Clause" ]
1
2021-12-04T12:18:17.000Z
2021-12-04T12:18:17.000Z
Simplex_Files/Dual_Problem.py
c-randall/Primal-Simplex-Method
620d7598691ed9717d2d18706c44e462f75e85c5
[ "BSD-3-Clause" ]
null
null
null
Simplex_Files/Dual_Problem.py
c-randall/Primal-Simplex-Method
620d7598691ed9717d2d18706c44e462f75e85c5
[ "BSD-3-Clause" ]
2
2020-05-30T16:38:37.000Z
2022-01-22T19:50:42.000Z
""" Created on Wed Apr 3 13:07:18 2019 Author: Corey R. Randall Summary: If the user wishes to solve the Dual Problem over the Primal one, this function provides support to appropriately convert the problem into its alternate form. """ """ Import needed modules """ "----------------...
31.262295
80
0.529628
0
0
0
0
0
0
0
0
827
0.433665
6bb5e552c9b4052b2b3d89711be844490a830473
1,764
py
Python
sgcc-client/api/my_api.py
zhanwei33/baai-federated-learning
838507f2344139e66385e1ef475a148fdeaf5c62
[ "Apache-2.0" ]
26
2020-11-30T09:42:17.000Z
2022-03-05T02:20:45.000Z
sgcc-client/api/my_api.py
AIOpenData/baai-federated-learning-helmet-baseline
8d9a1eded43a945f790d415f3ee37cda78b73c52
[ "Apache-2.0" ]
null
null
null
sgcc-client/api/my_api.py
AIOpenData/baai-federated-learning-helmet-baseline
8d9a1eded43a945f790d415f3ee37cda78b73c52
[ "Apache-2.0" ]
6
2020-12-01T13:01:15.000Z
2021-11-16T10:51:39.000Z
from api import my_api from service.federated.client import Client from utils.common_utils import Common from flask import request @my_api.route('/') def index(): return '<h1>Hello, this is client!</h1>' @my_api.route("/federated_train_size", methods=["GET", "POST"]) def federated_train_size(): return Clien...
36.75
93
0.781746
0
0
0
0
1,618
0.917234
0
0
507
0.287415
6bba5f186b30e976cabf28a647d3b87bff42e9f0
5,954
py
Python
backend/tracim_backend/tests/library/test_application_api.py
lezardrouge/tracim
713ff6066767554333e7e0b1de608ec1a7e4229c
[ "MIT" ]
null
null
null
backend/tracim_backend/tests/library/test_application_api.py
lezardrouge/tracim
713ff6066767554333e7e0b1de608ec1a7e4229c
[ "MIT" ]
null
null
null
backend/tracim_backend/tests/library/test_application_api.py
lezardrouge/tracim
713ff6066767554333e7e0b1de608ec1a7e4229c
[ "MIT" ]
null
null
null
from mock import Mock from tracim_backend.app_models.applications import Application from tracim_backend.app_models.contents import content_status_list from tracim_backend.app_models.workspace_menu_entries import all_content_menu_entry from tracim_backend.app_models.workspace_menu_entries import dashboard_menu_entry f...
41.062069
100
0.658885
5,469
0.918542
0
0
0
0
0
0
803
0.134867
6bbbb5f359c8e40427bcd1ee484f14b132a99a62
2,593
py
Python
gallery/m_cardloader.py
kengoon/KvGallery
4d946fa06479636411e027bfdebbb15c58c176cf
[ "MIT" ]
2
2021-05-28T13:37:07.000Z
2021-06-20T06:47:20.000Z
gallery/m_cardloader.py
kengoon/KvGallery
4d946fa06479636411e027bfdebbb15c58c176cf
[ "MIT" ]
null
null
null
gallery/m_cardloader.py
kengoon/KvGallery
4d946fa06479636411e027bfdebbb15c58c176cf
[ "MIT" ]
null
null
null
from kivy.event import EventDispatcher from kivy.metrics import dp from kivy.properties import ListProperty, StringProperty from kivymd.uix.card import MDCard from kivy.lang import Builder __all__ = "M_CardLoader" Builder.load_string( """ # kv_start <M_CardLoader>: md_bg_color: 0, 0, 0, 0 radius: [dp(10),...
27.585106
73
0.529117
736
0.283841
0
0
0
0
0
0
1,660
0.640185
6bbc545ddb8b337163afbee7b7359f2bf1545ca8
763
py
Python
setup.py
OpenTAI/pre-commit-hooks
e123691fa26ff26d1a5f3513ee419bec6eef02ab
[ "MIT" ]
null
null
null
setup.py
OpenTAI/pre-commit-hooks
e123691fa26ff26d1a5f3513ee419bec6eef02ab
[ "MIT" ]
1
2022-02-16T10:19:25.000Z
2022-02-16T10:19:26.000Z
setup.py
OpenTAI/pre-commit-hooks
e123691fa26ff26d1a5f3513ee419bec6eef02ab
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup # type: ignore def readme(): with open('./README.md', encoding='utf-8') as f: content = f.read() return content setup( name='pre_commit_hooks', version='0.1.0', description='A pre-commit hook for OpenTAI projects', long_description=readme(...
26.310345
68
0.647444
0
0
0
0
0
0
0
0
305
0.399738
6bbdd01acf71fc3e4336063b1dbd03093b010571
6,037
py
Python
baselines/ppo2/defaults.py
jinala/RLbaselines
3594c1edae49e1bb997057912cfb9b07531d41f4
[ "MIT" ]
null
null
null
baselines/ppo2/defaults.py
jinala/RLbaselines
3594c1edae49e1bb997057912cfb9b07531d41f4
[ "MIT" ]
null
null
null
baselines/ppo2/defaults.py
jinala/RLbaselines
3594c1edae49e1bb997057912cfb9b07531d41f4
[ "MIT" ]
1
2021-04-27T17:21:28.000Z
2021-04-27T17:21:28.000Z
import random import numpy as np def unif_range(a, b): return random.random() * (b - a) + a def rand_elem(xs): return xs[random.randrange(len(xs))] def rand_int_linspace(start, stop, num = 50): return rand_elem([int(x) for x in np.linspace(start, stop, num)]) def mujoco(): return dict( nst...
27.193694
90
0.525427
0
0
0
0
0
0
0
0
2,885
0.477886
6bc269d33439bd018df37c790bc02091c42db872
3,339
py
Python
pysnmp-with-texts/DLINK-3100-JUMBOFRAMES-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DLINK-3100-JUMBOFRAMES-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DLINK-3100-JUMBOFRAMES-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DLINK-3100-JUMBOFRAMES-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLINK-3100-JUMBOFRAMES-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:48:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version ...
107.709677
477
0.790356
0
0
0
0
0
0
0
0
1,243
0.372267
6bc31e0e8c79fc64c7885e7fdab75aafe565a7f9
204
py
Python
WebFrameDocs/src/demo/flask-demo/apps/api/common/response.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
1
2022-02-23T13:42:01.000Z
2022-02-23T13:42:01.000Z
WebFrameDocs/src/demo/flask-demo/apps/api/common/response.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
null
null
null
WebFrameDocs/src/demo/flask-demo/apps/api/common/response.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
null
null
null
def response(code=200, msg=None, data=None): # 请求响应 msg = msg if msg else "" data = data if data else "" return { "code": code, "message": msg, "data": data }
18.545455
44
0.5
0
0
0
0
0
0
0
0
39
0.183962
6bc370acc905253ff8d26ccf15fd3f3f085e6141
110
py
Python
contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py
rsouvik/bitblue
a205fb77695a26512c7eb9ba33a7379f246ec357
[ "MIT" ]
4
2019-12-08T21:02:32.000Z
2020-08-06T12:14:37.000Z
contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py
rsouvik/bitblue
a205fb77695a26512c7eb9ba33a7379f246ec357
[ "MIT" ]
5
2021-02-20T02:41:55.000Z
2021-06-01T20:04:08.000Z
contrib/pyln-spec/bolt7/pyln/spec/bolt7/gen_version.py
rsouvik/bitblue
a205fb77695a26512c7eb9ba33a7379f246ec357
[ "MIT" ]
7
2019-10-07T23:53:49.000Z
2021-11-23T18:26:30.000Z
__base_version__ = "1.0" __post_version__ = "137" __gitversion__ = "9e8e29af9b9a922eb114b2c716205d0772946e56"
27.5
59
0.827273
0
0
0
0
0
0
0
0
52
0.472727
6bc548fb933264d47e42737add228df3e1a66805
3,509
py
Python
main.py
lhs9842/KNUTNoticeBot
cfc83f2abc079a660177d00da1eab288cad021b4
[ "MIT" ]
1
2022-02-23T01:54:07.000Z
2022-02-23T01:54:07.000Z
main.py
lhs9842/KNUTNoticeBot
cfc83f2abc079a660177d00da1eab288cad021b4
[ "MIT" ]
null
null
null
main.py
lhs9842/KNUTNoticeBot
cfc83f2abc079a660177d00da1eab288cad021b4
[ "MIT" ]
1
2022-02-23T07:17:31.000Z
2022-02-23T07:17:31.000Z
import setting import requests import threading import time import sqlite3 from bs4 import BeautifulSoup from urllib import parse public_board = [["BBSMSTR_000000000059", "일반소식"], ["BBSMSTR_000000000060", "장학안내"], ["BBSMSTR_000000000055", "학사공지사항"]] # [boardId, 게시판 명칭] db_conn = sqlite3.connect("NoticeBot.db", check_...
44.987179
205
0.596751
0
0
0
0
0
0
0
0
1,423
0.368367
6bc75bfe6f3b314f3347fa4156e55b1ddf54d5f2
785
py
Python
migrate_dns/destructo.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
migrate_dns/destructo.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
9
2019-03-15T11:39:32.000Z
2019-04-30T00:59:50.000Z
migrate_dns/destructo.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
from mozdns.address_record.models import AddressRecord from mozdns.cname.models import CNAME from mozdns.domain.models import Domain from mozdns.mx.models import MX from mozdns.nameserver.models import Nameserver from mozdns.ptr.models import PTR from mozdns.soa.models import SOA from mozdns.srv.models import SRV from ...
30.192308
54
0.743949
0
0
0
0
0
0
0
0
0
0
6bc7b78982d279f5295d2beb48fb63642b3d9439
255
py
Python
mundo-1/condicoes/aumentos_multiplos.py
Murilloalves/estudos-python
804a8f646efd86840a3183b65f775168ebb6cf37
[ "MIT" ]
null
null
null
mundo-1/condicoes/aumentos_multiplos.py
Murilloalves/estudos-python
804a8f646efd86840a3183b65f775168ebb6cf37
[ "MIT" ]
null
null
null
mundo-1/condicoes/aumentos_multiplos.py
Murilloalves/estudos-python
804a8f646efd86840a3183b65f775168ebb6cf37
[ "MIT" ]
null
null
null
salario = float(input('Qual é salário do funcionário? R$')) if salario <= 1250: aumento = salario + (salario*15/100) else: aumento = salario + (salario * 10 / 100) print('Quem ganhava R${} passa a ganhar R${:.2f} agora.'.format(salario, aumento))
36.428571
82
0.662745
0
0
0
0
0
0
0
0
88
0.341085
6bc804671bae5a9914e56977a2eb91970281e7fd
319
py
Python
mysite/myapp/migrations/0003_remove_input_input2.py
Omnibyte27/Web-Collab
8f18b2f62f5497669a0f95cfbcfb128738db8c9e
[ "MIT" ]
1
2019-11-09T00:17:00.000Z
2019-11-09T00:17:00.000Z
mysite/myapp/migrations/0003_remove_input_input2.py
Omnibyte27/Web-Collab
8f18b2f62f5497669a0f95cfbcfb128738db8c9e
[ "MIT" ]
7
2020-06-06T00:19:39.000Z
2022-02-10T14:08:37.000Z
mysite/myapp/migrations/0003_remove_input_input2.py
Omnibyte27/Web-Collab
8f18b2f62f5497669a0f95cfbcfb128738db8c9e
[ "MIT" ]
1
2019-11-10T23:12:42.000Z
2019-11-10T23:12:42.000Z
# Generated by Django 2.2.5 on 2019-09-29 18:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myapp', '0002_input_input2'), ] operations = [ migrations.RemoveField( model_name='input', name='input2', ), ]
17.722222
47
0.579937
234
0.733542
0
0
0
0
0
0
88
0.275862
6bc8119faa11d3034406f5e04fb3d2f0570e36ee
127
py
Python
django_frontend_presets/presets/__init__.py
mikemenard/django-frontend-presets
0d1837415282ae43488b3e6e66889bc94f1a45b4
[ "BSD-3-Clause" ]
null
null
null
django_frontend_presets/presets/__init__.py
mikemenard/django-frontend-presets
0d1837415282ae43488b3e6e66889bc94f1a45b4
[ "BSD-3-Clause" ]
null
null
null
django_frontend_presets/presets/__init__.py
mikemenard/django-frontend-presets
0d1837415282ae43488b3e6e66889bc94f1a45b4
[ "BSD-3-Clause" ]
null
null
null
from .Bootstrap import Bootstrap from .Init import Init from .React import React from .Reset import Reset from .Vue import Vue
21.166667
32
0.80315
0
0
0
0
0
0
0
0
0
0
6bc83f48988080bc745090b0af2be2b40f9b6a5e
2,041
py
Python
inference_methods_local.py
Yaakoubi/Struct-CKN
fa007fa71310866584bdf2e5b038e6663b94e965
[ "MIT" ]
1
2021-05-30T13:42:56.000Z
2021-05-30T13:42:56.000Z
inference_methods_local.py
Yaakoubi/Struct-CKN
fa007fa71310866584bdf2e5b038e6663b94e965
[ "MIT" ]
null
null
null
inference_methods_local.py
Yaakoubi/Struct-CKN
fa007fa71310866584bdf2e5b038e6663b94e965
[ "MIT" ]
2
2022-03-16T22:00:30.000Z
2022-03-29T20:08:57.000Z
import ad3 import numpy as np from pystruct.inference.common import _validate_params class InferenceException(Exception): pass def inference_ad3_local(unary_potentials, pairwise_potentials, edges, relaxed=False, verbose=0, return_energy=False, branch_and_bound=False, ...
39.25
92
0.632533
46
0.022538
0
0
0
0
0
0
44
0.021558
6bc877d2ff907a625b44f72caf624fa66d922ec9
839
py
Python
examples/dhc/deduplication_approximated_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
2
2019-05-22T08:24:38.000Z
2020-12-04T13:36:30.000Z
examples/dhc/deduplication_approximated_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
null
null
null
examples/dhc/deduplication_approximated_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
3
2018-09-15T13:40:40.000Z
2021-06-29T23:31:18.000Z
#!/usr/bin/python3 from pyspark.sql import SparkSession from haychecker.dhc.metrics import deduplication_approximated spark = SparkSession.builder.appName("Deduplication_approximated_example").getOrCreate() df = spark.read.format("csv").option("header", "true").load("examples/resources/employees.csv") df.show() r1...
32.269231
97
0.747318
0
0
0
0
0
0
0
0
352
0.419547
6bcafe8a760a06ba575713e54df859c88a35ea32
2,671
py
Python
test.py
Tang-Jie-Chang/keras-maskrcnn
2ad1380005265c4e3158858ae030b0039fd16eec
[ "Apache-2.0" ]
null
null
null
test.py
Tang-Jie-Chang/keras-maskrcnn
2ad1380005265c4e3158858ae030b0039fd16eec
[ "Apache-2.0" ]
null
null
null
test.py
Tang-Jie-Chang/keras-maskrcnn
2ad1380005265c4e3158858ae030b0039fd16eec
[ "Apache-2.0" ]
null
null
null
# import keras import keras # import keras_retinanet from keras_maskrcnn import models from keras_maskrcnn.utils.visualization import draw_mask from keras_retinanet.utils.visualization import draw_box, draw_caption, draw_annotations from keras_retinanet.utils.image import read_image_bgr, preprocess_image, resiz...
34.688312
167
0.681767
0
0
0
0
0
0
0
0
891
0.333583
6bcb30fd29a6ef624f4b1ad7d00a496c9b08cdb4
6,611
py
Python
leo/modes/lotos.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/modes/lotos.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/modes/lotos.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# Leo colorizer control file for lotos mode. # This file is in the public domain. # Properties for lotos mode. properties = { "commentEnd": "*)", "commentStart": "(*", "indentNextLines": "\\s*(let|library|process|specification|type|>>).*|\\s*(\\(|\\[\\]|\\[>|\\|\\||\\|\\|\\||\\|\\[.*\\]\\||\\[.*\\]\...
29.513393
149
0.570867
0
0
0
0
0
0
0
0
2,435
0.368326
6bce53c9abe42e1145ff3c9feca2ddc25c7666a1
275
py
Python
src/ProblemSolving/DiagonalDifference.py
Feng-Zhao/hackerrankPy
fc04f0a11cf543ad3697860eca774103593abcd5
[ "Apache-2.0" ]
null
null
null
src/ProblemSolving/DiagonalDifference.py
Feng-Zhao/hackerrankPy
fc04f0a11cf543ad3697860eca774103593abcd5
[ "Apache-2.0" ]
null
null
null
src/ProblemSolving/DiagonalDifference.py
Feng-Zhao/hackerrankPy
fc04f0a11cf543ad3697860eca774103593abcd5
[ "Apache-2.0" ]
null
null
null
def diagonalDifference(arr): a = 0 b = 0 for i in range(0, len(arr)): a += arr[i][i] b += arr[i][len(arr) - i - 1] return abs(a - b) if __name__ == '__main__': arr = [[11, 2, 4],[4, 5, 6],[10, 8, -12]] print(diagonalDifference(arr))
21.153846
45
0.490909
0
0
0
0
0
0
0
0
10
0.036364
6bcf37239c800dc8e2d66410da87a160446a390a
296
py
Python
robot/Cumulus/resources/BaseObjects.py
SFDO-Alliances/NPSP
3711a3cf8e3124bc2d7e61644d6abecb4042004e
[ "BSD-3-Clause" ]
413
2015-01-02T09:53:04.000Z
2019-12-05T15:31:25.000Z
robot/Cumulus/resources/BaseObjects.py
SFDO-Alliances/NPSP
3711a3cf8e3124bc2d7e61644d6abecb4042004e
[ "BSD-3-Clause" ]
2,471
2015-01-02T03:33:55.000Z
2019-12-13T17:55:10.000Z
robot/Cumulus/resources/BaseObjects.py
SFDO-Alliances/NPSP
3711a3cf8e3124bc2d7e61644d6abecb4042004e
[ "BSD-3-Clause" ]
296
2015-01-06T13:03:33.000Z
2019-12-11T14:19:31.000Z
from robot.libraries.BuiltIn import BuiltIn class BaseNPSPPage: @property def npsp(self): return self.builtin.get_library_instance('NPSP') @property def pageobjects(self): return self.builtin.get_library_instance("cumulusci.robotframework.PageObjects")
24.666667
88
0.716216
250
0.844595
0
0
211
0.712838
0
0
44
0.148649
6bd0d6670874846404621cb14ddcf0728b11d685
1,395
py
Python
balltze_simulation/balltze_pybullet/balltze/balltze.py
Kotochleb/Balltze
55b15cb57d20f7f212293bf838e1d6cf874bb4c2
[ "MIT" ]
1
2021-09-04T03:59:01.000Z
2021-09-04T03:59:01.000Z
balltze_simulation/balltze_pybullet/balltze/balltze.py
Kotochleb/Balltze
55b15cb57d20f7f212293bf838e1d6cf874bb4c2
[ "MIT" ]
null
null
null
balltze_simulation/balltze_pybullet/balltze/balltze.py
Kotochleb/Balltze
55b15cb57d20f7f212293bf838e1d6cf874bb4c2
[ "MIT" ]
null
null
null
import pybullet as p import time import numpy as np import pybullet_data from balltze_description import Balltze, BalltzeKinematics import math if __name__ == '__main__': time_step = 1./240. physicsClient = p.connect(p.GUI) p.setAdditionalSearchPath(pybullet_data.getDataPath()) p.setGravity(0,0,-9.81) ...
32.44186
154
0.597133
0
0
0
0
0
0
0
0
233
0.167025
6bd20797291e733d3485db7e9a7d16d42673718a
8,850
py
Python
urbit_sniffer.py
laanwj/urbit-tools
b3823d50d5ab84c0852593e3255c0d7c51de6d1c
[ "MIT" ]
18
2015-02-03T19:27:18.000Z
2021-04-04T03:03:57.000Z
urbit_sniffer.py
laanwj/urbit-tools
b3823d50d5ab84c0852593e3255c0d7c51de6d1c
[ "MIT" ]
null
null
null
urbit_sniffer.py
laanwj/urbit-tools
b3823d50d5ab84c0852593e3255c0d7c51de6d1c
[ "MIT" ]
2
2015-10-02T01:37:13.000Z
2017-06-04T03:41:49.000Z
#!/usr/bin/python3 # Copyright (c) 2014 Wladimir J. van der Laan, Visucore # Distributed under the MIT software license, see # http://www.opensource.org/licenses/mit-license.php. ''' urbit UDP sniffer Usage: urbit_sniffer.py [-p <port1>-<port2>,<port3>,...] [-i <interface>] ''' import struct, sys, io, argparse, dateti...
38.146552
165
0.599887
460
0.051966
0
0
0
0
0
0
2,136
0.241301
6bd258b97e010833aa36fdeb89edf6a7e0ee7073
2,556
py
Python
Assignment_2_Pi/Pi_Archimedes/Pi_Archimedes.py
osccal/python-course
e815fd647fc5e5248188ed3976b62a181831e9ba
[ "MIT" ]
null
null
null
Assignment_2_Pi/Pi_Archimedes/Pi_Archimedes.py
osccal/python-course
e815fd647fc5e5248188ed3976b62a181831e9ba
[ "MIT" ]
null
null
null
Assignment_2_Pi/Pi_Archimedes/Pi_Archimedes.py
osccal/python-course
e815fd647fc5e5248188ed3976b62a181831e9ba
[ "MIT" ]
null
null
null
""" Python3 program to calculate pi to 100 places using Archimedes method """ from decimal import Decimal, getcontext from time import time def pi_archimedes(n): """ Calculate n iterations of Archimedes PI """ polygon_edge_length_squared = Decimal(2) # Decimal for precision polygon_sides = 2 ...
54.382979
1,011
0.777778
0
0
0
0
0
0
0
0
661
0.258607
6bd4306cbba78d516d0027f40cedd02fdc18d8f6
1,942
py
Python
tests/test_transforms.py
luiarthur/advi
e461a08dcbd32836d15a3c276d27417cf619298c
[ "MIT" ]
1
2020-04-04T12:58:18.000Z
2020-04-04T12:58:18.000Z
tests/test_transforms.py
luiarthur/advi
e461a08dcbd32836d15a3c276d27417cf619298c
[ "MIT" ]
null
null
null
tests/test_transforms.py
luiarthur/advi
e461a08dcbd32836d15a3c276d27417cf619298c
[ "MIT" ]
null
null
null
import unittest import torch import advi.transformations as trans class Test_Transformations(unittest.TestCase): def approx(self, a, b, eps=1E-8): self.assertTrue(abs(a - b) < eps) def test_bounded(self): p = torch.tensor(.5) self.assertTrue(trans.logit(p) == 0) q = torch.ten...
33.482759
74
0.589083
1,823
0.938723
0
0
0
0
0
0
199
0.102472
6bd54aeda1cf3aa43806abaf7f0e2dafeca01c0d
1,638
py
Python
app/tests/v1/test_product.py
owezzy/StoreManager
821856c0d502b55bd499cfe9188cd4951c5b0b75
[ "MIT" ]
null
null
null
app/tests/v1/test_product.py
owezzy/StoreManager
821856c0d502b55bd499cfe9188cd4951c5b0b75
[ "MIT" ]
2
2018-10-10T22:32:35.000Z
2021-06-01T22:50:56.000Z
app/tests/v1/test_product.py
owezzy/StoreManager
821856c0d502b55bd499cfe9188cd4951c5b0b75
[ "MIT" ]
1
2018-10-25T12:42:41.000Z
2018-10-25T12:42:41.000Z
import unittest import json from app.app import create_app POST_PRODUCT_URL = '/api/v1/products' GET_A_SINGLE_PRODUCT = '/api/v1/product/1' GET_ALL_PRODUCTS = '/api/v1/products' class TestProduct(unittest.TestCase): def setUp(self): """Initialize the api with test variable""" self.app = create_...
30.333333
72
0.623321
1,406
0.858364
0
0
0
0
0
0
301
0.183761
6bd88438849c3a76c7d468249205380ab8ab8c38
1,346
py
Python
cryptoshredding/s3/client.py
hupe1980/cryptoshredding
1ab5ee452c4435f486006aa2cc1a7bee440d91fe
[ "MIT" ]
null
null
null
cryptoshredding/s3/client.py
hupe1980/cryptoshredding
1ab5ee452c4435f486006aa2cc1a7bee440d91fe
[ "MIT" ]
null
null
null
cryptoshredding/s3/client.py
hupe1980/cryptoshredding
1ab5ee452c4435f486006aa2cc1a7bee440d91fe
[ "MIT" ]
null
null
null
import boto3 from botocore.client import BaseClient from ..key_store import KeyStore from .object import CryptoObject from .stream_body_wrapper import StreamBodyWrapper class CryptoS3(object): def __init__( self, client: BaseClient, key_store: KeyStore, ) -> None: self._client...
31.302326
88
0.641902
1,173
0.871471
0
0
0
0
0
0
380
0.282318
6bd9272def1931c3aead22a640fadc1a05f50b8f
5,627
py
Python
tests/infra/test_subnet.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
tests/infra/test_subnet.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
tests/infra/test_subnet.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
""" Unit test for EC2 subnet. """ import unittest import mock from treadmill.infra.subnet import Subnet class SubnetTest(unittest.TestCase): @mock.patch('treadmill.infra.connection.Connection') def test_init(self, ConnectionMock): conn_mock = ConnectionMock() Subnet.ec2_conn = Subnet.route5...
30.090909
78
0.563355
5,518
0.980629
0
0
5,440
0.966767
0
0
959
0.170428
6bdac7bc37d6267a61f05383477b3f0ca7a95eab
5,138
py
Python
tests/building/test_tokenization.py
fossabot/langumo
2d8b30979878bb27fb07cc31879c13c5c186582c
[ "Apache-2.0" ]
7
2020-09-05T08:30:25.000Z
2021-11-01T14:07:58.000Z
tests/building/test_tokenization.py
fossabot/langumo
2d8b30979878bb27fb07cc31879c13c5c186582c
[ "Apache-2.0" ]
2
2020-09-11T14:19:47.000Z
2021-03-05T17:22:21.000Z
tests/building/test_tokenization.py
fossabot/langumo
2d8b30979878bb27fb07cc31879c13c5c186582c
[ "Apache-2.0" ]
3
2020-09-11T14:16:06.000Z
2021-10-31T14:18:10.000Z
import tempfile from langumo.building import TrainTokenizer, TokenizeSentences from langumo.utils import AuxiliaryFileManager _dummy_corpus_content = ( 'Wikipedia is a multilingual online encyclopedia created and maintained ' 'as an open collaboration project by a community of volunteer editors ' 'using a...
47.137615
79
0.665434
0
0
0
0
0
0
0
0
2,838
0.552248
6bdb7b37ea55baaa1973a1fff39476ce6ea71851
12,819
py
Python
examples/BertNewsClassification/news_classifier.py
mlflow/mlflow-torchserve
91663b630ef12313da3ad821767faf3fc409345b
[ "Apache-2.0" ]
40
2020-11-13T02:08:10.000Z
2022-03-27T07:41:57.000Z
examples/BertNewsClassification/news_classifier.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
23
2020-11-16T11:28:01.000Z
2021-09-23T11:28:24.000Z
examples/BertNewsClassification/news_classifier.py
Ideas2IT/mlflow-torchserve
d6300fb73f16d74ee2c7718c249faf485c4f3b62
[ "Apache-2.0" ]
15
2020-11-13T10:25:25.000Z
2022-02-01T10:13:20.000Z
# pylint: disable=W0221 # pylint: disable=W0613 # pylint: disable=E1102 # pylint: disable=W0223 import shutil from collections import defaultdict import numpy as np import pandas as pd import torch import torch.nn.functional as F from sklearn.model_selection import train_test_split from torch import nn from torch.utils...
32.289673
99
0.620095
10,538
0.822061
0
0
99
0.007723
0
0
2,865
0.223496
6bdbc0070f7b68477be910727f103f97f2f7c5f9
23
py
Python
nerddiary/__init__.py
mishamsk/nerddiary
2d0981c5034460f353c2994347fb95a5c94a55bd
[ "Apache-2.0" ]
null
null
null
nerddiary/__init__.py
mishamsk/nerddiary
2d0981c5034460f353c2994347fb95a5c94a55bd
[ "Apache-2.0" ]
5
2022-02-20T06:10:28.000Z
2022-03-28T03:22:41.000Z
nerddiary/__init__.py
mishamsk/nerddiary
2d0981c5034460f353c2994347fb95a5c94a55bd
[ "Apache-2.0" ]
null
null
null
__version__ = "0.2.2b"
11.5
22
0.652174
0
0
0
0
0
0
0
0
8
0.347826
6bdcdf872b440de0263c9a18d6e09d85b322ab4c
272
py
Python
src/lib/fibonacci.py
lastnamevega/fastapi-demo
c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6
[ "MIT" ]
null
null
null
src/lib/fibonacci.py
lastnamevega/fastapi-demo
c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6
[ "MIT" ]
null
null
null
src/lib/fibonacci.py
lastnamevega/fastapi-demo
c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6
[ "MIT" ]
null
null
null
def fibonacci(desired_index: int): if desired_index < 0: raise ValueError(f'{desired_index} is less than 0') values = [0, 1] for i in range(2, desired_index + 1): values.append(values[i - 1] + values[i - 2]) return values[desired_index]
24.727273
59
0.628676
0
0
0
0
0
0
0
0
33
0.121324
6bde8a8095cceac04979671e29124bd410698f7c
3,716
py
Python
src/toil/lib/aws/utils.py
rupertnash/toil
fd805d5fa14cca98f2bc64b322a4b546e163d6c9
[ "Apache-2.0" ]
6
2018-05-27T05:09:11.000Z
2020-07-01T17:02:40.000Z
src/toil/lib/aws/utils.py
rupertnash/toil
fd805d5fa14cca98f2bc64b322a4b546e163d6c9
[ "Apache-2.0" ]
1
2020-07-01T18:31:30.000Z
2020-07-08T14:03:39.000Z
src/toil/lib/aws/utils.py
rupertnash/toil
fd805d5fa14cca98f2bc64b322a4b546e163d6c9
[ "Apache-2.0" ]
1
2020-04-06T15:04:44.000Z
2020-04-06T15:04:44.000Z
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
45.876543
110
0.741389
0
0
0
0
2,784
0.749193
0
0
1,388
0.37352
6bdeffb0d14dc1d4dca20f695831236be20df06b
3,389
py
Python
src/data/processed_data.py
Victoradukwu/titanic
18a4e8fe7dbe755a946512ca71b1d2a2f5932c64
[ "MIT" ]
null
null
null
src/data/processed_data.py
Victoradukwu/titanic
18a4e8fe7dbe755a946512ca71b1d2a2f5932c64
[ "MIT" ]
null
null
null
src/data/processed_data.py
Victoradukwu/titanic
18a4e8fe7dbe755a946512ca71b1d2a2f5932c64
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd def read_data(): raw_data_path = os.path.join(os.path.pardir, 'data', 'raw') train_file_path = os.path.join(raw_data_path, 'train.csv') test_file_path = os.path.join(raw_data_path, 'test.csv') train_df = pd.read_csv(train_file_path, index_col = 'Pa...
33.554455
130
0.59044
0
0
0
0
0
0
0
0
669
0.197403
6be02c0cdca45be2d0933fe3cbd070df05fee26e
59,336
py
Python
clustergrammer/upload_pages/clustergrammer_old.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
5
2018-04-04T16:25:06.000Z
2021-04-10T23:47:20.000Z
clustergrammer/upload_pages/clustergrammer_old.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
8
2016-07-16T02:55:12.000Z
2022-02-02T16:42:17.000Z
clustergrammer/upload_pages/clustergrammer_old.py
delosrogers/clustergrammer-web
14102cfca328214d3bc8285e8331663fe0e5fad4
[ "MIT" ]
4
2019-05-28T08:52:41.000Z
2021-01-11T22:14:48.000Z
# define a class for networks class Network(object): ''' Networks have two states: the data state where they are stored as: matrix and nodes and a viz state where they are stored as: viz.links, viz.row_nodes, viz. col_nodes. The goal is to start in a data-state and produce a viz-state of the network that...
31.528162
130
0.603546
59,301
0.99941
0
0
5,355
0.090249
0
0
21,566
0.363456
6be28791480695f18cfb74b2706fdb1c647fff80
523
py
Python
May 2019/brick_sort.py
Gern-Yataro/Daily-CS
194e8c2b23964300f39a8ed4f06d355360197766
[ "MIT" ]
1
2019-04-15T01:09:04.000Z
2019-04-15T01:09:04.000Z
May 2019/brick_sort.py
Gern-Yataro/Daily-CS
194e8c2b23964300f39a8ed4f06d355360197766
[ "MIT" ]
null
null
null
May 2019/brick_sort.py
Gern-Yataro/Daily-CS
194e8c2b23964300f39a8ed4f06d355360197766
[ "MIT" ]
null
null
null
numbers = [9, 8, 7, 6, 5, 4, 3, 2, 1] def brick_sort(array): n = len(array)-1 swapped = True while swapped == True: swapped = False for index in range(0, n, 2): if array[index] > array[index+1]: array[index], array[index+1] = array[index+1], array[index] swapped = True f...
23.772727
67
0.581262
0
0
0
0
0
0
0
0
0
0
6be3244eac9c140c3d63372c0ad3149ef60a64c1
1,676
py
Python
sanctuary/topic/api.py
20CM/Sanctuary
14694d9bd6376bdc05248741a91df778400e9f66
[ "BSD-3-Clause" ]
1
2017-05-29T11:53:06.000Z
2017-05-29T11:53:06.000Z
sanctuary/topic/api.py
20CM/Sanctuary
14694d9bd6376bdc05248741a91df778400e9f66
[ "BSD-3-Clause" ]
null
null
null
sanctuary/topic/api.py
20CM/Sanctuary
14694d9bd6376bdc05248741a91df778400e9f66
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import status from rest_framework.response import Response from rest_framework.permissions import BasePermission, SAFE_METHODS, IsAuthenticatedOrReadOnly from .models import Topic, Reply from sanctuary.viewsets import NoDestroyModelViewSet from .serializers import TopicSerializer, ReplySerializer ...
35.659574
94
0.755967
1,345
0.802506
0
0
0
0
0
0
77
0.045943
6be3f12ed534c88956efb0cde9bfba8da5449ad9
1,113
py
Python
server/face_recogniser.py
fvalle1/ai_server
0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0
[ "MIT" ]
1
2021-03-10T15:37:21.000Z
2021-03-10T15:37:21.000Z
server/face_recogniser.py
fvalle1/ai_server
0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0
[ "MIT" ]
null
null
null
server/face_recogniser.py
fvalle1/ai_server
0bbb2b842a329ca8bbeb6529a2008b61dcc77cc0
[ "MIT" ]
null
null
null
import cv2 as cv from model import model class face_recogniser(model): def __init__(self): super() self.net = cv.dnn.readNet('/home/pi/inception/face-detection-adas-0001.xml','/home/pi/inception/face-detection-adas-0001.bin') self.net.setPreferableTarget(cv.dnn.DNN_TARGET_MYRIAD) def a...
39.75
134
0.615454
1,070
0.961366
0
0
0
0
0
0
179
0.160827
6be456b6f75f64cea006c0e15110ea8fb947a3b6
503
py
Python
code/countries_centroids.py
loris2222/ChocoData
d5b8c49f201228dd55db03dbdbafcbe846e36200
[ "MIT" ]
null
null
null
code/countries_centroids.py
loris2222/ChocoData
d5b8c49f201228dd55db03dbdbafcbe846e36200
[ "MIT" ]
null
null
null
code/countries_centroids.py
loris2222/ChocoData
d5b8c49f201228dd55db03dbdbafcbe846e36200
[ "MIT" ]
null
null
null
from geopy.exc import GeocoderTimedOut from geopy.geocoders import Nominatim import numpy as np import pandas as pd # function to find the coordinate # of a given city def find_geocode(city): try: # Specify the user_agent as your # app name it should not be none geolocator = Nominatim(user...
23.952381
58
0.72167
0
0
0
0
0
0
0
0
136
0.270378
6be4827cb6db3797b4e0960a8f9afb82862b44ab
2,783
py
Python
tests/test_cpymadtools/test_generators.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
5
2020-05-28T09:16:01.000Z
2021-12-27T18:59:15.000Z
tests/test_cpymadtools/test_generators.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
71
2020-02-20T20:32:43.000Z
2022-03-24T17:04:28.000Z
tests/test_cpymadtools/test_generators.py
fsoubelet/PyhDToolk
aef9d5f1fac2d4c4307d50ba5c53f6a5eb635a66
[ "MIT" ]
2
2021-09-28T16:01:06.000Z
2022-03-16T19:04:23.000Z
import random import pytest from pyhdtoolkit.cpymadtools.generators import LatticeGenerator class TestLatticeGenerator: def test_base_cas_lattice_generation(self): base_cas_lattice = LatticeGenerator.generate_base_cas_lattice() assert isinstance(base_cas_lattice, str) assert len(base_cas...
42.166667
100
0.680201
2,686
0.965146
0
0
1,731
0.621991
0
0
233
0.083723
6be4e81e9d40d83f06f1cfa243fa8007e8370a2f
1,789
py
Python
preprocessing/act_bed_construction.py
shtoneyan/sea-lion
7e1ce9a18a147eea42e6172a2329d696f6e6aef9
[ "MIT" ]
1
2022-02-10T21:21:32.000Z
2022-02-10T21:21:32.000Z
preprocessing/act_bed_construction.py
shtoneyan/sea-lion
7e1ce9a18a147eea42e6172a2329d696f6e6aef9
[ "MIT" ]
null
null
null
preprocessing/act_bed_construction.py
shtoneyan/sea-lion
7e1ce9a18a147eea42e6172a2329d696f6e6aef9
[ "MIT" ]
null
null
null
import pandas as pd import re import sys #read bed file #constructure acitivity table #output tfr file def main(): bed_file = sys.argv[1] act_table = sys.argv[2] data = pd.read_csv(act_table,sep = '\t') data.rename(columns={'Unnamed: 0':'loci'}, inplace=True) chrom = [i.split(':')[...
28.854839
66
0.567915
0
0
0
0
0
0
0
0
525
0.29346
6be8cef9f2811735b313ed8611fa3362dad56bc1
2,072
py
Python
aiserver/backup/simpleserver2.py
hirasaki1985/Oreilly_deepLearning
378b60ccec67dc616669fcd65ad14c7eddae6767
[ "MIT" ]
null
null
null
aiserver/backup/simpleserver2.py
hirasaki1985/Oreilly_deepLearning
378b60ccec67dc616669fcd65ad14c7eddae6767
[ "MIT" ]
null
null
null
aiserver/backup/simpleserver2.py
hirasaki1985/Oreilly_deepLearning
378b60ccec67dc616669fcd65ad14c7eddae6767
[ "MIT" ]
null
null
null
import sys, socket import json import cgi try: from StringIO import StringIO except ImportError: from io import StringIO import numpy as np from http.server import BaseHTTPRequestHandler, HTTPServer from modules.controller import Controller # setting host = '' port = 8000 class MyHandler(BaseHT...
25.9
89
0.586873
1,602
0.762131
0
0
0
0
0
0
502
0.23882
6bedb7df070733efc849ec3f70b009e7c5d82ea3
1,214
py
Python
get_machine_id.py
Server-Factory/Parallels-Utils
9b5c724b59832abf0506c5f632b0122573e71cd7
[ "Apache-2.0" ]
1
2021-01-01T23:24:31.000Z
2021-01-01T23:24:31.000Z
get_machine_id.py
Server-Factory/Parallels-Utils
9b5c724b59832abf0506c5f632b0122573e71cd7
[ "Apache-2.0" ]
null
null
null
get_machine_id.py
Server-Factory/Parallels-Utils
9b5c724b59832abf0506c5f632b0122573e71cd7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import subprocess import sys def main(): if len(sys.argv) > 1: machines = dict() image = sys.argv[1] row_home = "Home:" row_id_open = "{" row_id_close = "}" output = subprocess.check_output(['prlctl', 'list', '-a', '-i']) items = str(output...
28.904762
99
0.490939
0
0
0
0
0
0
0
0
118
0.097199
6bf3184d75c0305e0ed63aa9eb50baca989c89e5
1,813
py
Python
Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Books/DeepLearningLearningFromTheFounderOfKeras/chapter7/sub7_2_2.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
#-*-coding: utf-8-*- #todo p.333 ~ p.340 #todo code 7-7 ~ code 7-9 #todo 7.2.2 텐서보드 소개: 텐서플로의 시각화 프레임워크 import os import keras from keras import layers from keras.datasets import imdb from keras.preprocessing import sequence max_features = 2000 # 특성으로 사용할 단어의 수 max_len = 500 # 사용할 텍스트의 길이 (x_train, y_train), (x_te...
31.258621
110
0.661335
0
0
0
0
0
0
0
0
501
0.252139
6bf3a11f4eaf5ef256dd41b159fcdf1ed04aaca8
12,158
py
Python
transform/preprocess/student_preprocess.py
WillianFuks/papis19
479c5460218c8f02716dbd5c2b0b9121a4328ab0
[ "Apache-2.0" ]
4
2019-06-24T13:20:22.000Z
2020-11-12T01:19:02.000Z
transform/preprocess/student_preprocess.py
WillianFuks/papis19
479c5460218c8f02716dbd5c2b0b9121a4328ab0
[ "Apache-2.0" ]
7
2019-12-16T21:55:20.000Z
2022-02-10T00:16:54.000Z
transform/preprocess/student_preprocess.py
WillianFuks/papis19
479c5460218c8f02716dbd5c2b0b9121a4328ab0
[ "Apache-2.0" ]
8
2019-06-24T12:27:51.000Z
2021-04-20T18:33:24.000Z
# Copyright 2019 Willian Fuks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
31.661458
89
0.618358
239
0.019658
195
0.016039
0
0
0
0
4,577
0.37646
6bf3c5d43692793eab438e1d78d5c5d9f2609b80
114
py
Python
material/assignment1/csv_example.py
mpambasange/MachineLearning
8b813345264513a57934317b01e1311628dc5b01
[ "MIT" ]
16
2016-09-01T08:50:59.000Z
2022-02-15T20:56:07.000Z
material/assignment1/csv_example.py
olehermanse/INF3490-PythonAI
8b813345264513a57934317b01e1311628dc5b01
[ "MIT" ]
2
2016-10-20T09:36:19.000Z
2017-08-29T00:28:54.000Z
material/assignment1/csv_example.py
olehermanse/INF3490-PythonAI
8b813345264513a57934317b01e1311628dc5b01
[ "MIT" ]
15
2016-10-31T12:30:37.000Z
2021-03-15T12:12:50.000Z
import csv with open("european_cities.csv", "r") as f: data = list(csv.reader(f, delimiter=';')) print(data)
19
45
0.657895
0
0
0
0
0
0
0
0
27
0.236842
6bf4ad195f97897af7bd9a29940a148f1e9542dc
271
py
Python
spacy_lookup/about.py
BasileDjigg/spacy-lookup
16929120d03fa1215f574286072377f10b7e089b
[ "MIT" ]
null
null
null
spacy_lookup/about.py
BasileDjigg/spacy-lookup
16929120d03fa1215f574286072377f10b7e089b
[ "MIT" ]
null
null
null
spacy_lookup/about.py
BasileDjigg/spacy-lookup
16929120d03fa1215f574286072377f10b7e089b
[ "MIT" ]
null
null
null
__title__ = 'spacy-lookup' __version__ = '0.0.1' __summary__ = 'spaCy pipeline component for Named Entity Recognition based on dictionaries.' __url__ = 'https://github.com/mpuig/spacy-lookup' __author__ = 'Marc Puig' __email__ = 'marc.puig@gmail.com' __license__ = 'MIT'
33.875
92
0.756458
0
0
0
0
0
0
0
0
175
0.645756
6bf66439de1fb3ae4352db93cc562648f32d838f
751
py
Python
leetcode/p690.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
leetcode/p690.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
leetcode/p690.py
mythnc/lab
9f69482a063e3cfce2ce8832c2ef1425658c31b9
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/employee-importance/ """ # Definition for Employee. class Employee: def __init__(self, id: int, importance: int, subordinates: List[int]): self.id = id self.importance = importance self.subordinates = subordinates """ class Solution: def getImportance(sel...
28.884615
74
0.559254
471
0.627164
0
0
0
0
0
0
286
0.380826
6bf727625ea059c4f0a7f91f758f96269dcdd254
3,916
py
Python
python/ranking/examples/fess/train_model.py
codelibs/logana
48b475e9fd5224821bfba7d41e755d8d64806651
[ "Apache-2.0" ]
2
2020-09-30T12:42:28.000Z
2020-11-04T01:34:20.000Z
python/ranking/examples/fess/train_model.py
codelibs/logana
48b475e9fd5224821bfba7d41e755d8d64806651
[ "Apache-2.0" ]
null
null
null
python/ranking/examples/fess/train_model.py
codelibs/logana
48b475e9fd5224821bfba7d41e755d8d64806651
[ "Apache-2.0" ]
null
null
null
import dataclasses import datetime import gzip import json import logging import os from typing import Any, Dict import numpy as np import tensorflow as tf from absl import flags from loganary.ranking.common import NumpyJsonEncoder, setup_logging, setup_seed from loganary.ranking.model import ( RankingModel, R...
34.350877
87
0.671348
0
0
0
0
0
0
0
0
991
0.253064
6bffc6fb525922ad40eb7287ee43188f6f55ec06
615
py
Python
shortner/migrations/0005_auto_20200407_1237.py
OakNinja/shortner
8b051f4d74dc70bccd62e983ce300f8115cc72c8
[ "BSD-3-Clause" ]
1
2020-04-29T15:02:14.000Z
2020-04-29T15:02:14.000Z
shortner/migrations/0005_auto_20200407_1237.py
OakNinja/shortner
8b051f4d74dc70bccd62e983ce300f8115cc72c8
[ "BSD-3-Clause" ]
null
null
null
shortner/migrations/0005_auto_20200407_1237.py
OakNinja/shortner
8b051f4d74dc70bccd62e983ce300f8115cc72c8
[ "BSD-3-Clause" ]
1
2020-04-29T07:05:00.000Z
2020-04-29T07:05:00.000Z
# Generated by Django 3.0.5 on 2020-04-07 12:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('shortner', '0004_auto_20...
27.954545
145
0.682927
456
0.741463
0
0
0
0
0
0
107
0.173984
d40116f3963560e5bc86c79d514d9d85b3020138
22,630
py
Python
build-fortress.py
DFIRmadness/infosec-fortress
cc20c5c5ecf5194fdd270e7accdf927b71ed2952
[ "MIT" ]
33
2021-06-22T01:42:06.000Z
2022-03-27T14:41:44.000Z
build-fortress.py
ED-209-MK7/infosec-fortress
cc20c5c5ecf5194fdd270e7accdf927b71ed2952
[ "MIT" ]
1
2021-06-24T09:10:03.000Z
2021-06-28T13:25:59.000Z
build-fortress.py
ED-209-MK7/infosec-fortress
cc20c5c5ecf5194fdd270e7accdf927b71ed2952
[ "MIT" ]
5
2021-06-23T08:04:22.000Z
2022-03-27T14:41:45.000Z
#!/bin/python3 ''' Title: build-fortress.py Purpose: Build the infosec-fortress Author: James Smith (DFIRmadness) Contributors: Check the github page. Notes: Beta Version: 0.5 Usage: ./build-fortress.py Functions: + apt update + dist upgrade + install base packages + create /opt/infosec-fortress + start log + install ...
40.996377
210
0.644057
0
0
0
0
0
0
0
0
12,408
0.548299
d4051d0a2b00e9998b74b852734dd381524320f3
955
py
Python
substance/constants.py
philraj/substance
c68c8343e22fd2ac1e83b7567140c2a20f417984
[ "Apache-2.0" ]
null
null
null
substance/constants.py
philraj/substance
c68c8343e22fd2ac1e83b7567140c2a20f417984
[ "Apache-2.0" ]
null
null
null
substance/constants.py
philraj/substance
c68c8343e22fd2ac1e83b7567140c2a20f417984
[ "Apache-2.0" ]
null
null
null
class Constants(object): class ConstError(TypeError): pass def __init__(self, **kwargs): for name, value in list(kwargs.items()): super(Constants, self).__setattr__(name, value) def __setattr__(self, name, value): if name in self.__dist__: raise self.Const...
20.76087
66
0.618848
558
0.584293
0
0
0
0
0
0
172
0.180105
d4051f0da6a3085bed81c035499b45d737816f30
12,482
py
Python
scripts/identify_taxonomic_trees.py
AtilioA/wikidata-evaluation-based-on-ontologies
b726cc40a80312e92e7aa42fc24f1eee21bc40be
[ "Unlicense" ]
2
2020-12-06T21:57:36.000Z
2020-12-11T16:07:00.000Z
scripts/identify_taxonomic_trees.py
AtilioA/wikidata-evaluation-based-on-ontologies
b726cc40a80312e92e7aa42fc24f1eee21bc40be
[ "Unlicense" ]
null
null
null
scripts/identify_taxonomic_trees.py
AtilioA/wikidata-evaluation-based-on-ontologies
b726cc40a80312e92e7aa42fc24f1eee21bc40be
[ "Unlicense" ]
null
null
null
import time import json import sys from pathlib import Path from pprint import pprint import wikidata_utils from graphviz import Digraph NL = "\n" def find_subclasses_between(subclass, superclass): # Query Stardog for subclasses subclassesJSON = wikidata_utils.query_subclasses_stardog(superclass, subclass)[...
37.371257
174
0.539337
0
0
0
0
0
0
0
0
4,276
0.342573
d405da66dfc30f0e0e30d4963515d7ec89e1c3ae
3,620
py
Python
harakiri/model.py
ManjiKR/Harakiri
dba9fd7c63e54cf319549a15795e7a4782df8fd0
[ "Apache-2.0" ]
null
null
null
harakiri/model.py
ManjiKR/Harakiri
dba9fd7c63e54cf319549a15795e7a4782df8fd0
[ "Apache-2.0" ]
null
null
null
harakiri/model.py
ManjiKR/Harakiri
dba9fd7c63e54cf319549a15795e7a4782df8fd0
[ "Apache-2.0" ]
null
null
null
from typing import Any, Iterator, List class SkillInfo: def __init__(self, **data: Any) -> None: self.__command = data["Command"] self.__hit_level = data["Hit level"] self.__damage = data["Damage"] self.__startup_frame = data["Start up frame"] self.__block_frame = data["Blo...
22.911392
60
0.594199
3,563
0.984254
236
0.065193
1,937
0.535083
0
0
258
0.071271
d405f66eb96aad36fd4897d6d6488e602b579c70
162
py
Python
eviction_tracker/detainer_warrants/caselink/constants/ids.py
gregziegan/eviction-tracker
4db4bacb9675f985cf2f4a747855491e9036ad28
[ "BSD-3-Clause" ]
5
2021-09-15T08:06:59.000Z
2022-01-26T21:25:50.000Z
eviction_tracker/detainer_warrants/caselink/constants/ids.py
gregziegan/eviction-tracker
4db4bacb9675f985cf2f4a747855491e9036ad28
[ "BSD-3-Clause" ]
18
2022-01-14T17:15:53.000Z
2022-02-14T07:33:53.000Z
eviction_tracker/detainer_warrants/caselink/constants/ids.py
thebritican/eviction-tracker
1e34d509b0410d61de6abd6be521c53951fa038a
[ "BSD-3-Clause" ]
1
2021-09-15T01:46:57.000Z
2021-09-15T01:46:57.000Z
# Frames UPDATE_FRAME = 'update' POSTBACK_FRAME = 'postback' # Login USERNAME_LOGIN_FIELD = 'OPERCODE' PASSWORD_LOGIN_FIELD = 'PASSWD' LOGIN_BUTTON = 'LogInSub'
18
33
0.771605
0
0
0
0
0
0
0
0
61
0.376543
d4064fd610eae924f03892b2d599dd0687c7269d
913
py
Python
dist/weewx-4.0.0b5/bin/weewx/junk.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
10
2017-01-05T17:30:48.000Z
2021-09-18T15:04:20.000Z
dist/weewx-4.0.0b5/bin/weewx/junk.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
2
2019-07-21T10:48:42.000Z
2022-02-16T20:36:45.000Z
dist/weewx-4.0.0b5/bin/weewx/junk.py
v0rts/docker-weewx
70b2f252051dfead4fcb74e74662b297831e6342
[ "Apache-2.0" ]
12
2017-01-05T18:50:30.000Z
2021-10-05T07:35:45.000Z
import weewx class MyTypes(object): def get_value(self, obs_type, record, db_manager): if obs_type == 'dewpoint': if record['usUnits'] == weewx.US: return weewx.wxformulas.dewpointF(record.get('outTemp'), record.get('outHumidity')) elif record['usUnits'] == weewx....
32.607143
99
0.591457
896
0.98138
0
0
0
0
0
0
129
0.141292