hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
be321954e8763a4c51039e9d44e9a937f9446fbf
6,448
py
Python
manual/Alfred.alfredpreferences/workflows/user.workflow.4A7BFB75-AB54-42FE-B325-22358306BE4A/info.py
oscu0/orpheus
966a2dce37cef7d447e063ac5c2cd91a4388d2e0
[ "Unlicense" ]
1
2019-02-22T16:06:03.000Z
2019-02-22T16:06:03.000Z
manual/Alfred.alfredpreferences/workflows/user.workflow.4A7BFB75-AB54-42FE-B325-22358306BE4A/info.py
oscu0/orpheus
966a2dce37cef7d447e063ac5c2cd91a4388d2e0
[ "Unlicense" ]
null
null
null
manual/Alfred.alfredpreferences/workflows/user.workflow.4A7BFB75-AB54-42FE-B325-22358306BE4A/info.py
oscu0/orpheus
966a2dce37cef7d447e063ac5c2cd91a4388d2e0
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 # # Copyright (c) 2014 deanishe@deanishe.net # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2014-12-26 # """info.py [options] [<query>] View/manage workflow settings. Usage: info.py [<query>] info.py (-h|--help) info.py --openhelp info.py -...
25.486166
72
0.550093
71f2858c2a22a32559492a82e92531f79e910e69
87
py
Python
py_tdlib/constructors/get_option.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/get_option.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/get_option.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Method class getOption(Method): name = None # type: "string"
14.5
30
0.701149
7627936785cfaabab9d56a811bca204641d76f5c
8,247
py
Python
themes/minimal/base16-gigavolt.config.py
dgmulf/base16-qutebrowser
3d71ea89adfb3ede9eee2f9764d4a59d26fe4f9b
[ "MIT" ]
null
null
null
themes/minimal/base16-gigavolt.config.py
dgmulf/base16-qutebrowser
3d71ea89adfb3ede9eee2f9764d4a59d26fe4f9b
[ "MIT" ]
null
null
null
themes/minimal/base16-gigavolt.config.py
dgmulf/base16-qutebrowser
3d71ea89adfb3ede9eee2f9764d4a59d26fe4f9b
[ "MIT" ]
null
null
null
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova and Daniel Mulford # Gigavolt scheme by Aidan Swope (http://github.com/Whillikers) base00 = "#202126" base01 = "#2d303d" base02 = "#706d60" base03 = "#a1d2e6" base04 = "#cad3ff" base05 = "#e9e7e1" base06 = "#eff...
29.453571
71
0.771796
0fa1f7efb2de97801e7d0fd423d190cadf795d98
200
py
Python
cellsimulation/triangle.py
marcbperez/cell-simulation-python
b2f6e203a0fd46a8dcfc0b7f1fa0f5b514145489
[ "Apache-2.0" ]
1
2019-04-15T09:33:29.000Z
2019-04-15T09:33:29.000Z
cellsimulation/triangle.py
mbpez/cell-simulation-python
b2f6e203a0fd46a8dcfc0b7f1fa0f5b514145489
[ "Apache-2.0" ]
null
null
null
cellsimulation/triangle.py
mbpez/cell-simulation-python
b2f6e203a0fd46a8dcfc0b7f1fa0f5b514145489
[ "Apache-2.0" ]
null
null
null
from mesh import Mesh from OpenGL.GL import * class Triangle(Mesh): def render(self): self.render_position() glBegin(GL_TRIANGLES) self.render_vertices() glEnd()
18.181818
30
0.64
91fafa7c7fe4dd89070be0f5413dd1740352055e
2,055
py
Python
tests/tests_integration/test_api/test_data_sets.py
sakshi87/cognite-sdk-python
eb3d569fd058dfd8e3c0c29dee2a635deabad1ac
[ "Apache-2.0" ]
null
null
null
tests/tests_integration/test_api/test_data_sets.py
sakshi87/cognite-sdk-python
eb3d569fd058dfd8e3c0c29dee2a635deabad1ac
[ "Apache-2.0" ]
null
null
null
tests/tests_integration/test_api/test_data_sets.py
sakshi87/cognite-sdk-python
eb3d569fd058dfd8e3c0c29dee2a635deabad1ac
[ "Apache-2.0" ]
null
null
null
from unittest import mock import pytest from cognite.client import CogniteClient from cognite.client.data_classes import DataSet, DataSetFilter, DataSetUpdate from cognite.client.exceptions import CogniteNotFoundError from tests.utils import set_request_limit COGNITE_CLIENT = CogniteClient() DS_API = COGNITE_CLIENT....
33.688525
97
0.705109
ee4751d8f716877ee27de29cb2792055480b3eaf
101,980
py
Python
wandb/sdk/data_types.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
null
null
null
wandb/sdk/data_types.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
1
2021-04-27T20:13:45.000Z
2021-04-27T20:13:45.000Z
wandb/sdk/data_types.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
null
null
null
import codecs import hashlib import json import logging import numbers import os import re import shutil import sys from typing import ( Any, cast, ClassVar, Dict, List, Optional, Sequence, Set, Tuple, Type, TYPE_CHECKING, Union, ) from pkg_resources import parse_version...
38.166168
131
0.572691
6b15151dd779517b88b70fb5e81b165f5547bb68
5,016
py
Python
src/python/pants/init/target_roots_calculator.py
SergeKireev/pants
cd92c65aeb3dfdcee3e0946f2b68a301ef2f4541
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
src/python/pants/init/target_roots_calculator.py
SergeKireev/pants
cd92c65aeb3dfdcee3e0946f2b68a301ef2f4541
[ "Apache-2.0" ]
1
2019-07-29T16:58:21.000Z
2019-07-29T16:58:21.000Z
src/python/pants/init/target_roots_calculator.py
SergeKireev/pants
cd92c65aeb3dfdcee3e0946f2b68a301ef2f4541
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import logging from twitter.common.collections import OrderedSet from pants.base.build_environment import get_buildroot, get_scm from pants.base.cmd_line_spec_parser import CmdLineSpecPa...
41.8
104
0.730662
4eb897de3f2d35893003ebbe213f5293adff5518
12,796
py
Python
crossword-gen.py
DillionLeeL/crossword-gen
58ee4aad86d8e7bdcfc6fb3db7174f5f21c42c19
[ "MIT" ]
null
null
null
crossword-gen.py
DillionLeeL/crossword-gen
58ee4aad86d8e7bdcfc6fb3db7174f5f21c42c19
[ "MIT" ]
null
null
null
crossword-gen.py
DillionLeeL/crossword-gen
58ee4aad86d8e7bdcfc6fb3db7174f5f21c42c19
[ "MIT" ]
null
null
null
import random import re import string from copy import deepcopy import time import argparse import api_requests start_time = time.time() # ---------------Classes--------------- class Coord(object): def __init__(self, start, end, vert, num): self.start = start # tuple coordinate self.end = end ...
34.031915
114
0.564708
3b1fad3d2ab5564eb0ec6fa295a897f91a805944
3,317
py
Python
pytorch_toolkit/instance_segmentation/segmentoly/rcnn/model_zoo/resnet_panet_mask_rcnn.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
3
2020-12-29T02:47:32.000Z
2021-11-12T08:12:51.000Z
pytorch_toolkit/instance_segmentation/segmentoly/rcnn/model_zoo/resnet_panet_mask_rcnn.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
28
2020-09-25T22:40:36.000Z
2022-03-12T00:37:36.000Z
pytorch_toolkit/instance_segmentation/segmentoly/rcnn/model_zoo/resnet_panet_mask_rcnn.py
morkovka1337/openvino_training_extensions
846db45c264d6b061505213f51763520b9432ba9
[ "Apache-2.0" ]
1
2021-03-12T10:08:44.000Z
2021-03-12T10:08:44.000Z
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
44.824324
123
0.622249
3fc3323c2029f01ff00c875c237c5d2fd3ad5385
20,361
py
Python
sympy/polys/polyoptions.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
2
2015-05-11T12:26:38.000Z
2016-08-19T00:11:03.000Z
sympy/polys/polyoptions.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/polyoptions.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
"""Options manager for :class:`Poly` and public API functions. """ from sympy.core import S, Basic, sympify from sympy.utilities import numbered_symbols, topological_sort from sympy.polys.polyerrors import ( GeneratorsError, OptionError, FlagError, ) import sympy.polys import re class Option(object): ...
26.442857
114
0.577477
457763dd9f6f8f8fcb7e3f7183d20cbc367f073a
3,636
py
Python
bread/contrib/reports/models.py
basxsoftwareassociation/bread
062ec82a565f81eff51ea91dc0f211139bc7fe96
[ "Apache-2.0", "BSD-3-Clause" ]
13
2021-01-19T08:28:08.000Z
2022-01-28T03:44:34.000Z
bread/contrib/reports/models.py
basxsoftwareassociation/bread
062ec82a565f81eff51ea91dc0f211139bc7fe96
[ "Apache-2.0", "BSD-3-Clause" ]
80
2020-12-07T04:37:39.000Z
2022-03-08T14:42:13.000Z
bread/contrib/reports/models.py
basxsoftwareassociation/bread
062ec82a565f81eff51ea91dc0f211139bc7fe96
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-12-03T15:06:53.000Z
2021-03-16T03:47:29.000Z
import htmlgenerator as hg from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.db import models from django.utils.translation import gettext_lazy as _ from bread import layout from ...layout.components.datatable import DataTableColumn from .fields.queryfield import ...
33.981308
99
0.606161
16864db703e37581d3a447d4df7d78cce0e2aeeb
2,131
py
Python
driver/excel.py
efineshi/medicine_number_count
2792b15b78c855fec2af4078b0b97d28e4d4d648
[ "Apache-2.0" ]
null
null
null
driver/excel.py
efineshi/medicine_number_count
2792b15b78c855fec2af4078b0b97d28e4d4d648
[ "Apache-2.0" ]
null
null
null
driver/excel.py
efineshi/medicine_number_count
2792b15b78c855fec2af4078b0b97d28e4d4d648
[ "Apache-2.0" ]
null
null
null
import xlrd from utils import utils def count_data_from_excel(sheet1, rows_numbers, patient_column, medicine_numbers_column, project_column, room_column, doctor_c...
38.745455
114
0.544815
2abf069f89cfcfe0506375aafa285f2e86cc7654
3,329
py
Python
about/views.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
about/views.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
about/views.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.files.storage import default_storage from django.shortcuts import render, HttpResponseRedirect from django.urls import reverse from django.views import generic from .forms import ImageForm @login_required d...
46.236111
120
0.775008
baaf45a77dd2cbb2c625585d55d61a71dcb67134
280
py
Python
appengine/chrome_infra_packages/cipd/__init__.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
1
2018-01-02T05:47:07.000Z
2018-01-02T05:47:07.000Z
appengine/chrome_infra_packages/cipd/__init__.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/chrome_infra_packages/cipd/__init__.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from .api import PackageRepositoryApi from .handlers import get_frontend_routes from .impl import get_backend_routes
35
72
0.810714
f532f59fe3e5c5342dce54b4d97ea3df2de48774
926
py
Python
data/groups.py
lev2454/VGA-Web-Edition
4d8fb7b93373ee00fb78889cab2213aaa5a4cdc9
[ "BSD-3-Clause" ]
1
2020-05-05T16:10:36.000Z
2020-05-05T16:10:36.000Z
data/groups.py
lev2454/VGA-Web-Edition
4d8fb7b93373ee00fb78889cab2213aaa5a4cdc9
[ "BSD-3-Clause" ]
null
null
null
data/groups.py
lev2454/VGA-Web-Edition
4d8fb7b93373ee00fb78889cab2213aaa5a4cdc9
[ "BSD-3-Clause" ]
null
null
null
import datetime import sqlalchemy from .db_session import SqlAlchemyBase from sqlalchemy_serializer import SerializerMixin class Group(SqlAlchemyBase, SerializerMixin): __tablename__ = 'groups' id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True) name = sqlalchemy.Column(sqlalchemy.String) sc...
44.095238
86
0.790497
202961fd5a09c6cbdf1b1b9e23a566564e050d99
3,022
py
Python
macropy/test/tracing.py
CyberFlameGO/macropy
a815f5a58231d8fa65386cd71ff0d15d09fe9fa3
[ "Unlicense", "MIT" ]
2,061
2015-01-02T16:53:18.000Z
2022-03-31T12:01:07.000Z
macropy/test/tracing.py
CyberFlameGO/macropy
a815f5a58231d8fa65386cd71ff0d15d09fe9fa3
[ "Unlicense", "MIT" ]
41
2015-02-25T02:54:46.000Z
2022-01-28T19:08:45.000Z
macropy/test/tracing.py
CyberFlameGO/macropy
a815f5a58231d8fa65386cd71ff0d15d09fe9fa3
[ "Unlicense", "MIT" ]
151
2015-01-01T22:07:55.000Z
2022-03-03T07:55:20.000Z
import ast import unittest from macropy.tracing import macros, trace, log, require, show_expanded from macropy.core.quotes import macros, q result = [] def log(x): result.append(x) class Tests(unittest.TestCase): def test_basic(self): log[1 + 2] log["omg" * 3] assert(result[-2:] =...
27.472727
96
0.401721
b6c323f2ebcd7e109348472c28ce3eceef56f318
5,352
py
Python
nni/compression/pytorch/quantization_speedup/frontend_to_onnx.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
9,680
2019-05-07T01:42:30.000Z
2022-03-31T16:48:33.000Z
nni/compression/pytorch/quantization_speedup/frontend_to_onnx.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
1,957
2019-05-06T21:44:21.000Z
2022-03-31T09:21:53.000Z
nni/compression/pytorch/quantization_speedup/frontend_to_onnx.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
1,571
2019-05-07T06:42:55.000Z
2022-03-31T03:19:24.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch import onnx import onnx.numpy_helper """ The main function of this page is to convert pytorch model to onnx model. Convertion from pytorch model to onnx model is primary so that a critical problem is caused that Layer name of pytorch...
36.162162
140
0.65639
ab9ff66e9f493d07d211027405f1a52974c0a031
855
py
Python
src/oscutil/oscplayback.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
7
2015-01-05T06:32:49.000Z
2020-10-30T19:29:07.000Z
src/oscutil/oscplayback.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
null
null
null
src/oscutil/oscplayback.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
4
2016-03-09T22:29:26.000Z
2021-04-07T13:52:28.000Z
import re from nosuch.oscutil import * if len(sys.argv) < 3: print "Usage: oscplayback.py {port@host} {file}" sys.exit(1) if __name__ == '__main__': oscmsg = [] porthost = sys.argv[1] print("porthost=",porthost) port = re.compile(".*@").search(porthost).group()[:-1] host = re.compile("@.*").search(porthost)....
20.357143
55
0.624561
356d3d86ffb6e8573f6cc38d445d6d52fc3075ff
90
py
Python
kitchen/check_in/apps.py
ZhukovGreen/kitchen-check-in
ce5327353cd9db32389da1678a37ac3d647b7c32
[ "MIT" ]
null
null
null
kitchen/check_in/apps.py
ZhukovGreen/kitchen-check-in
ce5327353cd9db32389da1678a37ac3d647b7c32
[ "MIT" ]
null
null
null
kitchen/check_in/apps.py
ZhukovGreen/kitchen-check-in
ce5327353cd9db32389da1678a37ac3d647b7c32
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CheckInConfig(AppConfig): name = 'check_in'
15
33
0.755556
51953eec2609308e93a36a2cdf4f2db05b2bc556
2,582
py
Python
market/utils/widgets.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/utils/widgets.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/utils/widgets.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
# coding: utf-8 """Provide generally usable special widgets.""" from django.forms.widgets import Input, TextInput, NumberInput, ClearableFileInput from django.utils.html import format_html, conditional_escape from django.utils.encoding import force_text from django.utils.translation import ugettext as _ from django.te...
33.532468
104
0.665376
9b564f098f3fd4ec96e776c88d49097eb758609b
583
py
Python
e2e/Classes/Consensus/Element.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
66
2019-01-14T08:39:52.000Z
2022-01-06T11:39:15.000Z
e2e/Classes/Consensus/Element.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
228
2019-01-16T15:42:44.000Z
2022-02-05T07:48:07.000Z
e2e/Classes/Consensus/Element.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
19
2019-01-14T08:53:04.000Z
2021-11-03T20:19:28.000Z
from typing import Dict, Any from abc import ABC, abstractmethod from e2e.Libs.BLS import Signature class Element( ABC ): prefix: bytes holder: int @abstractmethod def signatureSerialize( self ) -> bytes: pass @abstractmethod def serialize( self ) -> bytes: pass @abstractmethod ...
12.673913
35
0.64494
94d57ae43dd8f71f883fea7a82e3b2c6bc475734
8,547
py
Python
test/shed_functional/functional/test_0040_repository_circular_dependencies.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
test/shed_functional/functional/test_0040_repository_circular_dependencies.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
30
2016-10-20T15:35:12.000Z
2018-10-02T15:59:54.000Z
test/shed_functional/functional/test_0040_repository_circular_dependencies.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
7
2016-11-03T19:11:01.000Z
2020-05-11T14:23:52.000Z
from shed_functional.base.twilltestcase import common, ShedTwillTestCase freebayes_repository_name = 'freebayes_0040' freebayes_repository_description = "Galaxy's freebayes tool for test 0040" freebayes_repository_long_description = "Long description of Galaxy's freebayes tool for test 0040" filtering_repository_name...
73.051282
151
0.701182
2c15318deda37d21e26505741fb4c50f1449da06
2,824
py
Python
tensorflow/lite/testing/op_tests/concat.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
56
2018-06-21T13:47:23.000Z
2020-05-13T09:31:47.000Z
tensorflow/lite/testing/op_tests/concat.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
58
2021-11-22T05:41:28.000Z
2022-01-19T01:33:40.000Z
tensorflow/lite/testing/op_tests/concat.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
15
2018-09-06T14:18:32.000Z
2020-05-14T06:35:30.000Z
# 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...
34.024096
80
0.64483
7850385120ae059a36f8260a1b8176e00a66e300
3,704
py
Python
on_path/filesync.py
yuyuko-C/pyworkkit
7785356bcbc93f56c81f3d78362598d1a6ba10c2
[ "Apache-2.0" ]
null
null
null
on_path/filesync.py
yuyuko-C/pyworkkit
7785356bcbc93f56c81f3d78362598d1a6ba10c2
[ "Apache-2.0" ]
null
null
null
on_path/filesync.py
yuyuko-C/pyworkkit
7785356bcbc93f56c81f3d78362598d1a6ba10c2
[ "Apache-2.0" ]
null
null
null
from .path import Path import typing class SyncGroup: def __init__(self, source: str, target: str, *filters: str, filter_mode: bool = True) -> None: source_pth = Path(source).absolute() target_pth = Path(target).absolute() if source_pth.is_dir() and target_pth.is_dir(): self.s...
33.981651
98
0.580724
6280062c1bddc98f42f86ad2a2cc2d35c30c6efd
4,779
py
Python
automatization_scripts/tools/glance.py
hmunfru/fiware-paas
dd808e986f5463dcbb85370b295404f167838ea1
[ "Apache-2.0" ]
null
null
null
automatization_scripts/tools/glance.py
hmunfru/fiware-paas
dd808e986f5463dcbb85370b295404f167838ea1
[ "Apache-2.0" ]
null
null
null
automatization_scripts/tools/glance.py
hmunfru/fiware-paas
dd808e986f5463dcbb85370b295404f167838ea1
[ "Apache-2.0" ]
2
2016-08-22T16:03:25.000Z
2018-03-05T23:28:55.000Z
# -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # 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: # # h...
34.381295
118
0.611006
572582b653925dc45db84583fb2d97fccd4bb0d1
15,705
py
Python
python/ccxt/__init__.py
vankiaio/ccxt-vkt
cc855bbb0c8cc8d2a7449d9a08e3bd7c7304ba8b
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
vankiaio/ccxt-vkt
cc855bbb0c8cc8d2a7449d9a08e3bd7c7304ba8b
[ "MIT" ]
null
null
null
python/ccxt/__init__.py
vankiaio/ccxt-vkt
cc855bbb0c8cc8d2a7449d9a08e3bd7c7304ba8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library""" # MIT License # Copyright (c) 2017 Igor Kroitor # 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 restricti...
45.65407
80
0.529577
456267a1ab9293c58f78f226dc47a545b3cb41ed
15,776
py
Python
gunicorn/util.py
ykusakabe/gunicorn
c171c15c633ec5f70fd1e6c3f11dab8aa834ef27
[ "MIT" ]
null
null
null
gunicorn/util.py
ykusakabe/gunicorn
c171c15c633ec5f70fd1e6c3f11dab8aa834ef27
[ "MIT" ]
null
null
null
gunicorn/util.py
ykusakabe/gunicorn
c171c15c633ec5f70fd1e6c3f11dab8aa834ef27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. from __future__ import print_function import email.utils import fcntl import io import os import pkg_resources import pwd import random import socket import sys import textwrap import time im...
28.788321
82
0.581643
6e63d1fc00819cce6964c191ae1846bed7ca5bc4
1,735
py
Python
test/test_phones.py
fairwind2k/python_training
61e0f6f2685f61bc5b74058bae47dcb95fa3d67c
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
fairwind2k/python_training
61e0f6f2685f61bc5b74058bae47dcb95fa3d67c
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
fairwind2k/python_training
61e0f6f2685f61bc5b74058bae47dcb95fa3d67c
[ "Apache-2.0" ]
null
null
null
import allure from model.contact import Contact import re def test_phones_on_home_page(app): with allure.step('Given a phones list from home page'): contact_from_home_page = app.contacts.get_contacts_list()[0] with allure.step('Given a phones list from edit page'): contact_from_edit_page = ...
40.348837
121
0.71585
6780cb88a001c6f67b0b3c0190a2f9e331271465
4,708
py
Python
src/routes/streammap.py
Chikiyaflix/server
8f8aad4ef7bdd154fea2d8dfdd6fca9f79122449
[ "MIT" ]
null
null
null
src/routes/streammap.py
Chikiyaflix/server
8f8aad4ef7bdd154fea2d8dfdd6fca9f79122449
[ "MIT" ]
null
null
null
src/routes/streammap.py
Chikiyaflix/server
8f8aad4ef7bdd154fea2d8dfdd6fca9f79122449
[ "MIT" ]
null
null
null
import os import urllib import flask import requests import src.functions.config streammapBP = flask.Blueprint("streammap", __name__) @streammapBP.route("/api/v1/streammap") async def streammapFunction(): a = flask.request.args.get("a") # AUTH id = flask.request.args.get("id") # ID name = flask.reques...
35.666667
109
0.44966
29424d8e460a15593e45365f9f36fbff62302b1f
223
py
Python
setup.py
aaronbell/Roboto
09d561e84aff97ca5ca1374b3e53b099ab84568e
[ "Apache-2.0" ]
120
2018-07-25T03:05:31.000Z
2021-12-13T08:41:42.000Z
setup.py
sannorozco/Roboto
3852c00a1d483bf044d62d0c885daf57355027a6
[ "Apache-2.0" ]
74
2018-06-29T17:57:43.000Z
2022-01-09T19:39:49.000Z
setup.py
sannorozco/Roboto
3852c00a1d483bf044d62d0c885daf57355027a6
[ "Apache-2.0" ]
14
2018-07-04T14:23:05.000Z
2022-01-27T05:55:58.000Z
from setuptools import setup setup( name='Roboto-build', version='0.0.1', author='Google', packages=['scripts', 'tests'], license='LICENSE.txt', description='Build chain to make v3 Roboto fonts', )
20.272727
54
0.64574
e66294345d2416701616a3d484b82ccc2aea86e7
442
py
Python
pelican/plugins/seafoam/constants.py
MinchinWeb/seafoam
cf81eda8b9d6ff0f4a2e7ceaafda47e6ba1aad45
[ "MIT" ]
3
2018-12-05T03:45:53.000Z
2021-05-17T00:03:05.000Z
pelican/plugins/seafoam/constants.py
MinchinWeb/seafoam
cf81eda8b9d6ff0f4a2e7ceaafda47e6ba1aad45
[ "MIT" ]
13
2017-01-10T03:00:56.000Z
2021-07-05T17:23:04.000Z
pelican/plugins/seafoam/constants.py
MinchinWeb/seafoam
cf81eda8b9d6ff0f4a2e7ceaafda47e6ba1aad45
[ "MIT" ]
2
2017-02-22T08:39:45.000Z
2021-05-17T08:35:58.000Z
__title__ = "seafoam" __version__ = "2.7.1-dev" __description__ = "Pelican theme, first used for Minchin.ca." __author__ = "W. Minchin" __email__ = "w_minchin@hotmail.com" __url__ = "http://blog.minchin.ca/label/seafoam/" __license__ = "MIT License" LOG_PREFIX = "[Seafoam]" PLUGIN_LIST = [ "pelican.plugins.seafoam...
26
61
0.723982
cfa37e5ba6f2893489621a191ec9920c72353636
43
py
Python
user/__init__.py
TinlokLee/OA
ee11343117dcffb28930b6d21c99823c95b8d651
[ "MIT" ]
null
null
null
user/__init__.py
TinlokLee/OA
ee11343117dcffb28930b6d21c99823c95b8d651
[ "MIT" ]
null
null
null
user/__init__.py
TinlokLee/OA
ee11343117dcffb28930b6d21c99823c95b8d651
[ "MIT" ]
null
null
null
default_app_config = "user.apps.UserConfig"
43
43
0.837209
79bf791dcb461486c1a617c9ae5fe68f4739bcf4
21,703
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_02_01/aio/operations/_express_route_circuit_peerings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_02_01/aio/operations/_express_route_circuit_peerings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_02_01/aio/operations/_express_route_circuit_peerings_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.472093
220
0.674792
400cff349477d78fdbb9892669250540af3e00cf
2,445
py
Python
graph_construction/checking/sanity.py
EmmaRocheteau/eICU-GNN-LSTM
5167eea88bfe7a3146ccb6194f54e8e57f52128b
[ "MIT" ]
53
2021-01-14T11:34:31.000Z
2022-03-15T15:05:03.000Z
graph_construction/checking/sanity.py
Wizard-gq/eICU-GNN-LSTM
5167eea88bfe7a3146ccb6194f54e8e57f52128b
[ "MIT" ]
2
2021-02-13T02:29:10.000Z
2021-02-26T10:24:40.000Z
graph_construction/checking/sanity.py
Wizard-gq/eICU-GNN-LSTM
5167eea88bfe7a3146ccb6194f54e8e57f52128b
[ "MIT" ]
15
2021-01-25T04:10:38.000Z
2022-01-16T07:08:41.000Z
import pandas as pd import json import copy with open('paths.json', 'r') as f: eICU_path = json.load(f)["eICU_path"] graph_dir = json.load(f)["graph_dir"] u = open("{}bert_u_k=5.txt".format(graph_dir), "r") v = open("{}bert_v_k=5.txt".format(graph_dir), "r") u_list = u.read() v_list = v.read() u_list = u_list...
42.894737
124
0.724744
316cf81ffafccfedc7b3056dd16e9c1bee468d27
4,257
py
Python
test/examples/integrated/ubus/py/ubus_slave_driver.py
mgielda/uvm-python
7750bc163130f59741e464bb5fcf8fb5324dbf56
[ "Apache-2.0" ]
1
2020-09-14T13:21:24.000Z
2020-09-14T13:21:24.000Z
test/examples/integrated/ubus/py/ubus_slave_driver.py
gitCyan/uvm-python
45b8075518f828e0d77980e35c68a8527713b0e1
[ "Apache-2.0" ]
null
null
null
test/examples/integrated/ubus/py/ubus_slave_driver.py
gitCyan/uvm-python
45b8075518f828e0d77980e35c68a8527713b0e1
[ "Apache-2.0" ]
null
null
null
#//---------------------------------------------------------------------- #// Copyright 2007-2010 Mentor Graphics Corporation #// Copyright 2007-2011 Cadence Design Systems, Inc. #// Copyright 2010 Synopsys, Inc. #// Copyright 2019 Tuomas Poikela (tpoikela) #// All Rights Reserved Worldwide #// #// Licensed...
34.893443
82
0.564247
372da27dca398da0ba4c6827a4666e1356a2bcdc
21,433
py
Python
Lib/test/test_concurrent_futures.py
certik/python-3.2
8c024c1e08248a4640429e3761905ae308d64e44
[ "PSF-2.0" ]
1
2019-12-31T18:13:30.000Z
2019-12-31T18:13:30.000Z
Lib/test/test_concurrent_futures.py
priya-sharma-prog/python-3.2
8c024c1e08248a4640429e3761905ae308d64e44
[ "PSF-2.0" ]
1
2019-07-04T09:18:21.000Z
2019-07-04T19:14:03.000Z
Lib/test/test_concurrent_futures.py
priya-sharma-prog/python-3.2
8c024c1e08248a4640429e3761905ae308d64e44
[ "PSF-2.0" ]
13
2015-04-02T16:49:38.000Z
2021-10-17T20:14:14.000Z
import test.support # Skip tests if _multiprocessing wasn't built. test.support.import_module('_multiprocessing') # Skip tests if sem_open implementation is broken. test.support.import_module('multiprocessing.synchronize') # import threading after _multiprocessing to raise a more revelant error # message: "No module n...
34.347756
79
0.617972
81808341feab034d2ba8a68e22b06f840df76611
23,325
py
Python
tests/test_math.py
DaveMcEwan/dmppl
68e8a121d4591360080cd40121add1796ae48a1b
[ "MIT" ]
1
2020-05-05T19:46:43.000Z
2020-05-05T19:46:43.000Z
tests/test_math.py
DaveMcEwan/dmppl
68e8a121d4591360080cd40121add1796ae48a1b
[ "MIT" ]
null
null
null
tests/test_math.py
DaveMcEwan/dmppl
68e8a121d4591360080cd40121add1796ae48a1b
[ "MIT" ]
null
null
null
from dmppl.math import * import math import os import tempfile import shutil import unittest class Test_isEven(unittest.TestCase): # {{{ def test_Pos0(self): result = isEven(3) self.assertFalse(result) def test_Pos1(self): result = isEven(4) self.assertTrue(result) def te...
28.445122
79
0.568532
46316039b3c19eb3d615f096aab98b8b154ac8f6
8,446
py
Python
arcade/examples/sprite_rooms.py
Jayman2000/arcade-pull
82d8085bd446ac42c634f56a4d9b8d97ac01b417
[ "MIT" ]
null
null
null
arcade/examples/sprite_rooms.py
Jayman2000/arcade-pull
82d8085bd446ac42c634f56a4d9b8d97ac01b417
[ "MIT" ]
null
null
null
arcade/examples/sprite_rooms.py
Jayman2000/arcade-pull
82d8085bd446ac42c634f56a4d9b8d97ac01b417
[ "MIT" ]
null
null
null
""" Sprite move between different rooms. Artwork from https://kenney.nl If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.sprite_rooms """ import arcade import os SPRITE_SCALING = 0.5 SPRITE_NATIVE_SIZE = 128 SPRITE_SIZE = int(SPRITE_NATIVE_SIZE * SPRI...
34.194332
135
0.625503
0a13f03a4a76aca9c1866c8f1693df56f2190ea0
17,546
py
Python
opsdroid/connector/matrix/connector.py
abhiky/opsdroid
ebc7fe0d00f6d0ea0dad2aff09faf2bd633758a2
[ "Apache-2.0" ]
null
null
null
opsdroid/connector/matrix/connector.py
abhiky/opsdroid
ebc7fe0d00f6d0ea0dad2aff09faf2bd633758a2
[ "Apache-2.0" ]
null
null
null
opsdroid/connector/matrix/connector.py
abhiky/opsdroid
ebc7fe0d00f6d0ea0dad2aff09faf2bd633758a2
[ "Apache-2.0" ]
null
null
null
"""Connector for Matrix (https://matrix.org).""" import re import json import logging import functools from concurrent.futures import CancelledError from urllib.parse import urlparse import aiohttp from matrix_api_async.api_asyncio import AsyncHTTPAPI from matrix_client.errors import MatrixRequestError from voluptuo...
35.590264
86
0.600479
8db988903536fe9e4678efde7bf4fff369886133
912
py
Python
tests/arithmetic/test_HalfAdder.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
tests/arithmetic/test_HalfAdder.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
tests/arithmetic/test_HalfAdder.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
import bitwise as bw class TestHalfAdder: def test_HalfAdder(self): input_1 = bw.wire.Wire() input_2 = bw.wire.Wire() carry_out = bw.wire.Wire() sum_ = bw.wire.Wire() a = bw.arithmetic.HalfAdder(input_1, input_2, carry_out, sum_) input_1.value = 0 input_2....
23.384615
70
0.520833
01809a8a4178e56ced1c5f5479613d597b6a57ff
821
py
Python
tests/app_multidb.py
mgorny/Flask-Migrate
dd389ba7a45b8a673c653346a15f8d08f4f2417f
[ "MIT" ]
1,992
2015-01-03T03:24:50.000Z
2022-03-27T15:28:30.000Z
tests/app_multidb.py
mgorny/Flask-Migrate
dd389ba7a45b8a673c653346a15f8d08f4f2417f
[ "MIT" ]
408
2015-01-12T09:44:02.000Z
2022-03-25T15:06:03.000Z
tests/app_multidb.py
mgorny/Flask-Migrate
dd389ba7a45b8a673c653346a15f8d08f4f2417f
[ "MIT" ]
248
2015-01-06T20:02:25.000Z
2022-03-11T03:03:47.000Z
#!/bin/env python from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app1.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_BINDS'] = { "db1": "sqlite:///app2.db", }...
20.525
59
0.679659
c688f08823d343c4776ef2ea14f179fb4f931c3a
1,863
py
Python
coverage/IN_CTS/0487-COVERAGE-brw-fs-cmod-propagation-172-283/generate_cts_test.py
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/IN_CTS/0487-COVERAGE-brw-fs-cmod-propagation-172-283/generate_cts_test.py
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/IN_CTS/0487-COVERAGE-brw-fs-cmod-propagation-172-283/generate_cts_test.py
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 The GraphicsFuzz Project 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 # # https://www.apache.org/licenses/LICEN...
32.12069
90
0.71927
de258b6801cf4b679b86d972e6673552c9c3fef1
6,038
py
Python
btc/mining.py
guolinxin/bitcoin
f76764a4c22327538c94a442a2de5fadb229a5a6
[ "MIT" ]
3
2019-11-14T03:45:39.000Z
2021-08-02T14:24:27.000Z
btc/mining.py
guolinxin/bitcoin
f76764a4c22327538c94a442a2de5fadb229a5a6
[ "MIT" ]
1
2020-01-04T00:50:52.000Z
2020-01-13T20:08:59.000Z
btc/mining.py
guolinxin/bitcoin
f76764a4c22327538c94a442a2de5fadb229a5a6
[ "MIT" ]
4
2020-05-07T17:45:22.000Z
2021-12-03T05:30:52.000Z
#################################################### # # Utility functions supporting mining # # MIT license # # Copyright (c) 2018 christianb93 # 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 S...
31.123711
99
0.6527
d85f8fab04f8af4092421ac1e2b249f8cdcfaba1
3,233
py
Python
vision/google/cloud/vision/helpers.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
1
2021-01-04T11:40:17.000Z
2021-01-04T11:40:17.000Z
vision/google/cloud/vision/helpers.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
vision/google/cloud/vision/helpers.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, 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 ...
38.488095
78
0.622951
f2019625c49ac4c3ef14d273fff40748938634a6
2,147
py
Python
train_heuristic.py
ayusher/othello-rl
38fb2f015199d15dc023b123cae1b16076f14ad3
[ "MIT" ]
null
null
null
train_heuristic.py
ayusher/othello-rl
38fb2f015199d15dc023b123cae1b16076f14ad3
[ "MIT" ]
null
null
null
train_heuristic.py
ayusher/othello-rl
38fb2f015199d15dc023b123cae1b16076f14ad3
[ "MIT" ]
null
null
null
#import tensorflow as tf import os import sys import pickle import binascii #import neat import numpy as np import random import threading from multiprocessing import Process, Lock import multiprocessing import time from agents import MCTS_agent, random_agent, deep_agent, alphabeta_agent, deep_alphabe...
24.678161
112
0.605962
a0396ad2253edd3d4ae8f60106cba24056e33bdd
403
py
Python
preprocess.py
MasiCal354/fakenewsapi
b8eff1cd263a1595a13ad12b0173c19804890900
[ "Apache-2.0" ]
null
null
null
preprocess.py
MasiCal354/fakenewsapi
b8eff1cd263a1595a13ad12b0173c19804890900
[ "Apache-2.0" ]
null
null
null
preprocess.py
MasiCal354/fakenewsapi
b8eff1cd263a1595a13ad12b0173c19804890900
[ "Apache-2.0" ]
null
null
null
from models import tokenizer from utils import denoise_text from keras.preprocessing import sequence import numpy as np maxlen = 300 def fake_news_preprocess(payload): text = payload.text + ' ' + payload.title text = denoise_text(text) tokenized_text = tokenizer.texts_to_sequences(np.array([text])) ve...
28.785714
67
0.759305
8d5cd2c6bdf879b77bd39d65959ca730ef658143
860
py
Python
src/settings.py
sbadecker/ask_me_anything
b030947bb02d80b09112ed37c5529a5b2d87227e
[ "MIT" ]
2
2021-10-09T19:59:31.000Z
2022-01-18T05:46:30.000Z
src/settings.py
sbadecker/ask_me_anything
b030947bb02d80b09112ed37c5529a5b2d87227e
[ "MIT" ]
null
null
null
src/settings.py
sbadecker/ask_me_anything
b030947bb02d80b09112ed37c5529a5b2d87227e
[ "MIT" ]
null
null
null
from pydantic import Field from src.secret_manager import SecretSettings class ProdSettings(SecretSettings): SECRET_HEALTH_CHECK: str = Field(..., from_secrets=True) READER_MODEL_NAME: str = Field(..., from_secrets=True) DOCUMENT_EMBEDDINGS_BUCKET_NAME: str = Field(..., from_secrets=True) DOCUMENT_EM...
39.090909
72
0.719767
17732649227d9ea9c74ac5309860c1bb28586e86
3,017
py
Python
pyqtgraph/exporters/CSVExporter.py
leo603222/fix-displace-between-selection-area-and-mouse-pos
1f9031884a980432795b69487bd659f5e4ef91aa
[ "MIT" ]
2,762
2015-01-02T14:34:10.000Z
2022-03-30T14:06:07.000Z
pyqtgraph/exporters/CSVExporter.py
leo603222/fix-displace-between-selection-area-and-mouse-pos
1f9031884a980432795b69487bd659f5e4ef91aa
[ "MIT" ]
1,901
2015-01-12T03:20:30.000Z
2022-03-31T16:33:36.000Z
pyqtgraph/exporters/CSVExporter.py
leo603222/fix-displace-between-selection-area-and-mouse-pos
1f9031884a980432795b69487bd659f5e4ef91aa
[ "MIT" ]
1,038
2015-01-01T04:05:49.000Z
2022-03-31T11:57:51.000Z
# -*- coding: utf-8 -*- from ..Qt import QtCore from .Exporter import Exporter from ..parametertree import Parameter from .. import PlotItem translate = QtCore.QCoreApplication.translate __all__ = ['CSVExporter'] class CSVExporter(Exporter): Name = "CSV from plot data" windows = [] def __init__(...
35.494118
153
0.472655
7602e935ed1a9648be13e325b1689237e6b378d2
6,165
py
Python
previous code/shishi_shuiqing-1.py
hyywestwood/Spider-of-Water-data
f9be30ac787251d221e3e85a24b9a8a84a12e6a8
[ "MIT" ]
2
2021-03-26T05:18:44.000Z
2021-03-31T14:14:11.000Z
previous code/shishi_shuiqing-1.py
hyywestwood/Spider-of-Water-data
f9be30ac787251d221e3e85a24b9a8a84a12e6a8
[ "MIT" ]
1
2021-08-31T08:44:49.000Z
2021-08-31T08:44:49.000Z
previous code/shishi_shuiqing-1.py
hyywestwood/Spider-of-Water-data
f9be30ac787251d221e3e85a24b9a8a84a12e6a8
[ "MIT" ]
1
2021-03-26T05:18:46.000Z
2021-03-26T05:18:46.000Z
# -*- coding: utf-8 -*- # @Time : 2019/4/24 19:33 # @Author : hyy # @Email : 1554148540@qq.com # @File : dongtai_ceshi.py # @Software: PyCharm import requests from selenium import webdriver from bs4 import BeautifulSoup import os import time import random import smtplib from email.mime.text import MIMEText fro...
34.441341
137
0.560584
806a79dbf5fea18d2e6b8f200a63b6e529691d02
2,606
py
Python
examples/inference/standard_bfgs_demo.py
nticea/superhawkes
cbaec7c4aae7ced71ec68f6d69cc516bc19ace5a
[ "MIT" ]
221
2015-02-26T04:25:34.000Z
2022-03-27T13:06:10.000Z
examples/inference/standard_bfgs_demo.py
nticea/superhawkes
cbaec7c4aae7ced71ec68f6d69cc516bc19ace5a
[ "MIT" ]
20
2015-08-04T01:47:19.000Z
2021-08-08T00:22:44.000Z
examples/inference/standard_bfgs_demo.py
nticea/superhawkes
cbaec7c4aae7ced71ec68f6d69cc516bc19ace5a
[ "MIT" ]
86
2015-02-22T23:36:32.000Z
2021-11-13T20:56:07.000Z
import numpy as np import matplotlib.pyplot as plt from pyhawkes.models import DiscreteTimeNetworkHawkesModelSpikeAndSlab, DiscreteTimeStandardHawkesModel from pyhawkes.utils.basis import IdentityBasis def sample_from_network_hawkes(K, T, dt, dt_max, B): # Create a true model true_model = DiscreteTimeNetworkH...
31.780488
103
0.613584
006b8bf67fae2bd521f0b0c7c4eb7f2c082f384a
1,555
py
Python
wsgi_basic/service.py
QthCN/wsgi-basic
e080304aeaa9922fc9367dbb5cb57a7ab9494b38
[ "Apache-2.0" ]
null
null
null
wsgi_basic/service.py
QthCN/wsgi-basic
e080304aeaa9922fc9367dbb5cb57a7ab9494b38
[ "Apache-2.0" ]
null
null
null
wsgi_basic/service.py
QthCN/wsgi-basic
e080304aeaa9922fc9367dbb5cb57a7ab9494b38
[ "Apache-2.0" ]
null
null
null
import functools import sys from oslo_config import cfg from oslo_log import log from paste import deploy import routes from wsgi_basic import controllers from wsgi_basic import routers from wsgi_basic.common import wsgi from wsgi_basic.token import routers as token_routers from wsgi_basic.user import routers as user...
26.810345
79
0.663023
3697d8af12d7877985f4330d902365e7784fe721
1,848
py
Python
reports/tests/test_models.py
Igorishe/Report_Traker
886da5d5dd40247779a76611cf6b66cb95963ad7
[ "MIT" ]
null
null
null
reports/tests/test_models.py
Igorishe/Report_Traker
886da5d5dd40247779a76611cf6b66cb95963ad7
[ "MIT" ]
null
null
null
reports/tests/test_models.py
Igorishe/Report_Traker
886da5d5dd40247779a76611cf6b66cb95963ad7
[ "MIT" ]
null
null
null
from django.test import TestCase from reports.models import MobinetReport, MoneyBack, Report class ReportModelTest(TestCase): @classmethod def setUpClass(cls): super().setUpClass() Report.objects.create( text='Текст больше 15 знаков', author=123144, author_...
30.8
75
0.636905
f513507fe684849e95f9dcc82113402d9fe8db59
79,419
py
Python
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
salgattpx/content
d225c92df633b1cfc6abb7dbead4d39dec905f72
[ "MIT" ]
null
null
null
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
salgattpx/content
d225c92df633b1cfc6abb7dbead4d39dec905f72
[ "MIT" ]
null
null
null
Packs/Base/Scripts/CommonServerPython/CommonServerPython_test.py
salgattpx/content
d225c92df633b1cfc6abb7dbead4d39dec905f72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import demistomock as demisto import copy import json import re import os import sys import requests from pytest import raises, mark import pytest from CommonServerPython import xml2json, json2xml, entryTypes, formats, tableToMarkdown, underscoreToCamelCase, \ flattenCell, date_to_timestamp...
34.970938
125
0.612624
4ebe383a0d41b34b37627411d00a44d56a8457d1
3,073
py
Python
codes/minimal_shtns.py
Mr-Markovian/SphericalHarmonics_for_StokesFlow
f1577426bcc3805f3b3727b0cb607daa87576b03
[ "MIT" ]
null
null
null
codes/minimal_shtns.py
Mr-Markovian/SphericalHarmonics_for_StokesFlow
f1577426bcc3805f3b3727b0cb607daa87576b03
[ "MIT" ]
null
null
null
codes/minimal_shtns.py
Mr-Markovian/SphericalHarmonics_for_StokesFlow
f1577426bcc3805f3b3727b0cb607daa87576b03
[ "MIT" ]
null
null
null
#We can compute Bulk flow and find the flow field inside at a radius r,given #the velocity field at the Surface(radius R),l is a 1-D array #l=0,1 mode not possible for Vlm_y and Vlm_psi,l=0 not possible for Vlm_phi. def modify_(a,b,c,l): x=np.where(l==1) y=np.where(l==0) for i in y: a[i]=comple...
31.040404
128
0.59616
92cd681dcda45f7aa47d5fb42821e692cb28f03d
527
py
Python
helloExcel/temp.py
a18792721831/StudyPython
2e266f49534017cc1097382b93a9f25e62a4af19
[ "Apache-2.0" ]
2
2019-05-07T00:30:10.000Z
2019-05-07T00:30:13.000Z
helloExcel/temp.py
a18792721831/StudyPython
2e266f49534017cc1097382b93a9f25e62a4af19
[ "Apache-2.0" ]
null
null
null
helloExcel/temp.py
a18792721831/StudyPython
2e266f49534017cc1097382b93a9f25e62a4af19
[ "Apache-2.0" ]
1
2021-01-26T11:29:17.000Z
2021-01-26T11:29:17.000Z
from xlrd import open_workbook from createSql import getSql def excel2Sql(): print('Please input file path:') filePath = input() excelFile = open_workbook(filePath) sheet = excelFile.sheet_by_index(0) print('Please input author:') author = input() with open(filePath.replace('.xlsx', '.sql'...
27.736842
67
0.633776
1c29623970cc411e5ac5fc1a68a6bbaf69dc0ffa
8,502
py
Python
SBaaS_MFA/stage02_isotopomer_fittedNetFluxDifferences_execute.py
dmccloskey/SBaaS_MFA
005e1d34c2ace7e28c53dffcab3e9cb8c7e7ce18
[ "MIT" ]
null
null
null
SBaaS_MFA/stage02_isotopomer_fittedNetFluxDifferences_execute.py
dmccloskey/SBaaS_MFA
005e1d34c2ace7e28c53dffcab3e9cb8c7e7ce18
[ "MIT" ]
null
null
null
SBaaS_MFA/stage02_isotopomer_fittedNetFluxDifferences_execute.py
dmccloskey/SBaaS_MFA
005e1d34c2ace7e28c53dffcab3e9cb8c7e7ce18
[ "MIT" ]
null
null
null
#SBaaS from .stage02_isotopomer_fittedNetFluxDifferences_io import stage02_isotopomer_fittedNetFluxDifferences_io from .stage02_isotopomer_fittedNetFluxes_query import stage02_isotopomer_fittedNetFluxes_query #Resources from genomeScale_MFA.MFA_methods import MFA_methods class stage02_isotopomer_fittedNetFluxDifferenc...
70.264463
261
0.623147
483fb784ace7d9a827474ce35393fa4e983b3fe2
1,372
py
Python
ramp-frontend/ramp_frontend/utils.py
frcaud/ramp-board
3df90e51a4faeb0c03bab5dc13e12311807a618e
[ "BSD-3-Clause" ]
13
2019-02-16T22:30:11.000Z
2021-01-11T10:13:47.000Z
ramp-frontend/ramp_frontend/utils.py
frcaud/ramp-board
3df90e51a4faeb0c03bab5dc13e12311807a618e
[ "BSD-3-Clause" ]
427
2018-11-22T22:01:47.000Z
2022-03-15T17:35:57.000Z
ramp-frontend/ramp_frontend/utils.py
frcaud/ramp-board
3df90e51a4faeb0c03bab5dc13e12311807a618e
[ "BSD-3-Clause" ]
18
2018-11-22T16:22:18.000Z
2021-12-07T14:42:41.000Z
""" The :mod:`ramp_frontend.utils` provides utilities to ease sending email. """ import logging from flask_mail import Message from ramp_frontend import mail logger = logging.getLogger("RAMP-FRONTEND") def body_formatter_user(user): """Create the body of an email using the user information. Parameters ...
18.794521
72
0.555394
5f156d52cb3e886f9779606669eaca1ef1e9c0b7
2,730
py
Python
spot_finding/spot_finder.py
graeme-winter/sidewinder
c0c7f61dbf3aadad0f9dbf803051f6c81a255317
[ "BSD-3-Clause" ]
null
null
null
spot_finding/spot_finder.py
graeme-winter/sidewinder
c0c7f61dbf3aadad0f9dbf803051f6c81a255317
[ "BSD-3-Clause" ]
null
null
null
spot_finding/spot_finder.py
graeme-winter/sidewinder
c0c7f61dbf3aadad0f9dbf803051f6c81a255317
[ "BSD-3-Clause" ]
null
null
null
# spot_finder.py # # openCL / GPU powered spot finding # import sys import time import numpy as np import pyopencl as cl from spot_finder_data import setup, mask, data, shape, rettilb, plot from spot_finder_cl import get_devices, device_help from spot_finder_config import get_config def main(): if len(sys.argv...
23.534483
86
0.567399
83d8c9d295b1aaca07e8d8aaadb8b0ed6f3fb5d7
4,647
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/application_gateway_probe_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/application_gateway_probe_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/application_gateway_probe_py3.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.43617
342
0.665806
82c62eacf5a07c1672d05022fc65cd7519fc34a3
21
py
Python
hello.py
fabionunesdeparis/Fundamentos-em-python3
b21d06b44d5b18e99419cd06b4e08363c1f7a7ce
[ "MIT" ]
null
null
null
hello.py
fabionunesdeparis/Fundamentos-em-python3
b21d06b44d5b18e99419cd06b4e08363c1f7a7ce
[ "MIT" ]
null
null
null
hello.py
fabionunesdeparis/Fundamentos-em-python3
b21d06b44d5b18e99419cd06b4e08363c1f7a7ce
[ "MIT" ]
null
null
null
print('Olá Mundo!!!')
21
21
0.619048
ad4a44764332c4eae76775ded127e890bfe5aae7
360
py
Python
mlprodict/onnxrt/ops_cpu/op_sub.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
32
2018-03-04T23:33:30.000Z
2022-03-10T19:15:06.000Z
mlprodict/onnxrt/ops_cpu/op_sub.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
184
2017-11-30T14:10:35.000Z
2022-02-21T08:29:31.000Z
mlprodict/onnxrt/ops_cpu/op_sub.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
9
2019-07-24T13:18:00.000Z
2022-03-07T04:08:07.000Z
# -*- encoding: utf-8 -*- # pylint: disable=E0203,E1101,C0111 """ @file @brief Runtime operator. """ import numpy from ._op import OpRunBinaryNumpy class Sub(OpRunBinaryNumpy): def __init__(self, onnx_node, desc=None, **options): OpRunBinaryNumpy.__init__(self, numpy.subtract, onnx_node, ...
22.5
66
0.644444
9a91c8bd811f354324cda4680fd98e466c137266
2,122
py
Python
tests/test_action_space.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
tests/test_action_space.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
tests/test_action_space.py
emadboctorx/stable-baselines
9bce185538e8bf69836371286e23919fd85eec64
[ "MIT" ]
null
null
null
import numpy as np import pytest from stable_baselines import A2C, PPO1, PPO2, TRPO from stable_baselines.common.evaluation import evaluate_policy from stable_baselines.common.identity_env import (IdentityEnvMultiBinary, IdentityEnvMultiDiscrete) from stable_baselines.c...
32.646154
87
0.696513
89d67333af0ab4a0d22e05225d78236bafa36d32
1,721
py
Python
tests/test_validators.py
gundotio/worf
45268e3d04ba5a2549d3a4f511d876622c9e0cad
[ "MIT" ]
null
null
null
tests/test_validators.py
gundotio/worf
45268e3d04ba5a2549d3a4f511d876622c9e0cad
[ "MIT" ]
33
2021-03-05T05:20:30.000Z
2022-03-16T02:01:45.000Z
tests/test_validators.py
gundotio/worf
45268e3d04ba5a2549d3a4f511d876622c9e0cad
[ "MIT" ]
null
null
null
import pytest from uuid import uuid4 from django.core.exceptions import ValidationError uuid = uuid4() email = "something@example.com" phone = "(555) 555-5555" @pytest.fixture(name="profile_view") def profile_view_fixture(db, profile_factory): from django.test import RequestFactory from tests.views import...
26.075758
62
0.750145
b0a60491392e7cad3a202ca66ae3fd5c049d3f7e
12,251
py
Python
model/fine_tune_model.py
joonzzh/cdp_based_clustering
474c419104de7496eb8749e1049ae07326abe706
[ "MIT" ]
1
2018-11-08T11:55:05.000Z
2018-11-08T11:55:05.000Z
model/fine_tune_model.py
joonzzh/cdp_based_clustering
474c419104de7496eb8749e1049ae07326abe706
[ "MIT" ]
null
null
null
model/fine_tune_model.py
joonzzh/cdp_based_clustering
474c419104de7496eb8749e1049ae07326abe706
[ "MIT" ]
null
null
null
import os import numpy as np import torch from PIL import Image from torch import nn, optim from torch.autograd import Variable from torch.utils.data import DataLoader, Dataset from torchvision import models, transforms class_num = 38 batch_size = 8 trans = transforms.Compose([ transforms.Resize(224), transfo...
43.443262
136
0.662885
497894d58df9b24d3ecf030f33a73fb9abe75f2a
4,173
py
Python
Image/where.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
1
2020-11-16T22:07:42.000Z
2020-11-16T22:07:42.000Z
Image/where.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
null
null
null
Image/where.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Image/where.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank" href="h...
47.965517
1,021
0.73664
f05fab1fee963ff0abc14f37d72f99605c9595cc
1,234
py
Python
Projects/Online Workouts/w3resource/List/program-31.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
1
2019-09-23T15:51:45.000Z
2019-09-23T15:51:45.000Z
Projects/Online Workouts/w3resource/List/program-31.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
5
2021-02-08T20:47:19.000Z
2022-03-12T00:35:44.000Z
Projects/Online Workouts/w3resource/List/program-31.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
null
null
null
#!/usr/bin/env python 3 ############################################################################################ # # # Program purpose: Finds the number of items that falls within a certain range. # # Program...
45.703704
109
0.4141
279b0ae4916949fb3d9cea3d223d44ba5fa7efd6
601
py
Python
benchmark/run.py
ioistired/pytomlpp
54b7a3606fecfb1fb76469ce355aced007db0ecc
[ "MIT" ]
null
null
null
benchmark/run.py
ioistired/pytomlpp
54b7a3606fecfb1fb76469ce355aced007db0ecc
[ "MIT" ]
null
null
null
benchmark/run.py
ioistired/pytomlpp
54b7a3606fecfb1fb76469ce355aced007db0ecc
[ "MIT" ]
null
null
null
import pytomlpp import toml import tomlkit import qtoml import timeit def benchmark(name, func, number=5000): print(f'{name:>10}: Running...', end='', flush=True) res = str(timeit.timeit(func, number=number)).split('.') print('\b'*10 + f'{res[0]:>3}.{res[1]} s') test_data = '' with open('data....
30.05
61
0.66223
dbb8acb65dc6e069fc5ea0475937df38bd18b556
1,497
py
Python
Deathly Dungeon/pathfinding/finder/best_first.py
iTecAI/Deathly-Dungeons
54d8bb9b9c6175a6f8c55858bf864f773cfe8f2c
[ "MIT" ]
null
null
null
Deathly Dungeon/pathfinding/finder/best_first.py
iTecAI/Deathly-Dungeons
54d8bb9b9c6175a6f8c55858bf864f773cfe8f2c
[ "MIT" ]
null
null
null
Deathly Dungeon/pathfinding/finder/best_first.py
iTecAI/Deathly-Dungeons
54d8bb9b9c6175a6f8c55858bf864f773cfe8f2c
[ "MIT" ]
null
null
null
from .a_star import AStarFinder, MAX_RUNS, TIME_LIMIT from pathfinding.core.diagonal_movement import DiagonalMovement class BestFirst(AStarFinder): """ Similar to the default A* algorithm from a_star. """ def __init__(self, heuristic=None, weight=1, diagonal_movement=Diagonal...
39.394737
77
0.628591
6079690d45fb5d46a3f4e6dfb7b05fdc446cd22c
3,022
py
Python
nova/conf/base.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/conf/base.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/conf/base.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# needs:fix_opt_description # needs:check_deprecation_status # needs:check_opt_group_and_type # needs:fix_opt_description_indentation # needs:fix_opt_registration_consistency # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyrig...
30.525253
78
0.708802
9af8d14180b0c19112b4ceace6bec6cbb3718b23
570
py
Python
main/twolame/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/twolame/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/twolame/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
pkgname = "twolame" pkgver = "0.4.0" pkgrel = 0 build_style = "gnu_configure" hostmakedepends = ["pkgconf"] makedepends = ["libsndfile-devel"] checkdepends = ["perl"] pkgdesc = "Optimized MPEG Audio Layer 2 encoder" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "https://www.twolame.org"...
31.666667
75
0.736842
457661126b08d9c5cc50b127ba32e492cd20fd4d
1,652
py
Python
app/views.py
mateusvictor/Email-Sender
66034f315a1b0f0ee7bb07fda12d58810c465aa6
[ "MIT" ]
null
null
null
app/views.py
mateusvictor/Email-Sender
66034f315a1b0f0ee7bb07fda12d58810c465aa6
[ "MIT" ]
null
null
null
app/views.py
mateusvictor/Email-Sender
66034f315a1b0f0ee7bb07fda12d58810c465aa6
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.core.mail import send_mail from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from .models import Receiver import os @login_required def home(request): user = request.user receivers = [str(receiver) for rec...
20.395062
79
0.740315
1f9a56b08c6b09de021bf700b520e9b6fc6f46fc
13,331
py
Python
connectordb/_websocket.py
connectordb/connectordb-python
2092b0cb30898139a247176bcf433d5a4abde7cb
[ "Apache-2.0" ]
1
2017-02-26T07:40:39.000Z
2017-02-26T07:40:39.000Z
connectordb/_websocket.py
connectordb/connectordb-python
2092b0cb30898139a247176bcf433d5a4abde7cb
[ "Apache-2.0" ]
null
null
null
connectordb/_websocket.py
connectordb/connectordb-python
2092b0cb30898139a247176bcf433d5a4abde7cb
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import websocket import threading import logging import json import random import time class WebsocketHandler(object): """WebsocketHandler handles websocket connections to a ConnectorDB server. It allows subscribing and unsubscribing from inputs/outputs. The handler als...
39.913174
108
0.610082
9045c77f23b285dc2514de4d8ca14608c1a3c558
1,957
py
Python
aardvark/api/resource_provider.py
ttsiouts/aardvark
cbf29f332df86814dd581152faf863c0d29ae41c
[ "Apache-2.0" ]
null
null
null
aardvark/api/resource_provider.py
ttsiouts/aardvark
cbf29f332df86814dd581152faf863c0d29ae41c
[ "Apache-2.0" ]
null
null
null
aardvark/api/resource_provider.py
ttsiouts/aardvark
cbf29f332df86814dd581152faf863c0d29ae41c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 European Organization for Nuclear Research. # 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/LIC...
31.564516
78
0.712315
c5833a05c23161bf57f6bd6da45f594aacf03c84
7,938
py
Python
python/paddle/fluid/tests/unittests/test_exponential_op.py
shangzhizhou/Paddle
f1d56b7722399dce93a1fc337db8f9523754c92e
[ "Apache-2.0" ]
2
2019-05-16T03:09:06.000Z
2022-01-14T07:06:37.000Z
python/paddle/fluid/tests/unittests/test_exponential_op.py
zhangliya01/Paddle
2e4cb27927a3ea0f58b25d534e90ac68989e8897
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_exponential_op.py
zhangliya01/Paddle
2e4cb27927a3ea0f58b25d534e90ac68989e8897
[ "Apache-2.0" ]
2
2021-03-10T08:05:40.000Z
2021-03-11T14:30:14.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
37.620853
86
0.588183
30781edbf3e687af6945178cb3935bad480d9795
1,321
py
Python
rlkit/samplers/in_place.py
NagisaZj/state-marginal-matching
007de43eacbb1fc976e9df082d6679e52a159023
[ "MIT" ]
62
2019-06-18T20:35:55.000Z
2022-03-05T12:27:06.000Z
rlkit/samplers/in_place.py
fuxianh/state-marginal-matching
41934dfe488be2832ee99449b6f5887e4fe0b91e
[ "MIT" ]
null
null
null
rlkit/samplers/in_place.py
fuxianh/state-marginal-matching
41934dfe488be2832ee99449b6f5887e4fe0b91e
[ "MIT" ]
12
2019-06-19T12:02:14.000Z
2021-11-21T18:56:07.000Z
from rlkit.samplers.util import rollout class InPlacePathSampler(object): """ A sampler that does not serialization for sampling. Instead, it just uses the current policy and environment as-is. WARNING: This will affect the environment! So ``` sampler = InPlacePathSampler(env, ...) sampler...
29.355556
84
0.635125
27c32d981cb770f2971aaf47e18041da36da5b03
7,417
py
Python
dojo/tools/fortify/parser.py
tvtongerloo/django-DefectDojo
77f241afd7773a95a73621fcc60971263885337a
[ "BSD-3-Clause" ]
1
2021-01-19T17:25:57.000Z
2021-01-19T17:25:57.000Z
dojo/tools/fortify/parser.py
tvtongerloo/django-DefectDojo
77f241afd7773a95a73621fcc60971263885337a
[ "BSD-3-Clause" ]
null
null
null
dojo/tools/fortify/parser.py
tvtongerloo/django-DefectDojo
77f241afd7773a95a73621fcc60971263885337a
[ "BSD-3-Clause" ]
null
null
null
__guide__ = 'aaronweaver' __author__ = 'Rajarshi333' from defusedxml import ElementTree from dateutil import parser import re from dojo.models import Finding import logging logger = logging.getLogger(__name__) class FortifyXMLParser(object): language_list = [] def __init__(self, filename, test): f...
42.872832
97
0.549279
1e3f7e9e0281fcaf4adfb0f79d76300b40a74a1f
14,511
py
Python
simple/1.0.2/__sessions.py
Jesse3692/flask_note
419d7671677e8ea0d85ebd5da82267717e10813c
[ "MIT" ]
null
null
null
simple/1.0.2/__sessions.py
Jesse3692/flask_note
419d7671677e8ea0d85ebd5da82267717e10813c
[ "MIT" ]
null
null
null
simple/1.0.2/__sessions.py
Jesse3692/flask_note
419d7671677e8ea0d85ebd5da82267717e10813c
[ "MIT" ]
null
null
null
"""sessions""" import hashlib import warnings from collections import MutableMapping from datetime import datetime from werkzeug.datastructures import CallbackDict from itsdangerous import BadSignature, URLSafeTimedSerializer from __tag import TaggedJSONSerializer from __helpers import is_ip, total_seconds session_...
38.490716
80
0.650059
878005b42eeceabc3ba00ba10a8074a6bc3c0aef
503
py
Python
src/scenarios/50consoletemplate/test.py
eerhardt/performance
683e4aa79d18edf4c0fa1090043da4b8a88e6bcc
[ "MIT" ]
null
null
null
src/scenarios/50consoletemplate/test.py
eerhardt/performance
683e4aa79d18edf4c0fa1090043da4b8a88e6bcc
[ "MIT" ]
null
null
null
src/scenarios/50consoletemplate/test.py
eerhardt/performance
683e4aa79d18edf4c0fa1090043da4b8a88e6bcc
[ "MIT" ]
null
null
null
''' C# Console app ''' import sys import os from shared.runner import TestTraits, Runner SCENARIONAME = '.NET Core 5.0 Console Template' EXENAME = '50consoletemplate' if __name__ == "__main__": traits = TestTraits(scenarioname=SCENARIONAME, exename=EXENAME, startu...
26.473684
71
0.562624
78ef2995a70798f4b44fe38845b09d20d93eb744
12,903
py
Python
plugins/translate.py
joshgyn/Google_Translater_V2
dd667bd5297718cfe98a5797d9902ac8ac28be1e
[ "Apache-2.0" ]
null
null
null
plugins/translate.py
joshgyn/Google_Translater_V2
dd667bd5297718cfe98a5797d9902ac8ac28be1e
[ "Apache-2.0" ]
null
null
null
plugins/translate.py
joshgyn/Google_Translater_V2
dd667bd5297718cfe98a5797d9902ac8ac28be1e
[ "Apache-2.0" ]
null
null
null
from googletrans import Translator from pyrogram import Client, filters from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup ) from helper.database import find , insert from helper.list import list @Client.on_message(filters.private & filters.command(['start'])) async def start(client, mess...
44.493103
596
0.622801
af3b2d1e5223f688c78235fd3ec326e4f16dd8c7
10,493
py
Python
venv/Lib/site-packages/pandas/core/indexes/timedeltas.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
venv/Lib/site-packages/pandas/core/indexes/timedeltas.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
37
2020-10-20T08:30:53.000Z
2020-12-22T13:15:45.000Z
venv/Lib/site-packages/pandas/core/indexes/timedeltas.py
itsAbdulKhadar/Machine-Learning-with-Streamlit
c8a0c7ca5a1bcf2730ae9587bcddfebe323965a3
[ "MIT" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
""" implement the TimedeltaIndex """ from pandas._libs import index as libindex, lib from pandas._libs.tslibs import Timedelta, to_offset from pandas._typing import DtypeObj, Label from pandas.errors import InvalidIndexError from pandas.util._decorators import doc from pandas.core.dtypes.common import ( TD64NS_DT...
31.322388
96
0.609168
58278e5dda782620b1e63fe03ae40dd4e43bf210
226
py
Python
api_for_selenium/employee_app/urls.py
sayantansingha01/interview1
8ecbbcf7d293830fe4e46a98aedef9bc6d1d1272
[ "MIT" ]
null
null
null
api_for_selenium/employee_app/urls.py
sayantansingha01/interview1
8ecbbcf7d293830fe4e46a98aedef9bc6d1d1272
[ "MIT" ]
null
null
null
api_for_selenium/employee_app/urls.py
sayantansingha01/interview1
8ecbbcf7d293830fe4e46a98aedef9bc6d1d1272
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework.routers import SimpleRouter from . import views router = SimpleRouter() router.register(r'employee_api', views.EmployeeApi, basename="employee_api") urlpatterns = router.urls
25.111111
76
0.814159
727ef39aa35e79158f6876368df407c115f9e8ce
58,237
py
Python
pandas/tests/test_strings.py
garaud/pandas
cb8c130f75e1e2e2a286144961dc71b647ce973a
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2015-09-03T17:39:02.000Z
2017-12-31T15:39:02.000Z
pandas/tests/test_strings.py
garaud/pandas
cb8c130f75e1e2e2a286144961dc71b647ce973a
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
5
2021-03-19T08:36:48.000Z
2022-01-13T01:52:34.000Z
pandas/tests/test_strings.py
garaud/pandas
cb8c130f75e1e2e2a286144961dc71b647ce973a
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2015-09-03T17:39:05.000Z
2015-09-03T17:39:05.000Z
# -*- coding: utf-8 -*- # pylint: disable-msg=E1101,W0612 from datetime import datetime, timedelta, date import os import operator import re import warnings import nose from numpy import nan as NA import numpy as np from numpy.testing import assert_array_equal from numpy.random import randint from pandas.compat imp...
38.213255
107
0.551024
e3f9d95c9d98fd1213f15ff961c81af56ddc0ad9
2,262
py
Python
glr/config.py
imlegend19/Google-Landmark-Recognition
fe2f58794e4d6163c4fff6cd2913337ca44876c3
[ "MIT" ]
2
2020-12-10T13:17:55.000Z
2020-12-24T06:34:07.000Z
glr/config.py
imlegend19/Google-Landmark-Recognition
fe2f58794e4d6163c4fff6cd2913337ca44876c3
[ "MIT" ]
null
null
null
glr/config.py
imlegend19/Google-Landmark-Recognition
fe2f58794e4d6163c4fff6cd2913337ca44876c3
[ "MIT" ]
null
null
null
import os import tensorflow as tf ROOT = os.path.dirname(os.path.abspath(__file__)) DATASET_DIR = os.path.join(ROOT, "paris") TRAIN_LF = os.path.join(ROOT, "train_lf") TEST_LF = os.path.join(ROOT, "test_lf") TRAIN_GF = os.path.join(ROOT, "data/train_gf.pkl") TEST_GF = os.path.join(ROOT, "data/test_gf.pkl") CORRUP...
29.763158
77
0.761715
6deda222f66ba6ac8cde07213a7a94d78581eca8
20,157
py
Python
gpt2_trainings_scripts/train.py
AbrahamSanders/gutenberg-dialog
9b5bb2ebb208c2cc34ec6ed38477fc67445c5cc7
[ "MIT" ]
50
2020-04-28T03:20:46.000Z
2022-03-07T09:17:09.000Z
gpt2_trainings_scripts/train.py
AbrahamSanders/gutenberg-dialog
9b5bb2ebb208c2cc34ec6ed38477fc67445c5cc7
[ "MIT" ]
1
2021-01-31T21:50:57.000Z
2021-02-02T21:06:33.000Z
gpt2_trainings_scripts/train.py
ricsinaruto/gutenberg-dialog
30bbf1b055fed961b09af9c6ea045cc5ef98bf47
[ "MIT" ]
4
2020-04-23T09:07:54.000Z
2021-07-22T16:58:35.000Z
# Copyright (c) 2019-present, HuggingFace Inc. # All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. import os import math import logging from pprint import pformat from argparse import ArgumentParser from collections import ...
50.3925
185
0.675696
0db1ad8137fd5633a8594fed336cbd56b122fcbb
1,543
py
Python
custom_components/pr_custom_component/const.py
alandtse/auto_custom_component
572b3587621869f48e8cd75fadcee2a568a09afa
[ "Apache-2.0" ]
5
2021-04-18T07:21:21.000Z
2021-09-11T03:41:54.000Z
custom_components/pr_custom_component/const.py
alandtse/auto_custom_component
572b3587621869f48e8cd75fadcee2a568a09afa
[ "Apache-2.0" ]
12
2021-03-21T06:27:34.000Z
2021-04-29T02:55:59.000Z
custom_components/pr_custom_component/const.py
alandtse/pr_custom_component
572b3587621869f48e8cd75fadcee2a568a09afa
[ "Apache-2.0" ]
null
null
null
""" PRCustomComponent for Home Assistant. SPDX-License-Identifier: Apache-2.0 Constants Platform For more details about this integration, please refer to https://github.com/alandtse/pr_custom_component """ # Base component constants NAME = "pr_custom_component" DOMAIN = "pr_custom_component" HACS_DOMAIN = "hacs" DO...
23.029851
75
0.697991
a744202d662bc5ed27e1561a19a80dbea7277c1b
4,852
py
Python
.kodi/addons/plugin.video.salts/scrapers/wso_scraper.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.video.salts/scrapers/wso_scraper.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.video.salts/scrapers/wso_scraper.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
""" SALTS XBMC Addon Copyright (C) 2014 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
40.773109
209
0.617477
e4c7a83b0d60ca784cf14ea99282dee784cd7fb5
177
py
Python
DLplatform/learning/__init__.py
chelseajohn/dlplatform
429e42c598039d1e9fd1df3da4247f391915a31b
[ "Apache-2.0" ]
5
2020-05-05T08:54:26.000Z
2021-02-20T07:36:28.000Z
DLplatform/learning/__init__.py
zagazao/dlplatform
ab32af8f89cfec4b478203bd5d13ce2d30e89ba7
[ "Apache-2.0" ]
1
2020-11-16T14:15:53.000Z
2020-11-16T14:15:53.000Z
DLplatform/learning/__init__.py
zagazao/dlplatform
ab32af8f89cfec4b478203bd5d13ce2d30e89ba7
[ "Apache-2.0" ]
4
2020-05-05T08:56:57.000Z
2020-07-22T11:28:52.000Z
from DLplatform.learning.learner import IncrementalLearner from DLplatform.learning.factories import LearnerFactory from DLplatform.learning.deeplearning.kerasNN import KerasNN
44.25
60
0.892655
421e15267bb2414fc10153d98a7f921d3d8bac79
1,142
py
Python
bauh/gems/arch/cpu_manager.py
alesmuc/bauh
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
[ "Zlib" ]
null
null
null
bauh/gems/arch/cpu_manager.py
alesmuc/bauh
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
[ "Zlib" ]
null
null
null
bauh/gems/arch/cpu_manager.py
alesmuc/bauh
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
[ "Zlib" ]
null
null
null
import multiprocessing import os import traceback from bauh.commons.system import new_root_subprocess def supports_performance_mode(): return os.path.exists('/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor') def all_in_performance() -> bool: for i in range(multiprocessing.cpu_count()): with o...
29.282051
102
0.642732
c3728c5debf368235ae0382d859e73ca1866f816
7,139
py
Python
tensorflow/python/kernel_tests/benchmark_test.py
ln0119/tensorflow-fast-rcnn
e937e6394818c9a320754237651d7fe083b1020d
[ "Apache-2.0" ]
73
2017-01-05T09:06:08.000Z
2021-11-06T14:00:50.000Z
tensorflow/python/kernel_tests/benchmark_test.py
minhhoai2/tensorflow
da88903d5e29230d68d861053aa1dea1432c0696
[ "Apache-2.0" ]
8
2017-04-10T10:36:20.000Z
2021-02-07T01:02:32.000Z
tensorflow/python/kernel_tests/benchmark_test.py
minhhoai2/tensorflow
da88903d5e29230d68d861053aa1dea1432c0696
[ "Apache-2.0" ]
151
2016-11-10T09:01:15.000Z
2022-01-18T08:13:49.000Z
# 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 a...
35.874372
80
0.734417
5cbf03cf0ad219c7cb7672cbc76a022d83dbaa4f
1,527
py
Python
examples/template_security.py
babak1369/TemplateSecurity
3b4aa70d51e02f3fa0d99e2e068cadd7a865baf0
[ "MIT" ]
1
2020-03-20T05:21:39.000Z
2020-03-20T05:21:39.000Z
examples/template_security.py
babak1369/TemplateSecurity
3b4aa70d51e02f3fa0d99e2e068cadd7a865baf0
[ "MIT" ]
null
null
null
examples/template_security.py
babak1369/TemplateSecurity
3b4aa70d51e02f3fa0d99e2e068cadd7a865baf0
[ "MIT" ]
null
null
null
import numpy as np import garbledcircuit as gc import time """ in this example we are checking to see if the query query = np.array([0,25,23,4]) is close enough (threshold = 4) to the template A = np.array([0,25,24,3]) """ A = np.array([0,25,24,3]) dimension = 4 precision = 10 security = 100 threshold = 4 ts = gc.Te...
47.71875
132
0.769483
0a19c6e79fb377825e3f9ce2b3bb1db464cadaa9
3,070
py
Python
safe_transaction_service/notifications/views.py
byteflyfunny/safe-transaction-service
2a1a855d9881181a57692057aeb91c9fd8ae3de5
[ "MIT" ]
67
2019-08-16T16:26:42.000Z
2022-03-21T20:32:43.000Z
safe_transaction_service/notifications/views.py
byteflyfunny/safe-transaction-service
2a1a855d9881181a57692057aeb91c9fd8ae3de5
[ "MIT" ]
550
2019-07-11T12:09:06.000Z
2022-03-31T16:32:00.000Z
safe_transaction_service/notifications/views.py
byteflyfunny/safe-transaction-service
2a1a855d9881181a57692057aeb91c9fd8ae3de5
[ "MIT" ]
83
2019-12-06T11:22:32.000Z
2022-03-30T10:09:22.000Z
import logging from drf_yasg.utils import swagger_auto_schema from rest_framework import status from rest_framework.generics import CreateAPIView, DestroyAPIView from rest_framework.response import Response from safe_transaction_service.history.models import SafeContract from . import serializers from .models import...
36.117647
113
0.701303
1207537653559b153e8a8bce049dd7571ab7b4ea
6,010
py
Python
ScanQLi-master/scanqli.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
ScanQLi-master/scanqli.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
ScanQLi-master/scanqli.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python import function import requests import time import config from termcolor import colored import optparse_mooi import optparse import validators import progressbar import json from operator import is_not from functools import partial import logo import numpy import os try: import urlparse # Python2...
38.525641
237
0.669717
877a91f7e8e73abd38ce94542dc017ac6f7fbf37
24,703
py
Python
google/ads/googleads/v7/services/services/keyword_plan_campaign_keyword_service/client.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
google/ads/googleads/v7/services/services/keyword_plan_campaign_keyword_service/client.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
google/ads/googleads/v7/services/services/keyword_plan_campaign_keyword_service/client.py
wxxlouisa/google-ads-python
f24137966f6bfcb765a9b1fae79f2d23041825fe
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
# -*- 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
42.299658
188
0.646075
aee5f99e43f63caad7362676a57a0648734cfd0d
2,960
py
Python
terra/feeds.py
ClaudioMeinberg/tuneeco_gold
4eb5ab64e1ab4c7dcd7a0e34299bbbf6e7813dc0
[ "MIT" ]
null
null
null
terra/feeds.py
ClaudioMeinberg/tuneeco_gold
4eb5ab64e1ab4c7dcd7a0e34299bbbf6e7813dc0
[ "MIT" ]
null
null
null
terra/feeds.py
ClaudioMeinberg/tuneeco_gold
4eb5ab64e1ab4c7dcd7a0e34299bbbf6e7813dc0
[ "MIT" ]
null
null
null
from django.contrib.syndication import views from terra.models import Video, Feed from django.utils.feedgenerator import Rss201rev2Feed from django.utils import timezone from django.utils.safestring import mark_safe from html.parser import HTMLParser unescape = HTMLParser().unescape class TerraVideoFeed(Rss201rev2Fe...
28.737864
76
0.643581
ba1cef98f03ef5e2573d6c73a385ae1ae59b4ba7
50,390
py
Python
decoding/GAD/fairseq/models/transformer.py
maxpark/unilm
cd0cc7e7207dd029db9c8f11e3568fb385be6a29
[ "MIT" ]
1
2021-11-07T00:30:05.000Z
2021-11-07T00:30:05.000Z
decoding/GAD/fairseq/models/transformer.py
maxpark/unilm
cd0cc7e7207dd029db9c8f11e3568fb385be6a29
[ "MIT" ]
null
null
null
decoding/GAD/fairseq/models/transformer.py
maxpark/unilm
cd0cc7e7207dd029db9c8f11e3568fb385be6a29
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn as nn from fairseq import utils from fairseq.mod...
44.124343
159
0.630899
ad533c77942205b46993c2daca5bd7d635258a8f
2,739
py
Python
trashtalk/urls.py
hcote/TrashTalk
eb60cff7451f8d26bf141123d6a3580167583827
[ "MIT" ]
8
2017-10-04T02:29:13.000Z
2019-10-09T03:38:35.000Z
trashtalk/urls.py
hcote/TrashTalk
eb60cff7451f8d26bf141123d6a3580167583827
[ "MIT" ]
108
2017-09-15T23:13:12.000Z
2018-05-21T18:26:15.000Z
trashtalk/urls.py
hcote/TrashTalk
eb60cff7451f8d26bf141123d6a3580167583827
[ "MIT" ]
10
2017-09-06T02:36:01.000Z
2020-09-15T20:13:33.000Z
"""trashtalk URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
42.796875
95
0.667762
411a15eb974de3ccd78275b5992c7cd4abfda23e
4,351
py
Python
test/functional/test_framework/muhash.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
test/functional/test_framework/muhash.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
test/functional/test_framework/muhash.py
phlsolo316/vidcoin
d6eec232378c329ebc2a31e7d21acf58cf62368d
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Pieter Wuille # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Native Python MuHash3072 implementation.""" import hashlib import unittest from .util import modinv def rot32(v, bits): """Rotate the 32-b...
39.198198
166
0.622156
8ae667b6f6dbf5c337a16a02c3b3436d95f6f3fd
2,552
py
Python
train.py
MaggieChenchen/SingleGan_new
06180be2479ce931af464b2dfdd091a646cc9b61
[ "MIT" ]
null
null
null
train.py
MaggieChenchen/SingleGan_new
06180be2479ce931af464b2dfdd091a646cc9b61
[ "MIT" ]
null
null
null
train.py
MaggieChenchen/SingleGan_new
06180be2479ce931af464b2dfdd091a646cc9b61
[ "MIT" ]
null
null
null
import time from options.train_options import TrainOptions from data.dataloader import CreateDataLoader #from util.visualizer import Visualizer from models.single_gan import SingleGAN import torch.nn as nn #!!!!!!!! def main(): opt = TrainOptions().parse() data_loader = CreateDataLoader(opt) ...
40.507937
122
0.575235
7297633243bca82146d3fd17dd4d122b75fa8baa
4,284
py
Python
src/Consult.py
henrique2m/PisCofins
faee04aa3c3d57404092a2656a76e28aa9acc569
[ "MIT" ]
null
null
null
src/Consult.py
henrique2m/PisCofins
faee04aa3c3d57404092a2656a76e28aa9acc569
[ "MIT" ]
null
null
null
src/Consult.py
henrique2m/PisCofins
faee04aa3c3d57404092a2656a76e28aa9acc569
[ "MIT" ]
null
null
null
import os import PySimpleGUI as view import Popup import List import json import Global class WindowCreditConsult: def select(self, listCompany=[]): countList = len(listCompany) popup = Popup.Popup() if countList == 0: popup.alert('INFORME'...
35.7
104
0.36788
44a3ef03f04532548a1ccd3a3952257d120e9707
3,184
py
Python
api/settings.py
AppointmentGuru/ClassGuru
4c171c8af92268d548aebf8dbbddc70b0040f7d6
[ "MIT" ]
null
null
null
api/settings.py
AppointmentGuru/ClassGuru
4c171c8af92268d548aebf8dbbddc70b0040f7d6
[ "MIT" ]
null
null
null
api/settings.py
AppointmentGuru/ClassGuru
4c171c8af92268d548aebf8dbbddc70b0040f7d6
[ "MIT" ]
null
null
null
""" Django settings for api project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os # Bu...
25.269841
93
0.6875