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
bffd8f4a50731672574fa8ad2fd5d12b21e6b2ef
35f9def6e6d327d3a4a4f2959024eab96f199f09
/developer/lab/tools/NVIDIA/FasterTransformer/sample/tensorflow/unit_test/squad_unit_test.py
a938652cd196387dd17c4e11a6540fd972e6272f
[ "Apache-2.0", "CAL-1.0-Combined-Work-Exception", "CAL-1.0", "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-free-unknown" ]
permissive
arXiv-research/DevLab-III-1
ec10aef27e1ca75f206fea11014da8784752e454
c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2
refs/heads/main
2023-04-16T19:24:58.758519
2021-04-28T20:21:23
2021-04-28T20:21:23
362,599,929
2
0
MIT
2021-04-28T20:36:11
2021-04-28T20:36:11
null
UTF-8
Python
false
false
6,779
py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
16c119f54f2264d169dc7c2f07b131d64908f831
9e5bf5e7d0bdfa4ff2aca65ac306ed801d146608
/python-26-pydb/pydb_07_blob.py
6afad0b37eb1f44b3fb571eef749d6f9edb40632
[]
no_license
AuroraBoreas/python_advanced_tricks
90b07967789960beec381de676459c1e84b95860
ba0940e25eda52345a27cf9ddffed9d18fa2a031
refs/heads/master
2022-11-27T19:09:45.666017
2020-08-11T17:33:11
2020-08-11T17:33:11
275,083,831
0
0
null
null
null
null
UTF-8
Python
false
false
2,887
py
import os, sqlite3 def convert_to_bytes(file): with open(file, 'rb') as f: data = f.read() return data def convert_to_file(data, filename): with open(filename, 'wb') as f: f.write(data) return def create_table(): db_path = os.path.join(os.path.dirname(__file__), "blob...
0c0b62f6266aab1d890fe4d7d07d06120fad7782
9fcd6a91132fd12731d259fe7d709cdf222381bb
/2022/14/foo.py
f620615c11d7f8917af8cb384035406dd2be5cb9
[]
no_license
protocol7/advent-of-code
f5bdb541d21414ba833760958a1b9d05fc26f84a
fa110cef83510d86e82cb5d02f6af5bb7016f2c7
refs/heads/master
2023-04-05T15:33:26.146031
2023-03-18T14:22:43
2023-03-18T14:22:43
159,989,507
0
2
null
null
null
null
UTF-8
Python
false
false
1,222
py
import sys from itertools import * from util import * def parse(line): return chunks(ints(line), 2) xs = list(map(parse, sys.stdin)) d = set() for row in xs: for (x1, y1), (x2, y2) in zip(row, row[1:]): for x in diffrange(x1, x2): for y in diffrange(y1, y2): d.add((x, y)) ...
74039f87a612a65381e0ed6e6eed92f1022e8968
4e0ff785b993b6bae70745434e61f27ca82e88f0
/289-Game-of-Life/solution.py
0c90ed85355a13a6e97b67dbdb013dde336eef3d
[]
no_license
NobodyWHU/Leetcode
2ee557dd77c65c5fa8ca938efb6de3793b4de261
d284fa3daab02531e5300867463b293d44737e32
refs/heads/master
2021-01-23T14:05:28.161062
2016-09-23T11:51:51
2016-09-23T11:51:51
58,898,114
1
0
null
null
null
null
UTF-8
Python
false
false
998
py
class Solution(object): def live_nbrs(self,board,i,j,m,n): ms=max(0,i-1) ns=max(0,j-1) me=min(m,i+2) ne=min(n,j+2) count=0 for i1 in xrange(ms,me): for j1 in xrange(ns,ne): if board[i1][j1]&1: count+=1 return cou...
d4f48a70ecf3ae87af021116d62c44cd8a0dac42
49d9fe8a1c83699e41b9cd4e6764e640e69243a8
/ekd_documents_stage.py
7fd8bb338614c646298456ea7da30a8793837927
[]
no_license
postcoder/ekd_documents
11945361052e2052848aa71e6f425c5d9bb92802
083e1d37e39803aa9dde69b596bbb9305ec35d7b
refs/heads/master
2020-12-11T07:39:35.646593
2011-03-31T05:25:03
2011-03-31T05:25:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
# -*- coding: utf-8 -*- "Document Stage" from trytond.model import ModelView, ModelSQL, fields from trytond.transaction import Transaction class DocumentTemplateStage(ModelSQL, ModelView): "Document Template" _name='ekd.document.template.stage' _description=__doc__ _order_name = "sequence" templa...
17c0559b0457907a1e73225e13128fc0575b7451
53164813be4f539d65ef985da732d1890eb91693
/company/serializers.py
c7f078274e8118c7d9a997dd41d14a109aaeade3
[]
no_license
surajmondal1003/erp_tribeni
8ea3e19d3afcdeed6e0114de61ba086043d98303
1972e7a18853a30ac85c6fa0487fed9dbcef4381
refs/heads/master
2020-03-19T09:51:34.780672
2018-06-29T09:04:25
2018-06-29T09:04:25
136,322,677
0
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
from company.models import Company,TermsandConditon from states.models import State from rest_framework import serializers from rest_framework.serializers import ModelSerializer from rest_framework.validators import UniqueValidator class ChildrenSerializer(serializers.Serializer): def to_representation(self, val...
a6abacfc9321ad09afffc9432695b4d237820cb0
f95d2646f8428cceed98681f8ed2407d4f044941
/AI/day03/ai01.py
63d018d7e9fa8009a76ae0d7321bc2a6daf4214c
[]
no_license
q2806060/python-note
014e1458dcfa896f2749c7ebce68b2bbe31a3bf8
fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983
refs/heads/master
2020-08-18T01:12:31.227654
2019-10-17T07:40:40
2019-10-17T07:40:40
215,731,114
1
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
import sklearn.tree as st import sklearn.ensemble as se import numpy as np import sklearn.utils as su import sklearn.metrics as sm import matplotlib.pyplot as mp data = np.loadtxt('C:\\Users\\Administrator\\Desktop\\sucai\\ml_data\\bike_day.csv', delimiter=',', unpack=False, dtype='U20') # 获取输入集与输出集 header ...
ed34f5a1992dc92768d5c72071118192afc81a60
58f095f52d58afa9e8041c69fa903c5a9e4fa424
/examples/test_dejong3.py
7278675f06b5173756538e602b0627bca01a6010
[ "BSD-3-Clause" ]
permissive
cdeil/mystic
e41b397e9113aee1843bc78b5b4ca30bd0168114
bb30994987f36168b8f09431cb9c3823afd892cd
refs/heads/master
2020-12-25T23:18:52.086894
2014-08-13T14:36:09
2014-08-13T14:36:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
#!/usr/bin/env python # # Author: Patrick Hung (patrickh @caltech) # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 1997-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/mystic/browser/m...
[ "mmckerns@968178ea-60bd-409e-af13-df8a517b6005" ]
mmckerns@968178ea-60bd-409e-af13-df8a517b6005
48b77183ab92da5b0e91b0ba7325547f83f7e5fe
43067fc53de24e4c8e16e73cb5761b010240973d
/tests/transform_functional_tests.py
c6c910bb34867ed48f275639373ef6b7fd62b80f
[ "MIT" ]
permissive
yfletberliac/jicbioimage.transform
9a0b661ff38ea2616b29720fc7f02318303191ca
494c282d964c3a9b54c2a1b3730f5625ea2a494b
refs/heads/master
2020-03-19T03:30:02.304877
2016-11-01T16:05:23
2016-11-01T16:05:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,376
py
"""Transform functional tests.""" import unittest import os import os.path import shutil import numpy as np HERE = os.path.dirname(__file__) DATA_DIR = os.path.join(HERE, 'data') TMP_DIR = os.path.join(HERE, 'tmp') class GeneralPurposeTransoformTests(unittest.TestCase): def setUp(self): from jicbioimag...
d7fd85dcb22795bc5b355d57accac43d35b1e6b2
290dfba092f9f88eb62e1b37ea290f01f836acd7
/methylation/bicluster_analysis/run_hmf_mtf_store_matrices.py
5760d111f9af9bad3f5077e6aed7ebc95ebff383
[]
no_license
rintukutum/HMF
fb1ce6f76064bef6b9a6fd5cfeaccd16cf624cd6
87c1bc73ddc375c56ab101185d7fc1b98df1c1ba
refs/heads/master
2020-04-04T10:17:11.722275
2018-06-10T10:21:36
2018-06-10T10:21:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,482
py
""" Run the HMF D-MTF method on the methylation datasets, and store the expectation of the factor matrices F, Sn. """ import sys, os project_location = os.path.dirname(__file__)+"/../../../" sys.path.append(project_location) from HMF.code.models.hmf_Gibbs import HMF_Gibbs from HMF.methylation.load_methylation import ...
d95c6a72d162c022ff13a6a9180b38d6dc4d03f7
26f8a8782a03693905a2d1eef69a5b9f37a07cce
/test/test_destiny_definitions_destiny_item_stat_block_definition.py
fd1caacbe42ae8f19d925e97ff45e137b5b68be2
[]
no_license
roscroft/openapi3-swagger
60975db806095fe9eba6d9d800b96f2feee99a5b
d1c659c7f301dcfee97ab30ba9db0f2506f4e95d
refs/heads/master
2021-06-27T13:20:53.767130
2017-08-31T17:09:40
2017-08-31T17:09:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
# coding: utf-8 """ Bungie.Net API These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. OpenAPI spec version: 2.0.0 Contact: [email protected] Generated by: ...
e42222439cae23f5147a01df166ec8da65f2e33b
4de0c6d3a820d7669fcef5fd035416cf85b35f23
/ITcoach/爬虫课件/第五章:requests模块高级/CodeClass.py
74cf4cb614e8aae221e9f0d2e98fadb407dfbb64
[ "AFL-3.0" ]
permissive
ww35133634/chenxusheng
5e1b7391a94387b73bcd7c4d12f1247b79be8016
666e0eb3aedde46342faf0d4030f5c72b10c9732
refs/heads/master
2022-11-12T03:46:47.953680
2020-07-02T20:50:56
2020-07-02T20:50:56
275,168,080
0
0
AFL-3.0
2020-07-02T20:58:37
2020-06-26T13:54:48
HTML
UTF-8
Python
false
false
3,265
py
import http.client, mimetypes, urllib, json, time, requests ###################################################################### class YDMHttp: apiurl = 'http://api.yundama.com/api.php' username = '' password = '' appid = '' appkey = '' def __init__(self, username, password, appid, appkey)...
1defa08cad2feb8f0a409a161b01ac1c0c65ac80
bf6329ef922505a5c8c4797d6011e81295b753ad
/extensions/ban_my_self.py
0b5f77f80215955f3d893588af9b7870b1d9bb37
[]
no_license
Xi-Plus/Ethics-Committee
b4ed9077bc4113a8d42caf55198b78e3bb18c8bf
cd79dfc5b936b80ac8250f61261d45ad95a4fc55
refs/heads/master
2023-08-30T21:29:21.782947
2023-08-20T09:20:47
2023-08-20T09:20:47
134,817,641
7
2
null
null
null
null
UTF-8
Python
false
false
1,642
py
import re import time import telegram from Kamisu66 import EthicsCommitteeExtension class BanMySelf(EthicsCommitteeExtension): # pylint: disable=W0223 MODULE_NAME = 'ban_my_self' COMMAND = r'^/banmyself@Kamisu66EthicsCommitteeBot$' DURATION = 60 def __init__(self, enabled_chat_id): self.en...
6bada32e456c251b91a0d28e117d3aca206621b0
cefab48dff8fc40786f0a45f3df272646365e9f5
/python/pyMARS_old/python_mars_scripts2a/delete_files.py
88f6d9bb47f4e0691b88aa8e27a717a6af9434ba
[]
no_license
shaunhaskey/pyMARS
d40265bd2d445f0429ae7177f2e75d83f0ba8b30
e2424088492a8ab2f34acf62db42a77e44d5bc3b
refs/heads/master
2020-12-25T17:24:28.392539
2016-08-01T22:14:27
2016-08-01T22:14:27
17,684,575
0
0
null
2014-03-13T03:41:59
2014-03-12T21:21:08
Python
UTF-8
Python
false
false
1,194
py
import numpy as num import time, os, sys, string, re, csv, pickle import scipy.interpolate as interpolate from matplotlib.mlab import griddata ################ SET THESE BEFORE RUNNING!!!!######## project_dir = '/scratch/haskeysr/mars/project1_new_eq/' pickle_file_name = '9_project1_new_eq_COIL_upper_post_setup_new_lo...
3227d0444c8e269c7a4c93dd6a9209005345f469
f67b772f58bf153f76dab5521f982d01dc57c12b
/permission.py
4d8840f6aae8bab09699845a5b79ed461fa3b87a
[]
no_license
culibraries/ark-django-app
5eddb5f2bd5057a81d100eddb549a15e86852f28
355527ce36770c0d27dcf6c524154ac45b9d6e83
refs/heads/main
2023-02-24T05:08:12.421615
2020-09-21T20:34:41
2020-09-21T20:34:41
287,331,709
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
from rest_framework import permissions from django.contrib.contenttypes.models import ContentType from django.contrib.auth.models import Permission class arkPermission(permissions.BasePermission): def has_permission(self, request, view): if request.method in permissions.SAFE_METHODS: return Tr...
016c2124a86821c015a56c70460990d39129c536
384fc08ee847e186a6f2e555a930d6d175728ee2
/scripts/disp_client.py
6f77e04f574be90f725dcbe9556b503a7957f313
[]
no_license
mrmh2/scaleca
ae2d1ada7b8ea423d2c1e1b44787d31347d5bfbd
4374dc5e6d09eeb4ce3ceea51a0a9e7b50dabbfe
refs/heads/master
2021-03-12T22:48:26.945721
2013-08-27T14:24:19
2013-08-27T14:24:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,389
py
#!/usr/bin/env python """disp_client.py - simple text display client. Connects to server, then constructs simple update loop which sends a command to the server to run a simulation timestep, then displays the results.""" import os import sys import zmq import numpy as np def setup(): parent, cdir = os.path.spl...
7af3d393b2ab28233d6337137cf6f36f1ad5421a
a12c090eb57da4c8e1f543a1a9d497abad763ccd
/django-stubs/conf/urls/i18n.pyi
92bedee797dfd45df0608d28ec4edc703e475012
[ "BSD-3-Clause" ]
permissive
debuggerpk/django-stubs
be12eb6b43354a18675de3f70c491e534d065b78
bbdaebb244bd82544553f4547157e4f694f7ae99
refs/heads/master
2020-04-04T08:33:52.358704
2018-09-26T19:32:19
2018-09-26T19:32:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
350
pyi
from typing import Any, List, Optional, Tuple, Union from django.urls.resolvers import URLPattern, URLResolver def i18n_patterns( *urls: Any, prefix_default_language: bool = ... ) -> Union[List[List[Any]], List[URLPattern], List[URLResolver]]: ... def is_language_prefix_patterns_used(urlconf: str) -> Tuple[bool,...
591625010b059b7a1ee63a7bc597dfa5a0166c26
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02733/s001901229.py
aba6fbc1ebc1dcab87ce5d60ec89617753016b1a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
import math #import numpy as np import queue from collections import deque,defaultdict import heapq as hpq import itertools from sys import stdin,setrecursionlimit #from scipy.sparse.csgraph import dijkstra #from scipy.sparse import csr_matrix ipt = stdin.readline setrecursionlimit(10**7) def main(): h,w,k = map(i...
85a6f0dce317685ae612e2bca918b99ee3ef6b1d
3a4549470cb0e6e55c98522ba08ce629d60960ea
/froide/team/admin.py
bd9346dc479e03302643ee0b3e01d265517a39e5
[ "MIT" ]
permissive
lanmarc77/froide
4e28d3e33017b3e776a7eb13d63c7b71bdb3bc68
bddc8bb27c8a7c2a959003dda724194948bc381a
refs/heads/main
2023-03-17T03:02:01.277465
2021-03-06T16:37:26
2021-03-06T16:37:26
345,137,125
0
0
MIT
2021-03-06T16:13:09
2021-03-06T16:13:09
null
UTF-8
Python
false
false
359
py
from django.contrib import admin from .models import Team, TeamMembership class TeamMembershipInline(admin.StackedInline): model = TeamMembership raw_id_fields = ('user', 'team',) class TeamAdmin(admin.ModelAdmin): list_display = ('name', 'created', 'member_count') inlines = [TeamMembershipInline] ...
4450c9e63147eef26ddad97af09b212090a7a78f
46224332185d4d0a1a56ba12ca0fad68e0090693
/main.py
ea6fe8fcf3a2f2104be8faa4f8b4442114aad9ed
[]
no_license
n1k0din/bitly
131ccc2d56e60b994a7eb04a1809744c27f7092c
a6a4735105e09fcc7134783ad2748239f2e92127
refs/heads/main
2023-04-03T11:27:25.676797
2021-04-14T00:03:27
2021-04-14T00:03:27
356,873,736
0
0
null
null
null
null
UTF-8
Python
false
false
2,554
py
import argparse import os from urllib.parse import urlparse import requests from dotenv import load_dotenv BITLY_API_URL = 'https://api-ssl.bitly.com/v4' def create_argument_parser(): parser = argparse.ArgumentParser(description='Сокращает ссылку или выдает \ количество кликов по битлинку') parser....
7ff446abab86764c91765bd0cb1939d5c7d97daa
6da0ded69dde46394dc00f6cebd2541938920dff
/lite/tests/unittest_py/op/test_reduce_mean_op.py
17349af14ca5bb7ec03c6ee39edb95d7a67eb33e
[ "Apache-2.0" ]
permissive
ishine/paddle-mobile
e346f1fb537485d60c6e8f7eb5cba102de0fe6c2
42dbfe288dc49625649dc9499258d2bcf79c9dcd
refs/heads/develop
2023-05-30T10:17:52.866644
2023-05-16T11:40:33
2023-05-16T11:40:33
201,366,144
0
0
Apache-2.0
2020-01-14T07:23:03
2019-08-09T01:35:22
C++
UTF-8
Python
false
false
4,949
py
# 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 appli...
da715d70607b45a4b6225f162482dd1ef2943ae5
1af49694004c6fbc31deada5618dae37255ce978
/chrome/browser/chromeos/exo/DEPS
1ff90b7330527bd26d73215c1179e91ca9fc6fb5
[ "BSD-3-Clause" ]
permissive
sadrulhc/chromium
59682b173a00269ed036eee5ebfa317ba3a770cc
a4b950c23db47a0fdd63549cccf9ac8acd8e2c41
refs/heads/master
2023-02-02T07:59:20.295144
2020-12-01T21:32:32
2020-12-01T21:32:32
317,678,056
3
0
BSD-3-Clause
2020-12-01T21:56:26
2020-12-01T21:56:25
null
UTF-8
Python
false
false
166
specific_include_rules = { "chrome_file_helper\.cc": [ "+ash/wm/window_util.h", ], "chrome_file_helper_unittest\.cc": [ "+ash/wm/window_util.h", ], }
0606e6062f3381696f7a7d9c201d4a0bb6283488
6b1e89d486515d40722cf780a2925c7269f68c5f
/05Month/pandas/extra/stock.py
d16f6b661d65d232a678f127998c4a1869ee33c5
[]
no_license
LiuJingGitLJ/PythonAnalysis
c2c7d96a1dde81a911a828a9dcb4e3fc868ca83e
ddee4a026b3313aa43583311a1b73b22d5f13678
refs/heads/master
2020-03-14T22:58:48.329637
2018-05-02T12:22:30
2018-05-02T12:22:30
131,833,542
1
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
# -*- coding: utf-8 -*- import numpy as np import pandas as pd names = ['date', 'time', 'opening_price', 'ceiling_price', 'floor_price', 'closing_price', 'volume', 'amount'] raw = pd.read_csv('SH600690.csv', names = names, header = None, inde...
dbc38824605ba20ad7dd6526d5365665743b0103
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano3487.py
f097da7b74e2ca09b1b318c6763228fab0a33cb3
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era...
4cd21e735decb89c8f8517e5a9d9ad37539c3fcb
c33afad644823bff35e616de90713ba0db50c152
/xia2-attic/Applications/get_ccp4_commands.py
efef79c10fdb753c96a78144c97a0ca908db641a
[]
no_license
xia2/trashcan
fe58cc189cb167be6fdda131b8af04b6a126f114
05b2423823297b89e7dc1c5fb68285d1bfc8d48f
refs/heads/master
2021-01-01T19:02:19.523868
2015-07-21T11:41:19
2015-07-21T11:41:19
39,441,400
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
#!/usr/bin/env python import sys def get_ccp4_commands(lines_of_input): '''Get the commands which were sent to a CCP4 program.''' # first look through for hklin / hklout logicals = { } for line in lines_of_input: if 'Logical Name:' in line: token = line.split(':')[1].split()[0] ...
f9d1b1d94284348c99187c29166134746d461bcc
960ca4512880cdfdc6daccde8d9271b611824ddb
/exps/vis/test.py
17ccb9517f47b95b538e761d0c39a60b2036f54b
[ "MIT" ]
permissive
xiaoye77/NAS-Projects
f0b66207814fd1ee9e656678230eed5a491d7deb
db44e56fb6b756e03b3d04228fccb6b0fd1060c2
refs/heads/master
2020-12-04T03:53:36.442866
2020-01-02T05:49:16
2020-01-02T05:49:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,118
py
# python ./exps/vis/test.py import os, sys, random from pathlib import Path import torch import numpy as np from collections import OrderedDict lib_dir = (Path(__file__).parent / '..' / '..' / 'lib').resolve() if str(lib_dir) not in sys.path: sys.path.insert(0, str(lib_dir)) from graphviz import Digraph def test_nas_...
e1f0e5d00a2ac00fd29fe1510687dbba7b48f35e
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/ABC/D/154_d.py
43055970fa71c8d1fc0e279b10cfca40369c0986
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
1,613
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): n, k = map(int, input().split()) dat = list(map(int, input().split())) dat2 = [] m = -1 #print(dat[:k]) n = sum(dat[:k]) dat2.append(n) m = n mind = 0 for i...
678bbf0f3acbb639e8f26ad0eda2be449d96f08b
29e4d393351c87741f069092eb8d0ab6f1221d6f
/venv/lib/python3.6/site-packages/Crypto/Cipher/_mode_openpgp.pyi
14b810588d15c2c693b6b6580803aee05847cfe4
[ "MIT" ]
permissive
masora1030/eigoyurusan
f0eb7d9761aa150379b558c13fc2477daf504417
fa82044a2dc2f0f1f7454f5394e6d68fa923c289
refs/heads/master
2022-12-01T09:31:17.330620
2020-07-22T14:51:59
2020-07-22T14:51:59
279,682,018
11
2
MIT
2020-07-22T22:02:57
2020-07-14T20:03:45
Python
UTF-8
Python
false
false
556
pyi
from types import ModuleType from typing import Union, Dict Buffer = Union[bytes, bytearray, memoryview] __all__ = ['OpenPgpMode'] class OpenPgpMode(object): block_size: int iv: Union[bytes, bytearray, memoryview] IV: Union[bytes, bytearray, memoryview] def __init__(self, factor...
8ab7dff45d69393de7c70aedebe150563e1b17ff
7942342d457276bb266228d0236af647b3d55477
/django/contrib/sites/managers.pyi
465f1dc86cf24c0cc822bb976a68d2719d74eb2b
[ "MIT" ]
permissive
AsymmetricVentures/mypy-django
847c4e521ce4dec9a10a1574f9c32b234dafd00b
f6e489f5cf5672ecede323132665ccc6306f50b8
refs/heads/master
2020-06-30T01:53:44.434394
2016-12-22T22:45:50
2016-12-22T22:45:50
74,397,884
0
0
null
null
null
null
UTF-8
Python
false
false
417
pyi
# Stubs for django.contrib.sites.managers (Python 3.6) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any, Optional from django.db import models class CurrentSiteManager(models.Manager): use_in_migrations = ... # type: bool def __init__(self, field_name: Opti...
1220ca9448bfb849dd34483c850bc5f2d5ba6069
0f3411225b51d13fd418814c02d153493b06c1b9
/app/admin/forms.py
4202c752dcb6839eed82ea82954fec18498e84fd
[]
no_license
ChenxiiCheng/flask-movie
9220decb79171281aa1348bd482f24fe1f2a3097
623ce5ba6c6379bed6b71adf321680e9cb5e6df3
refs/heads/master
2020-04-30T03:44:26.172855
2019-03-19T20:37:57
2019-03-19T20:37:57
176,594,138
1
0
null
null
null
null
UTF-8
Python
false
false
9,029
py
# coding:utf8 from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, FileField, TextAreaField, SelectField, SelectMultipleField from wtforms.validators import DataRequired, ValidationError, EqualTo from app.models import Admin, Tag, Auth, Role tags = Tag.query.all() auth_list = Au...
01dd184374b0b82db5104e26148e92a0b14e6031
d83fde3c891f44014f5339572dc72ebf62c38663
/_bin/google-cloud-sdk/lib/surface/compute/interconnects/attachments/create.py
36182101c61039ba02985a4cafd3b3b5d13f0b6c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
gyaresu/dotfiles
047cc3ca70f4b405ba272856c69ee491a79d2ebe
e5e533b3a081b42e9492b228f308f6833b670cfe
refs/heads/master
2022-11-24T01:12:49.435037
2022-11-01T16:58:13
2022-11-01T16:58:13
17,139,657
1
1
null
2020-07-25T14:11:43
2014-02-24T14:59:59
Python
UTF-8
Python
false
false
3,990
py
# 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 ag...
c901c352d59c3fdf81e492c184b2a45cfa2bb28d
43ff15a7989576712d0e51f0ed32e3a4510273c0
/tools/pocs/bugscan/exp_1284.py
1429903641e7e8e932e605922ac8a2efe0393840
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
1,294
py
# -*- coding: utf-8 -*- from dummy import * from miniCurl import Curl curl = Curl() #!/usr/bin/env python # -*- coding: utf-8 -*- #author:小光 #refer:http://www.wooyun.org/bugs/wooyun-2010-0107850 def assign(service, arg): if service == "es-cloud": return True, arg ...
9eb74cca9dec2cbb7c5746ec54fe8569c56b695c
fdafd2ef8a26a3e9ee6a4016ec6272516d64168f
/zeta_python/2504.py
72047ecde7f6205654a68ab7ecb7680a2175d6b7
[]
no_license
yenru0/CodeObjecct
322d669d9e70b7202e5e527cda27da0b1e8f273d
b9d5260b973d7435c089c49bc8867be5d2be4d85
refs/heads/master
2021-06-28T06:13:57.978205
2021-03-13T00:47:53
2021-03-13T00:47:53
221,762,665
1
0
null
null
null
null
UTF-8
Python
false
false
2,041
py
""" 2504: 괄호의 값 문제: 4개의 기호 ‘(’, ‘)’, ‘[’, ‘]’를 이용해서 만들어지는 괄호열 중에서 올바른 괄호열이란 다음과 같이 정의된다. 1. 한 쌍의 괄호로만 이루어진 ‘()’와 ‘[]’는 올바른 괄호열이다. 2. 만일 X가 올바른 괄호열이면 ‘(X)’이나 ‘[X]’도 모두 올바른 괄호열이 된다. 3. X와 Y 모두 올바른 괄호열이라면 이들을 결합한 XY도 올바른 괄호열이 된다. 예를 들어 ‘(()[[]])’나 ‘(())[][]’ 는 올바른 괄호열이지만 ‘([)]’ 나 ‘(()()[]’ 은 모두 올바른 괄...
2768b2bd81d98f303a1950346502deb08bbf3a06
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/91/usersdata/171/40784/submittedfiles/atividade.py
1f8fc7bbe1e557ac228932d226cb5291316e6593
[]
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
119
py
# -*- coding: utf-8 -*- n=int(input('digite numero:')) contador=0 while n>0: n//10 contador=contador+1 print(n)
8ddfbddd68a31c3d35868308a43e364033aab43e
26f6313772161851b3b28b32a4f8d255499b3974
/Python/PathCrossing.py
c22cf8f8b0dbf1ea31c2839c19c406d996aa76b8
[]
no_license
here0009/LeetCode
693e634a3096d929e5c842c5c5b989fa388e0fcd
f96a2273c6831a8035e1adacfa452f73c599ae16
refs/heads/master
2023-06-30T19:07:23.645941
2021-07-31T03:38:51
2021-07-31T03:38:51
266,287,834
1
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
""" Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at the origin (0, 0) on a 2D plane and walk on the path specified by path. Return True if the path crosses itself at any point, that is, if at any time you are on a loca...
58311bff281c8ef4d985364018cccc1599e69c6b
fb2325de1317bed91edb428b5a5a3dad518fa8f2
/python-scripts/tqdm_examples/3_tqdm_two_progress_bars.py
3bb9c5f6faea3fd6c5990f581c06c8b6ea2aa9d5
[]
no_license
gridl/python-ansible-experiments
3b22d32db97bc55fd728ad513eb4176c3aae3482
d7595804aa9c58f2efc92a5bf8d57faccc61cac6
refs/heads/master
2020-07-02T07:00:52.876940
2019-08-01T16:00:25
2019-08-01T16:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
from concurrent.futures import ThreadPoolExecutor, as_completed from pprint import pprint import yaml import tqdm from netmiko import ConnectHandler def conn_ssh_threads(function, devices, command, limit=3, progress_bar=True): result_dict = {} with ThreadPoolExecutor(max_workers=limit) as executor: ...
5ef6d164bee4bc70549b4ddbf316067cfc70872f
5de328dace679cd32b2d32725832b8f75b2dbc11
/utils/plot_modularity_statistics.py
8b58be30e8bd1bf7c81b7b2e4952dfcb15b37afc
[]
no_license
hag007/emp_evaluation
94230b4bdb296d27237fa3de4d0b9e83ea3ee897
52ac70f4593a97bd4a62174d5e58cc5c84ee2820
refs/heads/master
2021-06-13T21:28:41.609495
2020-09-10T09:27:23
2020-09-10T09:27:23
254,448,762
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
import sys sys.path.insert(0, "../") import numpy as np import matplotlib.pyplot as plt import os import constants with open(os.path.join(constants.OUTPUT_GLOBAL_DIR, "modularity_statistics.txt")) as f: n_modules = [int(a) for a in f.readline().strip()[1:-1].split(', ')] n_large_modules = [int(a) for a in f...
97ebd726684ddf767f28ab2bfd0e5e12f98afaa4
037e55864b1d7db7db05f23261d3a008df8878b1
/rebench/tests/features/issue_32_jmh_support_test.py
58768f9e7e5427d58e4492f1a06e24f30b9bb8e7
[ "MIT" ]
permissive
mmtk/ReBench
3d5f95edd8b3ef592db6c8b20d4a6bb404e615ed
709e6f0a1be6fd7bf4b4d13d057f040254a3991b
refs/heads/master
2022-12-18T23:58:11.944800
2020-08-11T12:39:31
2020-08-11T12:39:31
292,157,028
0
0
MIT
2020-09-02T02:21:17
2020-09-02T02:21:16
null
UTF-8
Python
false
false
2,018
py
# Copyright (c) 2009-2014 Stefan Marr <http://www.stefan-marr.de/> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, cop...
5781fff7ad852f1351497e6d1a8ff523c8de95b7
018a1d8d59c00f69b0489ce05567a2972c335ff7
/2017_May23/generators/for_implementation.py
713eb216a4145dbfd4067b77ea9dded1f02454a9
[]
no_license
singhujjwal/python
f0127b604e2204a02836c95d89ee4903f760d48c
4fb4b34a318f093bd944cd70d7f0d69dd7dfef6e
refs/heads/master
2021-09-20T15:35:13.389400
2021-09-03T06:39:58
2021-09-03T06:39:58
92,157,309
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
a = [10, 20, 30, 40, 50] #for i in a: # print i, length = len(a) iterator = iter(a) while length: i = iterator.next() # Body of for loop print i, length -= 1 # ----------------------------- iterator = iter(a) try: while True: i = iterator.next() # Body of 'for' loop ...
d34b43f5e51d81a58f173992be0c5f56dff8ceec
98d832289b7437247ce03ea54ad3cb7b95451159
/rapid7vmconsole/models/resources_policy_override.py
bbab02e67a7f9c1e0e4ad47bdc38a9d68a92933f
[ "MIT" ]
permissive
rmehilli-r7/vm-console-client-python
7f02f13345dce4f4d4d85e18da7146daeefbceb9
069041c1c7b53c6b3d8bfdd81b974141bfca3c0c
refs/heads/master
2020-03-23T11:20:33.364442
2018-08-10T20:06:37
2018-08-10T20:06:37
141,498,444
0
0
MIT
2018-08-08T19:58:45
2018-07-18T23:00:41
Python
UTF-8
Python
false
false
52,137
py
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
a21976098d397a872b65179026a16e0c985a6ddf
eb2668b93899637f04e4c93e01063d0c8175ccde
/Stock_prices/Polimetall/Polimetall_stock_price_LSTM.py
dba94543d4d0d4a5cb22d9943bd63d902f40b0a3
[]
no_license
D-Katt/AI-Machine-Learning
aad1fe1c8f3f901cb7829919d1b69a106f0ddfab
1868c92366dccabf8c86c559eee640645b51bb51
refs/heads/master
2021-12-19T21:59:04.403188
2021-12-07T13:07:46
2021-12-07T13:07:46
235,104,866
3
2
null
null
null
null
UTF-8
Python
false
false
5,253
py
"""Model predicts next day's stock price for Polymetall metal company based on the close price for previous periods. Univariate LSTM model. Data source: https://www.finam.ru/profile/moex-akcii/polymetal-international-plc/export/ """ import pandas as pd import numpy as np import datetime from sklearn.preprocessing impo...
522878a342ba618f400659d8de5ebac245bc5003
db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1
/lenv/lib/python3.6/site-packages/Django-1.11.28.dist-info/entry_points.txt.py
bee25fd9149b419ebb4c674fb394d02833a66ca3
[ "BSD-3-Clause" ]
permissive
shrey-c/DataLeakageDjango
ffeef61caa347520747fc70cf3f7f8b84a9610cf
a827c5a09e5501921f9fb97b656755671238dd63
refs/heads/master
2022-11-30T03:30:12.313025
2020-07-12T06:47:44
2020-07-12T06:47:44
242,569,637
6
1
BSD-3-Clause
2022-11-22T05:20:22
2020-02-23T18:33:04
Python
UTF-8
Python
false
false
83
py
XXXXXXXXXXXXXXXXX XXXXXXXXXXXX X XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
f1428f69f24ccc83805630ac7b8aa0c3d0a03709
1285703d35b5a37734e40121cd660e9c1a73b076
/codility/lesson_dp.py
75630e274ca92cb387134bb84a03666605defdcd
[]
no_license
takin6/algorithm-practice
21826c711f57131108168775f08e4e13d07a3b38
f4098bea2085a77d11c29e1593b3cc3f579c24aa
refs/heads/master
2022-11-30T09:40:58.083766
2020-08-07T22:07:46
2020-08-07T22:07:46
283,609,862
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
# val(A,S) = sum( abs( [ A[i]*S[i] for i in range(N)] )) # A = [1,5,2,-2] # # S = {-1,1-1,1} # S = [-1,1,-1,1] # N = len(A) # for i in range(N): # print(A[i]*S[i]) # (Assume that the sum of zero elements equals zero.) def solution(A): A = [ abs(i) for i in A ] N = len(A) dp = [ [flo...
dff75fc51048521dd1ee7a43e1493fde50e29379
58937468e368e87ff8683ba481e1d42a0fd56422
/government/serializers/__init__.py
605fa9d9ae7cc6b55415319886e1c4c33ef25446
[ "MIT" ]
permissive
The-Politico/politico-civic-government
8da45c490eda094bb136a8e3d3b954daebcef617
623baf95e1b029c3bbfccf300cdfca630f4969f8
refs/heads/master
2022-12-11T12:37:46.837216
2019-01-04T19:33:19
2019-01-04T19:33:19
116,028,686
0
0
MIT
2022-10-18T18:31:26
2018-01-02T15:21:27
Python
UTF-8
Python
false
false
169
py
# flake8: noqa from .body import BodySerializer from .office import OfficeSerializer from .jurisdiction import JurisdictionSerializer from .party import PartySerializer
b86910e27df29df8ecc51ae23afdae872eb46631
4ca008a67bc91383255d2a1919b46556ef50622e
/support/main/migrations/0004_auto_20190306_1409.py
224c992f35c9222f20476e4d70b9f373a840169f
[]
no_license
zdimon/support-ionic-django
8dc649fc13f3d67f0982ed8b5a796f4e443a60fc
f6c096cfa99bb1f6cdb2bf94af2865b02f8e7c75
refs/heads/master
2023-02-08T04:23:28.990129
2021-10-07T05:56:43
2021-10-07T05:56:43
244,316,789
0
0
null
2023-01-24T01:31:40
2020-03-02T08:21:35
JavaScript
UTF-8
Python
false
false
539
py
# Generated by Django 2.1.7 on 2019-03-06 14:09 from django.db import migrations import tinymce.models class Migration(migrations.Migration): dependencies = [ ('main', '0003_auto_20190306_1403'), ] operations = [ migrations.RemoveField( model_name='digest', name=...
f33f82dad957ad77c9c30ba73d16dbacfdfd33f1
dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0
/src/main/scala/MaximumAverageSubtree.py
a398eb6c8e7364ea2a69c3d5df160e65f8b0b9f4
[]
no_license
joestalker1/leetcode
8a5cdda17abd33c3eef859732f75d7bec77a9d0e
ae392ddbc7eb56cb814b9e9715043c98a89a6314
refs/heads/master
2023-04-13T22:09:54.407864
2023-04-09T19:22:54
2023-04-09T19:22:54
131,803,943
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def maximumAverageSubtree(self, root): if not root: return 0 def find_avg(node): if not node: re...
acb7e479c8659db7cf8998b68023fe7856a6a3eb
4c3e992678341ccaa1d4d14e97dac2e0682026d1
/addons/website_crm/__manifest__.py
25c3c8c27c1aaa7be1c4bea195297a66d7694d84
[]
no_license
gahan-corporation/wyatt
3a6add8f8f815bd26643e1e7c81aea024945130d
77e56da362bec56f13bf0abc9f8cf13e98461111
refs/heads/master
2021-09-03T18:56:15.726392
2018-01-08T02:54:47
2018-01-08T02:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
{ 'name': 'Contact Form', 'category': 'Website', 'sequence': 54, 'website': 'https://www.gerp.com/page/website-builder', 'summary': 'Create Leads From Contact Form', 'version': '2.0', 'description': "", 'depends': ['website_form', 'website_partner', 'crm'], 'data': [ 'data/we...
f71fa3008085e80be37a7aacd30689da78448a15
60e26e2c6e1fe185f0af2065cb4fd4d6d506504e
/engine/multimedia/api_view.py
3ab0699cd607fc493fb62d36e931b581326efe44
[ "BSD-3-Clause" ]
permissive
NamoxLabs/BlogEngine
4887df1078e4b15bc44c51b9b8c2d8b1e8a6aca4
741549e78b58bbc857e9dcecd88034de49d73304
refs/heads/master
2023-05-12T08:38:36.811094
2020-12-10T01:36:59
2020-12-10T01:36:59
155,762,174
1
2
BSD-3-Clause
2023-04-29T18:53:41
2018-11-01T19:00:48
Python
UTF-8
Python
false
false
3,159
py
from rest_framework import generics, permissions, renderers, viewsets, authentication from rest_framework.views import APIView from rest_framework.parsers import MultiPartParser, FormParser from rest_framework.decorators import api_view, action from rest_framework.response import Response from rest_framework.reverse im...
f5d29bcd1f8c9486d8d4569548e35971fb29edf7
54bb9ba6d507cd25b2c2ac553665bc5fc95280d1
/src/onegov/activity/models/occasion.py
dfbc61ee9ba1687033df2d221ca1fa4a7a74df52
[ "MIT" ]
permissive
href/onegov-cloud
9ff736d968979380edba266b6eba0e9096438397
bb292e8e0fb60fd1cd4e11b0196fbeff1a66e079
refs/heads/master
2020-12-22T07:59:13.691431
2020-01-28T08:51:54
2020-01-28T08:51:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,719
py
import sedate from datetime import datetime, timedelta from onegov.activity.models.occasion_date import DAYS from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UUID from psycopg2.extras import NumericRange from sqlalchemy import Boolean from sqlalchemy ...
d2c68acf9b53244d3d86dcddc2dfb141b3295ea1
99d7a6448a15e7770e3b6f3859da043300097136
/src/managers/plugins/manager_preferences_page.py
108378a6b8bff9ec02512d2ba1c2ea9974fed843
[]
no_license
softtrainee/arlab
125c5943f83b37bc7431ae985ac7b936e08a8fe4
b691b6be8214dcb56921c55daed4d009b0b62027
refs/heads/master
2020-12-31T07:54:48.447800
2013-05-06T02:49:12
2013-05-06T02:49:12
53,566,313
0
0
null
null
null
null
UTF-8
Python
false
false
5,279
py
#=============================================================================== # Copyright 2011 Jake Ross # # 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/license...
[ "jirhiker@localhost" ]
jirhiker@localhost
e6808933779bd451c7f3c2aed9096baf82d6ac01
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/l7rules_in_status_resp.py
ff144526f91124a278e439806850ab972c0a4e27
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,606
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class L7rulesInStatusResp: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ke...
916e8c7b89063ad6ce6aa8d92e0e6f6d877c3e5d
1b2f60bfbb38353c829a066b7a5d58b84122e460
/python/scale-generator/scale_generator.py
dd3627cef2e40277b3338afb90ca55f33b7eda14
[]
no_license
krok64/exercism.io
9f03553a9efd1eb89f1844265fa2b06210b5803b
2c0439f533977a4d935c962e5b3e9a3c7111ac66
refs/heads/master
2021-01-20T02:20:30.048587
2017-08-24T16:34:02
2017-08-24T16:34:02
101,316,193
0
0
null
null
null
null
UTF-8
Python
false
false
1,693
py
octave_sharp = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'] octave_flat = ['A', 'Bb', 'B', 'C', 'Db', 'D', 'Eb', 'E', 'F', 'Gb', 'G', 'Ab'] class Scale(object): def __init__(self, start, name, intervals=""): if len(start) > 1: self.start = start[0].upper() + start[1] ...
ed7dbfe8a4d867bb7f31bb99aa021aed9a7b1869
89594edf581b8512d262768fb4c3e0ad001996a9
/colibris/shortcuts.py
458659843d933d06ecd650c70b38b096a2de2902
[ "BSD-3-Clause" ]
permissive
colibris-framework/colibris
b8524ac31a100c987dcbb5954b23f8c309370be3
9655016637888c480f49f92711caa6088013e442
refs/heads/master
2023-08-08T11:45:36.191451
2023-08-07T07:15:32
2023-08-07T07:15:32
193,250,040
7
2
BSD-3-Clause
2021-09-12T21:52:07
2019-06-22T15:35:53
Python
UTF-8
Python
false
false
1,001
py
from aiohttp.web import Response from colibris import api from colibris import template def get_object_or_404(model, pk, select_related=None): select_related = set(select_related or ()) try: q = model.select(model, *select_related).where(model._meta.primary_key == pk) for m in select_relate...
4849a3e0eb1d97ad3ac79041e9c8b99dd486ca9e
7109eecfb78e0123b534ef960dbf42be38e49514
/x7-src/engine/engine/tests/test_instance_types.py
75b1f3731633e5e8cc605923adde5f9f09c60170
[ "Apache-2.0" ]
permissive
wendy-king/x7_compute_venv
a6eadd9a06717090acea3312feebcbc9d3925e88
12d74f15147868463954ebd4a8e66d5428b6f56d
refs/heads/master
2016-09-06T16:58:13.897069
2012-01-31T01:26:27
2012-01-31T01:26:27
3,310,779
0
0
null
null
null
null
UTF-8
Python
false
false
10,690
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Ken Pepple # 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 # # U...
fb125fa8acb5c1f5dfb931330794b6f3a4afe128
c8539e19bfc783c41f76ab23cdccdab919c341b4
/changes-for-FreeROI/froi/widgets/surfaceview.py
9d4c6a9d9e1ac9beee1354f6b56c78fa2d655a61
[]
no_license
sunshineDrizzle/backups-for-forked-repo
2dbf4a0750aef9d9009f6b921198fecb35ead7c7
8f905a6f53b6189e91f7925ac950f1e94f478169
refs/heads/master
2020-07-26T20:34:51.247940
2016-11-24T03:46:28
2016-11-24T03:46:28
73,715,560
0
0
null
null
null
null
UTF-8
Python
false
false
7,230
py
import os import sys import sip from traits.api import HasTraits, Instance from traitsui.api import View, Item from tvtk.api import tvtk from PyQt4.QtGui import * from mayavi.core.ui.api import SceneEditor, MayaviScene, MlabSceneModel from mayavi import mlab import numpy as np from treemodel import TreeModel # Help...
8c326a9f5b917f0c00f6be14192f9f51fcdbbc62
142362be3c4f8b19bd118126baccab06d0514c5b
/apps/afisha/models.py
584eac76f905a53e8ae27099f259719cb122eca0
[]
no_license
dkramorov/astwobytes
84afa4060ffed77d5fd1a6e8bf5c5c69b8115de6
55071537c5c84d0a27757f11ae42904745cc1c59
refs/heads/master
2023-08-27T07:10:51.883300
2023-08-02T16:52:17
2023-08-02T16:52:17
191,950,319
0
0
null
2022-11-22T09:15:42
2019-06-14T13:44:23
HTML
UTF-8
Python
false
false
4,622
py
# -*- coding: utf-8 -*- import os from django.db import models from apps.main_functions.string_parser import translit from apps.main_functions.models import Standard class Rubrics(Standard): """Рубрикатор мест""" name = models.CharField(max_length=255, blank=True, null=True, db_index=True) # tag = ссылка...
fcbc1a2c3dce5ff711033e550d925ddd94dee24a
477630571cef77ad3bf5f9d06890bab39c3abad9
/backend/posts/urls.py
2721d73eb674691ea165d87bd3ad1e5cf3eb787d
[]
no_license
lumenwrites/webacademy
52da663a36a2c403ac1ec97ba2687671f28a7c3f
4f8bdd4a15b781d7d0a1a7ae312914eaa0d1bd8d
refs/heads/master
2021-06-11T09:29:00.778011
2017-02-24T16:38:51
2017-02-24T16:38:51
82,233,069
4
0
null
null
null
null
UTF-8
Python
false
false
736
py
from django.conf.urls import url from .views import BrowseView, TagView from .views import PostDetailView, post_create, post_edit, post_delete from .views import upvote, unupvote urlpatterns = [ # url(r'^post/(?P<slug>[^\.]+)/edit$', PostUpdateView.as_view()), url(r'^post/(?P<slug>[^\.]+)/edit$', post_edit), ...
9aff8fe42f3ef76ccebeceaaab4baa446f5804fe
463d2ec5da7c7908b27d06d26a51d9645b3d52f1
/DeepLearning/mnist.py
f98a72a28bb702e2345994bbf5084e1fdb3d3279
[]
no_license
zhangdavids/workspace
7b899d7385d0921be78658c60ad18578c12ab10a
91f3c3e9b27018283132e3928ad2b84db5cc4b77
refs/heads/master
2021-07-11T13:21:32.445158
2018-11-02T01:04:06
2018-11-02T01:04:06
104,007,756
3
0
null
null
null
null
UTF-8
Python
false
false
994
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) print("Download Done!") x = tf.placeholder(tf.float32, [None, 784]) # paras W = tf.Variable(tf.zeros([784, 10])) b = tf.Variable(tf.zeros([10])) y = tf.nn.softmax(tf.matm...
57af1a0a76151d4b618724945c15377b7d23b49b
bc441bb06b8948288f110af63feda4e798f30225
/easy_work_service_sdk/model/patch_manager/patch_manager_host_pb2.py
f25062699d42370fe847f9abf6b7f44077b1e90c
[ "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
9,427
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: patch_manager_host.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.p...
c7f69a99827f9898d781abe688c7d8f36bfcbecd
b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6
/verp/verp_integrations/doctype/shopify_log/shopify_log.py
d7025f8e8f220fc107ce8a2e605e779ba5b39c99
[]
no_license
vsadminpk18/verpfinalversion
7148a64fe6134e2a6371470aceb1b57cc4b5a559
93d164b370ad9ca0dd5cda0053082dc3abbd20da
refs/heads/master
2023-07-13T04:11:59.211046
2021-08-27T06:26:48
2021-08-27T06:26:48
400,410,611
1
0
null
null
null
null
UTF-8
Python
false
false
2,244
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json from frappe.model.document import Document from verp.verp_integrations.utils import get_webhook_address class...
a7a998efb431ef7988553f1b40f792317a4794ab
41e7f1b0f6d034dfb188ea7ccc6419d3110e9d90
/lgms/students/models.py
6e4140b137fcde3359efd6697ad7f0b24b196c80
[]
no_license
42force/lgmsv1
cbf3881a7a3f047cd0ea8a962883780a73ec13c1
2caee52db3914019af01432ddd85703afcd8f73b
refs/heads/master
2020-03-25T06:13:41.755085
2018-08-05T08:51:33
2018-08-05T08:51:33
143,490,195
0
0
null
null
null
null
UTF-8
Python
false
false
23,840
py
from django.contrib.auth.models import AbstractUser, BaseUserManager, User from django.db import models from django.urls import reverse import django.utils.timezone from datetime import date from crispy_forms.helper import FormHelper from phonenumber_field.modelfields import PhoneNumberField from django.conf import set...
27625b0ca9959a66b5419c730f9e3b38cbd8bdad
23392f060c85b5fee645d319f2fd5560653dfd5c
/01_jumptopy/chap05/Restaurant_v1.py
b8143f488dacff28b307454d80cb4ad6bba75307
[]
no_license
heyhello89/openbigdata
65192f381de83e4d153c072ff09fa7574f003037
b35ff237c32013c3e5380eee782085a64edb9d80
refs/heads/master
2021-10-22T04:29:00.852546
2019-03-08T02:14:34
2019-03-08T02:14:34
125,938,319
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
class Restaurant: def __init__(self, input_name): self.restaurant_name = input_name.split()[0] self.cuisine_type = input_name.split()[1] def describe_restaurant(self): print("저희 레스토랑 명칭은 %s이고 %s 전문점입니다."%(self.restaurant_name, self.cuisine_type)) def open_restaurant(self): ...
9e94b93f9c625b41373b4d71fa584993116a74ed
ad1e55b9a67c798cf4b4ce41c76b26977f8b4e8d
/rockit/music/models.py
83ff6ae4fca6390c25d1ac6f1e39a2e711c26f0a
[ "BSD-3-Clause" ]
permissive
kumar303/rockit
7a6ac84bb8c37e5f3b65d7dcecf9b9c549902cf5
fc347b5b143835ddd77fd0c1ea4e6f2007a21972
refs/heads/master
2021-01-10T19:51:30.638073
2020-07-26T19:00:37
2020-07-26T19:00:37
4,219,328
0
2
BSD-3-Clause
2020-07-26T19:00:38
2012-05-03T22:03:24
Python
UTF-8
Python
false
false
4,007
py
import hashlib import os from django.conf import settings from django.db import models from rockit.base.models import ModelBase from rockit.base.util import filetype from rockit.sync import s3 class VerifiedEmail(ModelBase): email = models.CharField(max_length=255, db_index=True, unique=True) upload_key = m...
af85c3d57f311d7ceaaf6234d16e697b691c7a68
5363e4eaa1af6fe4ba2e8c7f182c125d7b090efd
/Sunny/Python/Flask/app.py
28d23f9f5e3b921ad6f7bce7314db4dd40acd9e3
[]
no_license
Sunnyryu/DaebakStudy
a87a24e651491a482b9c92b98e01eae3c3bfc6c9
32732f11dd99d3e10625b7695e431e535edeeab1
refs/heads/master
2022-07-11T21:50:55.018842
2020-07-20T07:11:13
2020-07-20T07:11:13
244,505,943
0
0
null
2022-06-22T02:31:06
2020-03-03T00:32:20
JavaScript
UTF-8
Python
false
false
1,289
py
from flask import Flask, render_template, request, redirect, send_file from scrapper import get_jobs from exporter import save_to_file app = Flask("SuperScrapper") db = {} @app.route("/") def home(): return render_template("home.html") @app.route("/report") def report(): word = request.args.get("word") i...
44cf3e93502c80360c84a5e60a3dd9b51d4df9f6
ef01dc3fedeb81f0a1739822b92043592cff63b9
/music/urls.py
fb1d9c4031a9455f706481dd5f1a57170dad47db
[]
no_license
laboyd001/python-django-music
867cfe70cfccb108721155861003881b8040bc43
159a22b6beff93c8d223f5ab1c5655e9e914b920
refs/heads/master
2020-04-17T20:39:33.686191
2019-01-24T03:39:15
2019-01-24T03:39:15
166,915,444
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
"""music URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
afa780e0f4321a1068d25a0a735061aefce29115
88cf3aa4eb13cda1790cd930ed2cb8c08964c955
/chainercv/utils/image/write_image.py
b5610c992a0e0703f3c0c5571fc051b16454d9a8
[ "MIT" ]
permissive
mingxiaoh/chainercv
6ae854f445b7a14f55e41b51b5e4226224702b95
cfb7481907efe93e13c729ae2d9df4706d3975a6
refs/heads/master
2022-11-11T20:44:31.875419
2018-05-03T04:09:13
2018-05-03T04:33:15
131,939,645
1
2
MIT
2022-10-26T00:07:37
2018-05-03T03:58:59
Python
UTF-8
Python
false
false
517
py
import numpy as np from PIL import Image def write_image(img, path): """Save an image to a file. This function saves an image to given file. The image is in CHW format and the range of its value is :math:`[0, 255]`. Args: image (~numpy.ndarray): An image to be saved. path (str): The ...
bae1ee85529bad01328f91ec316207f6cf065957
f7110aaab742fc92179302c5874691078ed05158
/book_author_shell/book_author/views.py
33d21d80d85a99cfc6465ff8b778e23db2d583fc
[]
no_license
Moha327/python_extra
0f9252a46a652ffe83d97cd0d6906a1835c2abbf
a3e1b31831578484c651d76bfd01173fe9d6eb10
refs/heads/master
2023-05-23T14:03:21.962212
2021-06-16T13:50:06
2021-06-16T13:50:06
377,511,352
0
0
null
null
null
null
UTF-8
Python
false
false
2,341
py
from django.shortcuts import render,HttpResponse,redirect from .models import * # Create your views here. def index(request): context = { "books": Book.objects.all(), "authors": Author.objects.all() # 'books':models.allBook() } return render(request, 'index.html' , context) def...
7ed1c30363e1f08e66f3739c047e711d18b9a751
0cd64f3f67c6a3b130a788906da84ffc3d15396a
/Library/lib/python3.9/site-packages/terminado/__init__.py
b719a2732b62668ad85459f6c3593ec181c85a6a
[ "MIT", "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi", "Python-2.0" ]
permissive
Ryorama/codeapp
32ef44a3e8058da9858924df211bf82f5f5018f1
cf7f5753c6c4c3431d8209cbaacf5208c3c664fa
refs/heads/main
2023-06-26T09:24:13.724462
2021-07-27T17:54:25
2021-07-27T17:54:25
388,520,626
0
0
MIT
2021-07-22T16:01:32
2021-07-22T16:01:32
null
UTF-8
Python
false
false
544
py
"""Terminals served to xterm.js using Tornado websockets""" # Copyright (c) Jupyter Development Team # Copyright (c) 2014, Ramalingam Saravanan <[email protected]> # Distributed under the terms of the Simplified BSD License. from .websocket import TermSocket from .management import (TermManagerBase, SingleTermManager...
11f2b5cb85357f64b7a41695ae6f16913c41d8d2
9431bba2d148f8aef9c0a8f3ca16fcf875890757
/matplotlib_exercise/3dplot.py
823f335d0f5214c0f6a80c17480335fb03bcdaa1
[ "MIT" ]
permissive
terasakisatoshi/pythonCodes
fba0b78414b2c85f4a738200354ea583f0516768
953210c06e9885a7c885bc01047715a77de08a1a
refs/heads/master
2023-05-14T12:30:22.201711
2023-05-07T13:41:22
2023-05-07T13:41:22
197,893,702
2
1
MIT
2022-11-25T10:59:52
2019-07-20T07:09:12
Jupyter Notebook
UTF-8
Python
false
false
407
py
from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np fig=plt.figure() ax1=fig.add_subplot(121,projection='3d') X=Y=np.arange(-3.3,3.3,0.3) X,Y=np.meshgrid(X,Y) Z=np.cos(np.sqrt(X*X+Y*Y)) ax1.plot_surface(X,Y,Z,rstride=1,cstride=1) ax2=fig.add_subplot(122,projection='3d') ...
285fce054cb4b6f25560dec504b9a781325d51d1
9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa
/abc004_2.py
bc6cf2f9686dea24440c44413bba61a132f9ed6a
[]
no_license
luctivud/Coding-Trash
42e880624f39a826bcaab9b6194add2c9b3d71fc
35422253f6169cc98e099bf83c650b1fb3acdb75
refs/heads/master
2022-12-12T00:20:49.630749
2020-09-12T17:38:30
2020-09-12T17:38:30
241,000,584
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
# जय श्री राम import sys; import math; from collections import * # sys.setrecursionlimit(10**6) def get_ints(): return map(int, input().split()) def get_list(): return list(get_ints()) def printspx(*args): return print(*args, end="") def printsp(*args): return print(*args, end=" ") UGLYMOD ...
27dd825851e20094d5c582a2aec94b07f03aa620
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/intune/devices/data.py
356d6888c9b603e4568ea707e50f61a7cd4e0156
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
128
py
from office365.runtime.client_value import ClientValue class DeviceAndAppManagementData(ClientValue): """Exported Data"""
dbd092cd987efe95f6be5c4270e5d9a437ec863f
f67986550761cf3ed174d01063f5fdc8a26f59f3
/mission/missions/opt.py
8a285573d41e8e9e8939678eaaabbd9b6aa4beca
[ "BSD-3-Clause" ]
permissive
wpfhtl/software
4dd5d116a1c90660264b32006617a6809b0a530e
575d424be6b497e0f34f7297a9b322567c2e26c0
refs/heads/master
2021-01-23T02:40:49.542461
2016-04-15T04:16:21
2016-04-15T04:16:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,152
py
''' Optimal Mission Runner Introduction: Usage: Tasks must expose the following interface: currentPoints :: double possibleModes :: () -> [mode] --> Should take into account state, whether we think we're succeeding. Tasks are passed the following parameters on run: mode :: string (the name of the mo...
8d9d062fd8a6c677a97b2fbfd5d2e4e8674c0647
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nneustathiu.py
5a21529fc3a6677e1b00ca0d258ad4d164aeecf3
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
198
py
ii = [('LeakWTI3.py', 2), ('WilkJMC2.py', 2), ('GrimSLE.py', 1), ('ClarGE.py', 1), ('DibdTRL2.py', 1), ('NewmJLP.py', 1), ('LeakWTI4.py', 3), ('MereHHB.py', 2), ('WestJIT.py', 1), ('ClarGE3.py', 1)]
ab80221c201f8a39f9ab877abb289b445c676c9f
0822d36728e9ed1d4e91d8ee8b5ea39010ac9371
/robo/pages/gazetadopovo.py
4da3d40428d2a85f59fddd2ee6384492a83ae54e
[]
no_license
diegothuran/blog
11161e6f425d08bf7689190eac0ca5bd7cb65dd7
233135a1db24541de98a7aeffd840cf51e5e462e
refs/heads/master
2022-12-08T14:03:02.876353
2019-06-05T17:57:55
2019-06-05T17:57:55
176,329,704
0
0
null
2022-12-08T04:53:02
2019-03-18T16:46:43
Python
UTF-8
Python
false
false
1,051
py
# coding: utf-8 import sys sys.path.insert(0, '../../../blog') from bs4 import BeautifulSoup import requests from robo.pages.util.constantes import PAGE_LIMIT GLOBAL_RANK = 2763 RANK_BRAZIL = 123 NAME = 'gazetadopovo.com.br' def get_urls(): try: urls = [] root = 'https://www.gazetadopovo.com.br/...
e87e029eaa2d3d283eadcde19b4a76984da3bf66
f40b162d67c1aff030b14f7899c7fc4bbc1c993d
/pyvision/logger.py
afce2ba8df0aced624489f8594c7f4f3a05e60f5
[ "MIT" ]
permissive
afcarl/pyvision
c3e7784a9feb585a3feaa936510776d5d1f36db1
e464a4ecc60cec49569be90d51708f3ad481f28a
refs/heads/master
2020-03-20T06:03:06.479246
2018-05-01T13:28:40
2018-05-01T13:28:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,542
py
""" The MIT License (MIT) Copyright (c) 2017 Marvin Teichmann """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import numpy as np import scipy as scp import warnings import deepdish as dd import logging from tables.exceptions imp...
26ce2c853d6fba5103f7e8c8487635468f81dce4
2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f
/aws.athena.Workgroup-python/__main__.py
fa1fc79a816edeaa868da2137ad1926dc3a71196
[]
no_license
ehubbard/templates-aws
e323b693a18234defe6bd56ffcc64095dc58e3a1
2ae2e7a5d05490078017fed6d132dcdde1f21c63
refs/heads/master
2022-11-17T13:53:14.531872
2020-07-10T21:56:27
2020-07-10T21:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
import pulumi import pulumi_aws as aws example = aws.athena.Workgroup("example", configuration={ "enforceWorkgroupConfiguration": True, "publishCloudwatchMetricsEnabled": True, "resultConfiguration": { "encryption_configuration": { "encryptionOption": "SSE_KMS", "kms_key_arn...
e1151684bf7454af340d2e67902bf1f05e00335e
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp150_4000.py
e0ed7aa5a33c2157e8926454f9444587864ee523
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,781
py
ITEM: TIMESTEP 4000 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp -2.5531331962706183e+00 4.9753133196264614e+01 -2.5531331962706183e+00 4.9753133196264614e+01 -2.5531331962706183e+00 4.9753133196264614e+01 ITEM: ATOMS id type xs ys zs 214 1 0.0371447 0.087567 0.129368 1118 1 0.0590121 0.010013 0.135981 336 1 0....
b9d7f58e5ce2df2d1e5b2de5133ce3e2a2e4020f
505ce732deb60c4cb488c32d10937a5faf386dce
/di_website/datasection/migrations/0018_auto_20191115_1108.py
9739d427e1bc60ac12c93a34e1c0c47d8e31d823
[]
no_license
davidebukali/di_web_test
cbdbb92b2d54c46771b067a24480e6699f976a15
a826817a553d035140bb8b6768f3fd2b451199d8
refs/heads/develop
2023-02-11T13:21:26.281899
2021-01-08T04:37:34
2021-01-08T04:37:34
319,560,677
0
0
null
2021-01-08T04:37:35
2020-12-08T07:30:51
HTML
UTF-8
Python
false
false
7,247
py
# Generated by Django 2.2.6 on 2019-11-15 11:08 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields import wagtail.documents.blocks import wagtail.embeds.blocks import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('datasection', '0017_a...
dc1eebcf72b6afa384ae1dfdeb4a15919adecf59
4f2c48896b0ac88b21a109d506296337a3a14807
/service.py
08955d7620d5742a20b126c253fe191cb9118d5a
[]
no_license
mehdi1361/tcp_server
0539c6de158a6f6ac26428cc4f14f8bdd566cbdd
3a697221c3ba0110fb54e4c94958265b7fbbc0a8
refs/heads/master
2020-03-26T03:14:49.076505
2018-08-28T15:05:29
2018-08-28T15:05:29
144,384,551
0
0
null
null
null
null
UTF-8
Python
false
false
7,705
py
import os import sys sys.path = [os.path.join(os.getcwd(), '.'), ] + sys.path import json import settings # import time from twisted.internet import reactor, protocol, task from twisted.application import service, internet from common.game import Battle from common.objects import Player, CtmChestGenerate from common....
95644dd622ba8e1d18d9679fb5e4e32b799263ba
0694d9f69934cc21a20bd3a47871c04624bf5123
/helper/valid_tmp.py
33ece6949b3f48b849d026e7991ab68413ec1bc1
[]
no_license
ShenDezhou/courtpy
fb47edb3b19062d0d60928375c7ab4bf98a3b089
338fca9c889994498173631ac2469684483afedd
refs/heads/master
2020-06-10T18:20:51.660842
2017-01-16T13:59:59
2017-01-16T13:59:59
75,911,371
1
0
null
null
null
null
UTF-8
Python
false
false
686
py
# -*- coding:utf-8 -*- __author__ = 'Mr.Tian' from log import init_logging from mongo import ProxyItemsDB, ProxyItemsDropDB, ProxyItemsTmpDB from valid_proxy import valid_proxy from get_proxy import GetProxy def main(): get_proxy = GetProxy(ProxyItemsTmpDB) while True: item = get_proxy.get_proxy()...
e6f51b04e362267f3c2c2555c5394eb5c42ea078
6362d18d6aadefa9949d10eae31030b25ff46fd0
/ndstats/management/commands/saveunknown.py
c4c5787ef7c05f1bbaed4013d69d11cbd880a301
[]
no_license
yedpodtrzitko/ndstats
2ab3c0d389401b4c5e96f976b45f443f09057a70
d59b6395729269e311119c6edae7577303ec5d1b
refs/heads/master
2022-12-09T18:59:03.916427
2019-10-23T04:05:36
2019-10-23T04:05:36
40,006,216
0
0
null
2022-12-08T02:25:49
2015-07-31T13:19:30
JavaScript
UTF-8
Python
false
false
814
py
from django.core.management.base import BaseCommand from ndstats.models import UnknownLine, Chatlog from ndstats.parser import LogParser class Command(BaseCommand): def handle(self, *args, **options): parser = LogParser() Chatlog.objects.all().delete() for line in UnknownLine.objects.all...
7f5effb36ac00dad195203e6ac8257fce255d6ce
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_145/ch24_2019_04_03_22_28_52_327688.py
6c0c7ab21be1649606ab09c05cbc3f8ed028a92b
[]
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
187
py
def classifica_triangulo(a,b,c): if a == b and b == c: return "equilátero" if a == b and b != c: return "isósceles" if a!= b and b != c: return "escaleno"
92d6f6ca17e33b469cb39f8aa47695ade46268b3
2b9914d157d36dfb8a96df10a047ffe630511ba8
/string_text/insert_var.py
8b38d2e07fe86ffe769e27ed5aff258e86ce9b25
[]
no_license
liuxingyuxx/cookbook
20dce322a09ea5267c68637d66c18d1cec234610
3faad3d8fc2c40b648830f4bdc17b99bcc11c5fd
refs/heads/master
2020-03-14T06:59:29.831430
2018-04-29T12:51:55
2018-04-29T12:51:55
131,494,393
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
#创建一个内嵌变量的字符串,变量被它的值所表示的字符串替换掉。 #format s = '{name} has {n} messages' s_fo = s.format(name='LXY', n='8') print(s_fo) #format_map() 与 var() name = 'LXY_' n = 9 s_fo_var = s.format_map(vars()) print(s_fo_var) class Info: def __init__(self, name, n): self.name = name self.n = n a = Info('Furry', ...
8a3b729b6a6bc27ce2e4328b965750b430115181
150464efa69db3abf328ef8cd912e8e248c633e6
/_4.python/tkinter/_example/tk_ex_Image_Editor.py
e890b9404e82f3b701cc5231d8f8fa63a3e4abab
[]
no_license
bunshue/vcs
2d194906b7e8c077f813b02f2edc70c4b197ab2b
d9a994e3afbb9ea84cc01284934c39860fea1061
refs/heads/master
2023-08-23T22:53:08.303457
2023-08-23T13:02:34
2023-08-23T13:02:34
127,182,360
6
3
null
2023-05-22T21:33:09
2018-03-28T18:33:23
C#
UTF-8
Python
false
false
3,510
py
import tkinter as tk from tkinter import filedialog from tkinter import colorchooser from PIL import Image, ImageOps, ImageTk, ImageFilter from tkinter import ttk root = tk.Tk() root.geometry("1000x600") root.title("Image Drawing Tool") root.config(bg="white") pen_color = "black" pen_size = 5 file_path = "" def add_...
07b8a7afb9e5a2d9650d56d56bd5b2392d8e0349
1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc
/venv/lib/python2.7/site-packages/ansible/galaxy/login.py
dda856099160cc82d6dd3235e8a4cfc975f305b1
[ "MIT" ]
permissive
otus-devops-2019-02/devopscourses_infra
1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c
e42e5deafce395af869084ede245fc6cff6d0b2c
refs/heads/master
2020-04-29T02:41:49.985889
2019-05-21T06:35:19
2019-05-21T06:35:19
175,780,457
0
1
MIT
2019-05-21T06:35:20
2019-03-15T08:35:54
HCL
UTF-8
Python
false
false
4,573
py
######################################################################## # # (C) 2015, Chris Houseknecht <[email protected]> # # This file is part of Ansible # # Ansible 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 Fo...
6bfbed10f2be00a9cd038e8db238272c5ddda73d
bb53e9883437a4df49da1f9646f67ee51f12c4ca
/merge_sort.py
9d3356371775d88de2d68e6af35b8005a6db0dd4
[]
no_license
petehwu/python_practice
513c2260bb7bc34072bd4dafe122e05dfb3baa4c
31817ec10bc9bddf6ee82400ca7045b5445c55fe
refs/heads/master
2020-05-24T03:26:11.915327
2019-07-17T14:47:11
2019-07-17T14:47:11
187,072,284
1
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
#!/Users/pwu/anaconda/bin/python3 """ shebang for linux #!/usr/bin/env python3 merge sort algo """ def ms(arr): """ entry point for merge sort """ print("before merge sort {}".format(arr)) rms(arr) print("after merge sort {}".format(arr)) def rms(arr): """ recursive function that keep splitt...
919286dee2cf3f64c831410581789a79c59e10e6
5689947a9648966a92e81bdd693b01ea9026b804
/archive/Arc.py
99c67dc806d9ac398ab86c5dbb5096f80f66b1f2
[]
no_license
Renneta/pyge
20c44eff9fbdfd01e86f41f23a95196d93d0d6b9
747dcbc0dce9890d85834c6d8bd64673a69c767a
refs/heads/master
2022-04-18T22:53:41.997075
2020-03-19T21:37:13
2020-03-19T21:37:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
import struct from archive import PygeArchive, GenericEntry # # (.arc) Tokoya, I/O # # unpack & repack seem to work and give the same filesize, data mod not tested # since all formats inside the archive are proprietary... # class Arc(PygeArchive): name = "Arc" desc = "Tokoya / I/O" sig = "\x01\x00\x00\x00...
153da44cc3daa2381d3adda32901329e35184805
fb5b204943101746daf897f6ff6e0a12985543c3
/tests/pytests/TestGeneratePoints.py
dcbdfc38cb2ced34da4be7681d7545850dfa7f66
[ "LicenseRef-scancode-warranty-disclaimer", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
baagaard-usgs/geomodelgrids
911a31ba23ca374be44873fdeb1e36a70ff25256
7d0db3c4ca1a83fea69ceb88f6ceec258928251a
refs/heads/main
2023-08-03T07:52:25.727039
2023-07-27T21:56:19
2023-07-27T21:56:19
97,262,677
5
3
NOASSERTION
2023-03-23T03:34:45
2017-07-14T18:34:38
C++
UTF-8
Python
false
false
3,722
py
# ====================================================================== # # Brad T. Aagaard # U.S. Geological Survey # # ====================================================================== # import unittest import numpy import sys sys.path.append("../../src/scripts...
b3eb279fad2d0fe6de009f53bebb90eff761ae81
8257985fb7d65bcbd47bb79e493b887679107c8f
/tensorflow/python/eager/backprop.py
ac88f18eba53de2654a2ba88c952cdafb801dd7e
[ "Apache-2.0" ]
permissive
nikky78/tensorflow
164dce12590ffa7621e5e616450461c912471dcf
bb2f2995db3838e8ab1420b0c766a9d18d40e894
refs/heads/master
2021-05-15T00:01:26.069092
2017-09-20T13:54:07
2017-09-20T13:54:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,500
py
# Copyright 2017 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...
032a2fb7a4854f6e6761f3e0df0d2ae69186634d
b627da650f75bdcf7e0dc0ef5c4419cf53a1d690
/src/zqh_core_common/zqh_core_common_wrapper_main.py
b481c38b1f21b225f1271790ddc02b7f95e55678
[]
no_license
Jusan-zyh/zqh_riscv
4aa8a4c51e19fb786ba0c2a120722f1382994a52
bccde2f81b42ac258b92c21bb450ec6ff848387a
refs/heads/main
2023-08-06T12:56:52.420302
2021-09-21T01:25:41
2021-09-21T01:25:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,130
py
import sys import os from phgl_imp import * from .zqh_core_common_wrapper_parameters import zqh_core_common_wrapper_parameter from .zqh_core_common_interrupts_bundles import zqh_core_common_interrupts from .zqh_core_common_wrapper_bundles import zqh_core_common_wrapper_driven_constants from zqh_common.zqh_transfer_size...
950bc09256b4ca649c9e26ad42137ffece622657
44f95e5df3ec15afacd1c35b1aba70764d1a453d
/Stock/Select/Ui/Basic/__init__.py
aed7e559eb66e05db33511388b818c33653d8c67
[ "MIT" ]
permissive
zsl3034669/DevilYuan
7e8965e4e4ebcf85df7ded1c0fba06487ad5f416
865c1650d3affdccd6926c6527d8c0271774bcc7
refs/heads/master
2020-04-12T02:02:23.457179
2018-12-16T09:26:03
2018-12-16T09:26:03
162,236,146
0
1
MIT
2018-12-18T05:43:32
2018-12-18T05:43:32
null
UTF-8
Python
false
false
344
py
import os from Stock import DynamicLoadStrategyFields # dynamically load strategies from Stock/Select/Strategy __pathList = os.path.dirname(__file__).split(os.path.sep) __stratgyPath = os.path.sep.join(__pathList[:-2] + ['Strategy']) DyStockSelectStrategyWidgetAutoFields = DynamicLoadStrategyFields(__stratgyPath, '...
755f30982641e346662accc54a3835916cc17054
5c2d3e808a354b4dd59cbad51f6fc4ef877a7d6b
/GUI/config-label.py
84325928bf3becafdc54461b8409d9491db3708f
[]
no_license
itaditya/fun_with_python
5e166b0f3d6805b53ddb2f291a18fa304894eeca
d9ea23784258184bff8215594cebb93168b47800
refs/heads/master
2021-07-09T18:54:23.964425
2017-09-30T19:26:33
2017-09-30T19:26:33
106,717,541
0
0
null
2017-10-12T16:23:44
2017-10-12T16:23:44
null
UTF-8
Python
false
false
277
py
from tkinter import * root = Tk() labelfont = ('times', 20, 'bold') widget = Label(root, text='Hello Config World') widget.config(bg='black', fg='yellow') widget.config(font=labelfont) widget.config(height=3, width=20) widget.pack(expand=YES, fill=BOTH) root.mainloop()
42a0eba8ac8d1f312f4125297e83edde3007972c
6147ed911274012be64eb02d88bff299808cab86
/初始化.py
bd1f96c59ae1bacfef8b0e4e7e6e865e0b83e9ba
[]
no_license
persontianshuang/toasin
6dec061afc5964118dac83d5060bb13d957a2a3b
62896fac5224301a32c096841d4b17ac53d9abe0
refs/heads/master
2021-07-02T22:14:47.836627
2017-09-25T03:07:59
2017-09-25T03:07:59
103,622,098
0
0
null
null
null
null
UTF-8
Python
false
false
1,600
py
from goods_url import get_url_page_list import pymongo import settings from bson.objectid import ObjectId MONGO_URI = '108.61.203.110' def pymg(highest,collections,port=MONGO_URI): client = pymongo.MongoClient(port, 29999) zhihu = client[highest] collections = zhihu[collections] return collections def...
b93acdccf694fa0412cdcf42545aba82cfd12e2d
5a281cb78335e06c631181720546f6876005d4e5
/blazar-3.0.0/api-ref/source/conf.py
c43a8e3a357451b498583d633bea74875af98c3a
[ "Apache-2.0" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
4,358
py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
[ "Wayne [email protected]" ]
1a8d03601b116c5ef6e0c7e118bbdcf64d820b1a
31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6
/language/old/python_modules/python_packages/viewing.py
5ff6a1d6cd4b0a4e542083160779a45b5320cf27
[]
no_license
tpt5cu/python-tutorial
6e25cf0b346b8182ebc8a921efb25db65f16c144
5998e86165a52889faf14133b5b0d7588d637be1
refs/heads/master
2022-11-28T16:58:51.648259
2020-07-23T02:20:37
2020-07-23T02:20:37
269,521,394
0
0
null
2020-06-05T03:23:51
2020-06-05T03:23:50
null
UTF-8
Python
false
false
1,409
py
# https://stackoverflow.com/questions/19048732/python-setup-py-develop-vs-install """ The package directory(s) for a given Python interpreter can be found by running "import site; site.getsitepackages()" in the Python repl. - The packages for the Homebrew installed Python 2.7 are located in /usr/local/lib/python2.7/s...
490876621066be76bba945e5210660cfea261a0f
acc3bfb8d0cdfbb0c762523b9923382570928ed1
/backend/home/migrations/0002_load_initial_data.py
246cb0d84c8cd64d6f9c084d7abc08e6b7d1861f
[]
no_license
crowdbotics-apps/my-art-23726
30266909ff78876c3cf0c1636c76ba23afd930a2
50d905b644c425ab4562d0d3bf6b1ccbae5c715f
refs/heads/master
2023-02-16T05:36:51.832504
2021-01-07T23:31:07
2021-01-07T23:31:07
327,746,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "My Art" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ho...
7246a0afae1a5c34c0079d8003d9a7db1e2cf1fb
a9b31181ad6f695a2809018167a52a6d9847c0df
/Chap05-funcoes-frutiferas/calcula_distancia.py
2cb5d81026a9883ad0c8fe37a508ad4b33a1480d
[]
no_license
frclasso/Aprendendo_computacao_com_Python
21cdecdebcdbafad35a48d8425d06e4ec2ba1259
40276f396c90d25b301e15e855942a607efd895b
refs/heads/master
2020-03-12T17:38:04.886153
2018-10-11T14:17:13
2018-10-11T14:17:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
#!/usr/bin/env python3 import math def distancia(x1, y1, x2, y2): dx = x2 - x1 dy = y2 - y1 # print(f'dx vale {dx}') # variveis temporarias # print(f'dy vale {dy}') dquadrado = dx**2 + dy**2 #print(f'dquadrado vale {dquadrado}') resultado = math.sqrt(dquadrado) return resultado #p...
d428c476d1c551f1c31af99d093bd82d685cc301
b4ca78134c296d8e03c39496bcc57369fd5f619b
/kubehub/vbox_api/vbox_functions/vbox_add_network_card.py
edd37f768155400ebc3714b5af1738bce351c1f8
[]
no_license
dedicatted/kubehub-backend
7f4b57033962f1ef8604a2cee0cf55bebd533ec9
3b944e462f5366b2dbad55063f325e4aa1b19b0e
refs/heads/master
2023-02-05T04:44:50.213133
2020-06-10T15:02:03
2020-06-10T15:02:03
236,169,121
1
1
null
2023-01-24T23:19:38
2020-01-25T12:45:32
Python
UTF-8
Python
false
false
311
py
from os import system def add_network_card(name, status): vbox_add_network_card_cmd = f'VBoxManage ' \ f'modifyvm {name} ' \ f'--ioapic {status}' vbox_add_network_card = system(vbox_add_network_card_cmd) return vbox_add_network_card
d720dd07de53b5a37525d7786c6e0a62bad54ac7
6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9
/Algorithm/Swea/D1_6216.py
0350d0efc1341066ab31e71c958e366af757fba5
[]
no_license
hongyong3/TIL
36d031c0da9e3e6db3eebb977bd3e12df00a849f
7f1492128e957a78fc95b255f4f7f2978161e471
refs/heads/master
2023-08-19T09:16:03.231757
2023-08-18T09:38:47
2023-08-18T09:38:47
162,100,258
1
0
null
2023-02-11T00:52:32
2018-12-17T08:42:42
Jupyter Notebook
UTF-8
Python
false
false
123
py
import sys sys.stdin = open("D1_6216_input.txt", "r") print("혼합된 소금물의 농도:", round(20 / 3, 2), end = "%")
7591c784b3bfe157d30268f0f4c827459b87451e
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/playground/cihan/x11/terminal/tilda/actions.py
6365c12bfaa653eb97e910517eb474fc4fc748e3
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2 # See the file http://www.gnu.org/copyleft/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools def setup(): autotools.configure("--with-x") def build(): autotools.make() def...