hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5bf0e7255b8205ee610d22d4cb543d4ca386f9d7
1,028
py
Python
kubernetes/test/test_v1beta1_priority_class_list.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_priority_class_list.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta1_priority_class_list.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
1
2019-01-10T11:13:52.000Z
2019-01-10T11:13:52.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.844444
105
0.727626
b3dd9e89adcaf83c940d59229e45be13fea34c11
1,231
py
Python
.venv/Lib/site-packages/astroid/brain/brain_numpy_core_function_base.py
fab2903/what-is-my-ip
f5b7a8189ce2ae6d4f23388e2382da4f48f38c57
[ "MIT" ]
4
2021-03-29T19:15:29.000Z
2021-06-08T05:34:00.000Z
.venv/Lib/site-packages/astroid/brain/brain_numpy_core_function_base.py
fab2903/what-is-my-ip
f5b7a8189ce2ae6d4f23388e2382da4f48f38c57
[ "MIT" ]
1
2021-06-08T06:03:51.000Z
2021-06-08T06:03:51.000Z
.venv/Lib/site-packages/astroid/brain/brain_numpy_core_function_base.py
fab2903/what-is-my-ip
f5b7a8189ce2ae6d4f23388e2382da4f48f38c57
[ "MIT" ]
null
null
null
# Copyright (c) 2019-2021 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2020 Claudiu Popa <pcmanticore@gmail.com> # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER """Astroid hooks for numpy.core.fu...
39.709677
103
0.714054
e6e5b30597ef981701952d57207c71525e887f76
8,275
py
Python
openpyxl/writer/drawings.py
Zhaoxun/openpyxl-1
a483787c1bf3b167582e97bdbd5b695b402367da
[ "MIT" ]
76
2015-08-01T06:06:39.000Z
2021-12-09T15:14:39.000Z
openpyxl/writer/drawings.py
Zhaoxun/openpyxl-1
a483787c1bf3b167582e97bdbd5b695b402367da
[ "MIT" ]
68
2015-08-20T04:30:14.000Z
2021-08-02T21:07:40.000Z
openpyxl/writer/drawings.py
Zhaoxun/openpyxl-1
a483787c1bf3b167582e97bdbd5b695b402367da
[ "MIT" ]
29
2015-08-26T18:35:20.000Z
2022-03-30T06:21:28.000Z
# coding=UTF-8 ''' Copyright (c) 2010 openpyxl 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, modify, merge, publ...
42.875648
111
0.584532
92190b717551df6b41753869e3ffddccd651e5c2
2,256
py
Python
warg/context_wrapper.py
cnheider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2018-11-30T09:14:28.000Z
2018-11-30T09:14:28.000Z
warg/context_wrapper.py
aivclab/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
49
2019-04-02T12:06:10.000Z
2019-08-31T14:30:12.000Z
warg/context_wrapper.py
cnHeider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2020-10-01T00:18:12.000Z
2020-10-01T00:18:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 01/07/2020 """ __all__ = ["ContextWrapper", "NopContext"] import inspect from typing import Sequence class NopContext: def __enter__(self): return def __exit__(se...
25.931034
146
0.624113
28529a296921264895a15f34c8dcab6ae21c84fe
2,660
py
Python
examples/flaskr_tests.py
movermeyer/fluent-test
085b851506852c187f9312d90d52b0d30a7eacb6
[ "BSD-2-Clause" ]
null
null
null
examples/flaskr_tests.py
movermeyer/fluent-test
085b851506852c187f9312d90d52b0d30a7eacb6
[ "BSD-2-Clause" ]
null
null
null
examples/flaskr_tests.py
movermeyer/fluent-test
085b851506852c187f9312d90d52b0d30a7eacb6
[ "BSD-2-Clause" ]
1
2018-03-05T01:38:50.000Z
2018-03-05T01:38:50.000Z
import os import tempfile import unittest from fluenttest import test_case import flaskr class TestCase(test_case.TestCase, unittest.TestCase): @classmethod def arrange(cls): cls._db_fd, cls._db_path = tempfile.mkstemp() flaskr.init_db() cls.app = flaskr.app.test_client() @cla...
24.40367
74
0.675188
52ed7f82ddc4ac7e2d4c311c714574cb42d7ff49
676
py
Python
spacecharge/testing.py
ChristopherMayes/pySpaceCharge
42612b72646970541e9ab01c1d924a4189ccd8d7
[ "Apache-2.0" ]
null
null
null
spacecharge/testing.py
ChristopherMayes/pySpaceCharge
42612b72646970541e9ab01c1d924a4189ccd8d7
[ "Apache-2.0" ]
null
null
null
spacecharge/testing.py
ChristopherMayes/pySpaceCharge
42612b72646970541e9ab01c1d924a4189ccd8d7
[ "Apache-2.0" ]
null
null
null
import numpy as np def test_particles(n_particle=1000000, sigma_x = 0.001, sigma_y = 0.001, sigma_z = 0.0001, total_charge = 1e-9, mean_x = 0, mean_y = 0, mean_z = 0): """ Test Gaussian bunch to compare wi...
25.037037
72
0.560651
387b07da8b819691a6ca476af879f54a13b14c72
1,294
py
Python
python/example_socket.py
gururajrkatti/appdash
d87fd4fea10530c27f06f6774a45c51a20867166
[ "MIT" ]
1,794
2015-02-18T21:20:53.000Z
2022-03-24T06:15:47.000Z
python/example_socket.py
gururajrkatti/appdash
d87fd4fea10530c27f06f6774a45c51a20867166
[ "MIT" ]
153
2015-02-15T23:36:52.000Z
2021-08-31T14:37:11.000Z
python/example_socket.py
gururajrkatti/appdash
d87fd4fea10530c27f06f6774a45c51a20867166
[ "MIT" ]
176
2015-03-17T16:32:20.000Z
2021-09-17T07:21:35.000Z
#!/usr/bin/env python # Imports import time import appdash # Appdash: Socket Collector from appdash.sockcollector import RemoteCollector # Create a remote appdash collector. collector = RemoteCollector(debug=True) collector.connect(host="localhost", port=7701) # Create a trace. trace = appdash.SpanID(root=True) # ...
29.409091
90
0.697063
7cb8e7c781d3f59494da52fbf3f76b250d24601a
18
py
Python
main.py
SkilfulMedusa10/Minecraft-in-Python
e52e39857d2d4a8320aabc97760bb919eaaf76e5
[ "MIT" ]
null
null
null
main.py
SkilfulMedusa10/Minecraft-in-Python
e52e39857d2d4a8320aabc97760bb919eaaf76e5
[ "MIT" ]
null
null
null
main.py
SkilfulMedusa10/Minecraft-in-Python
e52e39857d2d4a8320aabc97760bb919eaaf76e5
[ "MIT" ]
null
null
null
import minecraft
9
17
0.833333
1dd3202b1cd6f2c676b026e9b5d28fd66022e8b4
22,183
py
Python
yaml2sbml/YamlModel.py
yannikschaelte/yaml2sbml
aaec8b225c9e67d9959d5788f4194c4f0081d031
[ "MIT" ]
null
null
null
yaml2sbml/YamlModel.py
yannikschaelte/yaml2sbml
aaec8b225c9e67d9959d5788f4194c4f0081d031
[ "MIT" ]
null
null
null
yaml2sbml/YamlModel.py
yannikschaelte/yaml2sbml
aaec8b225c9e67d9959d5788f4194c4f0081d031
[ "MIT" ]
null
null
null
import yaml import os.path from typing import Union import copy from .yaml2sbml import _parse_yaml_dict from .yaml2PEtab import _yaml2petab from .yaml_validation import _validate_yaml_from_dict class YamlModel: """ Functionality to set up, edit, load and write yaml models. """ def __init__(self): ...
35.379585
87
0.538295
17d31110ea74c65daf5184c901249983c1620fc8
757
py
Python
tensorflow_io/core/python/ops/version_ops.py
XiongKezhi/io
b8a1744c3b29c612435e500003dcdf30a581f2ff
[ "Apache-2.0" ]
1
2020-01-20T17:48:31.000Z
2020-01-20T17:48:31.000Z
tensorflow_io/core/python/ops/version_ops.py
XiongKezhi/io
b8a1744c3b29c612435e500003dcdf30a581f2ff
[ "Apache-2.0" ]
null
null
null
tensorflow_io/core/python/ops/version_ops.py
XiongKezhi/io
b8a1744c3b29c612435e500003dcdf30a581f2ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.842105
80
0.67107
3c35b57a8bdc13c1db601141cd8653ffac41fed3
265
py
Python
vbb/users/management/commands/seed.py
VillageBookBuilders/vbb-portal-backend
decdec392f7bd585b73e5554b20c17baea5d133d
[ "MIT" ]
1
2022-03-30T18:12:49.000Z
2022-03-30T18:12:49.000Z
vbb/users/management/commands/seed.py
VillageBookBuilders/vbb-portal-backend
decdec392f7bd585b73e5554b20c17baea5d133d
[ "MIT" ]
22
2022-02-28T02:37:03.000Z
2022-03-28T02:32:35.000Z
vbb/users/management/commands/seed.py
VillageBookBuilders/vbb-portal-backend
decdec392f7bd585b73e5554b20c17baea5d133d
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from vbb.utils.seeds.seed import seed class Command(BaseCommand): help = "Creates Seed Data" def handle(self, *args, **options): seed() self.stdout.write("Completed Adding Seed Data.")
22.083333
56
0.69434
e512479c73f25244a1253d7b4842e2eb9a1ff6a7
7,120
py
Python
cv.py
navtejsingh/pyCV
a474e4b0db114a362b2c436724290f660160bde9
[ "BSD-2-Clause" ]
2
2019-11-25T16:32:27.000Z
2020-08-16T02:46:01.000Z
cv.py
navtejsingh/pyCV
a474e4b0db114a362b2c436724290f660160bde9
[ "BSD-2-Clause" ]
null
null
null
cv.py
navtejsingh/pyCV
a474e4b0db114a362b2c436724290f660160bde9
[ "BSD-2-Clause" ]
1
2018-06-13T19:29:42.000Z
2018-06-13T19:29:42.000Z
import os, sys from matplotlib import pyplot as plt ''' Cyclic Voltammetry Graph Utility ------------------------------ Plots potential-current and potential-current density graphs for CV input files. If overlay flag is 'on', it overlays graphs from all the input files. ''' class cv: _colors = {'red': 'r', 'gr...
29.300412
205
0.656742
36a064a66363a199d9a44f5a79b91fc46be0390a
1,473
py
Python
examples/modern-python/async.py
biancini/FastCash
29e60a34f979a29f6c2c713c771ff03e983b5f64
[ "MIT" ]
null
null
null
examples/modern-python/async.py
biancini/FastCash
29e60a34f979a29f6c2c713c771ff03e983b5f64
[ "MIT" ]
null
null
null
examples/modern-python/async.py
biancini/FastCash
29e60a34f979a29f6c2c713c771ff03e983b5f64
[ "MIT" ]
null
null
null
import asyncio import datetime import httpx import bs4 from colorama import Fore # Older versions of python require calling loop.create_task() rather than on asyncio. # Make this available more easily. global loop def get_titolo(html: str, num_episodio: int) -> str: print(Fore.CYAN + f"Getting TITOLO dell'episod...
26.303571
85
0.665309
30ba01ee34330e68906d8884b2b17a1d02a23e77
10,860
py
Python
tests/test_base_client.py
cmccoy10/lumapps-sdk
3e4a15da526f921faa401b45e3945d1301b52dbe
[ "MIT" ]
null
null
null
tests/test_base_client.py
cmccoy10/lumapps-sdk
3e4a15da526f921faa401b45e3945d1301b52dbe
[ "MIT" ]
null
null
null
tests/test_base_client.py
cmccoy10/lumapps-sdk
3e4a15da526f921faa401b45e3945d1301b52dbe
[ "MIT" ]
null
null
null
from json import load, loads from typing import Sequence from unittest.mock import PropertyMock from httpx import HTTPStatusError from pytest import fixture, raises from lumapps.api.base_client import BaseClient from lumapps.api.errors import BadCallError, BaseClientError from lumapps.api.utils import ( FILTERS, ...
27.917738
86
0.643462
2d24c7e0e765a2fcfd86f174438e03e9a3c2558a
51,468
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/bgp/verify.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
null
null
null
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/bgp/verify.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
null
null
null
pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/bgp/verify.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
null
null
null
"""Common verification functions for bgp""" # Python import logging import copy from prettytable import PrettyTable # import Steps from pyats.aetest.steps import Steps # Genie from genie.utils.timeout import Timeout from genie.metaparser.util.exceptions import SchemaEmptyParserError # BGP from genie.libs.sdk.apis....
31.77037
125
0.494871
419208069ee2beb78f72a2b21bc0b3dc416b93da
147
py
Python
wikidump/extractors/__init__.py
samuelebortolotti/wikidump
88b52bf7deadc10cf62c70ab3f37fd3a690be117
[ "MIT" ]
null
null
null
wikidump/extractors/__init__.py
samuelebortolotti/wikidump
88b52bf7deadc10cf62c70ab3f37fd3a690be117
[ "MIT" ]
null
null
null
wikidump/extractors/__init__.py
samuelebortolotti/wikidump
88b52bf7deadc10cf62c70ab3f37fd3a690be117
[ "MIT" ]
null
null
null
from . import common, languages, wikibreaks, user_warnings_template, user_warnings, user_warnings_template_words, user_warnings_probabilistic_subst
147
147
0.891156
4438a90a52d8b3a06638b6047075a4b5dec53e7f
8,804
py
Python
qfc/core.py
akhilkedia/qfc
101861bd2fb818564245249fc93f278752684b51
[ "MIT" ]
null
null
null
qfc/core.py
akhilkedia/qfc
101861bd2fb818564245249fc93f278752684b51
[ "MIT" ]
null
null
null
qfc/core.py
akhilkedia/qfc
101861bd2fb818564245249fc93f278752684b51
[ "MIT" ]
null
null
null
import os import re from . import keys from . import ui from . import readchar from . import dirhandler def get_selected_command_or_input(search): state = State(search) # draw the screen (prompt + matched strings) ui.refresh(state) # wait for user input prompt(state) # clear the screen ui....
37.785408
176
0.530327
e82c69a7d1a5e78e289aa05d8f48a67f92a28c4f
5,043
py
Python
src/histDifferentialPrimerOccurrences.py
clb1/PrimerBias
5812e3748f898212087d5fa6053339ef3b696c7d
[ "MIT" ]
null
null
null
src/histDifferentialPrimerOccurrences.py
clb1/PrimerBias
5812e3748f898212087d5fa6053339ef3b696c7d
[ "MIT" ]
null
null
null
src/histDifferentialPrimerOccurrences.py
clb1/PrimerBias
5812e3748f898212087d5fa6053339ef3b696c7d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import matplotlib.pyplot as plt from collections import defaultdict from itertools import product import gzip import numpy as np import sys def initializeCounter(sequence_length): L = [['A','C','G','T']] * sequence_length D = dict(map(lambda y: (''.join(y), set()), [x for x in product(*...
41.677686
155
0.677969
912cb8cfaabdbd00424e8df65cc7053aa86ffba8
13,618
py
Python
irrigation/views.py
mkschu/greensManagerDjango
842f6cc0e5bc9fa5f36e5d996960900886d3370a
[ "Apache-2.0" ]
null
null
null
irrigation/views.py
mkschu/greensManagerDjango
842f6cc0e5bc9fa5f36e5d996960900886d3370a
[ "Apache-2.0" ]
null
null
null
irrigation/views.py
mkschu/greensManagerDjango
842f6cc0e5bc9fa5f36e5d996960900886d3370a
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.utils.timezone import now from django.db.models import Q from .models import ( SatelliteBox, SprinklerHead, QuickCoupler, Drain, ShutoffValve, IrrigationDig ) from .forms import ( SatelliteBoxForm, SprinklerHeadForm, QuickCo...
26.597656
75
0.579601
6c2d66edc12a45221874f234406c07047b21cd5c
9,765
py
Python
VB_Classes/Tetris.py
bobdavies2000/OpenCVB
1d339a94643a97e2d34f82dc7776677a8566d71d
[ "MIT" ]
69
2019-07-17T21:20:37.000Z
2022-03-23T08:38:03.000Z
VB_Classes/Tetris.py
bobdavies2000/OpenCVB
1d339a94643a97e2d34f82dc7776677a8566d71d
[ "MIT" ]
5
2021-02-05T05:48:50.000Z
2022-03-12T01:43:15.000Z
VB_Classes/Tetris.py
bobdavies2000/OpenCVB
1d339a94643a97e2d34f82dc7776677a8566d71d
[ "MIT" ]
6
2019-12-24T05:36:52.000Z
2021-02-19T15:55:13.000Z
import cv2 import numpy as np from random import choice SPEED = 1 # Controls the speed of the tetris pieces # Make a board board = np.uint8(np.zeros([20, 10, 3])) # Initialize some variables quit = False place = False drop = False switch = False held_piece = "" flag = 0 score = 0 # All the tetris pieces next_piec...
38.294118
169
0.452125
52ee4c876a2b30818fce4756cc82db72684958e0
3,822
py
Python
vnpy/api/xtp/generator/generate_data_type.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
19
2021-12-17T12:09:53.000Z
2022-02-03T12:42:43.000Z
vnpy/api/xtp/generator/generate_data_type.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
1
2021-12-31T02:38:36.000Z
2021-12-31T02:38:36.000Z
vnpy/api/xtp/generator/generate_data_type.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
10
2021-03-14T13:28:18.000Z
2022-02-18T13:38:17.000Z
"""""" TYPE_CPP2PY = { "uint8_t": "int", # 3 "char": "string", # 2 "double": "double", # 1 "short": "int", "XTP_EXCHANGE_TYPE": "enum" } class DataTypeGenerator: """DataType生成器""" def __init__(self, filename: str, prefix: str): """Constructor""" self.filename: ...
28.102941
81
0.493197
45300848d04fc45437287cccc034059d0607b108
2,426
py
Python
bot/code/example/main.py
luckydonald/docker-telegram-bot
df1bcd46b7005276486ea9de95e8067e8ffd0bf9
[ "MIT" ]
10
2018-07-31T14:51:34.000Z
2021-01-17T12:41:24.000Z
bot/code/example/main.py
luckydonald/docker-telegram-bot
df1bcd46b7005276486ea9de95e8067e8ffd0bf9
[ "MIT" ]
1
2019-04-08T13:50:12.000Z
2019-05-06T09:23:06.000Z
bot/code/example/main.py
luckydonald/docker-telegram-bot
df1bcd46b7005276486ea9de95e8067e8ffd0bf9
[ "MIT" ]
6
2018-12-15T19:50:44.000Z
2021-06-02T23:25:43.000Z
# -*- coding: utf-8 -*- __author__ = 'luckydonald' import os from flask import Flask, url_for from teleflask import Teleflask from teleflask.messages import HTMLMessage, MarkdownMessage, TextMessage from luckydonaldUtils.logger import logging API_KEY = os.getenv('TG_API_KEY', None) assert(API_KEY is not None) # TG_A...
30.325
193
0.701979
c730f040abe60c3353761c1fa8be175f7a634a7e
1,544
py
Python
arithmetic/binary_tree.py
sunjinbo/hipython
20bfd518cdd76f4f567c9147c4a68e19efd095eb
[ "MIT" ]
null
null
null
arithmetic/binary_tree.py
sunjinbo/hipython
20bfd518cdd76f4f567c9147c4a68e19efd095eb
[ "MIT" ]
null
null
null
arithmetic/binary_tree.py
sunjinbo/hipython
20bfd518cdd76f4f567c9147c4a68e19efd095eb
[ "MIT" ]
null
null
null
# 定义节点类 class Node: def __init__(self, key, left=None, right=None): self.key = key self.left = left self.right = right # 定义二叉树 class BinaryTree: def __init__(self): self.root = None def add(self, key): node = Node(key) if self.root is None: self...
23.753846
53
0.459845
d9fff00ddf65dd9aa8afd99bf40bb3c668dd173c
1,880
py
Python
venv/Lib/site-packages/astroid/brain/brain_numpy_utils.py
professorbee/randomplushmiku
b2db186a5d081da0cb00b8c73dee9eff6047b1f1
[ "MIT" ]
null
null
null
venv/Lib/site-packages/astroid/brain/brain_numpy_utils.py
professorbee/randomplushmiku
b2db186a5d081da0cb00b8c73dee9eff6047b1f1
[ "MIT" ]
1
2021-04-12T16:20:40.000Z
2021-04-12T16:20:40.000Z
venv/Lib/site-packages/astroid/brain/brain_numpy_utils.py
professorbee/randomplushmiku
b2db186a5d081da0cb00b8c73dee9eff6047b1f1
[ "MIT" ]
1
2021-04-12T15:52:04.000Z
2021-04-12T15:52:04.000Z
# Copyright (c) 2019-2020 hippo91 <guillaume.peillex@gmail.com> # Copyright (c) 2019-2020 Claudiu Popa <pcmanticore@gmail.com> # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html # For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER """Different utilities for th...
28.484848
85
0.671809
4865954fb25158733e401e4b77724284a250c69a
15,320
py
Python
convex_code/experiment_epsilon_final.py
ZhicongLiang/ChocoSGD
a127f32e0629d32dc6ca4c4f2837c3980fa3f76c
[ "Apache-2.0" ]
39
2019-06-16T15:28:49.000Z
2022-03-15T09:20:35.000Z
convex_code/experiment_epsilon_final.py
Distributed-Deep-Learning/ChocoSGD
c7715b368cc9f66674720ea9c823032c8058bdf6
[ "Apache-2.0" ]
6
2020-04-15T21:02:49.000Z
2021-05-24T23:24:03.000Z
convex_code/experiment_epsilon_final.py
Distributed-Deep-Learning/ChocoSGD
c7715b368cc9f66674720ea9c823032c8058bdf6
[ "Apache-2.0" ]
18
2019-07-24T22:19:10.000Z
2022-02-09T08:20:10.000Z
import argparse import multiprocessing as mp import os import pickle from sklearn.datasets import load_svmlight_file import numpy as np from logistic import LogisticDecentralizedSGD from parameters import Parameters from utils import pickle_it from experiment import run_logistic, run_experiment A, b = None, None i...
48.481013
97
0.538251
4a32fe6ddd6d060004ea4706c1125983a56d89b6
7,776
py
Python
app/main.py
sisoftrg/citrocan
66cfa3b7750b8c64257c175a4e3447b95b4575cd
[ "MIT" ]
7
2016-05-16T19:16:35.000Z
2021-05-26T22:44:40.000Z
app/main.py
black0592/citrocan
66cfa3b7750b8c64257c175a4e3447b95b4575cd
[ "MIT" ]
1
2016-08-28T08:50:48.000Z
2016-08-28T08:50:48.000Z
app/main.py
black0592/citrocan
66cfa3b7750b8c64257c175a4e3447b95b4575cd
[ "MIT" ]
3
2016-07-25T06:53:30.000Z
2017-07-24T23:04:00.000Z
#!/usr/bin/python # Citrocan # Copyright (c) 2016 sisoftrg # The MIT License (MIT) import time import threading import kivy from kivy.app import App from kivy.clock import Clock from kivy.core.window import Window from kivy.properties import StringProperty, NumericProperty, BooleanProperty try: from jnius impor...
30.735178
125
0.460134
2a0fc88f3db6a2c592179baa74223286492c51ff
6,620
py
Python
app/routes/object_storage/objects.py
jcanabarro/oci-emulator-1
73e034923d8175f6472206da1ff7b29d42a7fb22
[ "MIT" ]
10
2021-03-03T13:45:32.000Z
2021-11-16T13:34:38.000Z
app/routes/object_storage/objects.py
jcanabarro/oci-emulator-1
73e034923d8175f6472206da1ff7b29d42a7fb22
[ "MIT" ]
5
2021-03-10T00:37:47.000Z
2021-05-07T14:47:53.000Z
app/routes/object_storage/objects.py
jcanabarro/oci-emulator-1
73e034923d8175f6472206da1ff7b29d42a7fb22
[ "MIT" ]
5
2021-03-03T13:52:00.000Z
2021-04-14T19:22:51.000Z
import logging import json import uuid import os from flask import Blueprint from flask import request, Response from app.resources.object_storage.buckets import get_bucket, get_object from app.resources.object_storage.objects import get_objects logger = logging.getLogger(__name__) objects = Blueprint("objects", __n...
31.374408
164
0.560876
524d0c968325f829a73a6cc869b93931ea63fabc
12,985
py
Python
src/lib/opts.py
nolanzzz/fair
c213f053c53aa94e57d7f659bbd1ff79a56cb203
[ "MIT" ]
null
null
null
src/lib/opts.py
nolanzzz/fair
c213f053c53aa94e57d7f659bbd1ff79a56cb203
[ "MIT" ]
null
null
null
src/lib/opts.py
nolanzzz/fair
c213f053c53aa94e57d7f659bbd1ff79a56cb203
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys class opts(object): def __init__(self): self.parser = argparse.ArgumentParser() # basic experiment setting self.parser.add_argument('task', default='mot', hel...
51.122047
109
0.591298
775120b5c34a9962ab4e778c571d19788b4ab04d
11,275
py
Python
typecat/font.py
varun-iyer/typecat
fcdcbd793da666ccb7c38729f1b8473464be8e18
[ "MIT" ]
3
2019-08-30T22:53:16.000Z
2020-06-15T21:34:06.000Z
typecat/font.py
varun-iyer/typecat
fcdcbd793da666ccb7c38729f1b8473464be8e18
[ "MIT" ]
null
null
null
typecat/font.py
varun-iyer/typecat
fcdcbd793da666ccb7c38729f1b8473464be8e18
[ "MIT" ]
null
null
null
""" Contains the Font class and the RenderError thrown when a font cannot be rendered correctly. """ import os from math import pi, sqrt import pickle import numpy as np import tensorflow as tf from PIL import Image, ImageDraw, ImageFont, ImageStat, ImageOps import typecat.config as config import typecat.font2img as f2...
34.166667
96
0.573747
d1df044d6d4903e89cebef9fa8755cd35602122f
15,828
py
Python
randomizers/palettes.py
DualVission/wwrando
0e7b141db26721d09b75a22ea92fb852c2c89180
[ "MIT" ]
2
2021-05-16T03:03:32.000Z
2022-01-27T19:01:45.000Z
randomizers/palettes.py
DualVission/wwrando
0e7b141db26721d09b75a22ea92fb852c2c89180
[ "MIT" ]
2
2020-12-26T19:24:11.000Z
2021-05-05T05:37:54.000Z
randomizers/palettes.py
DualVission/wwrando
0e7b141db26721d09b75a22ea92fb852c2c89180
[ "MIT" ]
3
2020-11-06T05:40:08.000Z
2021-08-17T19:27:12.000Z
import os from wwlib import texture_utils from fs_helpers import * def randomize_enemy_palettes(self): for randomizable_file_group in self.palette_randomizable_files: h_shift = self.rng.randint(20, 340) v_shift = self.rng.randint(-40, 40) #print(h_shift, v_shift) if self.dry_run: continue ...
41.652632
233
0.71184
d24b23c8a713a6a60e915aa00ef4557b3841790f
447
py
Python
tests/conftest.py
RazerM/RateLimiting
da78a45867c3a204083c6ea8ee74f6b3e78ef524
[ "Apache-2.0" ]
79
2016-03-12T23:01:32.000Z
2022-03-14T13:14:40.000Z
conftest.py
panyicast/spacetrack
d2deafaa22454e3482afe90eef3a77aeb20fa5e2
[ "MIT" ]
12
2017-02-01T23:31:14.000Z
2021-11-03T16:31:44.000Z
conftest.py
panyicast/spacetrack
d2deafaa22454e3482afe90eef3a77aeb20fa5e2
[ "MIT" ]
21
2017-01-12T12:35:07.000Z
2022-03-15T19:20:28.000Z
# coding: utf-8 from __future__ import absolute_import, division, print_function import sys import pytest class DummyCollector(pytest.collect.File): def collect(self): return [] def pytest_pycollect_makemodule(path, parent): # skip asyncio tests unless on Python 3.5+, because async/await # is ...
23.526316
67
0.720358
15b88fd38ec2ed6b49a440a10852d8a93bb903b5
976
py
Python
tests/framework/PostProcessors/TopologicalPostProcessor/Schwefel.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
159
2017-03-24T21:07:06.000Z
2022-03-20T13:44:40.000Z
tests/framework/PostProcessors/TopologicalPostProcessor/Schwefel.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
1,667
2017-03-27T14:41:22.000Z
2022-03-31T19:50:06.000Z
tests/framework/PostProcessors/TopologicalPostProcessor/Schwefel.py
rinelson456/raven
1114246136a2f72969e75b5e99a11b35500d4eef
[ "Apache-2.0" ]
95
2017-03-24T21:05:03.000Z
2022-03-08T17:30:22.000Z
# Copyright 2017 Battelle Energy Alliance, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
27.111111
79
0.723361
51ea0491021f88e3abc80fb5a35fffc1395c55c0
837
py
Python
module/line.py
Jiei-S/train-info-notification
0440726af82b0ad1039b1c11fcb87c73493cda74
[ "MIT" ]
null
null
null
module/line.py
Jiei-S/train-info-notification
0440726af82b0ad1039b1c11fcb87c73493cda74
[ "MIT" ]
null
null
null
module/line.py
Jiei-S/train-info-notification
0440726af82b0ad1039b1c11fcb87c73493cda74
[ "MIT" ]
null
null
null
"""LINE通知モジュール """ import os import requests class Line: """ LINE通知クラス """ def __init__(self): try: self.url = os.environ['LINE_API_URL'] self.token = os.environ['LINE_API_TOKEN'] self.headers = {'Authorization': 'Bearer ' + self.token} except KeyError as er...
23.25
68
0.495818
cf9ab4ccbf7e6c5f70bb02d8429d18aea3953fb7
8,766
py
Python
model_correction/code/find_subsystem_Yeast8_using_code.py
hongzhonglu/yeast-model-update
0268d72320caa61a84c4e11634700cb51ffa9009
[ "MIT" ]
2
2018-03-10T07:23:29.000Z
2022-03-21T15:27:42.000Z
model_correction/code/find_subsystem_Yeast8_using_code.py
hongzhonglu/yeast-model-update
0268d72320caa61a84c4e11634700cb51ffa9009
[ "MIT" ]
null
null
null
model_correction/code/find_subsystem_Yeast8_using_code.py
hongzhonglu/yeast-model-update
0268d72320caa61a84c4e11634700cb51ffa9009
[ "MIT" ]
1
2018-06-05T09:11:51.000Z
2018-06-05T09:11:51.000Z
# -*- coding: utf-8 -*- # -*- python 3 -*- # -*- hongzhong Lu -*- # Import packages import numpy as np import pandas as pd import os ##for directory import sys import pprint from cobra.io import read_sbml_model, write_sbml_model,save_json_model import re import cobrapy from cobra import Model, Reaction, Metabolite...
44.497462
300
0.723363
dc602ab6184874fbba8e7114785bcf65fca2639e
30,812
py
Python
tushare/stock/cons.py
Federer1976/tushare
1640f2beb200fa99e10dbba0fd19d0b7138f034e
[ "BSD-3-Clause" ]
1
2019-02-15T12:59:02.000Z
2019-02-15T12:59:02.000Z
tushare/stock/cons.py
Federer1976/tushare
1640f2beb200fa99e10dbba0fd19d0b7138f034e
[ "BSD-3-Clause" ]
null
null
null
tushare/stock/cons.py
Federer1976/tushare
1640f2beb200fa99e10dbba0fd19d0b7138f034e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- ''' Created on 2014/07/31 @author: Jimmy Liu @group : waditu @contact: jimmysoa@sina.cn ''' VERSION = '1.0.3' K_LABELS = ['D', 'W', 'M'] K_MIN_LABELS = ['5', '15', '30', '60'] K_TYPE = {'D': 'akdaily', 'W': 'akweekly', 'M': 'akmonthly'} TT_K_TYPE = {'D': 'day', 'W': 'week', 'M': 'month'} FQ_KEY ...
68.471111
1,050
0.577989
7c4540a8e0413bc2d755d17f63c604fbcdb6dced
13,228
py
Python
jupyter_examples/isric_soils.py
xarabiburacaramba/olu_v2
9a62a113f6a4daddb4f76b362e7a25a61121cc81
[ "BSD-2-Clause" ]
null
null
null
jupyter_examples/isric_soils.py
xarabiburacaramba/olu_v2
9a62a113f6a4daddb4f76b362e7a25a61121cc81
[ "BSD-2-Clause" ]
null
null
null
jupyter_examples/isric_soils.py
xarabiburacaramba/olu_v2
9a62a113f6a4daddb4f76b362e7a25a61121cc81
[ "BSD-2-Clause" ]
null
null
null
# %% import os import tridy from tridy import GeoConcept, SubGeoConcept, MetaData, Table, View, DBStorage, DataSource, Feature, FeatureWithID, AdmUnitFeature, OLUFeature, Grid, Imagee, ds_from_metadata, xml_lpis_cz_reader, lpis_cz__posledni_aktualizace, get_listvalues_from_generator, apply_function, select_nodes_from_...
46.577465
504
0.718854
6ef876284552990df19512c7c0a9a22ea90527f3
122
py
Python
src/wizcoin/__init__.py
jaydeep32/wizcoin
1a73e9140ef91a48bd45e38ffc1ec3d9ae158757
[ "MIT" ]
null
null
null
src/wizcoin/__init__.py
jaydeep32/wizcoin
1a73e9140ef91a48bd45e38ffc1ec3d9ae158757
[ "MIT" ]
null
null
null
src/wizcoin/__init__.py
jaydeep32/wizcoin
1a73e9140ef91a48bd45e38ffc1ec3d9ae158757
[ "MIT" ]
null
null
null
"""WizCoin By Jaydeep jaydeipgajera2020@gmail.com A Python module to manage wizard's currency.""" __version__ = '0.1.0'
17.428571
47
0.745902
2e03d8ddca94a006bc4d159dd63c2e1feb297df3
37,228
py
Python
carbonplan_trace/v1/glas_height_metrics.py
carbonplan/trace
5cf113891bdefa29c2afd4478dff099e0458c82c
[ "MIT" ]
14
2021-02-15T22:40:52.000Z
2022-02-24T15:25:28.000Z
carbonplan_trace/v1/glas_height_metrics.py
carbonplan/trace
5cf113891bdefa29c2afd4478dff099e0458c82c
[ "MIT" ]
75
2021-02-11T17:57:42.000Z
2022-03-22T00:47:57.000Z
carbonplan_trace/v1/glas_height_metrics.py
carbonplan/trace
5cf113891bdefa29c2afd4478dff099e0458c82c
[ "MIT" ]
2
2021-09-28T01:51:19.000Z
2021-11-22T21:32:35.000Z
from datetime import datetime, timezone from functools import partial import matplotlib.pyplot as plt import numpy as np import pandas as pd import xarray as xr def sig_beg_to_sig_end_ht(ds): """ Waveform extent from signal beginning to end """ return get_heights_from_distance( ds, top_metric...
37.042786
159
0.730552
0994fd006a5b7bb2272ef8b39e7d9f53a4d32458
5,893
py
Python
virtual_env/libs/mysql-connector/python2/mysql/connector/locales/eng/client_error.py
rcosnita/fantastico
81c8590556baa9e1148071b7835d74b1efada561
[ "MIT" ]
2
2016-12-18T02:42:25.000Z
2018-01-30T16:32:29.000Z
virtual_env/libs/mysql-connector/python2/mysql/connector/locales/eng/client_error.py
rcosnita/fantastico
81c8590556baa9e1148071b7835d74b1efada561
[ "MIT" ]
1
2020-07-28T07:16:35.000Z
2020-07-28T07:16:35.000Z
virtual_env/libs/mysql-connector/python2/mysql/connector/locales/eng/client_error.py
rcosnita/fantastico
81c8590556baa9e1148071b7835d74b1efada561
[ "MIT" ]
1
2020-07-24T05:55:28.000Z
2020-07-24T05:55:28.000Z
# -*- coding: utf-8 -*- # MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. # # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There...
62.691489
200
0.781436
30eb14ad9b8cb1ada04fda893f3bcfea376752bd
7,981
py
Python
nicos/devices/vendor/qmesydaq/taco.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-03-26T10:30:45.000Z
2021-03-26T10:30:45.000Z
nicos/devices/vendor/qmesydaq/taco.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos/devices/vendor/qmesydaq/taco.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
3
2020-08-04T18:35:05.000Z
2021-04-16T11:22:08.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
37.12093
80
0.605563
863524b4c9f6d87ae4d729fbe338809fad80e0e5
6,733
py
Python
indy_node/test/validator_info/test_validator_info.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
627
2017-07-06T12:38:08.000Z
2022-03-30T13:18:43.000Z
indy_node/test/validator_info/test_validator_info.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
580
2017-06-29T17:59:57.000Z
2022-03-29T21:37:52.000Z
indy_node/test/validator_info/test_validator_info.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
704
2017-06-29T17:45:34.000Z
2022-03-30T07:08:58.000Z
import pytest from indy_node.test.state_proof.helper import sdk_submit_operation_and_get_result from plenum.common.constants import TARGET_NYM, RAW, NAME, VERSION, ORIGIN # noinspection PyUnresolvedReferences from plenum.common.ledger import Ledger from plenum.test.primary_selection.test_view_changer_primary_selectio...
34.005051
115
0.701619
93aca0445091bd378d3b75834c8e029b9e748126
3,817
py
Python
mne/inverse_sparse/tests/test_mxne_inverse.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
2
2015-09-27T20:33:49.000Z
2020-04-22T19:10:56.000Z
mne/inverse_sparse/tests/test_mxne_inverse.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
null
null
null
mne/inverse_sparse/tests/test_mxne_inverse.py
Anevar/mne-python
15b19ed6b9364ae4787f0df2fd7e689b3c0a30bb
[ "BSD-3-Clause" ]
1
2018-09-15T09:45:38.000Z
2018-09-15T09:45:38.000Z
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de> # # License: Simplified BSD import os.path as op import copy import numpy as np from numpy.testing import assert_array_almost_equal from nose.tools import assert_true from mne.datasets import samp...
40.178947
79
0.654965
00d41909e1e56ef1ac10abeed76b6664d5c8dafa
119,849
py
Python
salt/utils/cloud.py
waynegemmell/salt
88056db3589cccab8956c2ae4f9b733acce89461
[ "Apache-2.0" ]
3
2015-08-30T04:23:47.000Z
2018-07-15T00:35:23.000Z
salt/utils/cloud.py
waynegemmell/salt
88056db3589cccab8956c2ae4f9b733acce89461
[ "Apache-2.0" ]
null
null
null
salt/utils/cloud.py
waynegemmell/salt
88056db3589cccab8956c2ae4f9b733acce89461
[ "Apache-2.0" ]
1
2022-02-22T10:43:09.000Z
2022-02-22T10:43:09.000Z
""" Utility functions for salt.cloud """ import codecs import copy import errno import hashlib import logging import multiprocessing import os import pipes import re import shutil import socket import stat import subprocess import tempfile import time import traceback import uuid import salt.client import salt.cloud...
34.301374
91
0.565612
811d47086854b3614a189be7aca70ddace052fa2
5,771
py
Python
tensor2tensor/mesh_tensorflow/mtf_toy.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
null
null
null
tensor2tensor/mesh_tensorflow/mtf_toy.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
null
null
null
tensor2tensor/mesh_tensorflow/mtf_toy.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
null
null
null
# 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...
32.240223
80
0.723965
aa6e8f47ade225b1c2f98ce05436bd2bf71454f2
3,244
py
Python
utime/io/high_level_file_loaders.py
aluquecerp/U-Time
c792259825b57e49544684ce2997f3ac8db84c6e
[ "MIT" ]
null
null
null
utime/io/high_level_file_loaders.py
aluquecerp/U-Time
c792259825b57e49544684ce2997f3ac8db84c6e
[ "MIT" ]
null
null
null
utime/io/high_level_file_loaders.py
aluquecerp/U-Time
c792259825b57e49544684ce2997f3ac8db84c6e
[ "MIT" ]
null
null
null
""" A collection of high level of data loader functions for PSG and hypnogram files This file should contain only the following functions: - load_psg(file_path, *args, **kwargs) --> psg_array, psg_header - load_hypnogram(file_path, *args, **kwargs) --> hypnogram, annotation dict """ from utime.io.file_loaders impor...
42.684211
80
0.656905
3c89cdcae8664c2aca744c2696365032a7531354
871
py
Python
setup.py
Toricane/template-for-extensions
7555199fcfa1b28c0420e6c75ded044b2db9d411
[ "MIT" ]
null
null
null
setup.py
Toricane/template-for-extensions
7555199fcfa1b28c0420e6c75ded044b2db9d411
[ "MIT" ]
null
null
null
setup.py
Toricane/template-for-extensions
7555199fcfa1b28c0420e6c75ded044b2db9d411
[ "MIT" ]
2
2022-02-15T22:53:03.000Z
2022-02-19T16:24:58.000Z
from interactions.ext import Base, build, Version, VersionAuthor # gets the long description from the README file with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() # data for pypi data = { "name": "interactions.ext.import_name", # the name of the extension "description": "...
32.259259
104
0.693456
65e0c4523d3f2b02a780d5ef269e7b57622fcee1
891
py
Python
Multidimensional_lists/multidimensional_lists_exercise1/hackerrank_nested_list_problem.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
2
2022-03-05T13:17:12.000Z
2022-03-05T13:17:16.000Z
Multidimensional_lists/multidimensional_lists_exercise1/hackerrank_nested_list_problem.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
Multidimensional_lists/multidimensional_lists_exercise1/hackerrank_nested_list_problem.py
petel3/Softuni_education
4fd80f8c6ce6c3d6a838edecdb091dda2ed1084c
[ "MIT" ]
null
null
null
# new_list=[] # name_list=[] # # n=int(input()) # dict_names={} # for _ in range(n): # new_list.append([input(),float(input())]) # # for el in new_list: # name,score=el # if score not in dict_names: # dict_names[score]=[] # dict_names[score].append(name) # dict_names=sorted(dict_names.items()) ...
19.8
47
0.61055
327da237f5478e20fcd9294a0f5d2a88e9f811a7
12,531
py
Python
caffe2/python/brew_test.py
kickers18/caffe2
f69232c9237174f8e272c0fc59d3e28af52842f2
[ "Apache-2.0" ]
585
2015-08-10T02:48:52.000Z
2021-12-01T08:46:59.000Z
caffe2/python/brew_test.py
mingzhe09088/caffe2
8f41717c46d214aaf62b53e5b3b9b308b5b8db91
[ "Apache-2.0" ]
23
2015-08-30T11:54:51.000Z
2017-03-06T03:01:07.000Z
caffe2/python/brew_test.py
mingzhe09088/caffe2
8f41717c46d214aaf62b53e5b3b9b308b5b8db91
[ "Apache-2.0" ]
183
2015-08-10T02:49:04.000Z
2021-12-01T08:47:13.000Z
# Copyright (c) 2016-present, Facebook, 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...
36.427326
83
0.602266
58c962c01860ed23b02b6ad66c7315613cce4471
4,229
py
Python
src/navigation_projmaj/script/move_turtlebot.py
valer23/robot
23bc23e8d699c449e6150ce24ed7a083180734b2
[ "MIT" ]
null
null
null
src/navigation_projmaj/script/move_turtlebot.py
valer23/robot
23bc23e8d699c449e6150ce24ed7a083180734b2
[ "MIT" ]
null
null
null
src/navigation_projmaj/script/move_turtlebot.py
valer23/robot
23bc23e8d699c449e6150ce24ed7a083180734b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import actionlib import dlib_reco_image # import face_detect #import servomotor import play_sound from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal from actionlib_msgs.msg import * from geometry_msgs.msg import Point from kobuki_msgs.msg import ButtonEvent class MapNaviga...
32.282443
104
0.604871
9f7dba4dae3bf61b3daf71514a6e51adf3557508
392
py
Python
test2.py
kjenney/redfin
8235679e18844b715f505e2d85dc22aad0355a4c
[ "MIT" ]
31
2021-01-11T21:59:04.000Z
2022-03-26T23:53:34.000Z
test2.py
kjenney/redfin
8235679e18844b715f505e2d85dc22aad0355a4c
[ "MIT" ]
10
2021-03-09T16:25:46.000Z
2022-03-14T01:43:21.000Z
test2.py
kjenney/redfin
8235679e18844b715f505e2d85dc22aad0355a4c
[ "MIT" ]
15
2021-03-13T16:49:22.000Z
2022-03-25T00:54:42.000Z
from redfin import Redfin client = Redfin() address = '4544 Radnor St, Detroit Michigan' response = client.search(address) url = response['payload']['exactMatch']['url'] initial_info = client.initial_info(url) property_id = initial_info['payload']['propertyId'] listing_id = initial_info['payload']['listingId'] mls...
23.058824
57
0.762755
04f454eee4d426817bdff1d0681546da9988f19e
2,829
py
Python
distiller/__init__.py
vkoriukina/distiller
5463ddf2b0b0e6c53a475e412c048de9be411e50
[ "Apache-2.0" ]
null
null
null
distiller/__init__.py
vkoriukina/distiller
5463ddf2b0b0e6c53a475e412c048de9be411e50
[ "Apache-2.0" ]
null
null
null
distiller/__init__.py
vkoriukina/distiller
5463ddf2b0b0e6c53a475e412c048de9be411e50
[ "Apache-2.0" ]
1
2019-04-01T05:41:18.000Z
2019-04-01T05:41:18.000Z
# # 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...
28.867347
88
0.702722
6a6037b8d30b3eec7cc5cc713e40e6f1b8ee94d3
82
py
Python
integration_tests/test-packages/python/pythonspecific2/pythonspecific2/__init__.py
franklinen/doppel-cli
959041ceec578b63fa507b0d71e2ce9e752fb5b7
[ "BSD-3-Clause" ]
5
2019-03-11T12:44:59.000Z
2021-02-01T08:10:41.000Z
integration_tests/test-packages/python/pythonspecific2/pythonspecific2/__init__.py
franklinen/doppel-cli
959041ceec578b63fa507b0d71e2ce9e752fb5b7
[ "BSD-3-Clause" ]
174
2019-01-20T03:08:44.000Z
2021-11-03T04:25:56.000Z
integration_tests/test-packages/python/pythonspecific2/pythonspecific2/__init__.py
franklinen/doppel-cli
959041ceec578b63fa507b0d71e2ce9e752fb5b7
[ "BSD-3-Clause" ]
17
2019-04-16T18:23:53.000Z
2021-10-01T15:01:40.000Z
# flake8: noqa __all__ = ["create_warning", "custom_post"] from .module import *
16.4
43
0.707317
fcbd0fdcaa156a820761899af11647f5132367cc
2,001
py
Python
ucs/domain/models.py
ghga-de/upload-controller-service
63cb66797de5e305e6436f007fd1686bb2a8c2fc
[ "Apache-2.0" ]
null
null
null
ucs/domain/models.py
ghga-de/upload-controller-service
63cb66797de5e305e6436f007fd1686bb2a8c2fc
[ "Apache-2.0" ]
8
2021-12-09T17:12:59.000Z
2022-02-23T16:13:23.000Z
ucs/domain/models.py
ghga-de/upload-controller-service
63cb66797de5e305e6436f007fd1686bb2a8c2fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 - 2022 Universität Tübingen, DKFZ and EMBL # for the German Human Genome-Phenome Archive (GHGA) # # 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/...
26.68
88
0.717641
a411f338b04b51b732ff298b466e0f0295ad9971
26,373
py
Python
check_stability.py
freeatnet/web-platform-tests
58ca00e305a40b43ea03b1be95819d61bf7d19c8
[ "BSD-3-Clause" ]
null
null
null
check_stability.py
freeatnet/web-platform-tests
58ca00e305a40b43ea03b1be95819d61bf7d19c8
[ "BSD-3-Clause" ]
null
null
null
check_stability.py
freeatnet/web-platform-tests
58ca00e305a40b43ea03b1be95819d61bf7d19c8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import argparse import logging import os import re import stat import subprocess import sys import tarfile import zipfile from abc import ABCMeta, abstractmethod from cStringIO import StringIO as CStringIO from collections import defaultdict from ConfigParser import RawConfigParse...
34.429504
136
0.607022
225c15cb5172a9e3e9a18eba95766ddf1e075bd1
7,403
py
Python
soft_sort/losses.py
jrmendeshurb/google-research
f9fa8cdd2fb77975b524371fd29df008b9dc6cf4
[ "Apache-2.0" ]
1
2020-08-14T08:11:30.000Z
2020-08-14T08:11:30.000Z
soft_sort/losses.py
jrmendeshurb/google-research
f9fa8cdd2fb77975b524371fd29df008b9dc6cf4
[ "Apache-2.0" ]
12
2020-09-25T22:43:27.000Z
2022-02-10T02:21:35.000Z
soft_sort/losses.py
ZachT1711/google-research
662e6837a3efa0c40b11cb4122447c4b028d2115
[ "Apache-2.0" ]
1
2020-03-16T14:21:31.000Z
2020-03-16T14:21:31.000Z
# coding=utf-8 # Copyright 2019 The Google Research 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 applicab...
34.919811
80
0.701878
3fe24af164ad058e93e2cb749d60dc39374f961d
1,488
py
Python
python/lbann/weights.py
jychoi-hpc/lbann
4232883aee90448e8beb89967ce30fee9c4a68bf
[ "Apache-2.0" ]
null
null
null
python/lbann/weights.py
jychoi-hpc/lbann
4232883aee90448e8beb89967ce30fee9c4a68bf
[ "Apache-2.0" ]
1
2019-01-18T02:33:37.000Z
2019-01-23T02:07:57.000Z
python/lbann/weights.py
jychoi-hpc/lbann
4232883aee90448e8beb89967ce30fee9c4a68bf
[ "Apache-2.0" ]
null
null
null
"""Trainable model parameters.""" import abc from lbann import weights_pb2 import lbann.util.class_generator class Initializer(abc.ABC): """Initialization scheme for `Weights`.""" def export_proto(self): """Construct and return a protobuf message.""" return weights_pb2.Initializer() # Generate...
31.659574
79
0.683468
d3fd4cea0da72c8b66aec370f77f17c9bd592ab2
1,726
py
Python
3_screening/NREL/NREL_analysis.py
Jana-Marie-Weber/strategic_molecules
6f3e0bd2efa6b43e48f6c5414caeffc03570ec1d
[ "BSD-2-Clause" ]
4
2020-01-20T19:54:52.000Z
2022-02-14T01:50:50.000Z
3_screening/NREL/NREL_analysis.py
Jana-Marie-Weber/strategic_molecules
6f3e0bd2efa6b43e48f6c5414caeffc03570ec1d
[ "BSD-2-Clause" ]
null
null
null
3_screening/NREL/NREL_analysis.py
Jana-Marie-Weber/strategic_molecules
6f3e0bd2efa6b43e48f6c5414caeffc03570ec1d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 11 10:03:31 2019 @author: jmw254 """ #NREL screening #you nee dto specify the network you want to load NETWORK_FILE="" import cPickle as pickle import graph_tool.all as gt hubs=pickle.load(open("hubs_contamination0.001.p","rb")) g=gt.load_graph(...
29.254237
127
0.502317
1b51ce6f6a51b72bd383da5180b06572a721081b
10,749
py
Python
google/ads/google_ads/v5/services/campaign_audience_view_service_client.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/services/campaign_audience_view_service_client.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/services/campaign_audience_view_service_client.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 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...
44.974895
124
0.662573
36c97f52bba2a95df9b1fd15036fa253c55a9832
380
py
Python
bard/bard/Logger.py
Accurate0/pybar
f9c630ba8201f0338be9699533d9f489986493e6
[ "MIT" ]
null
null
null
bard/bard/Logger.py
Accurate0/pybar
f9c630ba8201f0338be9699533d9f489986493e6
[ "MIT" ]
null
null
null
bard/bard/Logger.py
Accurate0/pybar
f9c630ba8201f0338be9699533d9f489986493e6
[ "MIT" ]
null
null
null
import logging class DuplicateFilter(logging.Filter): def filter(self, record): # add other fields if you need more granular comparison, depends on your app current_log = (record.module, record.levelno, record.msg) if current_log != getattr(self, "last_log", None): self.last_log...
34.545455
84
0.660526
8430ed73551751a7ddb8b9a1cd699c034d1ba68c
1,694
py
Python
egs/SBS-mul/s5_old/local/sbs_transcripts_preprocess_UR.py
irrawaddy28/SBS-kaldi-2015
01b056f429a673255975ad6b49d4116c1438c289
[ "Apache-2.0" ]
null
null
null
egs/SBS-mul/s5_old/local/sbs_transcripts_preprocess_UR.py
irrawaddy28/SBS-kaldi-2015
01b056f429a673255975ad6b49d4116c1438c289
[ "Apache-2.0" ]
null
null
null
egs/SBS-mul/s5_old/local/sbs_transcripts_preprocess_UR.py
irrawaddy28/SBS-kaldi-2015
01b056f429a673255975ad6b49d4116c1438c289
[ "Apache-2.0" ]
null
null
null
##Paul Hager ## Native Transcription with numerals to Native Transcription with written out numerals ## 7.9.15 ## sbs_data_preprocess_UR.py import string import sys import codecs ## Script should be run with the following options: ## python script.py <list of utterance IDs> <numeral dictionary> <data directory> <outp...
29.719298
105
0.698937
02d15ce160636f615811801de5f57b1cbb7b6943
4,699
py
Python
chinilla/cmds/rpc.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/cmds/rpc.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/cmds/rpc.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
import asyncio import json import sys from typing import Any, Dict, List, Optional, TextIO import click from aiohttp import ClientResponseError from chinilla.util.config import load_config from chinilla.util.default_root import DEFAULT_ROOT_PATH from chinilla.util.ints import uint16 services: List[str] = ["crawler",...
33.326241
120
0.592466
8ff5e62f5f5e834f8cefbbdc965b4ee6301a14b1
1,070
py
Python
server/api/weather.py
MrCreeper1008/covid19-alarm
2f07a602c60bafacab3aa977a22d11fc1d07b878
[ "MIT" ]
1
2021-11-30T11:03:36.000Z
2021-11-30T11:03:36.000Z
server/api/weather.py
kennethnym/covid19-alarm
2f07a602c60bafacab3aa977a22d11fc1d07b878
[ "MIT" ]
null
null
null
server/api/weather.py
kennethnym/covid19-alarm
2f07a602c60bafacab3aa977a22d11fc1d07b878
[ "MIT" ]
null
null
null
""" This module handles interactions with the OpenWeather api """ import os from typing import Dict import requests from server.utils.logger import log_exception OPEN_WEATHER_API_URL = "https://api.openweathermap.org/data/2.5" def fetch_weather(lat: float, long: float) -> Dict[str, any]: """ Fetches the c...
26.75
85
0.680374
24e37f01a09251ba98dc7e09186d9440b54679f6
86,436
py
Python
chess 2 player flip.py
Sbiswas3011/Chess-Engine
712372c10d5ffa5472f9378915ec080a37271b86
[ "MIT" ]
null
null
null
chess 2 player flip.py
Sbiswas3011/Chess-Engine
712372c10d5ffa5472f9378915ec080a37271b86
[ "MIT" ]
null
null
null
chess 2 player flip.py
Sbiswas3011/Chess-Engine
712372c10d5ffa5472f9378915ec080a37271b86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 8 19:47:50 2021 @author: Snehangsu """ import pygame from pygame.locals import * import copy from playsound import playsound class Pieces(pygame.sprite.Sprite): def __init__(self,name,wPH,x,y,s,color,piece,move): pygame.sprite.S...
47.966704
468
0.489553
63e377996cfe36064a24dee76946df4fdcf9529a
12,301
py
Python
prysm/coordinates.py
Lixiaoxin-HIT/prysm
42d95bd0352778d73555fc18f9b927706f841ae1
[ "MIT" ]
1
2022-03-29T02:10:14.000Z
2022-03-29T02:10:14.000Z
prysm/coordinates.py
Lixiaoxin-HIT/prysm
42d95bd0352778d73555fc18f9b927706f841ae1
[ "MIT" ]
null
null
null
prysm/coordinates.py
Lixiaoxin-HIT/prysm
42d95bd0352778d73555fc18f9b927706f841ae1
[ "MIT" ]
null
null
null
"""Coordinate conversions.""" import numpy as truenp from .conf import config from .mathops import np, interpolate, ndimage from .fttools import fftrange def optimize_xy_separable(x, y): """Optimize performance for downstream operations. Parameters ---------- x : numpy.ndarray 2D or 1D array...
27.580717
91
0.601089
4ed30a204ab222741908f6ba4c02685a470e5cd0
9,516
py
Python
RL_baxter_demo/gym/envs/robotics/fetch_env.py
birlrobotics/birlBaxter_demos
a4871cbf2587a759c958c8451746554e1663e829
[ "MIT" ]
24
2016-12-29T11:17:41.000Z
2021-12-06T00:49:10.000Z
RL_baxter_demo/gym/envs/robotics/fetch_env.py
birlrobotics/birlBaxter_demos
a4871cbf2587a759c958c8451746554e1663e829
[ "MIT" ]
2
2019-11-20T05:52:02.000Z
2019-12-30T09:07:56.000Z
RL_baxter_demo/gym/envs/robotics/fetch_env.py
birlrobotics/birlBaxter_demos
a4871cbf2587a759c958c8451746554e1663e829
[ "MIT" ]
9
2018-02-10T06:12:12.000Z
2021-10-11T11:56:07.000Z
import numpy as np from gym.envs.robotics import rotations, robot_env, utils def goal_distance(goal_a, goal_b): assert goal_a.shape == goal_b.shape return np.linalg.norm(goal_a - goal_b, axis=-1) class FetchEnv(robot_env.RobotEnv): """Superclass for all Fetch environments. """ def __init__( ...
46.194175
132
0.638083
88bf0c29ef6747a6cff0aa4eed56fd04197867e9
4,324
py
Python
theory/day10/day10.py
slmttndrk/Python-Elementary
925813c3a931602114651ec9ee0700c9b32bb547
[ "MIT" ]
null
null
null
theory/day10/day10.py
slmttndrk/Python-Elementary
925813c3a931602114651ec9ee0700c9b32bb547
[ "MIT" ]
7
2021-10-30T01:07:23.000Z
2021-11-11T21:39:41.000Z
theory/day10/day10.py
slmttndrk/Python-Elementary
925813c3a931602114651ec9ee0700c9b32bb547
[ "MIT" ]
null
null
null
# Dictionaries; # Dictionaries are sometimes found in other languages as “associative # memories” or “associative arrays”. Unlike sequences, which are indexed by # a range of numbers, dictionaries are indexed by keys, which can be any # immutable type; strings and numbers can always be keys. Tuples can be used # as k...
27.025
77
0.694727
ee8073e93662ef8804fc8a1aeb565e249ebc7427
255
py
Python
src/8/8371.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
11
2020-09-20T15:17:11.000Z
2022-03-17T12:43:33.000Z
src/8/8371.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
3
2021-10-30T07:51:36.000Z
2022-03-09T05:19:23.000Z
src/8/8371.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
13
2021-01-21T03:19:08.000Z
2022-03-28T10:44:58.000Z
""" 8371. Dyslexia 작성자: xCrypt0r 언어: Python 3 사용 메모리: 29,572 KB 소요 시간: 76 ms 해결 날짜: 2020년 9월 20일 """ def main(): n = int(input()) s1, s2 = input(), input() print(sum(s1[i] != s2[i] for i in range(n))) if __name__ == '__main__': main()
13.421053
48
0.564706
ff6a8a03ec122ec5026c16f5cea0779f63d0a234
4,581
py
Python
api/migrations/versions/502a611aae72_.py
adriane0523/Munch
e3f981cd50e788895b1e2e6c51728fbb8ef6d2ff
[ "MIT" ]
1
2022-02-20T23:56:45.000Z
2022-02-20T23:56:45.000Z
api/migrations/versions/502a611aae72_.py
adriane0523/Munch
e3f981cd50e788895b1e2e6c51728fbb8ef6d2ff
[ "MIT" ]
null
null
null
api/migrations/versions/502a611aae72_.py
adriane0523/Munch
e3f981cd50e788895b1e2e6c51728fbb8ef6d2ff
[ "MIT" ]
null
null
null
"""empty message Revision ID: 502a611aae72 Revises: Create Date: 2021-02-08 21:47:12.413939 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '502a611aae72' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
37.54918
70
0.662301
17ede6aee8520b65b4a97a948689dff1ec37b2b1
15,756
py
Python
uuv_control/uuv_trajectory_control/scripts/auv_geometric_tracking_controller.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_control/uuv_trajectory_control/scripts/auv_geometric_tracking_controller.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_control/uuv_trajectory_control/scripts/auv_geometric_tracking_controller.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Plankton Authors. # All rights reserved. # # This source code is derived from UUV Simulator # (https://github.com/uuvsimulator/uuv_simulator) # Copyright (c) 2016-2019 The UUV Simulator Authors # licensed under the Apache license, Version 2.0 # cf. 3rd-party-licenses.txt ...
42.93188
135
0.632457
938582f1cbc12acbecced594eb07ea0d690267f2
465
py
Python
blog_1439/deep_trans_demo.py
samsumario/blog_public
432a498f081cb943fd2846e0d377e225c6fa0622
[ "MIT" ]
null
null
null
blog_1439/deep_trans_demo.py
samsumario/blog_public
432a498f081cb943fd2846e0d377e225c6fa0622
[ "MIT" ]
null
null
null
blog_1439/deep_trans_demo.py
samsumario/blog_public
432a498f081cb943fd2846e0d377e225c6fa0622
[ "MIT" ]
null
null
null
from deep_translator import GoogleTranslator, MyMemoryTranslator import time search_list = ["look", "run", "again"] for word in search_list: translated = GoogleTranslator(source='en', target='es').translate(word) print("google result : " + translated) time.sleep(2) for word in search_list: ...
27.352941
78
0.688172
95b06689b556d1e2f416a688d5fc95fa7082dae2
3,858
py
Python
selim/losses.py
tilacyn/dsb2018_topcoders
e0f95ef70bc062d4dea321d2aa73231a9538cd63
[ "MIT" ]
null
null
null
selim/losses.py
tilacyn/dsb2018_topcoders
e0f95ef70bc062d4dea321d2aa73231a9538cd63
[ "MIT" ]
null
null
null
selim/losses.py
tilacyn/dsb2018_topcoders
e0f95ef70bc062d4dea321d2aa73231a9538cd63
[ "MIT" ]
null
null
null
import tensorflow.keras.backend as K from tensorflow.keras.losses import categorical_crossentropy import cv2 from tensorflow import convert_to_tensor import tensorflow as tf import math import numpy as np def hard_dice_coef(y_true, y_pred, smooth=1e-3): y_true_f = K.flatten(K.round(y_true[..., 0])) y_pred_f =...
33.547826
118
0.636081
c2b46708525363eb62c92dbdb3edbeabd4be2c59
46
py
Python
myprog.py
fboisro1/New
e62e5236ef47c40bc877f37d0ebb49e2717b993f
[ "MIT" ]
null
null
null
myprog.py
fboisro1/New
e62e5236ef47c40bc877f37d0ebb49e2717b993f
[ "MIT" ]
null
null
null
myprog.py
fboisro1/New
e62e5236ef47c40bc877f37d0ebb49e2717b993f
[ "MIT" ]
null
null
null
s = {1,2,3} sl = set(1) a = set('abracadabra')
15.333333
22
0.543478
a928dbba222f5b62c61c073036c335f856b4ba0d
71,784
py
Python
jina/flow/base.py
AnudeepGunukula/jina
a4183a3b57d194c6f4b92ec48b485ebedd37b88d
[ "Apache-2.0" ]
1
2021-09-16T03:54:34.000Z
2021-09-16T03:54:34.000Z
jina/flow/base.py
AnudeepGunukula/jina
a4183a3b57d194c6f4b92ec48b485ebedd37b88d
[ "Apache-2.0" ]
null
null
null
jina/flow/base.py
AnudeepGunukula/jina
a4183a3b57d194c6f4b92ec48b485ebedd37b88d
[ "Apache-2.0" ]
null
null
null
import argparse import base64 import copy import json import os import re import socket import threading import uuid import warnings from collections import OrderedDict from contextlib import ExitStack from typing import Optional, Union, Tuple, List, Set, Dict, overload, Type from .builder import allowed_levels, _hang...
43.087635
283
0.610289
f0527f5a66061693d33277c35f74ef7461ae0a17
201
py
Python
PCTC/2022 R1 Senior/Q8.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
1
2022-02-21T15:43:01.000Z
2022-02-21T15:43:01.000Z
PCTC/2022 R1 Senior/Q8.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
PCTC/2022 R1 Senior/Q8.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
n, alt = int(input()), int(input()) asc, des = 0, 0 for i in range(n): x = int(input()) if (x > alt): asc += x - alt else: des += alt - x alt = x print(asc) print(des)
15.461538
35
0.462687
af132bbb0b80688dcb0533a68d9db5ca481819c8
5,772
py
Python
categories/base.py
miceno/django-categories
ef58cae61ee8d0c0920302305f019d76896e72fb
[ "Apache-2.0" ]
null
null
null
categories/base.py
miceno/django-categories
ef58cae61ee8d0c0920302305f019d76896e72fb
[ "Apache-2.0" ]
null
null
null
categories/base.py
miceno/django-categories
ef58cae61ee8d0c0920302305f019d76896e72fb
[ "Apache-2.0" ]
null
null
null
""" This is the base class on which to build a hierarchical category-like model with customizable metadata and its own name space. """ from django.contrib import admin from django.db import models from django import forms from django.utils.encoding import force_text, python_2_unicode_compatible from django.utils.trans...
35.195122
135
0.630977
47a2d5207ae9268f41f9e30b9d307bd90f168d91
9,939
py
Python
alarmageddon/run.py
professor0x/Alarmageddon
2aa0493b78e8ea8ae7870651dc7ff1d8c58b309c
[ "Apache-2.0" ]
null
null
null
alarmageddon/run.py
professor0x/Alarmageddon
2aa0493b78e8ea8ae7870651dc7ff1d8c58b309c
[ "Apache-2.0" ]
null
null
null
alarmageddon/run.py
professor0x/Alarmageddon
2aa0493b78e8ea8ae7870651dc7ff1d8c58b309c
[ "Apache-2.0" ]
null
null
null
"""Methods that support running tests""" import time import collections import multiprocessing import warnings from alarmageddon.config import Config from alarmageddon.reporter import Reporter from alarmageddon.publishing import hipchat, pagerduty, graphite, junit from alarmageddon.validations.validation import Prior...
37.364662
109
0.656907
eed285aeb21bae2981b49cd67c2add91de67e4ec
12,915
py
Python
magenta/music/lead_sheets_lib.py
rickyHong/magenta-repl
93ec9bca9796056af4e0bb6580cb64540d85a96c
[ "Apache-2.0" ]
null
null
null
magenta/music/lead_sheets_lib.py
rickyHong/magenta-repl
93ec9bca9796056af4e0bb6580cb64540d85a96c
[ "Apache-2.0" ]
null
null
null
magenta/music/lead_sheets_lib.py
rickyHong/magenta-repl
93ec9bca9796056af4e0bb6580cb64540d85a96c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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 applicable law or ag...
37.112069
80
0.697871
9d161a6a93701e2eaec21988206b3c7412d47af1
3,904
py
Python
tests/libs.py
minhtuan221/py-ants
f51e88282d0964d782ea7e285205ae8377d117a7
[ "MIT" ]
17
2018-03-14T03:12:29.000Z
2020-09-21T17:27:59.000Z
tests/libs.py
minhtuan221/py-ants
f51e88282d0964d782ea7e285205ae8377d117a7
[ "MIT" ]
3
2018-07-23T03:48:26.000Z
2019-05-16T02:42:02.000Z
tests/libs.py
minhtuan221/py-ants
f51e88282d0964d782ea7e285205ae8377d117a7
[ "MIT" ]
2
2019-06-20T09:47:28.000Z
2020-09-21T17:28:01.000Z
# send json by request and received import requests from flask import request, Response r = requests.post('http://httpbin.org/post', json={"key": "value"}) r.status_code r.json() # receive json in flask @app.route('/api/add_message/<uuid>', methods=['GET', 'POST']) def add_message(uuid): if request.is_json(): ...
28.918519
298
0.696721
4ce3c00fa03218558203f4010d49aace63648f8e
4,471
py
Python
tasks/addition/train.py
ford-core-ai/neural-programming-architectures
66320b8ba64dc978a34b1df0c1357efd104cec27
[ "BSD-3-Clause" ]
null
null
null
tasks/addition/train.py
ford-core-ai/neural-programming-architectures
66320b8ba64dc978a34b1df0c1357efd104cec27
[ "BSD-3-Clause" ]
1
2021-08-12T08:53:27.000Z
2021-08-12T08:53:27.000Z
tasks/addition/train.py
ford-core-ai/neural-programming-architectures
66320b8ba64dc978a34b1df0c1357efd104cec27
[ "BSD-3-Clause" ]
null
null
null
""" train.py Core training script for the addition task-specific NPI. Instantiates a model, then trains using the precomputed data. """ from model.npi import NPI from tasks.addition.addition import AdditionCore from tasks.addition.env.config import CONFIG, get_args, ScratchPad, PROGRAM_SET, PROGRAM_ID as P import pick...
41.018349
114
0.548647
41a610a93419cbbf857c522c6b46b160eb0b6f77
5,809
py
Python
get_features/get_max_similarity.py
kennyouyang/my_project
96e32b3acc18daf36a4d5ee1f8bf701d5feaf643
[ "MIT" ]
null
null
null
get_features/get_max_similarity.py
kennyouyang/my_project
96e32b3acc18daf36a4d5ee1f8bf701d5feaf643
[ "MIT" ]
null
null
null
get_features/get_max_similarity.py
kennyouyang/my_project
96e32b3acc18daf36a4d5ee1f8bf701d5feaf643
[ "MIT" ]
1
2017-11-12T06:51:06.000Z
2017-11-12T06:51:06.000Z
#coding=utf-8 ''' Created on 2016年7月19日 _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : |||// \ / _||||| -:- |...
30.898936
139
0.522809
6fb4c3ea62cf3477ed73f351d7aa8bccba0f80ec
6,558
py
Python
python/ambassador/envoy/v2/v2cluster.py
imranismail/ambassador
0468c4f1daf2aeb254a5af3217d2d7f3ebf4cb90
[ "Apache-2.0" ]
1
2020-04-25T02:58:09.000Z
2020-04-25T02:58:09.000Z
python/ambassador/envoy/v2/v2cluster.py
imranismail/ambassador
0468c4f1daf2aeb254a5af3217d2d7f3ebf4cb90
[ "Apache-2.0" ]
null
null
null
python/ambassador/envoy/v2/v2cluster.py
imranismail/ambassador
0468c4f1daf2aeb254a5af3217d2d7f3ebf4cb90
[ "Apache-2.0" ]
1
2020-06-26T22:59:32.000Z
2020-06-26T22:59:32.000Z
# Copyright 2018 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
37.689655
119
0.580512
34ec86a08431a9e9e87d4bb31052d0b94d6ee480
1,873
py
Python
dora/link.py
kingjr/dora
f70fab1620c6cad6fc094be15ab22994bd08dd01
[ "MIT" ]
98
2021-09-21T14:27:21.000Z
2022-03-18T17:46:45.000Z
dora/link.py
kingjr/dora
f70fab1620c6cad6fc094be15ab22994bd08dd01
[ "MIT" ]
6
2021-09-22T13:29:48.000Z
2022-03-14T16:45:30.000Z
dora/link.py
kingjr/dora
f70fab1620c6cad6fc094be15ab22994bd08dd01
[ "MIT" ]
5
2021-09-21T12:42:01.000Z
2022-01-27T17:22:17.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import json import logging from pathlib import Path import typing as tp from retrying import retry from . import utils lo...
29.265625
81
0.641751
58726b8439f4295d71dcab699cf654257ac71528
5,075
py
Python
base/products.py
vishnu-sagubandi/LIAVYS_BACKEND
34c8a28d741cf6ca47ce1bcca045c3256945e309
[ "MIT" ]
null
null
null
base/products.py
vishnu-sagubandi/LIAVYS_BACKEND
34c8a28d741cf6ca47ce1bcca045c3256945e309
[ "MIT" ]
null
null
null
base/products.py
vishnu-sagubandi/LIAVYS_BACKEND
34c8a28d741cf6ca47ce1bcca045c3256945e309
[ "MIT" ]
null
null
null
products = [ { '_id': '1', 'name': 'Wood and Cloth Deluxe sofa', 'img1': 'https://htmldemo.hasthemes.com/lezada/lezada/assets/images/products/furniture-2-2-600x800.jpg', 'img2': 'https://htmldemo.hasthemes.com/lezada/lezada/assets/images/products/furniture-2-1-600x800.jpg', '...
46.990741
206
0.631527
d077b0ff914241733b7e5c2e17c71952cf534f31
4,015
py
Python
pyQT/pyGISS.py
PyQtWorks/pyGISS
8ff318a67dea2e3c0941bb344a6b21560f7e6ce9
[ "MIT" ]
101
2017-07-20T01:13:28.000Z
2022-03-28T12:08:17.000Z
pyQT/pyGISS.py
PyQtWorks/pyGISS
8ff318a67dea2e3c0941bb344a6b21560f7e6ce9
[ "MIT" ]
2
2018-07-30T15:39:00.000Z
2022-01-27T15:33:28.000Z
pyQT/pyGISS.py
PyQtWorks/pyGISS
8ff318a67dea2e3c0941bb344a6b21560f7e6ce9
[ "MIT" ]
37
2017-08-31T14:29:37.000Z
2022-02-20T09:20:57.000Z
from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import pyproj, shapefile, shapely.geometry, sys class View(QGraphicsView): projections = { 'mercator': pyproj.Proj(init="epsg:3395"), 'spherical': pyproj.Proj('+proj=ortho +lon_0=28 +lat_0=47') } def __init...
39.752475
85
0.614197
8bb6bd416ae4ed67cea08f3091b94c17f9211623
7,121
py
Python
doc/conf.py
koalaByte/zephyr
04ab2400e65c3f4803337d8d0d4397373c5b9a37
[ "Apache-2.0" ]
null
null
null
doc/conf.py
koalaByte/zephyr
04ab2400e65c3f4803337d8d0d4397373c5b9a37
[ "Apache-2.0" ]
null
null
null
doc/conf.py
koalaByte/zephyr
04ab2400e65c3f4803337d8d0d4397373c5b9a37
[ "Apache-2.0" ]
null
null
null
# Zephyr documentation build configuration file. # Reference: https://www.sphinx-doc.org/en/master/usage/configuration.html import sys import os from pathlib import Path import re import sphinx_rtd_theme ZEPHYR_BASE = os.environ.get("ZEPHYR_BASE") if not ZEPHYR_BASE: raise ValueError("ZEPHYR_BASE environment va...
29.065306
82
0.626457
cbf91c6a31c094b2a1510b5db5c6106699e1a977
1,230
py
Python
accountant/core/migrations/0011_auto_20170112_1321.py
XeryusTC/18xx-accountant
5dc70fb96042807ceaaadb51cea3108da4f40d85
[ "MIT" ]
null
null
null
accountant/core/migrations/0011_auto_20170112_1321.py
XeryusTC/18xx-accountant
5dc70fb96042807ceaaadb51cea3108da4f40d85
[ "MIT" ]
7
2017-03-29T18:52:44.000Z
2017-09-05T19:06:29.000Z
accountant/core/migrations/0011_auto_20170112_1321.py
XeryusTC/18xx-accountant
5dc70fb96042807ceaaadb51cea3108da4f40d85
[ "MIT" ]
1
2019-12-16T22:27:07.000Z
2019-12-16T22:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-01-12 13:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('core', '0010_auto_20170112_1209'), ] o...
34.166667
127
0.612195
0463e0740f3a91d86b808e4b6a0e6ad0c91eb7fd
16,629
py
Python
pyabsa/core/atepc/prediction/aspect_extractor.py
onlyrico/PyABSA
d0905eb5253eaa564d2244cd777e3a734bca777a
[ "MIT" ]
null
null
null
pyabsa/core/atepc/prediction/aspect_extractor.py
onlyrico/PyABSA
d0905eb5253eaa564d2244cd777e3a734bca777a
[ "MIT" ]
null
null
null
pyabsa/core/atepc/prediction/aspect_extractor.py
onlyrico/PyABSA
d0905eb5253eaa564d2244cd777e3a734bca777a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # file: aspect_extractor.py # time: 2021/5/26 0026 # author: yangheng <yangheng@m.scnu.edu.cn> # github: https://github.com/yangheng95 # Copyright (C) 2021. All Rights Reserved. import os import pickle import random import numpy as np import torch import torch.nn.functional as F from findfile ...
50.853211
117
0.571532
b59b99bea7d0eff01db7c3ebfa3c31234e850bfd
1,113
py
Python
network_pipeline/scripts/base_capture.py
jay-johnson/network-pipeline
15c206135dc183dcad03af5db0f7a5de797e6981
[ "Apache-2.0" ]
43
2018-01-28T09:44:22.000Z
2022-03-16T00:20:01.000Z
network_pipeline/scripts/base_capture.py
jay-johnson/network-pipeline
15c206135dc183dcad03af5db0f7a5de797e6981
[ "Apache-2.0" ]
null
null
null
network_pipeline/scripts/base_capture.py
jay-johnson/network-pipeline
15c206135dc183dcad03af5db0f7a5de797e6981
[ "Apache-2.0" ]
7
2018-08-15T09:44:24.000Z
2021-12-20T08:28:49.000Z
#!/usr/bin/env python import kamene.all as kamene from spylunking.log.setup_logging import console_logger from celery_connectors.utils import ev from network_pipeline.handle_packets import handle_packets log = console_logger( name='base_capture') def example_capture(): """example_capture An example ca...
20.236364
62
0.608266
e25ff5e730ed9ea069037c0807d782d2b53bb0a8
1,363
py
Python
mysite/urls.py
cyearee/heritagesites
8a44ec7b60325790a778ab7363bdca2e21cefb86
[ "MIT" ]
null
null
null
mysite/urls.py
cyearee/heritagesites
8a44ec7b60325790a778ab7363bdca2e21cefb86
[ "MIT" ]
null
null
null
mysite/urls.py
cyearee/heritagesites
8a44ec7b60325790a778ab7363bdca2e21cefb86
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
43.967742
86
0.724138
f7aa4497f9d726e02c6c3ce9113c9e637501d2bf
13,627
py
Python
more_admin_filters/filters.py
iorlandini/django-more-admin-filters
d36ab210ea092860a67cde7593fe08db02374bce
[ "BSD-3-Clause" ]
null
null
null
more_admin_filters/filters.py
iorlandini/django-more-admin-filters
d36ab210ea092860a67cde7593fe08db02374bce
[ "BSD-3-Clause" ]
null
null
null
more_admin_filters/filters.py
iorlandini/django-more-admin-filters
d36ab210ea092860a67cde7593fe08db02374bce
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib.admin.utils import prepare_lookup_value from django.contrib import admin from django.db.models import Q from django.utils.translation import gettext_lazy as _ from django.contrib.admin.utils import reverse_field_path from django.contrib.admin.utils import get_model_from_relat...
39.384393
116
0.630073
558312e95c64b474d2973c7ec58fc8b98fb5ced2
1,898
py
Python
copy_spotlights/command_line.py
DevilLordHarsh/copy-windows10-spotlight_images
cf5a3a6988279e95cf99fe7cb3218d1358edf340
[ "MIT" ]
null
null
null
copy_spotlights/command_line.py
DevilLordHarsh/copy-windows10-spotlight_images
cf5a3a6988279e95cf99fe7cb3218d1358edf340
[ "MIT" ]
2
2022-01-13T01:13:39.000Z
2022-03-11T23:49:10.000Z
copy_spotlights/command_line.py
ksharshveer/get-spotlights
cf5a3a6988279e95cf99fe7cb3218d1358edf340
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from copy_spotlights import copy_spotlights_images from argparse import ArgumentParser from pathlib import Path def main(): # Argument Parser to enable use of this program using bash terminal parser = ArgumentParser() parser.add_argument("save_dir", type=str, help="directory locati...
54.228571
176
0.755005
3b6a1a797fd1e2f4b7157f4f0f3a9a2fdca41849
9,776
py
Python
cvnet/dataset/transform.py
shibing624/cvnet
5b9032a6d4be731cca92392a6779d56635781169
[ "Apache-2.0" ]
2
2020-10-27T01:35:32.000Z
2020-12-07T19:09:51.000Z
cvnet/dataset/transform.py
shibing624/imagefun
5c5c688b530f07688cda85705591634286f0b848
[ "Apache-2.0" ]
1
2020-12-01T14:24:06.000Z
2020-12-01T14:24:06.000Z
cvnet/dataset/transform.py
shibing624/imagefun
5c5c688b530f07688cda85705591634286f0b848
[ "Apache-2.0" ]
1
2021-05-19T02:41:40.000Z
2021-05-19T02:41:40.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import collections import math import random from typing import Any, Callable, Dict, Optional, List import torch # import torchvision.transforms._transforms_video as transforms_video from torch.distributions.beta import Beta from torchvisi...
34.062718
103
0.604849
b13efb232209be05f740e1769b068615cbb95a57
342
py
Python
AT/migrations/0013_remove_atcontext_current_procedure_step.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
AT/migrations/0013_remove_atcontext_current_procedure_step.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
AT/migrations/0013_remove_atcontext_current_procedure_step.py
seakers/daphne-brain
1d703d468cd503a21395f986dd72e67b6e556451
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2020-02-16 02:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('AT', '0012_auto_20200214_1013'), ] operations = [ migrations.RemoveField( model_name='atcontext', name='current_procedure_st...
19
47
0.608187
3edd0978876474a421989078f97d41f1431ec33e
15,828
py
Python
scripts/cros_generate_breakpad_symbols_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
scripts/cros_generate_breakpad_symbols_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
scripts/cros_generate_breakpad_symbols_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Test cros_generate_breakpad_symbols.""" from __future__ import print_function import ctypes import io import os import sy...
40.584615
80
0.692128
b49d4b8a1d37b98ca4d85521e9f22aefcd79aad9
995
py
Python
gahaco/visualization/figure_size.py
florpi/GaHaCo
5e42511877ee7cf3de3935f57ebea6ca86cf4ea5
[ "MIT" ]
null
null
null
gahaco/visualization/figure_size.py
florpi/GaHaCo
5e42511877ee7cf3de3935f57ebea6ca86cf4ea5
[ "MIT" ]
12
2019-09-27T07:33:27.000Z
2019-11-29T16:48:02.000Z
gahaco/visualization/figure_size.py
florpi/GaHaCo
5e42511877ee7cf3de3935f57ebea6ca86cf4ea5
[ "MIT" ]
null
null
null
def set_size(width='mnras', subplot=[1, 1], fraction=1): """ Set aesthetic figure dimensions to avoid scaling in latex. Parameters ---------- width: float Width in pts fraction: float Fraction of the width which you wish the figure to occupy Returns ------- fig_di...
27.638889
75
0.617085
1055e190cda35ec21cad7ff155bd3cab98de3f80
3,528
py
Python
plaso/parsers/sqlite_plugins/mac_document_versions.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
2
2016-02-18T12:46:29.000Z
2022-03-13T03:04:59.000Z
plaso/parsers/sqlite_plugins/mac_document_versions.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
null
null
null
plaso/parsers/sqlite_plugins/mac_document_versions.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
6
2016-12-18T08:05:36.000Z
2021-04-06T14:19:11.000Z
# -*- coding: utf-8 -*- """Parser for the Mac OS X Document Versions files.""" from plaso.events import time_events from plaso.lib import eventdata from plaso.parsers import sqlite from plaso.parsers.sqlite_plugins import interface __author__ = 'Joaquin Moreno Garijo (Joaquin.MorenoGarijo.2013@live.rhul.ac.uk)' cl...
37.136842
80
0.71712
bb634485a6bd8aed5ad78b03bf7f50a6849a22b8
997
py
Python
src/dl/download_pingdom.py
fartbagxp/aas-cidr-ranges
bf00c805dacefd33b322440fb16ff8e1e6ff7dcb
[ "MIT" ]
1
2022-01-22T07:41:47.000Z
2022-01-22T07:41:47.000Z
src/dl/download_pingdom.py
fartbagxp/aas-cidr-ranges
bf00c805dacefd33b322440fb16ff8e1e6ff7dcb
[ "MIT" ]
null
null
null
src/dl/download_pingdom.py
fartbagxp/aas-cidr-ranges
bf00c805dacefd33b322440fb16ff8e1e6ff7dcb
[ "MIT" ]
null
null
null
''' The range of Pingdom probes from various locations. The documentation can be found here: https://documentation.solarwinds.com/en/success_center/pingdom/content/topics/pingdom-probe-servers-ip-addresses.htm?cshid=pd-rd_203682601-pingdom-probe-servers-ip-addresses This is a parser for the set of IPs / IP ranges in ...
30.212121
173
0.705115
ed5dda18502043baa611132e63460d38e8fa45da
3,446
py
Python
new-docs/examples/data_access/sqlalchemy/setup.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-07-08T17:36:08.000Z
2021-07-08T17:36:08.000Z
new-docs/examples/data_access/sqlalchemy/setup.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
2
2021-03-24T19:24:40.000Z
2021-03-24T19:54:46.000Z
new-docs/examples/data_access/sqlalchemy/setup.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-03-24T19:51:45.000Z
2021-03-24T19:51:45.000Z
import codecs import os import sys from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) # intentionally *not* adding an encoding option to open, See: # https://github.com/pypa/vir...
40.541176
102
0.683691
600a57b31598b0b1aacee1a260b27f080a8c0e50
576
py
Python
git_devbliss/tests/__init__.py
git-devbliss/git-devbliss
c49e774567b64f437d3cfef89f88a3d12ec5029c
[ "Apache-2.0" ]
2
2015-10-28T10:05:53.000Z
2016-06-07T08:04:54.000Z
git_devbliss/tests/__init__.py
git-bliss/git-brancher
c49e774567b64f437d3cfef89f88a3d12ec5029c
[ "Apache-2.0" ]
null
null
null
git_devbliss/tests/__init__.py
git-bliss/git-brancher
c49e774567b64f437d3cfef89f88a3d12ec5029c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 devbliss GmbH # # 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,...
41.142857
74
0.765625
822b4dabe0dfba754ee6139b8cacd91323b69ed3
734
py
Python
guillotina/contrib/image/interfaces.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
173
2017-03-10T18:26:12.000Z
2022-03-03T06:48:56.000Z
guillotina/contrib/image/interfaces.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
921
2017-03-08T14:04:43.000Z
2022-03-30T10:28:56.000Z
guillotina/contrib/image/interfaces.py
rboixaderg/guillotina
fcae65c2185222272f3b8fee4bc2754e81e0e983
[ "BSD-2-Clause" ]
60
2017-03-16T19:59:44.000Z
2022-03-03T06:48:59.000Z
from guillotina import schema from guillotina.contrib.image.preview import CloudPreviewImageFileField from guillotina.interfaces import IFile from zope.interface import Interface class IImageFile(IFile): """Image file""" previews = schema.Dict( title="Generated previews", key_type=schema.TextLine(), ...
25.310345
103
0.611717