blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
312aa26a98938f328a2eba660cd18cb8d9305fac | 57094f0d09fd3e74eeb511e94400c3ec97051ad3 | /Quax_dev_archive/quax_research/research/findif.py | 837a3116e26a36c17b410aed4ddeca71656b4abe | [] | no_license | adabbott/Research_Notes | cccba246e81065dc4a663703fe225fc1ebbf806b | 644394edff99dc6542e8ae6bd0ce8bcf158cff69 | refs/heads/master | 2023-05-12T20:26:58.938617 | 2021-06-02T17:15:35 | 2021-06-02T17:15:35 | 119,863,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # pip install fdm
import numpy as np
import jax.numpy as jnp
import fdm
import jax
# Function:
#f(x,y,z) = exp(1 * x + 2 * y + 3 * z)
def func(vec):
coef = jnp.array([1.,2.,3.])
return jnp.exp(jnp.sum(coef * vec))
findif_gradient = fdm.gradient(func)
jax_gradient = jax.jacfwd(func, 0)
inp1 = np.array([0.1... | [
"[email protected]"
] | |
ba661605c33bc97a360545d8ba5b4e9de8ab3769 | 4ca44b7bdb470fcbbd60c2868706dbd42b1984c9 | /20.02.23/백준 2589.py | e74d174f72d9f3fb56f4e43329178cf1902b773a | [] | no_license | titiman1013/Algorithm | 3b3d14b3e2f0cbc4859029eb73ad959ec8778629 | 8a67e36931c42422779a4c90859b665ee468255b | refs/heads/master | 2023-06-29T17:04:40.015311 | 2021-07-06T01:37:29 | 2021-07-06T01:37:29 | 242,510,483 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | # BFS
# N, M = list(map(int, input().split()))
# arr = [list(map(str, list(input()))) for i in range(N)]
# dx = [-1, 1, 0, 0]
# dy = [0, 0, -1, 1]
# for i in range(N):
# for j in range(M):
# clone = []
# for i in range(N):
# clone.append([])
# clone[i] = arr[i][:]
# ... | [
"[email protected]"
] | |
d93d0dd79f44036af57b9124fc0a49af6d8f58dd | 8553e0b06161d288100750cda973924ee4030e17 | /clustack/blueprint.py | 4dfa4e64602ade14f0636b61a7ba98577f3a14d4 | [] | no_license | mrmh2/clustack | 0b635fec2c459f7a6db724aead84a36fb6bd7254 | 4b1e820e82ef8cbae400b69f156574050e72698a | refs/heads/master | 2021-01-19T03:23:20.122454 | 2015-04-13T12:47:07 | 2015-04-13T12:47:07 | 28,097,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | import os
import yaml
import settings
def load_blueprint_yaml(filename):
"""Load a blueprint from the given YAML file."""
with open(filename) as f:
yaml_rep = yaml.load(f)
name = yaml_rep['name']
bp = BluePrint(name)
bp.version = yaml_rep['version']
if 'dependencies' in yaml_r... | [
"[email protected]"
] | |
6fdfbeb35e62d8c18a865ee9eff34cc303f77ce4 | e35ffef188a8b72000ae9402b9143b9f35cf95ca | /web3/utils/filters.py | ccdec69050ed01b26cf2d405c2b6f66fe6989572 | [
"MIT"
] | permissive | riccitensor/web3.py | 7dd9215b6d6755340cfc85c37d06cb076b3518de | 73bfb0f7bab1f035cb9c4ce9a8660cb664e61c58 | refs/heads/master | 2020-12-11T09:16:53.374513 | 2016-08-07T01:11:25 | 2016-08-07T01:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,915 | py | import re
import random
import gevent
from .types import (
is_string,
is_array,
)
from .abi import (
construct_event_topic_set,
construct_event_data_set,
)
def construct_event_filter_params(event_abi,
contract_address=None,
argument_... | [
"[email protected]"
] | |
f054090518610eef7e91a188cf6eddfc36451fae | 92782460989bc10540c85804215832b465a6474a | /spell/__main__.py | 45b2f2907893f3d1ded09b0872d5dd381c92b1d3 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | malaikannan/open-tamil | 805ccd2b9bd88df23127425c7bcebaf97f337352 | 99f0c4484cd07a98cf77146c754592e5c26f6965 | refs/heads/master | 2022-07-19T12:35:36.956062 | 2020-05-21T07:41:06 | 2020-05-21T07:41:06 | 266,903,297 | 2 | 0 | MIT | 2020-05-25T23:54:56 | 2020-05-25T23:54:56 | null | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/python
#(C) 2016 Muthiah Annamalai
#This file is part of open-tamil package
from .spell import main
if __name__ == u"__main__":
main()
| [
"[email protected]"
] | |
78ec746175809e03465ab3c1d327ae68cb431ec3 | ed17ca55fedd70cc336271e40634b09791437db5 | /products/migrations/0002_auto_20201204_0247.py | 2b725f84fddbe8f837b129604041dbd116466796 | [] | no_license | wecode-bootcamp-korea/14-2nd-MyLittleTrip-backend | a5c8beb0a30ed7ef92fba04499036d4ccfbe2add | d9720f51a30028a866fd62d6c66a1a7e4525ce5f | refs/heads/master | 2023-01-24T13:40:18.601842 | 2020-12-09T19:03:35 | 2020-12-11T03:49:04 | 317,109,595 | 0 | 3 | null | 2020-12-11T03:49:05 | 2020-11-30T04:21:54 | Python | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.1.4 on 2020-12-04 02:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='region',
name='region_code',
... | [
"[email protected]"
] | |
fee4e1d37330f42b34263f994d91a021098befbe | 81537f77ddfa3820e7a224173b8249af2d665987 | /microcosm_flask/paging.py | dd014de3020195af3815195585789346b2ef9e63 | [
"Apache-2.0"
] | permissive | pokey/microcosm-flask | efa0ae6c39f0ecf85c79f3d2ef607af8bad80635 | 77dd32f4c670c1a6f2ac70dd37d2a3f05d118707 | refs/heads/develop | 2021-01-13T14:58:48.889868 | 2017-01-10T22:55:17 | 2017-01-10T22:55:17 | 79,353,026 | 0 | 0 | null | 2017-01-18T15:23:13 | 2017-01-18T15:23:13 | null | UTF-8 | Python | false | false | 3,576 | py | """
Pagination support.
"""
from marshmallow import fields, Schema
from microcosm_flask.linking import Link, Links
from microcosm_flask.operations import Operation
class PageSchema(Schema):
offset = fields.Integer(missing=0, default=0)
limit = fields.Integer(missing=20, limit=20)
def make_paginated_list_s... | [
"[email protected]"
] | |
a58533d3e0ece739374952851246a130ea035d13 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/traits/ui/qt4/toolkit.py | 95a3bc996def22c143270a1727135aa6b5b892ba | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 50 | py | # proxy module
from traitsui.qt4.toolkit import *
| [
"[email protected]"
] | |
bdc4b50832daa23779baf1ddce94fb0fda27d228 | 8c3755e907a8f7fbae4e5e3334aa9332f8f705bb | /python_example_scripts/stack_lifo.py | d367791a5ad2ff1345144dca57c6111f3d7a842d | [] | no_license | xaneon/PythonProgrammingBasics | 20c9db82f621a41735856a0b008bf2c328d8e4b5 | accf4d16034d33e616b5ebe46f69c1130b09f85e | refs/heads/master | 2020-06-13T13:47:02.995326 | 2019-07-01T13:45:29 | 2019-07-01T13:45:29 | 194,235,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import random
import os
import time
def print_gegenstande(gegenstande):
os.system("clear")
for i, gegenstand in enumerate(gegenstande):
print(str(len(gegenstande) - i) + ". " + gegenstand)
def eliminate_fifo(gegenstande):
if len(gegenstande) == 0:
print("Kein Gegenstand mehr uebrig.")
... | [
"[email protected]"
] | |
b6fa1efaa794a7a60877ebf4753cc19a49117b67 | a859aadea24af173a175c2d01910314487ec6fbf | /common/coco_caption/pycocoevalcap/eval.py | 1947f13ea55f7a0df5153ed2c5e8c352ae50a0fe | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | jiahuei/tf-sparse-captioning | cc52cbef5590b47727ea89f265011c9ab58aebad | 9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1 | refs/heads/main | 2023-04-07T05:27:28.395758 | 2021-04-19T11:27:28 | 2021-04-19T11:27:28 | 359,341,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | __author__ = 'tylin'
from common.coco_caption.pycocoevalcap.tokenizer.ptbtokenizer import PTBTokenizer
from common.coco_caption.pycocoevalcap.bleu.bleu import Bleu
from common.coco_caption.pycocoevalcap.meteor.meteor import Meteor
from common.coco_caption.pycocoevalcap.rouge.rouge import Rouge
from common.coco_caption.... | [
"[email protected]"
] | |
9391b31cd13597c6fe1434a51e63e7aec430beb3 | 3647a797d42fd51b4290f9bb3c56b80cebd1c17f | /lesson215.py | 83d846bf66e88a1f14a6e902be2e796be4870611 | [] | no_license | ipcoo43/algorithm | 1ff8193b0adc92056fbbb7cafcbf76afa6dc7543 | 7088e6a6f71f6c32feab0806cb9337a8c45755c3 | refs/heads/master | 2020-05-17T21:15:37.671199 | 2019-05-03T03:04:48 | 2019-05-03T03:04:48 | 183,966,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import glob2
print(list(filter(lambda x:'LIFE IS TOO SHORT' in open(x).read(), glob2.glob('./data/t*.txt') ))) | [
"[email protected]"
] | |
224e7ac3dff3f24f45821a832a7a16546a31d23f | fd60b97a4a506bbff92709c38136fda8e4a03274 | /Ben's Projects/Archived Projects/Self-Driving Buggy Rev. 2/Camera.py | af6d4f57c28feb56bfca0a855e95252d97f4b525 | [] | no_license | BPPJH/Self-Driving-Buggy | 3727795384f3a5d530c9bc0ab281a09dafa6748f | 7268b9e6bd6274f0520c7d57cda3af250316d913 | refs/heads/master | 2020-12-29T03:34:24.048157 | 2015-08-12T01:48:03 | 2015-08-12T01:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,905 | py | import cv2
import numpy
import copy
import time
import os
projectDir = os.path.dirname(os.path.realpath(__file__))
class Camera(object):
excludedSources = set()
increaseFPSActions = []
resolutions = {
"logitech": {
8: (1920, 1080),
12: (1440, 810),
23: (960, 54... | [
"[email protected]"
] | |
3f9176bfbc4b64d2b60c858a1ea0840683339b80 | c84a3895e6fdcaff5a9f97abe9c3efbecbad535f | /strategy/indicator/stochastic/stochastic.py | 70af686788a789545bdd38b4abffeef8074a6528 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cal97g/siis | 5a171eb34dd3f7ae6e19d8065ff1e2f8b6251319 | adc06e48e5df6ffd7bed6ee6b79d0aa3cfe80e0d | refs/heads/master | 2020-07-23T18:11:57.267225 | 2019-09-05T01:00:37 | 2019-09-05T01:00:37 | 207,663,001 | 0 | 1 | null | 2019-09-10T21:05:25 | 2019-09-10T21:05:25 | null | UTF-8 | Python | false | false | 4,547 | py | # @date 2018-09-02
# @author Frederic SCHERMA
# @author Xavier BONNIN
# @license Copyright (c) 2018 Dream Overflow
# Stochastique indicator
from strategy.indicator.indicator import Indicator
from strategy.indicator.utils import down_sample, MMexp_n, MM_n
import numpy as np
from talib import STOCH as ta_STOCH, STOCHF ... | [
"[email protected]"
] | |
90f3fd457bb6be4986e3cb9a139ce1bb796a0b93 | 260133e46c0c88fd20f2ed18309c5f46508b7fb9 | /opengever/core/upgrades/20180427113547_remove_repository_favorites_registry/upgrade.py | d35786bcd9e9437d14564de8a7f13537174a91fb | [] | no_license | robertmuehsig/opengever.core | 4180fbea1436fade9b33232a293b0d43ebfc6c51 | 63b3747793d5b824c56eb3659987bb361d25d8d8 | refs/heads/master | 2020-09-08T14:55:00.340222 | 2019-11-08T10:16:02 | 2019-11-08T10:16:02 | 221,163,734 | 0 | 0 | null | 2019-11-12T08:08:59 | 2019-11-12T08:08:54 | null | UTF-8 | Python | false | false | 209 | py | from ftw.upgrade import UpgradeStep
class RemoveRepositoryFavoritesRegistry(UpgradeStep):
"""Remove repository favorites registry.
"""
def __call__(self):
self.install_upgrade_profile()
| [
"[email protected]"
] | |
70b9ff857f052de1494af6f15324f7f6a36b5a94 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/input/__init__.py | 073192a4d4a4bb57b86582751ad2f0503f45db8e | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | # Embedded file name: scripts/client/input/__init__.py
pass | [
"[email protected]"
] | |
ab0ea4f90f5163784652dfb3afb83b9c095b376c | 76baf5ff0e8717ab6a17575bc9c126e7eb4e2f28 | /docker/shummie/shummiev58.py | 9a7880440e45168b937a2c6f6d116ae5eb46d44a | [] | no_license | nmalaguti/halite-bots | f0e8caf3e9898884e6476ff5d36884a2f4e07309 | 82efde39f83b5c34719d31396c7659d2c2f18c03 | refs/heads/master | 2023-07-15T01:20:00.784928 | 2023-06-29T02:49:35 | 2023-06-29T02:49:35 | 73,758,433 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,668 | py | # ==============================================================================
# Imports
# ==============================================================================
import functools
import itertools
import logging
import math
import numpy as np
import random
import scipy.sparse
import sys
import time
import copy... | [
"[email protected]"
] | |
8397ff8119dc799e3deac3fdd0aa9bedf2c22261 | 0faa6fc013560b4c5acf64413d186019816a7582 | /chainedSCT/__init__.py | 9060c9628716ffba3b2324edd46528202b7eee2c | [
"MIT"
] | permissive | MSBeni/SmartContactTracing_Chained | f4deceb6107cfbf0f050a8f8943dd85caa1b43b8 | b667ef6e04ea4e3206760f9dc2035d425b6e26f5 | refs/heads/master | 2023-07-30T01:05:31.383298 | 2021-09-09T17:36:16 | 2021-09-09T17:36:16 | 328,707,374 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from . import extraction
from . import transformation
from . import Loading_Blockchian
__version__ = '0.0.1'
| [
"[email protected]"
] | |
e0aaddac3ec13c25540d435aa328944f249a9596 | 60105dfa9cd52412e86a1970b0873a47c058ca07 | /day1/files_ex1.py | 7d2050c21a6d506445c58dc66deef58798fb2eec | [
"Apache-2.0"
] | permissive | ktbyers/pynet-ons-feb19 | d6802ec01902169dffebe2b11fcd3a1ed9c42d3d | 5f02125f115fda2c26af87656b4f83d98cd2822c | refs/heads/master | 2020-04-19T20:43:31.754871 | 2019-02-25T20:47:40 | 2019-02-25T20:47:40 | 168,422,755 | 0 | 6 | Apache-2.0 | 2019-02-07T20:03:09 | 2019-01-30T22:05:35 | Python | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python
# READ ####
f = open("my_file.txt")
my_content = f.read()
print(my_content)
# WRITE ####
print("\nWriting file.")
f = open("new_file.txt", "w")
f.write("whatever2\n")
f.close()
# APPEND ####
print("\nAppending file.")
with open("new_file.txt", "a") as f:
f.write("something else\n")
print()
| [
"[email protected]"
] | |
d036805b85edb2e1846da24c7dc43c38d5a4e726 | c8c95520fb1a17d627a0256df2c6702f4f53403a | /3.3_the_for_loop.py | 371bcc17241b1a8ab78f7f1d729ca822967cbf14 | [] | no_license | wsargeant/httlacs | 608f1b4b34c95f18f934f10883beb56a2895c269 | 3337b369c541e18d5ed9ecbca35494c3ebcfa591 | refs/heads/master | 2023-02-21T21:10:03.228762 | 2021-01-25T08:44:46 | 2021-01-25T08:44:46 | 284,936,152 | 0 | 0 | null | 2020-08-28T10:35:17 | 2020-08-04T09:32:38 | null | UTF-8 | Python | false | false | 202 | py | def main():
pass
if __name__ == '__main__':
main()
for f in ["Joe", "Steve", "Pete", "Ian", "Mike", "Dom"]:
invite = "Hi " + f + ". Please come to my party on Saturday."
print(invite)
| [
"[email protected]"
] | |
ee7b8e64c5c5aabbd39dc3e97b98f0c125bbe83b | ba7e577bc4d083d5bfb1b0622d6149d57537bc62 | /leetcode/217_contains_duplicate.py | 4a01bac85e2491ed77d936570df8ff60f59b2605 | [] | no_license | lvraikkonen/GoodCode | 5b59f51252384de38fd21f13d4afda1f4f8be94d | a0f270c1adce25be11df92877813037f2e73e28b | refs/heads/master | 2022-05-04T19:55:40.751420 | 2022-04-12T09:41:15 | 2022-04-12T09:41:15 | 71,972,790 | 0 | 0 | null | 2020-10-13T18:57:51 | 2016-10-26T06:24:11 | Java | UTF-8 | Python | false | false | 572 | py | from collections import Counter
def containsDuplicate_counter(nums):
"""
:type nums: List[int]
:rtype: bool
"""
n = Counter(nums)
for k, v in n.items():
if v > 1:
return True
return False
def containsDuplicate_set(nums):
"""
:type nums: List[int]
:rtype: boo... | [
"[email protected]"
] | |
7e9b9a0aad90d98e4fb2409f0db85fadcc0b665d | bc441bb06b8948288f110af63feda4e798f30225 | /architecture_view_sdk/model/metadata_center/stream_metric_states_pb2.py | 8a7a27d80fc16e11d705b7d43834edd01cdc33a1 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,685 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream_metric_states.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google... | [
"[email protected]"
] | |
2fcaf139e76286b816d99605e71bc07a933e540c | dc940d7614c4cf55a3c61a1ad4ee48e4ea4e319d | /src/slurmify/slurmify.py | cc78977d8e499ee972aa5bd9eb2e6fe671d6160d | [
"MIT"
] | permissive | salotz/slurmify | b4c88e434c2814c71fcef9cd13ecd716163a75d8 | 4a6da629706621b9b2633d34e574b121a75a8f87 | refs/heads/master | 2020-04-28T23:22:10.227665 | 2019-10-08T01:37:33 | 2019-10-08T01:37:33 | 175,651,924 | 0 | 1 | MIT | 2020-12-01T07:43:57 | 2019-03-14T15:42:30 | Python | UTF-8 | Python | false | false | 5,320 | py | import os
import os.path as osp
import tempfile
import subprocess
from jinja2 import Environment, FileSystemLoader
from slurmify import TEMPLATES_PATH
# names of the templates
SLURM_JOB_TEMPLATE = "slurm_job.sh.j2"
SLURM_RUN_TEMPLATE = "slurm_run.sh.j2"
SLURM_SETUP_TEMPLATE = "slurm_setup.sh.j2"
SLURM_TEARDOWN_TEMPL... | [
"[email protected]"
] | |
7a8fa12f5d1cb13446a07ad2b0d36370c27adf16 | 1d04c90b3331261d741cc4f8757aeb0088193627 | /setup.py | fab6d30a6a0fe2cbc72fdd710ca21377f27e0b75 | [
"ZPL-2.1"
] | permissive | jean/Products.ZopeVersionControl | 11f5251fea47e12b6db10c2ff2067f23a93ebad4 | c5a7efacf39bd27a7acda525096f7f05e0672179 | refs/heads/master | 2021-01-22T16:37:29.630614 | 2013-03-13T14:29:07 | 2013-03-13T14:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | from setuptools import setup, find_packages
__version__ = '1.1.4dev'
setup(
name='Products.ZopeVersionControl',
version=__version__,
description="Zope Version Control",
long_description=(open('README.rst').read() + "\n" +
open('CHANGES.rst').read()),
classifiers=[
'Fr... | [
"[email protected]"
] | |
9230922cc0d5d21762db9fa255247982efd79301 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/formatter/closingParenthesisInFromImportStatementWithNoHangingIndent.py | acd9400b7c7627d65aaecf625caff9ce653fb00c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 52 | py | from foo import (bar,
baz
) | [
"[email protected]"
] | |
0c238b53e30bb6aace21ca85e6139c54047c9e9c | 32e789a8ae5eecec4ee8ab6cf72af0b7c599f5a9 | /.venv/bin/wheel | 5c7f8f28cc1a15bb37695045165bd81d187b9a7f | [] | no_license | kafura-kafiri/Khorus | 5aabc306673c9298bbd0c4a85ce874b7240a1d00 | 3d4cb0e8b56f9d296003e8bb7ff9a4f30a8f3ef8 | refs/heads/master | 2021-05-10T13:48:22.513815 | 2018-01-31T15:00:57 | 2018-01-31T15:00:57 | 118,488,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/pouria/PyProjects/Khorus/.venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
a9982a8f2ea8b99b85488f5ab2984195127a5fdd | 390c347ce47ad253883030f93f6901061874f2da | /experiments/genes/gene_sca_discrim_1.0.py | 8a68ebbee7bcf5d85541f935f27a47cc4e866775 | [
"MIT"
] | permissive | bdpedigo/sparse_new_basis | 55646622330a30dd33f490bf3a23036273f4b8ad | 4bb9c766154fe713c544a80178c067ae8c867026 | refs/heads/main | 2023-01-28T05:43:54.488110 | 2020-12-09T23:23:51 | 2020-12-09T23:23:51 | 312,875,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,160 | py | #%%
import os
import pickle
import time
from pathlib import Path
import colorcet as cc
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from hyppo.discrim import DiscrimOneSample, DiscrimTwoSample
from matplotlib.lines import Line2D
from sklearn.decomposition import PCA, Spa... | [
"[email protected]"
] | |
ce530f3a0911852d37807d078ec6dcec182f3b0f | a2dce63dc04f484d1457073610343378656a1ffd | /p24.py | c193733b0ed3535db6ba4015fe24cd7bf5da243e | [] | no_license | analaura09/pythongame | 5ece67047095160cdbc56ae3bb14920c787d8d02 | 54c83cf731a384fdb04bc4c3ed0bcf109b03d5ed | refs/heads/main | 2023-03-29T00:35:35.713616 | 2021-03-21T17:53:28 | 2021-03-21T17:53:28 | 348,432,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import run()
nome = str(input(' Digite o nome da cidade: ')).strip()
print(nome[:5].upper == 'SANTO')
opçao = int(input('deseja repetir esse exercicio?[1] \ndeseja voltar para o mundo1? [2] \ndeseja sair do jogo?[3]'))
if opçao == 1:
import p24
p24.run()
if opçao ==2:
import mundo1
mundo1.run()
if opç... | [
"[email protected]"
] | |
bd43d4b1bc8f330307b9720cb6b8e6383124f6dc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/191/32531/submittedfiles/ex1.py | e50dfa28cc19c4488d103df646274da8bad5050f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = float(input('Digite a: '))
b = float(input('Digite b: '))
c = float(input('Digite c: '))
delta=(b**2)-(4*a*c)
if delta>=0:
x1=(-b+delta**(1/2))/(2*a)
x2=(-b-delta**(1/2))/(2*a)
print('x1 é igual a %.2f'%x1)
print('x2 é igual a %.2f'%x2)
else:
... | [
"[email protected]"
] | |
61e37196f31ae35d096a8c8fd30ddb31149a289a | 3256af0d6c19732bb84b256a9f792aaf7f3d901a | /f5/bigip/tm/asm/policies/test/functional/test_extractions.py | 64620349bef5b578dcd0fbe54e55e1a2ec400974 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-common-python | 73e33ea489d989399d205077163f24ce584d83b9 | 3050df0079c2426af99b9a1b8f93d0b512468ff4 | refs/heads/development | 2023-08-29T10:11:23.713392 | 2022-09-21T02:45:03 | 2022-09-21T02:45:03 | 45,062,555 | 286 | 180 | Apache-2.0 | 2023-05-12T23:13:03 | 2015-10-27T18:48:06 | Python | UTF-8 | Python | false | false | 4,460 | py | # Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"[email protected]"
] | |
ba4ce143ab4efe10927d17ed3c09492ccae1cd5b | b3aa3d77836fa8f05b54d68e7bd6bff19dced90d | /Codeforces/636 Div 3/D.py | 84ea81677d1e3e2eaf8eef86a8f7d3c3ae042df2 | [] | no_license | anoubhav/Codeforces-Atcoder-Codechef-solutions | 660c5b78723791bc33b1d51977bf11ebe6dfe4c1 | aeebcae332af64aba49f52261d11aa6996f33b1c | refs/heads/master | 2022-12-08T14:02:49.574928 | 2020-08-29T14:18:30 | 2020-08-29T14:18:30 | 255,004,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | # # Unsolved in contest
## Accepted solution: O(n+k) solution
# https://www.youtube.com/watch?v=QouZfBC9CVw&list=RDCMUC4lyxGubhu5u1s1LYCwXtZw&index=2
def prefix_algo():
t = int(input())
from collections import defaultdict
import math
for _ in range(t):
n, k = list(map(int, input().s... | [
"[email protected]"
] | |
a4e1b7f960a339d2696bd14deaf451002d5bf475 | 12cb9edd19612c132028c45707b4ec944ae4ae88 | /3-deploy_web_static.py | 8438f8acc72a80543e4eb6219a324f9f94c48f43 | [] | no_license | imperfectskillz/AirBnB_clone_v2 | 6345389a99f66c23d310ac3030986ef8973c00bb | 8910d78da6a6bb6f14fa569af913739f4b5cf5f5 | refs/heads/master | 2020-03-08T01:08:53.124647 | 2018-04-19T01:14:16 | 2018-04-19T01:14:16 | 127,822,734 | 0 | 0 | null | 2018-04-02T23:11:34 | 2018-04-02T23:11:34 | null | UTF-8 | Python | false | false | 1,537 | py | #!/usr/bin/python3
#fabric script generates a tgz archive
from fabric.api import *
from datetime import datetime
import os
env.hosts = ["52.91.246.129", "107.23.155.217"]
env.user = "ubuntu"
def do_pack():
"""
creates tgz
"""
filetime = datetime.now().strftime('%Y%m%d%H%M%s')
filename = 'versions... | [
"[email protected]"
] | |
c29aa7ebe11d45637e582453e40d5f668b9e0189 | 5b3d8b5c612c802fd846de63f86b57652d33f672 | /Python/six_kyu/digital_root.py | 5655cf937c38c8dc012f4fb38a715f99a3c7198f | [
"Apache-2.0"
] | permissive | Brokenshire/codewars-projects | 1e591b57ed910a567f6c0423beb194fa7f8f693e | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | refs/heads/master | 2021-07-22T18:50:25.847592 | 2021-01-25T23:27:17 | 2021-01-25T23:27:17 | 228,114,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # Python solution for 'Sum of Digits / Digital Root' codewars question.
# Level: 6 kyu
# Tags: Algorithms, Mathematics, Numbers, and Arithmetic.
# Author: Jack Brokenshire
# Date: 13/02/2020
import unittest
def digital_root(n):
"""
A digital root is the recursive sum of all the digits in a number. Given n, t... | [
"[email protected]"
] | |
fb5e0cbc84d8801e24e350f9c849aaae07d4483e | 4de03eecadc4c69caf792f4773571c2f6dbe9d68 | /tests/api/test_beshared.py | 6362f1d3b23953ff61e2bcedd67f638da265f5a2 | [
"Apache-2.0"
] | permissive | Tr-1234/seahub | c1663dfd12f7584f24c160bcf2a83afdbe63a9e2 | ed255e0566de054b5570218cb39cc320e99ffa44 | refs/heads/master | 2022-12-23T16:20:13.138757 | 2020-10-01T04:13:42 | 2020-10-01T04:13:42 | 300,138,290 | 0 | 0 | Apache-2.0 | 2020-10-01T04:11:41 | 2020-10-01T04:11:40 | null | UTF-8 | Python | false | false | 2,540 | py | import json
import seaserv
from seaserv import seafile_api
from seahub.test_utils import BaseTestCase
class BeSharedReposTest(BaseTestCase):
def setUp(self):
self.login_as(self.admin)
def tearDown(self):
self.remove_repo()
def _prepare_repo_and_group(self):
# create repo for use... | [
"[email protected]"
] | |
0fcb38ed4b11b89f3af06a4adbf4410b3eab6123 | 528f910908885c3ded4ecc6380b9603c8dcacbd6 | /tbapi/top/api/rest/SimbaRptCusteffectGetRequest.py | 58297bc4539f31f788a51628d13782982910cac7 | [] | no_license | Monica-ckd/data007 | 15fe9c4c898a51a58100138b6b064211199d2ed1 | 0e54ae57eb719b86ec14ce9f77b027882a3398a8 | refs/heads/master | 2023-03-16T05:26:14.257318 | 2016-05-25T06:57:05 | 2016-05-25T06:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''
Created by auto_sdk on 2013-04-01 16:44:41
'''
from top.api.base import RestApi
class SimbaRptCusteffectGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_time = None
self.nick = None
self.page_no = None
self.page_size = None... | [
"[email protected]"
] | |
10d497ee159d5fa12d220be2c774fd33f365bf17 | fcd80f58e8006cb6bb04ac9dca4b3d58dc8d1d70 | /files/example197_file_seek.py | 9beb719cee7f34becceb6ea5685d4a6b719d77dd | [] | no_license | penguuu/python-examples | 56e252be3dbf61cb0345cf8f95a01577f755f332 | 32f46ba435fd2797454af6228b368524ac1ebd79 | refs/heads/master | 2021-01-04T22:18:03.474098 | 2020-02-15T20:32:18 | 2020-02-15T20:32:18 | 240,781,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #!/usr/bin/python
fo = open("example197_file_seek.py","r")
print "Name of the file: ", fo.name
line = fo.readline()
print "Read Line: %s" % line
fo.seek(0,0)
line = fo.readline()
print "Read Line: %s" % line
fo.close()
| [
"[email protected]"
] | |
64b2dd0ee2448d18b763f3d2663e33790714d44c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /MbbX7qJJeEnQu9bKr_16.py | 770c027324993f571e65cc9d43a73570afc5f508 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
def max_occur(text):
freqs = {c: text.count(c) for c in text if text.count(c) > 1}
if not freqs:
return 'No Repetition'
return sorted(c for c in freqs if freqs[c] == max(freqs.values()))
| [
"[email protected]"
] | |
6d23004951c597c739a77280febec8db68afdaf6 | d8a5525d2e2070f0434e971b6b03df6d6457d47d | /torch_glow/tests/nodes/zero_test.py | 3a5472f453da540a4dc3a705bbf9d2e2a12c8655 | [
"Apache-2.0"
] | permissive | pytorch/glow | 0006dbac932da386ff1143cff166b89323aec337 | f35c3d180290c79d5d3578ccc800bb35ce88e420 | refs/heads/master | 2023-08-30T17:44:59.170945 | 2023-08-29T05:29:36 | 2023-08-29T05:29:36 | 105,281,531 | 3,201 | 780 | Apache-2.0 | 2023-09-14T08:29:16 | 2017-09-29T14:28:18 | C++ | UTF-8 | Python | false | false | 1,146 | py | # Copyright (c) Glow Contributors. See CONTRIBUTORS file.
#
# 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 ... | [
"[email protected]"
] | |
b5995ba400cdef8251e2ed83be1b7a3160a382e1 | 627cca9406c31ce30c493ff7502f79eb4c57eee3 | /xcha/pools/pool_config.py | 2302aa6557d98b0686a6c0e7e602138bfb72a332 | [
"Apache-2.0"
] | permissive | blockchiansea/xcha-blockchain | 40c6d36813f671e94316a522904238f495f39f6b | 7de0ba89056236e30069aef12fe25843f6093bcf | refs/heads/master | 2023-07-26T02:36:57.654196 | 2021-09-06T06:04:21 | 2021-09-06T06:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | import logging
from dataclasses import dataclass
from pathlib import Path
from typing import List
from blspy import G1Element
from xcha.types.blockchain_format.sized_bytes import bytes32
from xcha.util.byte_types import hexstr_to_bytes
from xcha.util.config import load_config, save_config
from xcha.util.streamable im... | [
"[email protected]"
] | |
0c2564c74f11c92624cfde26e3724565ec38a320 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/financials_beta/azext_financials_beta/vendored_sdks/financials/aio/_financials.py | d04272fa50b6915e7ad0d391b9af5cb2f0907b76 | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 26,543 | py | # 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 ... | [
"[email protected]"
] | |
2a04a0b4d524fd056e57e98a0700803743f8a35a | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/nn/intrinsic/modules/fused.py | dc962f956427ec6f6e6b1d0580a1d5c73bd9cd29 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 901 | py | from torch.ao.nn.intrinsic import BNReLU2d
from torch.ao.nn.intrinsic import BNReLU3d
from torch.ao.nn.intrinsic import ConvBn1d
from torch.ao.nn.intrinsic import ConvBn2d
from torch.ao.nn.intrinsic import ConvBn3d
from torch.ao.nn.intrinsic import ConvBnReLU1d
from torch.ao.nn.intrinsic import ConvBnReLU2d
from torch.... | [
"[email protected]"
] | |
1f6bf9540ccf30dd2d98ad22948909b458eb8fab | 1beea84ee4ebc720e9353b71dce9cc34898f7823 | /test/test_dynamic_shapes.py | 28d5e740624384b890b0d240984aafeadb3cec44 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | EikanWang/pytorch | 93974c30013f27064d7aeaa6a6cd061854c721e0 | 16d85160d511f6e0c3b3eda418b133a66d3376dd | refs/heads/master | 2023-03-22T14:10:44.608629 | 2023-03-20T07:56:18 | 2023-03-20T07:56:18 | 616,394,473 | 1 | 1 | NOASSERTION | 2023-03-20T10:01:18 | 2023-03-20T10:00:29 | null | UTF-8 | Python | false | false | 30,179 | py | # -*- coding: utf-8 -*-
# Owner(s): ["oncall: jit"]
from torch._C import _disabled_torch_function_impl
import torch.fx
import torch.nn.functional as F
from torch.testing._internal.common_utils import run_tests, TestCase, skipIfTorchDynamo, \
parametrize, instantiate_parametrized_tests
import torch
import operator
... | [
"[email protected]"
] | |
970f78ea015e9db88c4e3b9ee9a24620d1acd033 | 14252ea933a08056363230c6df89223b996a0da2 | /app/users/migrations/0001_initial.py | 89fc36d8186ebc06e266431cde71c53a49bd67a8 | [
"MIT"
] | permissive | S3Infosoft/mvr-insights | eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb | ac73feff03c1592d5efd8e0b82f72dd4dbd3e921 | refs/heads/master | 2020-05-29T14:08:11.070784 | 2020-04-23T19:46:57 | 2020-04-23T19:46:57 | 189,184,619 | 0 | 1 | MIT | 2020-04-23T19:46:58 | 2019-05-29T08:35:56 | CSS | UTF-8 | Python | false | false | 2,357 | py | # Generated by Django 2.2.1 on 2019-05-29 20:09
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
... | [
"[email protected]"
] | |
6a1fa05b533ac5a143059c018c1463515a70c318 | e6630377da829600b846ad7ecd67daa335878b5a | /main/views.py | 6211c54b7998d088bd564686df00b806c983aa97 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | jorgecarleitao/public-contracts | 839a09cf54af5fc292aa640d1aaf235f1fb755fa | 3107ddc007f3574ce19aaa2223399484bc6b1382 | refs/heads/master | 2021-06-15T23:07:13.291743 | 2017-05-09T11:44:56 | 2017-05-09T11:44:56 | 14,209,257 | 26 | 8 | null | 2017-07-21T10:45:15 | 2013-11-07T16:36:47 | Python | UTF-8 | Python | false | false | 353 | py | from django.shortcuts import render
def robots(request):
return render(request, 'robots.txt', content_type='text/plain')
def home(request):
return render(request, 'main_page.html', {'REQUIRE_D3JS': True})
def about(request):
return render(request, 'about.html')
def contribute(request):
return re... | [
"[email protected]"
] | |
79431e97956904979ec976554f8289946bb61697 | ee760ad085d305f12e4a60e6ea548e94e71606b6 | /sds/envs/cartpole/cartpole.py | 9f40106c313c24d4b0369a481d801c71182f2463 | [
"MIT"
] | permissive | zlatanajanovic/sds | 819ab40f044b72e0a88504601f23d233302c0b4b | 3c195fb9cbd88a9284287d62c0eacb6afc4598a7 | refs/heads/master | 2023-07-19T00:55:20.549984 | 2021-08-23T14:51:09 | 2021-08-23T14:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py | import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
def normalize(x):
# wraps angle between [-pi, pi]
return ((x + np.pi) % (2. * np.pi)) - np.pi
class Cartpole(gym.Env):
def __init__(self):
self.state_dim = 4
self.act_dim = 1
self.obs_dim = 4
... | [
"[email protected]"
] | |
9f360e44d1c0c0dcee68e96a596c20e516949e0a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/pr0v3rbs/c.py | 5d1ec463d56cedc7496b8cb3f35b1bb73dc76551 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,290 | py | import math
powerArr = [[],[],[],[],[],[],[],[],[],[],[]]
baseArr = [0,0,0,0,0,0,0,0,0,0,0]
jamArr = [0,0,0,0,0,0,0,0,0,0,0]
input()
N, J = raw_input().split()
N = int(N)
J = int(J)
def JamCheck():
result = True
idx = 0
t = baseArr[2]
for i in range(3, 11):
baseArr[i] = 0
... | [
"[[email protected]]"
] | |
70db18cb9ff35971591998a62ddab059246ace2b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_anarchist.py | f6c4dbb7d584b89e893652ff5df9b887a17eaf22 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py |
#calss header
class _ANARCHIST():
def __init__(self,):
self.name = "ANARCHIST"
self.definitions = [u'a person who believes in anarchism: ', u'someone who wishes to destroy the existing government and laws: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = ... | [
"[email protected]"
] | |
b01999efc5b5875897213f5aaab988ee20c873f5 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /autoregressive_diffusion/experiments/audio/configs/sc09_wavenet.py | 957e0ecbd26bb689722cf752a90ff946ab2ea6d4 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,032 | py | # coding=utf-8
# Copyright 2023 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... | [
"[email protected]"
] | |
9aaa492c6143160703e493cdf16a62b43a86dd6e | b32ca71ab8127f7c3c1a73a6a8f01adefa1be026 | /mathsquiz6.py | 34a38051e90b696fc060dc3e5abac524d9bd01e5 | [] | no_license | Botany-Downs-Secondary-College/mathsquiz-Howard13312 | a50312776d686ab51eb6421c8af16889a3440c3c | 0c78c55ff99d058264791412d312eda4d37f9bef | refs/heads/main | 2023-03-28T14:37:25.155100 | 2021-03-26T12:12:50 | 2021-03-26T12:12:50 | 337,539,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,343 | py | #mathsquizv6.py
#Howard Li
#import the tool kit interface (tkinter) modules
from tkinter import*
from tkinter import ttk
from random import*
#parent class
class Mathquiz:
def __init__ (self,parent):
'''Widgets for welcome frame'''
self.Welcome = Frame(parent)
self.Welcome.... | [
"[email protected]"
] | |
0a9e74b629c603dd1c1563a8e5ef7e8718e00864 | 0fe394b10b39864915fcc4073a5fa050aa02502e | /MatplotPractice/AfricaCSV.py | 107dee89fc18bac4c8c570c0efbedde89f3b5c09 | [] | no_license | JohnAssebe/Python | 9997d47bba4a056fdcd74c6e5207fc52b002cbfd | b88a7c2472f245dc6a0e8900bbea490cb0e0beda | refs/heads/master | 2022-05-14T10:08:37.311345 | 2022-05-09T19:48:53 | 2022-05-09T19:48:53 | 212,562,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 17 11:30:26 2019
@author: Yohannes Assebe
"""
import csv
from matplotlib import pyplot as plt
plt.title("Africa Annual Inflation per years")
#print(plt.style.available)
#plt.style.use("seaborn-notebook")
with open("african_crises.csv") as af:
files=csv.Di... | [
"[email protected]"
] | |
105e0acf0a543fdb4c37897d8888f056971a6191 | 7f33c02743fbfd18726ffef08924f528354372dd | /Python_Projects/python3_selfstudy/priklady_z_knihy/k06/SortedList.py | 68a5e0a9974eaaf4e25c3d093c6eab3fd1be1e95 | [] | no_license | zabojnikp/study | a524eb9c2265a73e1db0b5f0e76b359c123a397b | 43424bfc6641cd8fa13ab119ce283fb460b4ffc1 | refs/heads/master | 2020-04-06T14:21:55.786353 | 2018-11-27T22:10:48 | 2018-11-27T22:10:48 | 157,538,244 | 0 | 0 | null | 2018-11-27T22:10:49 | 2018-11-14T11:24:20 | Python | UTF-8 | Python | false | false | 10,990 | py | #!/usr/bin/env python3
# Copyright (c) 2008-9 Qtrac Ltd. All rights reserved.
# This program or module 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) an... | [
"[email protected]"
] | |
b409f72e18569cb332729b7e95a20bd361d3e851 | 3b84ca7d132e6ca5004029d39bfa7c8fead07fe1 | /seexpr/3.0.1/package.py | 4a03d862bddca4dccd83610ebaf068b03b7781ef | [] | no_license | est77/rez-packages | 05a5a05224e02c0a28bc37a81cbd07ca7447d604 | 449ade7acf92196efda2e8ec883c52ba4e33262d | refs/heads/master | 2020-05-27T10:35:02.323417 | 2020-02-23T19:03:05 | 2020-02-23T19:03:05 | 82,542,112 | 22 | 7 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # -*- coding: utf-8 -*-
name = "seexpr"
version = "3.0.1"
description = "SeExpr"
variants = [
['gcc-6.3.1']
]
def commands():
env.LD_LIBRARY_PATH.append("{root}/lib")
| [
"[email protected]"
] | |
e8128ec06bdbba0ad8f05aea2b9b0c4a03325995 | 5c096fea6033e9c07f38e773e32c901bb7146d09 | /04/jiangk/reboot-website/app/modules/manufacturers.py | 85c4605e190298b07eecad20527588335cd92b34 | [] | no_license | keepauto/devops2 | 8b043ed258030b75c9b2c7129ae1468af5b42850 | b93c840bcca4bd8589546a171a6458bcc6d73047 | refs/heads/master | 2021-01-21T10:37:48.378259 | 2016-07-29T05:42:46 | 2016-07-29T05:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | #!/usr/bin/python
# coding:utf-8
from app.models import Manufacturers
from flask import current_app
from app.models import db
from app.utils import check_field_exists
from app.utils import check_output_field
from app.utils import check_order_by
from app.utils import check_limit
from app.utils import process_... | [
"[email protected]"
] | |
11c6ff5edd9c5239ca96577fc4e0da53c251d1a9 | 70a960186af21ae6f7a8fcd4d13fde54892f1821 | /odds_and_ends/EVAunit00/dumps/serverscript/Windows Image Capture | 2bdb0607338cfe16a61903f35dd46c65c877f937 | [] | no_license | apua/altair_mat | d6f31bacae62d4490d561c2f9ec07a745693e15e | 37dd580fd011aaae9ca52f99bb13757bab2df325 | refs/heads/master | 2021-04-29T05:49:01.561238 | 2015-08-21T09:40:50 | 2015-08-21T09:40:50 | 78,004,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | #!/usr/bin/python
# -*- mode: Python; tab-width: 4; indent-tabs-mode: nil; -*-
# ex: set tabstop=4 :
# Please do not change the two lines above. See PEP 8, PEP 263.
#
import sys
import os
from optparse import OptionError
from osprov.optparse_ext import OptionParser
from osprov.scripts import bootmode
from o... | [
"[email protected]"
] | ||
b3f108e068454d46e36179dc7ee8c4f4e19a3dcd | 9c517135ceebe11b88a673f707c865470eac91a8 | /layers/classifier.py | 6d27ff88218a39e7247f85c3e1d23be4a34a947d | [] | no_license | chenun123/reid_baseline | fd6d516a8badcda81484a98c567c92a34bf0b457 | 315ef25801208fc0d3f7d91fda009089b0901313 | refs/heads/master | 2020-12-17T15:32:30.223860 | 2020-01-17T10:55:57 | 2020-01-17T10:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # encoding: utf-8
"""
@author: liaoxingyu
@contact: [email protected]
"""
from torch import nn
from modeling.losses import *
from modeling.backbones import *
from .batch_norm import bn_no_bias
from modeling.utils import *
class ClassBlock(nn.Module):
"""
Define the bottleneck and classifier layer
... | [
"[email protected]"
] | |
f158396e7bf336520c1beb9a6a9c2e52c1bdb526 | 79e45a6e4846927da432087aba845036b11c5622 | /UAT/bin/MarketData/Daily/MNSTdailyOHLC_withvol.py | 96dad0a3c752759bf948dcdbd7ebce990c11a5b9 | [] | no_license | mjserpico/Scarlett-Trading | cba2bcfaacf886b9d851d978683b4ce641c8f6ad | 9778717393dbb0818ee026356996d1806345a6c2 | refs/heads/master | 2020-03-21T21:39:51.108503 | 2019-05-09T02:06:26 | 2019-05-09T02:06:26 | 139,076,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,164 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 08 09:16:43 2017
@author: Michael
"""
import mysql.connector
from ib.opt import Connection
from ib.ext.Contract import Contract
import time
import logging
import datetime
import datalink #universal logins for environment
import math
Flag = 0
CCY1 = "MN"
CCY2 = "ST"
Table... | [
"[email protected]"
] | |
18e7fca8d4143e471221237e49f1a2367953adc1 | 1f2445a190e1fdb36b8ace15cdd1de799c4c61b4 | /arst/command_push.py | cc707d2a8c5c30ec522be85979a30474551b1f43 | [] | no_license | bmustiata/ars-py | f9860a48bb63bdf781627108e57d4a8431e35f0a | 0a641399807f17efeb50d355770f014721aa4d38 | refs/heads/master | 2021-06-13T01:05:40.023617 | 2020-11-08T23:50:01 | 2020-11-08T23:50:01 | 140,120,138 | 0 | 0 | null | 2021-03-26T00:27:14 | 2018-07-07T22:15:34 | Python | UTF-8 | Python | false | false | 1,156 | py | import os.path
import pathlib
import shutil
from typing import List
from termcolor_util import yellow
def push_files_to_template(
projects_folder: str, project_name: str, files_to_push: List[str]
) -> None:
for file_name in files_to_push:
recursively_push_file(projects_folder, project_name, file_name... | [
"[email protected]"
] | |
56e5633ed8f47feba79f4997982cf5abf1919f18 | 941b25a0d0ccd25e4e64293defc2b50a61fccb01 | /Board.py | cb026329b6c90b83267f78d6cc90800b607a043b | [] | no_license | fanzhangg/sliding-tiles | c5a396818ec2d7449309f773df37a46ec7b41c8e | 334bb7df76436aa9429ff6132db8a9ea1afce35f | refs/heads/master | 2020-04-08T20:06:37.554387 | 2018-11-29T15:20:52 | 2018-11-29T15:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | class Board:
def __init__(self, row, col):
self.ROW = row
self.COL = col
self.tiles = []
def initialize_board(self, tiles: tuple or list) -> None:
expected_size = self.ROW * self.COL - 1
print('The expected size is', expected_size)
if len(tiles) == expected_size:... | [
"[email protected]"
] | |
285aa96f98f22097cb153d7b2e18d6c25cb6e2a0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_152/ch28_2020_09_16_11_46_15_586916.py | 09f170029eaaabc036fde28d6663bd5331c376db | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | s =0
n =0
while n<100:
s = s + 1/(2**n)
n = n+1
print(s) | [
"[email protected]"
] | |
f37a13bf85a34be9aa47183fa9763dcb850c8bbf | 4fb1239a9fd39b0abecde0f0f0b81e1cb3b8f44a | /isy994/items/devices/device_insteon_contact.py | 3a2c8b43a4fe7d50bf9c0317dd32185ab7f7d5a2 | [
"MIT"
] | permissive | simplextech/ISY994v5 | f361066e7712bc590077bdf2799223b136ac6266 | f8e485452a02113f95b1a0f1a57a4d30075c1070 | refs/heads/master | 2020-07-23T00:26:16.730900 | 2019-09-10T03:16:34 | 2019-09-10T03:16:34 | 207,382,914 | 0 | 0 | MIT | 2019-09-09T18:58:59 | 2019-09-09T18:58:59 | null | UTF-8 | Python | false | false | 932 | py | #! /usr/bin/env python
from .device_contact import Device_Contact
from .device_insteon_base import Device_Insteon_Base
class Device_Insteon_Contact(Device_Contact,Device_Insteon_Base):
def __init__(self, container, device_info):
Device_Contact.__init__(self,container,device_info.name,device_info.addres... | [
"[email protected]"
] | |
a4412ae9e4d031c23ba431dffde914d8ead12b9e | a55fcbe94032f98f8a858cebf7cfe843410aea76 | /hw4/env/lib/python3.6/config-3.6m-darwin/python-config.py | 6eaf21054fc295f5954d9f15d26efbc54c161360 | [] | no_license | quentintruong/UCLA-ECE239AS-W19 | a3aca9302125ee7b85f8cecf82485782718d8266 | f734aa7a8178b64b309761f4a390ed4689c4caed | refs/heads/master | 2022-12-10T19:01:28.589101 | 2020-02-14T08:00:33 | 2020-02-14T08:00:33 | 166,895,199 | 1 | 0 | null | 2022-12-08T01:43:39 | 2019-01-21T23:34:01 | Jupyter Notebook | UTF-8 | Python | false | false | 80 | py | /Users/quentintruong/anaconda3/lib/python3.6/config-3.6m-darwin/python-config.py | [
"[email protected]"
] | |
ad0204c58539514ac30daab92ddf9c5e97cfa7ad | d49390f27ee954ddf5f7f1a9876320e1adec8ad4 | /tests/test_utils.py | 7e47d12b47398cef00ccd93ae15f60caac575053 | [
"MIT"
] | permissive | ssato/pytest-data-from-files | 431e83827d4a2e14dd029089c8fa020b821b0683 | deca8e3ae50351299f90bfe1561e5a32474812fa | refs/heads/main | 2023-08-19T06:32:59.056406 | 2021-10-13T15:15:07 | 2021-10-13T15:15:07 | 412,952,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #
# Copyright (C) 2021 Satoru SATOH <[email protected]>
# SPDX-License-Identifier: MIT
#
# pylint: disable=missing-docstring
"""Test cases for tests.utils."""
import pytest
from . import utils as TT
def test_get_basename():
assert TT.get_basename(__file__) == 'utils'
@pytest.mark.parametrize(
('xss', ... | [
"[email protected]"
] | |
f0272683f3edfbcf1f9c2e00b91bf63b2b057c61 | a9e051485379fb7e569a7c8458045e9eb56d4cf8 | /docker/water/sph/tags/pysph/pysph/sph/tests/test_acceleration_eval.py | b17fee871d6139baca63491dc96ca7de83677b09 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | liujiamingustc/phd | 7634056500c481d39fa036bf0ed744c1d13b0035 | 4f815a738abad43531d02ac66f5bd0d9a1def52a | refs/heads/master | 2020-05-17T07:02:56.000146 | 2019-04-24T15:04:19 | 2019-04-24T15:04:19 | 183,567,207 | 4 | 0 | null | 2019-04-26T06:04:37 | 2019-04-26T06:04:37 | null | UTF-8 | Python | false | false | 17,647 | py | # Standard library imports.
try:
# This is for Python-2.6.x
import unittest2 as unittest
except ImportError:
import unittest
# Library imports.
import pytest
import numpy as np
# Local imports.
from pysph.base.config import get_config
from pysph.base.utils import get_particle_array
from pysph.sph.equation... | [
"[email protected]"
] | |
a59342015429a8fe98d84c3688d5f300989c9754 | ef158af9d47fb1f0c974b49405174ba5b34e4721 | /polu/prediction_site/incendie.py | 7d9797880c7e7d88bf9c409c3146b094c9c89755 | [] | no_license | LeGrosLezard/bobo | 1227bcae22d9eb7d9e0423009cae154df5466994 | 7c50de512fb22c8bdf1a1127307fc4fd2f371152 | refs/heads/master | 2020-07-01T17:38:14.145955 | 2019-07-01T21:29:49 | 2019-07-01T21:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import os
import cv2
import json
import requests
import datetime
import urllib.request
from bs4 import *
import datetime
PATH_LYON = 'https://www.lyoncapitale.fr/?s=incendie'
PATH_MARSEILLE = 'https://www.20minutes.fr/search?q=incendie+marseille'
PATH_PARIS = 'https://www.20minutes.fr/search?q=incendie+pari... | [
"[email protected]"
] | |
301e49dbb4d7faa407729ff514dd2a4fecdb2b45 | 540dbf1622959cc1b3a6853379f6f1f502bdbc24 | /offers/urls.py | 4ea3e242310521d73bca6bf928f385ece1bf7173 | [
"ISC"
] | permissive | pmaigutyak/mp-shop-offers | a5031af2827cee34e671793164ea786d2c4ee016 | 6f3d0934193c7d727d41481b0ebb164b03e34808 | refs/heads/master | 2023-08-02T23:02:09.498271 | 2023-07-19T11:01:34 | 2023-07-19T11:01:34 | 148,797,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from django.urls import path
from offers import views
app_name = 'offers'
urlpatterns = [
path('modal/<int:product_id>/', views.get_price_offer_modal, name='modal'),
path('send/<int:product_id>/', views.send_price_offer, name='send'),
]
| [
"[email protected]"
] | |
99eb738456b493ec54c68eba2eeb0e72884b2519 | 09a8e7ca229a6a95cdd4a426a1c220e9daf98355 | /RBSP/Tools/IntegrateSpectrum.py | afe1dc5f26134ae4cc762e18d03b76f09fcdcc78 | [
"MIT"
] | permissive | mattkjames7/RBSP | 8547bda29ec6c878483c21dc3281852abb256bd4 | 25c37cbba18b681a2f9a4e7955e49a49fc36d698 | refs/heads/master | 2023-07-20T00:31:43.487076 | 2023-07-14T12:30:04 | 2023-07-14T12:30:04 | 177,828,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import numpy as np
from .RelVelocity import RelVelocity
def IntegrateSpectrum(E,PSD,m,Omega,Erange=(0.0,np.inf)):
'''
Integrate the phase space density to get the partial density.
Inputs
======
E : float
Energy in keV.
PSD : float
Phase space density s^3 m^-6. (this includes density)
m : float
Mass in k... | [
"[email protected]"
] | |
7f0a5b1b270b7e230361b6f791d4e0774ca6ed98 | dbe7e1d9fe2457c26f83095d941e4392e7d30f8c | /django_dashboard/api/test.py | 81e1e97da6599b88239c60f04be0a535b2b26525 | [
"MIT"
] | permissive | keepexploring/smartbiogas | 51e124735ec04bc6b87a8ac75c66c83de6865001 | ca663435b05666113e3c0cb55e6f087c61497208 | refs/heads/master | 2022-12-12T10:42:37.412038 | 2018-07-18T15:29:04 | 2018-07-18T15:29:04 | 111,402,799 | 0 | 0 | MIT | 2022-12-08T00:56:54 | 2017-11-20T11:39:05 | JavaScript | UTF-8 | Python | false | false | 1,051 | py | class Container(models.Model):
pass
class ContainerItem(models.Model):
blog = models.ForeignKey('Container', related_name='items')
# For testing purposes only
class ContainerResource(ModelResource):
class Meta:
queryset = Container.objects.all()
authorization = Authorization()
class Conta... | [
"[email protected]"
] | |
b7243813f8bf290dd27c60441ca3c453a67e225f | 024214bff5cdd43874d30143ee90131a985c5ce3 | /vycontrol/interface/urls.py | 0c3aaab513ffb0106d0732d02cc9e8dd19f611e2 | [
"MIT"
] | permissive | KennethEhmsen/vycontrol | c20e2d793bd03005ddfd314abc62b4ca3fd292e3 | 5dbebfa1b299ad20b60131d95291ee91c3b9df5c | refs/heads/master | 2023-08-10T11:43:36.001119 | 2020-05-23T05:03:47 | 2020-05-23T05:03:47 | 267,380,513 | 1 | 0 | MIT | 2021-09-22T19:40:01 | 2020-05-27T17:13:06 | null | UTF-8 | Python | false | false | 388 | py | from django.urls import path
from . import views
app_name = 'interface'
urlpatterns = [
path('', views.index, name='interface-list'),
path('interface-show/<slug:interface_type>/<slug:interface_name>', views.interfaceshow, name='interface-show'),
path('interface-firewall/<slug:interface_type>/<slug:interf... | [
"[email protected]"
] | |
270166ede0ea9aa8ef6cdedfbe9dc16ea08db746 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/RADLAN-GVRP-MIB.py | c9e0c0b6e626f01b902af3235250ea18cac1799f | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 11,809 | py | #
# PySNMP MIB module RADLAN-GVRP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-GVRP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:38:27 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"[email protected]"
] | |
3a9e4f92085e755aa3e85445bf48abb902e2c0a1 | df560dde5ffbae51187041f422c87f7d1544cbe9 | /leetcode/python/841_keys_and_rooms.py | f8f42bb5c92c2b5c43d5bc8fa4770db223f3a8f4 | [
"MIT"
] | permissive | VVKot/coding-competitions | 61c97dbc4fdaeb0a35ff7fa8e55529b579fd1ebb | 7d6e599b223d89a7861929190be715d3b3604fa4 | refs/heads/master | 2021-07-04T17:47:34.246535 | 2020-09-23T20:28:30 | 2020-09-23T20:28:30 | 174,696,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | class Solution:
def canVisitAllRooms(self, rooms):
stack = [0]
visited = set(stack)
while stack:
curr = stack.pop()
for room in rooms[curr]:
if room not in visited:
stack.append(room)
visited.add(room)
... | [
"[email protected]"
] | |
98d67adeb2aa151c263faa61a4956cb8f620a667 | fa76cf45d7bf4ed533e5a776ecd52cea15da8c90 | /robocorp-python-ls-core/src/robocorp_ls_core/libs/robocop_lib/robocop/exceptions.py | a5d30bd12b3f4d63a76dca5367602c808aafd756 | [
"Apache-2.0"
] | permissive | martinRenou/robotframework-lsp | 8a5d63b7cc7d320c9fed2372a79c8c6772d6481e | 5f23b7374139e83d0aa1ebd30675e762d7a0db86 | refs/heads/master | 2023-08-18T22:26:01.386975 | 2021-10-25T13:46:11 | 2021-10-25T13:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | class RobocopFatalError(ValueError):
pass
class ConfigGeneralError(RobocopFatalError):
pass
class DuplicatedRuleError(RobocopFatalError):
def __init__(self, rule_type, rule, checker, checker_prev):
msg = (
f"Fatal error: Message {rule_type} '{rule}' defined in {checker.__class__.__na... | [
"[email protected]"
] | |
4a6c127e11f77fef064cd6c080ef8f541b4ba12b | 10ec999d273b9a75b3cc5c3e353d611ea7f163b6 | /grappa/operators/attributes.py | 7748bfdcbeb82c4d1d8d8cbe054f6887bb88da79 | [
"MIT"
] | permissive | jcassee/grappa | 721bec7ee2d21fc3fc857f77b9ff6d58b941bfd9 | b128da8aef67501c310701c47508e7318241aa8b | refs/heads/master | 2020-05-05T02:24:30.106837 | 2018-10-02T10:29:16 | 2018-10-02T10:29:16 | 179,636,623 | 0 | 0 | MIT | 2019-04-05T07:24:31 | 2019-04-05T07:24:31 | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
from ..decorators import attribute
@attribute(
operators=(
'to', 'has', 'have', 'satisfy', 'that', 'that_is',
'satisfies', 'include', 'do', '_is', 'which', 'which_is'
)
)
def be(ctx):
"""
Semantic attributes providing chainable declarative DSL
for assertions... | [
"[email protected]"
] | |
af2208aab51a655605a7d800189d0ced90fe2709 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /Runood_100/R048.py | f1206ba36ee2dabd3566bd2a2b35e2a30c35bb34 | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 101 | py | # -*- coding: UTF-8 -*-
# R048
# Created by JKChang
# Fri, 12/05/2017, 11:30
# Tag:
# Description:
| [
"[email protected]"
] | |
2ce6302758b39eeb9593bfed87110360f9bea9b6 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /scripts/tools/memory/memdf/__init__.py | fa0e1070112ae4544ccf65b7e5fe3cdafc2d8467 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 886 | py | #
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"[email protected]"
] | |
dd4e5116fd1f9eecb02b439401c88eaef08b236e | 603a54e14440fbe1c8aaab34c54aedff83489ca5 | /violate_ratio/without_batching/edge_serving_resnet/server.py | 28b9ec0e0aff9025b90bc2aaecb24a34f9b54f54 | [
"MIT"
] | permissive | fkh12345/ICE | 211fdbc62211e6df6c3d90b6ff309bc8c854e01f | f6ed4933c85b541fb971f5e1bfaa814e4e613c32 | refs/heads/main | 2023-04-12T02:05:57.478650 | 2023-03-01T18:08:55 | 2023-03-01T18:08:55 | 500,040,223 | 51 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py |
import grpc
import time
from concurrent import futures
import inference_pb2 as data_pb2
import inference_pb2_grpc as data_pb2_grpc
from serving import Serving
import io
import torch
import torch.nn as nn
import numpy as np
import torchvision.models as models
import argparse
from dnn_model.lapsrn import Net
from dnn... | [
"[email protected]"
] | |
647c137facd838ac6488a092188e30f81a6926b1 | 82aace1431e0af949b1294d979a16f8dc18f48c2 | /Python-Web-Basics-Softuni/recipes/venv/Scripts/django-admin.py | a220eda67fd73b94ee6387a63bff85b7b9484757 | [
"MIT"
] | permissive | borisboychev/SoftUni | 6778450417f889f8e89c709897b9e26c7129dbf6 | 22062312f08e29a1d85377a6d41ef74966d37e99 | refs/heads/master | 2023-03-27T13:11:17.378197 | 2021-03-26T09:14:25 | 2021-03-26T09:14:25 | 295,463,442 | 1 | 0 | null | 2020-10-12T12:54:13 | 2020-09-14T15:46:12 | Python | UTF-8 | Python | false | false | 717 | py | #!C:\Users\boris\SoftUni\Python-Web-Basics-Softuni\recipes\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"[email protected]"
] | |
933bcaa20d4e347f811ae71388ddb4c071ba5196 | a796865c5ff4dcb7c6a0c848364bd6f7cb3d7a29 | /tests/test_newsgroup20.py | 108161cf2027bfb2e2fbd7932f31709c2db1dccc | [
"Apache-2.0"
] | permissive | yk/chazutsu | d625f6f7f682d713910ce59953841e507ad27262 | ecc42c9ff0f8d47632ba4b4c7385a5fdf4386c10 | refs/heads/master | 2020-03-18T19:43:40.016170 | 2018-05-28T14:52:00 | 2018-05-28T14:52:00 | 135,173,517 | 0 | 0 | Apache-2.0 | 2018-05-28T14:41:16 | 2018-05-28T14:41:16 | null | UTF-8 | Python | false | false | 1,716 | py | import os
import sys
import shutil
import unittest
import requests
sys.path.append(os.path.join(os.path.dirname(__file__), "../"))
import chazutsu.datasets
DATA_ROOT = os.path.join(os.path.dirname(__file__), "data")
class TestNewsGroup20(unittest.TestCase):
def test_extract(self):
r = chazutsu.datasets... | [
"[email protected]"
] | |
a6cdc1e51da55bb4298536a804dbb7eb2605ffe4 | 1cec8afab42c7ed104d414089e30c647b1c79974 | /bubble_sort/main.py | e580cdb2e530946fa2fc46e6f50df54592bcdd83 | [] | no_license | yerassyl94/problems | ea84572aa89178a30fb030a16b2e4e23df3529b9 | c5f3b391c2d94445d96726aaa8572580c4c662bc | refs/heads/master | 2020-08-27T23:57:44.672878 | 2019-11-11T11:35:55 | 2019-11-11T11:35:55 | 217,526,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def bubble_sort_list(_list: list):
length = len(_list) - 1
for x in range(length):
for y in range(length-x):
if _list[y] > _list[y+1]:
_list[y],_list[y+1]=_list[y+1],_list[y]
return _list
list_=[32,5,3,6,7,54,87]
print(bubble_sort_list(list_))
| [
"[email protected]"
] | |
83d7fc9253ee2cb0396a0315ed154dabcc0928ab | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_MM/YW_KCB_HASPRICELIMIT_GPMM_SHSJ_WDZC_129.py | d6747c9ad8bfc225ae04ed5405c0247a043c057c | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("... | [
"[email protected]"
] | |
c82a3e03bf55d608e3c42b98c26484346d260228 | 7f8082a1a88ad6895d1e4b5cf9f3952fe8951ec3 | /miniProject/bookcoversearch/search.py | 1ded489e624618a5a884f2ce23c3e41bfed477d3 | [
"MIT"
] | permissive | matiji66/opencv_study | a33e3fed3e320598d8b3612b387b63658539176d | 9b6354907609c9841915f6300ee5915a9d80906f | refs/heads/master | 2020-03-11T03:34:28.198825 | 2018-01-15T14:04:08 | 2018-01-15T14:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | from __future__ import print_function
from pyimagesearch.coverdecriptor import CoverDescriptor
from pyimagesearch.covermatcher import CoverMatcher
import argparse
import glob
import csv
import cv2
ap=argparse.ArgumentParser()
ap.add_argument('-d', '--db', required=True,
help="path to the book database")
ap.add_arg... | [
"[email protected]"
] | |
a757418f6ddf8e7675ef47658b0381be8f8ab2c4 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/IM대비/14696_딱지놀이.py | b574a887a21deac01c3a3e0c4ea705dd1508157c | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # 별4 > 동그라미3 > 네모2 > 세모1 / 무승부
# 무승부: D
N = int(input()) # 1~1000
for _ in range(N):
a = list(map(int, input().split()))[1:]
b = list(map(int, input().split()))[1:]
for i in range(4, 0, -1):
a_cnt = a.count(i)
b_cnt = b.count(i)
if a_cnt > b_cnt:
print('A')
... | [
"[email protected]"
] | |
e2f95965a7e29da94724dd80ff83e894d2a77927 | a875495c32524d1f7b05f07337f54df52de2aad0 | /algo/clustering.py | 6bc5b199bbb559d716d424618a3629e094646459 | [
"Apache-2.0"
] | permissive | adrianopls/GRIPy-X | a43188e1ffda37f9f668133f47c3e90589325753 | 21c7fa1f32f8dbb0a5dff93c2bac5acf1f9181ca | refs/heads/master | 2021-07-01T16:57:16.094069 | 2021-03-09T19:29:23 | 2021-03-09T19:29:23 | 218,369,555 | 1 | 1 | Apache-2.0 | 2019-10-30T18:13:12 | 2019-10-29T19:41:01 | Python | UTF-8 | Python | false | false | 2,962 | py | # -*- coding: utf-8 -*-
import numpy as np
from sklearn.cluster import KMeans
from sklearn.mixture import GMM
from sklearn.preprocessing import scale
from sklearn import metrics
def locate_nans(data):
return np.sum(np.isnan(data), axis=1, dtype=bool)
def reorder_clusters(clusters, centers, covars=None):
n... | [
"[email protected]"
] | |
12d3fed73e37e5e9e59556cf369f0593ca6170b4 | 5cd4ddfb9a929337fc3c48ee3af6cf973fd6c539 | /eSSP/__init__.py | f8effba76e1a17a61c1ed7cbcdf2a8599d6218e3 | [] | no_license | smontoya/eSSP_P3 | c77724e4c19b5b57ce2e11cc0e0b3a8cb91704be | a1733e1d6637f12354b18af0934bcdea7c56117b | refs/heads/master | 2021-01-13T13:14:52.913414 | 2016-11-03T04:23:58 | 2016-11-03T04:23:58 | 72,707,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from eSSP import eSSP
| [
"[email protected]"
] | |
fd7d229621c66ffd6a7ebdf6880af5d34b8f6d9a | bf10231754c95afd40d15b859f31b6157e1d991d | /Conversores a flotante.py | 2372562d67d2de753418adaf194ee28d043af7dd | [] | no_license | smith-sanchez/validadores_en_python | de7849b0f6dde93fff6c8a2db53070f60d101688 | 8dab14429c1e2c5345cddeabff5e10269b6dc6e9 | refs/heads/master | 2020-09-06T22:10:59.153382 | 2019-11-09T01:12:27 | 2019-11-09T01:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #Convertir el entero 43 a flotante
x=43
a=float(x)
print(a, type(a))
#Convertir el entero 1453 a flotante
x=1453
b=float(x)
print(b, type(b))
#Convertir el entero 4685 a flotante
x=4685
y=float(x)
print(y, type(y))
#convertir la cadena 1128 a flotante
x="1128"
c=float(x)
print(c, type(c))
#Conve... | [
"[email protected]"
] | |
780352d72181bf550978615068022bcd6a8c8189 | 643c1132ac737dcaa68b887ee77155883a762329 | /static_frame/core/index_auto.py | 034e2af0da3c4bf524906972bdb89548aec3fffb | [
"MIT"
] | permissive | flexatone/static-frame | baa071ce61143baabba9b6cd6bae453757ce861b | b41ff788c651ee9fe7006a2404a615c09034a3b6 | refs/heads/master | 2020-08-28T05:06:46.000715 | 2019-10-24T16:34:16 | 2019-10-24T16:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py |
import typing as tp
# from static_frame.core.index_base import IndexBase
from static_frame.core.index import Index
# from static_frame.core.index_hierarchy import IndexHierarchy
from static_frame.core.index import IndexGO
from static_frame.core.util import IndexConstructor
from static_frame.core.util import DTYP... | [
"[email protected]"
] | |
880d01f91b79c5bae80d1fbcc5492413031f7d76 | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/test/test_v1_service_status.py | 1ce1ef5f3c6c9bd4502827d24bfdea8989ba9849 | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"[email protected]"
] | |
6c6b92be69dae51b2f5d2845518c3defea495abe | 6adc166c33bdada82f7509301e25d1c451852d24 | /log/log_config.py | 3fb9c0d9f12ce15977115f4fc21f827713b9fd2f | [] | no_license | liushiwen555/unified_management_platform_backend | ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07 | ae1ade20044b59de1e29288fcd61ba0b71d92be3 | refs/heads/master | 2023-06-25T22:45:24.669052 | 2021-07-27T01:08:24 | 2021-07-27T01:08:24 | 389,808,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from log.log_content import log_config
"""
LOG_CONFIG_DICT结构为:
LOG_CONFIG_DICT{
URL_NAME:{
HTTP_METHOD: 生成log的类
}
}
"""
LOG_CONFIG_DICT = log_config.get_config()
class ModelLog(object):
def __init__(self):
self.conf_dict = LOG_CONFIG_DICT
def log(self, request,... | [
"[email protected]"
] | |
2630abbdd53c1fc1ab734fcfcc1a981f0a351e73 | 8bbe2351bbd157a46ccf8530cde4e4cc7b0bd3b7 | /trashed_20170508/evan/Entropy.py | ed75ce66a6a3b227a188a9ff686da63efd021400 | [] | no_license | airuibel/py_code | 8dc98d71e79a4c0f785ad5cf81b2ca2073061ebf | 1da9a9dcd37475dd14bab6ae58bca1e2dff4c251 | refs/heads/master | 2020-06-18T03:47:43.754204 | 2018-03-20T09:31:00 | 2018-03-20T09:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | from __future__ import division
__author__ = 'Victor Ruiz, [email protected]'
import pandas as pd
import numpy as np
from math import log
import random
def entropy(data_classes, base=2):
'''
Computes the entropy of a set of labels (class instantiations)
:param base: logarithm base for computation
:para... | [
"l"
] | l |
f1ed1e674e834203088f1ed3f035050f5a400868 | 6aa7e203f278b9d1fd01244e740d5c944cc7c3d3 | /docs/build | 257c7678eb2f52275843d2e5a3c2f2434f7b1bcb | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | laserpedro/airflow | 83fc991d91749550b151c81876d9e7864bff3946 | a28afa8172489e41ecf7c381674a0cb91de850ff | refs/heads/master | 2023-01-02T04:55:34.030935 | 2020-10-24T15:55:11 | 2020-10-24T15:55:11 | 285,867,990 | 1 | 0 | Apache-2.0 | 2020-08-07T15:56:49 | 2020-08-07T15:56:49 | null | UTF-8 | Python | false | false | 19,712 | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... | [
"[email protected]"
] | ||
b0629394abb4bc1fca15b22b03658e2e3db5dbaf | 89a90707983bdd1ae253f7c59cd4b7543c9eda7e | /programming_python/Dbase/Sql/dumpdb.py | 5f9388d122656adc52dde04932b87d1bff4696fb | [] | no_license | timothyshull/python_reference_code | 692a7c29608cadfd46a6cc409a000023e95b9458 | f3e2205dd070fd3210316f5f470d371950945028 | refs/heads/master | 2021-01-22T20:44:07.018811 | 2017-03-17T19:17:22 | 2017-03-17T19:17:22 | 85,346,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
display table contents as raw tuples, or formatted with field names
command-line usage: dumpdb.py dbname? table? [-] (dash=formatted display)
"""
def showformat(recs, sept=('-' * 40)):
print(len(recs), 'records')
print(sept)
for rec in recs:
maxkey = max(len(key) for key in rec) # m... | [
"[email protected]"
] | |
af73c60d36aefec8b5af8ad2808fa6cfd39e2542 | 7dcd840d896eccb1bed7868fda88973b1382ed94 | /setup.py | 7556608d1336b1fabc9185e643f28c41ec147e28 | [
"MIT"
] | permissive | Keita1/pycrunchbase | 18a341eca43e9d8a3f62e2c82026050b05fe9701 | d172577d979899ca7cf0f97caa1f079476906a0c | refs/heads/master | 2020-12-25T23:36:20.860263 | 2015-10-21T02:50:59 | 2015-10-21T02:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import, print_function
import io
import os
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import relpath
from os.path import splitext
from setuptools import f... | [
"[email protected]"
] | |
5d81f00e6ed97d46ea3a1c80d7a52c23666db239 | 91b2fb1fb6df216f2e365c3366bab66a567fc70d | /Week08/每日一题/342. 4的幂.py | 90f118bb6733e9b684bf6a93850ca73ef1b6af84 | [] | no_license | hrz123/algorithm010 | d17aee642f03f607a7984beb099eec18f2de1c8e | 817911d4282d2e226518b3533dff28282a91b3d4 | refs/heads/master | 2022-12-20T14:09:26.365781 | 2020-10-11T04:15:57 | 2020-10-11T04:15:57 | 270,178,423 | 1 | 0 | null | 2020-06-07T03:21:09 | 2020-06-07T03:21:09 | null | UTF-8 | Python | false | false | 2,606 | py | # 342. 4的幂.py
# 1. 暴力解,不解释
# 2. 暴力解法+预计算
# 我们知道输入的整数是32位整数x<2**31-1的,因此我们最大的4的幂次是15
# 所以我们总共有0-15 16种可能性
# 3.大于0且log2后是一个偶数
# 4.位操作:4的幂,二进制位都在1,3,5等位置,00000001, 00000100, 00010000
# 而只是2的幂,二进制都在2,4,6等位置
# 135位置的16进制为0x55555555 32位表示,246的16进制为0xaaaaaaaa,位与上其中一个等于0或1
# 5. 位操作判断是2的幂,对3的余数为1的是4的幂,为2的话是2的幂
class ... | [
"[email protected]"
] | |
81a42ccdd857bad5f3dc6eb2f2b2d73362e6ce9e | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Array/1380.py | 1060e1504031b93129f5620c6c68d483b799b102 | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # 1380. Lucky Numbers in a Matrix
# Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order.
# A lucky number is an element of the matrix such that it is the minimum element in its row and maximum in its column.
# Example 1:
# Input: matrix = [[3,7,8],[9,11,13],[15,16,17]]
# Outp... | [
"[email protected]"
] | |
a9b57132d2463d5a1544bb28dc24c79e9975f645 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/FalloutTankCarouselMeta.py | 7f535a3045bd53b0a9708717d041352cc1658195 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 812 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FalloutTankCarouselMeta.py
from gui.Scaleform.daapi.view.lobby.hangar.carousels.basic.tank_carousel import TankCarousel
class FalloutTankCarouselMeta(TankCarousel):
def changeVehicle(self, id):
... | [
"[email protected]"
] | |
ad39f09b7874e552aa32a908630a17b34bcdcd25 | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201130150055.py | a316d9ebab63b4be424a874dca4efbd8ca1abc4d | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,928 | py | import json
import pymongo
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
from flask_cors import CORS
import ... | [
"[email protected]"
] | |
cd8dbe19a67e8ef7bed57e61394fe2abd45dd9cc | c48221dbd1335701178a8b4bfadd22b16fa168fd | /tests/example_app/admin.py | 3bc84c5af51a76dbe4fa83ca91d69cf12bbdce1f | [
"BSD-2-Clause"
] | permissive | prokaktus/django-meta | e92e9c45239993e4d6b350083a84c1d98a01f515 | 21e740f083ea32b150ad012c3bc7941ed920de20 | refs/heads/develop | 2020-04-05T14:35:42.801057 | 2017-05-06T12:26:17 | 2017-05-06T12:26:17 | 94,702,571 | 1 | 0 | null | 2017-06-18T17:31:16 | 2017-06-18T17:31:16 | null | UTF-8 | Python | false | false | 185 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.contrib import admin
from .models import Post
admin.site.register(Post)
| [
"[email protected]"
] | |
0fffdfcf4e1ec8477a77939f528d77ad467a4a16 | fd25231975acd147e04dc3ed3627c92cb1a4f86c | /FlaskAPI/vir_env/lib/python3.7/site-packages/scipy/sparse/bsr.py | f86c448e1d216ac11586184af2d1e5370407136f | [] | no_license | sumitkutty/Flight-Price-Prediction | 832a2802a3367e655b46d3b44f073d917abd2320 | d974a8b75fbcbfa42f11703602af3e45a3f08b3c | refs/heads/master | 2022-12-25T07:13:06.375888 | 2020-10-08T18:46:44 | 2020-10-08T18:46:44 | 302,366,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ef0f9bb9c9a9bd37389ba380aa25a50d381d571eaa83888b4205f2d207020fc5
size 24882
| [
"[email protected]"
] | |
3161a5cd27238b9cfa5bc819abae49d5b6fca114 | 36785c0893ab1e2c81c6a03305f42459776a84e0 | /ambra_sdk/service/entrypoints/order.py | f2e0fe900a88d10a1589a4cb0442c3d0b940b6d2 | [
"Apache-2.0"
] | permissive | dicomgrid/sdk-python | 06589f87f33850bd15e6e99fb683bada6492775f | 2618e682d38339439340d86080e8bc6ee6cf21b5 | refs/heads/master | 2022-08-28T14:50:35.864012 | 2022-08-22T12:36:50 | 2022-08-22T12:36:50 | 253,867,502 | 11 | 6 | Apache-2.0 | 2022-04-13T10:06:38 | 2020-04-07T17:36:56 | HTML | UTF-8 | Python | false | false | 259 | py | from ambra_sdk.service.entrypoints.generated.order import \
AsyncOrder as GAsyncOrder
from ambra_sdk.service.entrypoints.generated.order import Order as GOrder
class Order(GOrder):
"""Order."""
class AsyncOrder(GAsyncOrder):
"""AsyncOrder."""
| [
"[email protected]"
] | |
b866c9d98d721c2e46b53ade178d935ac345b7f0 | 20564b667fe6a9fa7c75e9b20e2f0446ec3440c8 | /venv/bin/pip3 | 27feb6ae67391b30f70bc833820ae9d3ff02bf94 | [] | no_license | prashantpandey9/Covid19-India-tracker | a7e544264df92df7c790e5745ef70b69fc39263a | 03df61342dffd12520f5f4172f879e35e9e6fa85 | refs/heads/master | 2023-08-14T00:36:19.974705 | 2021-02-27T11:16:49 | 2021-02-27T11:16:49 | 258,137,688 | 7 | 3 | null | 2021-09-22T19:02:07 | 2020-04-23T08:14:55 | Python | UTF-8 | Python | false | false | 255 | #!/home/prashant/my_project/covid_19/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
e2b8e855db9448e5dc41f8545f0571ae8baf5419 | 6444622ad4a150993955a0c8fe260bae1af7f8ce | /djangoenv/lib/python2.7/site-packages/django/conf/global_settings.py | 35255ffe5295aaf95f5516e907739800d49c5501 | [] | no_license | jeremyrich/Lesson_RestAPI_jeremy | ca965ef017c53f919c0bf97a4a23841818e246f9 | a44263e45b1cc1ba812059f6984c0f5be25cd234 | refs/heads/master | 2020-04-25T23:13:47.237188 | 2019-03-22T09:26:58 | 2019-03-22T09:26:58 | 173,138,073 | 0 | 0 | null | 2019-03-22T09:26:59 | 2019-02-28T15:34:19 | Python | UTF-8 | Python | false | false | 22,077 | py | # -*- coding: utf-8 -*-
"""
Default Django settings. Override these with settings in the module pointed to
by the DJANGO_SETTINGS_MODULE environment variable.
"""
from __future__ import unicode_literals
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module d... | [
"[email protected]"
] | |
54f4a480d8c01ce5d7b1aa5e4b8ab7f31dfd0da8 | ad5494244bb4d0d92df8178d96b99b949f9ee04c | /hashing/models.py | 10ed2e0c8732c4953087615021d57659be2234d1 | [] | no_license | razyesh/Hash-gen-SHA256 | 14dbf86fab593bccec9997ec087535ee02995a6c | 5cf91114962e048893c910832460f6984d787a38 | refs/heads/master | 2021-09-26T11:38:28.819734 | 2020-04-03T19:00:57 | 2020-04-03T19:00:57 | 252,815,271 | 0 | 0 | null | 2021-09-22T18:49:48 | 2020-04-03T18:56:29 | Python | UTF-8 | Python | false | false | 156 | py | from django.db import models
# Create your models here.
class Hash(models.Model):
text = models.TextField()
hash = models.CharField(max_length=64) | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.