blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33b03bfe4606d07da07c3346d5d1ccfd40eca98f | d3efc82dfa61fb82e47c82d52c838b38b076084c | /crossmarketetf_bak/crossmarket_redemption_HA/YW_CETFSS_SHSH_037.py | b5b26bedf5acb5c58983fc121c0293984c3daf9e | [] | 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 | 6,499 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test")
from crossmarketetf.cetfservice.cetf_main_service import *
from crossmarketetf.cetfservice.cetf_get_components_asset import *
from crossmarketetf.cetfservice.cetf_utils import *
from mysql.QueryOrderErrorMsg import q... | [
"[email protected]"
] | |
0b3171a0d71ffcfd3d3b577218d0ac08ae5273f7 | b01d5af63ae060b3b4b1a715823722e0e2cde603 | /tensorflow_graphics/nn/layer/tests/pointnet_test.py | d5a6a3b51085aa29b0bee419989d7efc2848ef79 | [
"Apache-2.0"
] | permissive | ghosalsattam/graphics | 9c8b313def86d4629281e9c53e0cb261703336f5 | 946aa03b5178d2fc557a81045b84df24af322afd | refs/heads/master | 2022-12-06T15:42:21.729897 | 2020-06-25T14:37:26 | 2020-06-25T14:37:51 | 276,175,390 | 0 | 0 | Apache-2.0 | 2020-06-30T18:13:34 | 2020-06-30T18:13:33 | null | UTF-8 | Python | false | false | 3,553 | py | # Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"[email protected]"
] | |
fbcc8dc57d65876cb88bbb56654d802ff47535ab | ef74d9ad851021bcb0ed12880e14269b6ed7f617 | /Sample/Koudai/Server/src/ZyGames.Tianjiexing.Server/PyScript/Action/action4408.py | c30f2afc099f329d04a422f45a419fb2d45cb810 | [
"BSD-2-Clause-Views",
"MIT"
] | permissive | sunyuping/Scut | b5e5798e9b519941f0ac3a08a3263dc0f45beb47 | ec2ea35c0e4de1f2da49c50d14e119a4f17cd93a | refs/heads/master | 2020-12-25T23:19:26.597830 | 2013-11-16T07:50:01 | 2013-11-16T07:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import clr, sys
import random
import time
import datetime
clr.AddReference('ZyGames.Framework.Common');
clr.AddReference('ZyGames.Framework');
clr.AddReference('ZyGames.Framework.Game');
clr.AddReference('ZyGames.Tianjiexing.Model');
clr.AddReference('ZyGames.Tianjiexing.BLL');
clr.AddReference('ZyGames.Tianjiexing.La... | [
"[email protected]"
] | |
81fb43984df719ac0a69586774519e26f244c066 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scattersmith/marker/_colorsrc.py | 1d2e5dccad1b68311d62023efc16f4abcdc15182 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 423 | py | import _plotly_utils.basevalidators
class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self, plotly_name="colorsrc", parent_name="scattersmith.marker", **kwargs
):
super(ColorsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | [
"[email protected]"
] | |
5157862865c047a3f71dfc3861aa683a3ee01433 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch18_2020_03_24_20_25_22_823016.py | 2c9bee710b1b30509eed5988debf9eecc529908b | [] | 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 | 180 | py | def verifica_idade(idade):
if idade<21 and idade>=18:
return "Liberado BRASIL"
if idade>=21:
return "Liberado EUA e BRASIL"
else:
return "Não está liberado" | [
"[email protected]"
] | |
387c0b0af55a652c79e797fdd431a9df93bc9ad1 | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0840. Magic Squares In Grid.py | f34d8b33065ffacf2d06e6948cd16d845b526b6e | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | class Solution:
def numMagicSquaresInside(self, grid: List[List[int]]) -> int:
m = len(grid)
n = len(grid[0])
res = 0
for i in range(1,m-1):
for j in range(1,n-1):
if grid[i][j] == 5:
s = set([grid[x][y] for x in range(i-1,i+2) for y i... | [
"[email protected]"
] | |
8ad5873a652011eb278d4990e7ab0deaaa16d6d5 | fa0c53ac2a91409eaf0fc7c082a40caae3ffa0d8 | /com/lc/python_1_100_Days_Demo/Day41-55/code/oa/hrs/migrations/0002_auto_20180523_0923.py | 8b9b835a5b6e204d799a71659938b8b97db8597e | [] | no_license | ahviplc/pythonLCDemo | aba6d8deb1e766841461bd772560d1d50450057b | 22f149600dcfd4d769e9f74f1f12e3c3564e88c2 | refs/heads/master | 2023-07-24T01:41:59.791913 | 2023-07-07T02:32:45 | 2023-07-07T02:32:45 | 135,969,516 | 7 | 2 | null | 2023-02-02T03:24:14 | 2018-06-04T04:12:49 | Python | UTF-8 | Python | false | false | 1,309 | py | # Generated by Django 2.0.5 on 2018-05-23 01:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hrs', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='dept',
name='excellent',
field=... | [
"[email protected]"
] | |
8947aacd51a8e5f7d74271633434aedd17340366 | 85ef27cfe69bf8f4c65ecf4a382742984d91ae12 | /Python/Programs/count_letters.py | 2fe480f4ae66114923b5425db6a3b01a6754c3cf | [] | no_license | SenthilKumar009/100DaysOfCode-DataScience | 7fc0d404e486b2aa1da3a242def0a307fec50f47 | dd2d44363960c9078b73956b6587961de0185f16 | refs/heads/master | 2023-07-17T04:38:21.404964 | 2021-08-27T12:56:55 | 2021-08-27T12:56:55 | 191,664,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | message = 'It was a bright cold day in April, and the clocks were striking thirteen.'
count = {}
for character in message:
count.setdefault(character, 0)
count[character] = count[character] + 1
print(count) | [
"[email protected]"
] | |
f6b2bb05fba8fa4a5e097c7a3e7a8c1d6f174bb5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/966bacf76c3a1f815c5fe55cee798dee/snippet.py | cb3ed3fe07ada127bc9b67fa2db937d98cc30bc7 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 378 | py | class globalizer():
def __init__(self):
global a
a = self #global self formbidden bcs self is an ARGUMENT
cloud = globalizer()
if __name__ == '__main__':
cloud.nbr = 1
cloud.string = 'Hello World'
def randFunction():
for i in range(cloud.nbr):
print(cloud.strin... | [
"[email protected]"
] | |
19c45d471ccab8ab75f519647a61c26064197ab5 | 496a63f41fa32e2bb3ecce0d35ff4374f1c02ad5 | /src/scripting/assembly/ge.py | f933b8eb895afe1b368c3d8c5beefca223b82b18 | [
"BSD-3-Clause"
] | permissive | vincent-lg/avenew.one | bbfa8d44e68db943b8825e9d4a32a43e985778fe | fb7f98d331e47e2032ee1e51bf3e4b2592807fdf | refs/heads/main | 2023-02-14T00:28:53.511552 | 2021-01-13T11:13:07 | 2021-01-13T11:13:07 | 330,207,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | # Copyright (c) 2020-20201, LE GOFF Vincent
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions... | [
"[email protected]"
] | |
6a63bb8312a5cd8e61b833f01e14539cb8da6134 | 088e000eb5f16e6d0d56c19833b37de4e67d1097 | /model-optimizer/extensions/ops/interpolate.py | 36f96e35ce8a854d22ae2d4a4234e40536375d2b | [
"Apache-2.0"
] | permissive | projectceladon/dldt | 614ba719a428cbb46d64ab8d1e845ac25e85a53e | ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf | refs/heads/2019 | 2022-11-24T10:22:34.693033 | 2019-08-09T16:02:42 | 2019-08-09T16:02:42 | 204,383,002 | 1 | 1 | Apache-2.0 | 2022-11-22T04:06:09 | 2019-08-26T02:48:52 | C++ | UTF-8 | Python | false | false | 2,543 | py | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | [
"[email protected]"
] | |
b0efa79ff67011699b40d07b9eb872a0596d4486 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/188/56925/submittedfiles/lista1.py | 3ae36f6760785e4cd08b91fcf70529b819f30e26 | [] | 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 | 155 | py | # -*- coding: utf-8 -*-
lista=[]
n=int(input('Digite n:'))
for i in range (1,n+1,1):
valor=float(input('Valor:'))
lista.append(valor)
print(lista)
| [
"[email protected]"
] | |
29aa09304badbc52a5f19a16218b19920f47ee59 | 10af7a7c08e2d8c630f115a7f1c89dc9a2c0c007 | /0437_pathSum.py | ac2d79c9e3aa80043576026113c614918875db5d | [] | no_license | mathvolcano/leetcode | 4218846652a8d73192d74cbf83f5a92549236568 | 2682cc975ec299d9253aa191b5453669dd1ebd58 | refs/heads/master | 2022-11-27T22:47:49.700110 | 2022-11-08T18:11:27 | 2022-11-08T18:11:27 | 154,909,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | """
437. Path Sum III
https://leetcode.com/problems/path-sum-iii/
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def pathSum(self, root: TreeNode, pat... | [
"[email protected]"
] | |
880ebf9230daad74995329f1a250ec1834803007 | 1588a1d601d29c18942d220657185d3bf7b17160 | /시뮬레이션/BOJ1966.py | f8f06358c959b96afa8efb9434aea0aa231e353b | [] | no_license | geonwoomun/AlgorithmStudy | 1f8148e981beebd2e6f70e65193ce445fa59df96 | d43b624aad80f10d687a8f4b37cc79d88fc772b3 | refs/heads/master | 2020-08-01T05:24:26.980370 | 2020-07-15T05:04:35 | 2020-07-15T05:04:35 | 210,878,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # BOJ 1966번 프린터 큐
from sys import stdin
input = stdin.readline
T = int(input())
while T > 0 :
N, M = map(int, input().split()) # N 개수 M 위치
paper = list(map(int, input().split()))
check = [i for i in range(N)]
count = 0
while 1:
maxPaper = max(paper)
temp = paper.pop(0)
temp... | [
"[email protected]"
] | |
8930a0c2a06c0c47f689a2c208024783fa6de8f4 | 769f08657e880c4b1cc085dd77277c6eef8772e5 | /pep412.py | 9d69fb239b7d2c34d02bda047e6e781adb4dd5ec | [] | no_license | udemy-course/python3-new-feature | 106160389ebf70e13a5c2bce158fbc32d4979fc9 | b6b482bc4acffb9bf168dc9f494f28179357934c | refs/heads/master | 2020-03-23T03:26:29.954700 | 2018-08-23T13:37:40 | 2018-08-23T13:37:40 | 141,030,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | """
pep412.py
Created by Peng Xiao on 2018-08-10. [email protected]
"""
import time
class Foo:
def __init__(self, a, b):
self.a = a
self.b = b
if __name__ == "__main__":
n = 1000000
i = 0
result = []
while i < n:
result.append(Foo(1,2))
i += 1
while True:
... | [
"[email protected]"
] | |
9fedf7c194fd4216199fea7f3daae1bf67c19c59 | 62c20237dbc12a49849bc6533e5e386bc6a26cf6 | /app.py | 4234d25f12c085e1b347a75fbf2b2881d1665eb2 | [] | no_license | yhx189/api-server | 03ef3b70c5734442c90dc8b118920237616da072 | d96cfc2d437ff2b540e355ae363003629d23a1f1 | refs/heads/master | 2021-01-10T01:15:23.539890 | 2016-01-21T00:53:18 | 2016-01-21T00:53:18 | 50,071,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,414 | py | #!flask/bin/python
import socket
import subprocess
from flask import Flask, jsonify, abort, request, make_response, url_for
app = Flask(__name__, static_url_path = "")
#app = Flask(__name__)
@app.errorhandler(400)
def not_found(error):
return make_response(jsonify( { 'error': 'Bad request' } ), 400)
@app.errorha... | [
"ubuntu@ubuntu.(none)"
] | ubuntu@ubuntu.(none) |
09c129b6cd1a837099b4b2c25784a3808389e94e | eafe15761be5f857d5b756eafc9446fc375aba66 | /video/migrations/0002_auto_20200216_1749.py | 2c6e5d422dc6f2c4f631513f1d9151a4b2a1e24c | [] | no_license | biletboh/tempora | 6ff10995e7eacae8b2ac95b1dfb785749949670b | cec40ad8719d03e5c1d83320c38f78d3e0338687 | refs/heads/master | 2023-05-25T21:23:09.466591 | 2022-02-09T10:10:58 | 2022-02-09T10:10:58 | 92,310,550 | 0 | 0 | null | 2023-05-22T20:57:13 | 2017-05-24T15:56:23 | HTML | UTF-8 | Python | false | false | 507 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2020-02-16 15:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('video', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"[email protected]"
] | |
6bece771f9246166f9a70f04cf16afe1303fb78c | fc0cc698686f4b17aafe42360dac81357bcb183e | /docimage/preprocessing.py | a2d90ef4b101fa2335edaf0ef786be4c5104e6e4 | [
"MIT"
] | permissive | Abhishek-Prusty/docimage | 7b7bef669b3a5e03b170fed4c9f340af9e103fe7 | c29f9a2634e6f807b108cd4237783be22baea307 | refs/heads/master | 2020-03-22T13:52:45.381192 | 2018-08-16T17:16:57 | 2018-08-16T17:16:57 | 140,138,183 | 2 | 0 | MIT | 2018-08-11T09:59:15 | 2018-07-08T04:48:38 | Python | UTF-8 | Python | false | false | 6,980 | py | # -*- coding: utf-8 -*-
"""
pre-processing and pattern matching.
This python module can perform the following functions:
1. Binarization - method binary_img(img) performs this function
2. Skew correction - method skew_correction(img) performs this function
Need to introduce machine learning of some sort to make the ske... | [
"[email protected]"
] | |
4aa5f2afb04c078af8ed9f1cb0036c1589a50253 | 4012f290d83ae7f4c09d7440f26d2acd7e63efbe | /1173.py | 84b870ec4827293d81d8ffc5b50fe0a1e8918e42 | [] | no_license | jinaur/codeup | ffc2d0fdf73892c1f46d80021ad8f4c1293c9e2e | 5f75ace909e2b3151171932cc3ee9f3c49dd46d9 | refs/heads/master | 2023-04-15T07:42:06.244806 | 2021-04-25T13:59:42 | 2021-04-25T13:59:42 | 277,760,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | a, b = map(int, input().split())
def my_func(a, b) :
if b < 30 and a == 0 :
a = 23
b += 30
print(a, b)
return
elif b < 30 :
a -= 1
b += 30
print(a, b)
return
b -= 30
print(a, b)
return
r = my_func(a, b)
| [
"[email protected]"
] | |
4f69ae38888dca5bfa8b94ef6888374f34854149 | cb3634622480f918540ff3ff38c96990a1926fda | /PyProject/sparkproject/rdd/pairRdd/transformations/reduceByKey.py | 513009ff5dc829627635a3d07fae951f883b828a | [] | no_license | jacksonyoudi/AlgorithmCode | cab2e13cd148354dd50a0487667d38c25bb1fd9b | 216299d43ee3d179c11d8ca0783ae16e2f6d7c88 | refs/heads/master | 2023-04-28T07:38:07.423138 | 2022-10-23T12:45:01 | 2022-10-23T12:45:01 | 248,993,623 | 3 | 0 | null | 2023-04-21T20:44:40 | 2020-03-21T14:32:15 | Go | UTF-8 | Python | false | false | 393 | py | # coding: Utf-8
from pyspark import SparkConf, SparkContext
if __name__ == '__main__':
conf = SparkConf().setAppName("rdd").setMaster("local[*]")
sc = SparkContext(conf=conf)
a = ["a", "a", "c", "d", "d", "c", "e"]
b = [1, 2, 3, 4, 1, 3, 7]
data = list(zip(a, b))
disData = sc.parallelize(data... | [
"[email protected]"
] | |
e402fa1c2ce544c37f3d20d570e1726d78557508 | d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c | /tests/test_analyzer/test_subclasses/test_flop_tensor.py | 4e9c9852649ba593d37e20f9a9a414fd2a2a04f4 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | hpcaitech/ColossalAI | a082ed08a3807b53c49d1f86835b9808590d9042 | c7b60f75470f067d1342705708810a660eabd684 | refs/heads/main | 2023-09-01T04:13:13.834565 | 2023-08-30T15:07:21 | 2023-08-30T15:07:21 | 422,274,596 | 32,044 | 4,084 | Apache-2.0 | 2023-09-14T15:19:54 | 2021-10-28T16:19:44 | Python | UTF-8 | Python | false | false | 1,925 | py | import pytest
import torch
import torch.nn.functional as F
import torchvision.models as tm
from packaging import version
from colossalai.testing import clear_cache_before_run, parameterize
from tests.test_analyzer.test_fx.zoo import tm_models, tmm_models
try:
from colossalai._analyzer._subclasses import MetaTenso... | [
"[email protected]"
] | |
310a3e2b195bd96ba7d266f470ce7bf23891162a | 5210993914691c70076be979aa5c57c33d5d3bc4 | /Programming101-3/Week_1/The_Final_Round/unique_words_count.py | daf32bc0de62796c448ac4f7695c67a3dea43851 | [] | no_license | presian/HackBulgaria | d29f84ab7edc85a4d8dfbf055def7d0be783539e | 8bc95bb31daeb1f5a313d25b928f505013f5f0b0 | refs/heads/master | 2021-01-10T04:38:05.759005 | 2015-10-15T07:05:21 | 2015-10-15T07:05:21 | 36,889,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def unique_words_count(arr):
return len({x for x in arr})
def main():
print(unique_words_count(["apple", "banana", "apple", "pie"]))
print(unique_words_count(["python", "python", "python", "ruby"]))
print(unique_words_count(["HELLO!"] * 10))
if __name__ == '__main__':
main()
| [
"[email protected]"
] | |
3332366bee34f0fc8461908bc0793a908fe55b86 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/purview/azext_purview/manual/_help.py | 0508662c698375e3bf665656ff64d7a2955da878 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 5,143 | py | # --------------------------------------------------------------------------
# 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 cause incor... | [
"[email protected]"
] | |
4553cecf9a964d9436652c40173f996ef96764d9 | 3b981dfc835d36eb9bb86e4dbb0b1e332285d5cf | /nkcomments/tests.py | a18b4126c658b2f908cb0544717e797b4646133b | [] | no_license | richraines/nuortenideat | d9ad5ff33e4231c7f9960b9e1a54be16395173a2 | 033f63575c52ce118f0deba1168afca743de6c26 | refs/heads/master | 2020-09-01T01:39:39.137935 | 2016-10-31T14:24:59 | 2016-10-31T14:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,945 | py | # coding=utf-8
from __future__ import unicode_literals
from django.contrib.contenttypes.models import ContentType
from account.factories import UserFactory, DEFAULT_PASSWORD
from content.factories import IdeaFactory
from content.models import Idea
from nuka.test.testcases import TestCase
from .factories import Cust... | [
"[email protected]"
] | |
b5502ff8609f59db993800579ab69261e4b48e43 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02887/s396715066.py | 5b052e1ae14ff4d5ca6061b10c85c914d5c652a3 | [] | 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 | 148 | py | n = int(input())
s = input()
ans = 0
i = 0
while i < n:
ans += 1
while i + 1 < n and s[i] == s[i + 1]:
i += 1
i += 1
print(ans)
| [
"[email protected]"
] | |
7cacc1bab1526fbce224cf19ba5f0e8b7d08435c | 8b0cf90774310723282c525a491d0df5ccdbaddc | /blog3/apps/articles/urls.py | dcfde7c9c4fe4f3e8d0bd47fc031969a95517c81 | [] | no_license | LIMr1209/django-practive | 13d0b1a02761010643405b8233bc2b1c1ebf8622 | deb01dac652cda7ef7117d3ecef3546092cef97c | refs/heads/master | 2020-03-24T06:16:58.839185 | 2018-08-19T06:25:45 | 2018-08-19T06:25:45 | 142,522,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """blog3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"[email protected]"
] | |
0b2cf2939ef3f48228585318267019e47b06095b | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/addons/hr_holidays/hr_department.py | 7d85f388aed16347ff5c1459fc3ae78817e442c2 | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | # -*- coding: utf-8 -*-
import datetime
from dateutil.relativedelta import relativedelta
from yuancloud import api, fields, models
from yuancloud.tools import DEFAULT_SERVER_DATETIME_FORMAT
class hr_department(models.Model):
_inherit = 'hr.department'
@api.multi
def _compute_leave_count(self):
H... | [
"[email protected]"
] | |
7c3c0c5a5449b05da0d3b2c0e20af4bdc954d868 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/13506401.py | 2ee175731dd094ef713916c24d807afb652a3e37 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/13506401.py generated: Wed, 25 Jan 2017 15:25:23
#
# Event Type: 13506401
#
# ASCII decay Descriptor: [B_s0 -> (tau+ -> pi+ pi- pi+ (pi0 -> gamma gamma) anti-nu_tau) (tau- -> pi+ pi- pi- (pi0 -> gamma gamma) nu_tau)]cc
#
from Configurables import Gener... | [
"[email protected]"
] | |
47f25718bc8fa8fde5832344631f295bcac6eb3e | 230b7714d61bbbc9a75dd9adc487706dffbf301e | /tools/binary_size/libsupersize/diff_test.py | 93ded263b681ff5749aee9d022c882345bbc8fc3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"MIT",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.0-only",
"APSL-2.0",
"LicenseRef-scancode-unknown",
"Zlib"
] | permissive | byte4byte/cloudretro | efe4f8275f267e553ba82068c91ed801d02637a7 | 4d6e047d4726c1d3d1d119dfb55c8b0f29f6b39a | refs/heads/master | 2023-02-22T02:59:29.357795 | 2021-01-25T02:32:24 | 2021-01-25T02:32:24 | 197,294,750 | 1 | 2 | BSD-3-Clause | 2019-09-11T19:35:45 | 2019-07-17T01:48:48 | null | UTF-8 | Python | false | false | 7,313 | py | #!/usr/bin/env python
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import diff
import models
def _MakeSym(section, size, path, name=None):
if name is None:
# Trailing letter is ... | [
"[email protected]"
] | |
09b6e86dc545020ba63dfe09f0a5961ed2def2ff | 028274f08da4c616ccc1362df390dcfe58131fc6 | /DS_Management_Tools/TaskController/EESMap/__init__.py | dad1405df121f6c10a6267c6a2520494f8e5c7f4 | [] | no_license | PyWilhelm/EDRIS_DS | 8a5430515bfc7e11abf846126f4fa2388ff59dd9 | cc0179495d8874ff5a95fd08d833388f434e1d87 | refs/heads/master | 2021-01-17T00:43:01.560668 | 2016-07-23T10:50:09 | 2016-07-23T10:50:09 | 64,011,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
from TaskController.SPS.MetataskOverriderSPS import MetataskOverriderSPS
from TaskController.BaseClass.Controller import Controller
from TaskController.PISystem import PostProcessing
def start_controller(tid, input_data, session={}, controller=None,... | [
"[email protected]"
] | |
db727ffa84eef94dfc2beca0189cb6f147dd7d5b | 065191d9e09ecda3966d96770d166371bcbba515 | /troposphere/helpers/meta.py | 0d96a8ed25a18bfb7ede095d1f80e67aa001fa12 | [
"MIT"
] | permissive | sabakaio/docker-registry | 2da96e14c1a7f1d50a7998e355b6980617ce0355 | 720a800e5f7f02ff1ec5d9b1d559a2dd6114f7f1 | refs/heads/master | 2020-04-10T13:30:10.923260 | 2016-12-13T16:24:26 | 2016-12-13T16:30:32 | 61,976,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,225 | py | from troposphere import Ref, Base64, Join
from troposphere import cloudformation as cf, ec2, autoscaling as au
def docker():
return cf.InitConfig(
'Docker',
packages={'yum': {'docker': []}},
commands={
'docker_user': {
'command': 'usermod -aG docker ec2-user'
... | [
"[email protected]"
] | |
0db997ac3b71508a9edbdb5eb3f6387a318c9d51 | 2b8e7eadb920e96c75697880a9c5461aa8e0c5ed | /nabu/neuralnetworks/components/__init__.py | a5db902e5340481df5b5861383c42f9afb4ac971 | [
"MIT"
] | permissive | ishandutta2007/nabu | fb963ed3cd34ee340014e0c1e77927c838bba0ad | 313018a46f68cec1d4a7eb15b8b1cf68111a959c | refs/heads/master | 2020-04-03T04:57:57.911576 | 2018-12-14T11:02:52 | 2018-12-14T11:02:52 | 155,029,958 | 0 | 0 | MIT | 2018-12-06T18:20:12 | 2018-10-28T02:59:31 | Python | UTF-8 | Python | false | false | 146 | py | '''@package components
contains tensorflow components'''
from . import hooks, ops, rnn_cell, layer, beam_search_decoder, constraints,\
attention
| [
"[email protected]"
] | |
17e7706740822fc7a717ced217bcdb8f7770aece | e0db13bc8113fb7b383d0a8d09e09686668e2fb4 | /Data-Structures-and-Algorithms/Big-O-Notations.py | bdb3512128e595a28ba98d081d46d63601c547a3 | [] | no_license | nirmalnishant645/Python-Programming | dd66acd665af8933fa14b19d01300deb1eccbb7d | 70e97e6f35f125acfde3b38e1baa794a357b8a77 | refs/heads/master | 2022-06-03T12:41:56.483000 | 2022-05-12T10:54:59 | 2022-05-12T10:54:59 | 151,211,590 | 3 | 5 | null | 2020-02-12T05:48:59 | 2018-10-02T06:44:54 | HTML | UTF-8 | Python | false | false | 516 | py | from math import log
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('bmh')
# Set up runtime comparisons
n = np.linspace(1,10,1000)
labels = ['Constant','Logarithmic','Linear','Log Linear','Quadratic','Cubic','Exponential']
big_o = [np.ones(n.shape),np.log(n),n,n*np.log(n),n**2,n**3,2**n]
# Plot set... | [
"[email protected]"
] | |
849332128a1f20ddebff18d4d7d8abafa1b75de5 | fdcb2cdee4d5b398eed4eefc830213234e3e83a5 | /01_MIT_Learning/00_midterm/P4.py | 8b625a8f64d442a8f758fb47ab1f6f2a52939a51 | [] | no_license | daftstar/learn_python | be1bbfd8d7ea6b9be8407a30ca47baa7075c0d4b | 4e8727154a24c7a1d05361a559a997c8d076480d | refs/heads/master | 2021-01-20T08:53:29.817701 | 2018-01-15T22:21:02 | 2018-01-15T22:21:02 | 90,194,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | # PROBLEM 4
# Write a function is_triangular that meets the
# specification below.
"""
A triangular number is a number obtained by the continued
summation of integers starting from 1.
For example, 1, 1+2, 1+2+3, 1+2+3+4, etc.,
corresponding to 1, 3, 6, 10, etc., are triangular numbers.
"""
def is_triangular(k):
... | [
"[email protected]"
] | |
1c93cded721204389639d3cabae1b862853c3694 | 53a3c329e6f0860e840babf19e12452e94c30e39 | /scripts/gain_stats.py | ca1ee1fea01ba14ec2b2c538c37a6fc3a66bc37b | [] | no_license | galabing/qd | 60c2602f0deaae808b519c796b24063839766071 | 9ece034832167de958ec8a56da081ab75916684d | refs/heads/master | 2020-12-26T04:38:26.187729 | 2015-06-15T21:20:20 | 2015-06-15T21:20:20 | 34,972,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | #!/usr/bin/python
ticker_file = '/Users/lnyang/lab/qd/data/tickers'
gain_dir = '/Users/lnyang/lab/qd/data/tmp/gains10/12'
min_date = '2004-01-01'
max_date = '9999-99-99'
with open(ticker_file, 'r') as fp:
tickers = sorted(fp.read().splitlines())
print 'processing %d tickers' % len(tickers)
stats = dict() # y => ... | [
"[email protected]"
] | |
f2ff6a97ff2a03d6a5c101fff002e306e7e6f9a0 | 65b69f075fd0e57d8409561087f2366f8a60bab3 | /rieapie/trickery.py | 2e18a5467a15a7884a202d8850e35b488e2bf501 | [
"MIT"
] | permissive | alisaifee/rieapie | d7e74adf8208012e00f81a5bd0a7d4232a2cde67 | a480c09f476867a259a2b1468f5c942897cd2d3d | refs/heads/master | 2023-08-10T04:07:56.319117 | 2013-12-01T02:28:41 | 2013-12-01T02:28:41 | 11,880,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | import requests
import logging
import functools
import inspect
import json
GET = "GET"
PUT = "PUT"
POST = "POST"
DELETE = "DELETE"
class Component(object):
def __init__(self, name, api_object, parent=None):
self.name = str(name)
self.parent = parent
self.api_object = api_object
def _... | [
"[email protected]"
] | |
e6f9ad93c38b7186f4e1bc7fbce807810f34015d | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Fisher/trend_PolyTrend/cycle_5/ar_/test_artificial_32_Fisher_PolyTrend_5__20.py | a843775b068feeaffba3bdedfbb078ee85d324f6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 265 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"[email protected]"
] | |
9109e0a345c4b5dbe1c74ecc0b5f1c67bc8afc0a | 93a7db386dfa0ac0dc369cc7f4b974224c801d8d | /deploy/dot-product/scripts/main-47.py | d0fa56eb54e5acb7e99d402afe69b29b3ad86d95 | [] | no_license | lingxiao/good-great-combo | e051f20c89b7317a14ca5cee357bda7b095ce174 | 4d2691866bc21e2c542354ad3aae6f369eb86c87 | refs/heads/master | 2021-01-19T19:30:43.391759 | 2017-04-09T12:35:15 | 2017-04-09T12:35:15 | 83,699,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | ############################################################
# Module : A series of measures on the graph for experiments
# Date : April 2nd, 2017
# Author : Xiao Ling
############################################################
import os
import numpy as np
from utils import *
from scripts import *
from app.co... | [
"[email protected]"
] | |
a18fc841ab746e31eab0bde79ff593d39f6893cd | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/utils/javascript/javascript_bundler.py | 6016adb05301df6dc69f51f5715640f911d2aec2 | [
"PostgreSQL",
"MIT"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 1,663 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import os
from co... | [
"[email protected]"
] | |
a9139035aaa678ebf9365d927a8a6fff7b6545f3 | 66c3eb5a49b6b674e72ffeac00a221f16e224806 | /HC_At_Test/PO/pageobject/betgame_page.py | 4e4c4aa91e294bce27fe6559be1fd9845eeed4da | [] | no_license | fan966/LX_AT_TEST | 20ad5793ef9ab6fe9070d046935b90450321ff0b | 7e95a399140567ff601205f8d83babbe56279ab6 | refs/heads/master | 2022-12-31T15:11:04.972185 | 2020-10-23T11:58:46 | 2020-10-23T11:58:46 | 258,690,216 | 0 | 1 | null | 2020-04-26T07:00:43 | 2020-04-25T04:53:19 | Python | UTF-8 | Python | false | false | 952 | py | # -*-coding:utf-8-*-
from selenium.webdriver.common.by import By
class BetPageLocator(object):
"""
下注页面公共部分元素定位信息
"""
# 投注倒计时
hc_game_time = (By.XPATH, r'//ul[contains(@class ,"flip")]')
tty_game_time = (By.XPATH, r'//div[@class="alert-box"]')
# 停售
div_stop_selling = (By.ID, 'stopSel... | [
"[email protected]"
] | |
e4b4376cf120624cd187c64a050c710037607475 | 538fd58e4f7d0d094fd6c93ba1d23f78a781c270 | /689_max_sum_of_3_non_overlap_subarrays/test_solution.py | fc67ba8effb08041b9071ff7807d540305bb207a | [] | no_license | FluffyFu/Leetcode | 4633e9e91e493dfc01785fd379ab9f0788726ac1 | 5625e6396b746255f3343253c75447ead95879c7 | refs/heads/master | 2023-03-21T08:47:51.863360 | 2021-03-06T21:36:43 | 2021-03-06T21:36:43 | 295,880,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from solution import max_non_overlap
import pudb
def test():
nums = [1, 2, 1, 2, 6, 7, 5, 1]
k = 2
res = max_non_overlap(nums, k)
assert [0, 3, 5] == res
| [
"[email protected]"
] | |
d4d7fc69db45b2bd9d71d42ba91520dc5d575626 | 7d07c037dbd2fbfce960c7a63debe1cb3d5f1a8a | /api/apps/predictions/tests/views/test_tide_windows.py | 3dbb0d868779e043bd779a4bbc7feb1045058611 | [] | no_license | sealevelresearch-jenkins/sea-level-api | 2fcbf309fa7388514ddf8bf9bd520f5681775939 | 382cf4d1b6981f4120d8add6d79a53493b911e24 | refs/heads/master | 2020-12-25T05:19:21.904701 | 2014-06-25T11:44:26 | 2014-06-25T11:44:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,838 | py | import datetime
import json
import pytz
from django.test import TestCase
from nose.tools import assert_equal, assert_in
from nose.plugins.skip import SkipTest
from api.apps.predictions.models import Prediction
from api.apps.locations.models import Location
class TestTideWindowsView(TestCase):
fixtures = [
... | [
"[email protected]"
] | |
1e7d8fb610baf2fe9c8bbfdb8ef02faabb5e813c | 72cbe74acc97c445553d4e4468de5b491a0e7af3 | /id3wr.py | 77b939ac785d0df645b0a90745b4952685cafe5c | [] | no_license | acadien/xrdAnalysis | e1989d2b917bcbf21a2e8cf7006082aa8fe071b0 | c05beab696d7ebd5dd80d6a4ce50810a3ee65682 | refs/heads/master | 2021-01-10T21:33:15.352168 | 2015-05-19T18:21:55 | 2015-05-19T18:21:55 | 35,900,206 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | #!/usr/bin/python
import os
import re
from ID3 import *
path='./'
dirlist=os.listdir(path)
pardir=os.getcwd()
album=re.search(r'(/[\w,\s]+)+',pardir)
album=album.group(1).lstrip('/')
for fname in dirlist:
try:
m = re.search('(\d\d)-(\w+)-(\w+)_www\.file',fname)
id3info = ID3(fname)
except:
... | [
"[email protected]"
] | |
293f5b32b2b42456464676d82eb4d9157e70b078 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/Lib/ctypes/test/test_integers.py | 3167244d8935295055bdcead94ecc8b9cd4c6a32 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 428 | py | # 2017.02.03 21:57:48 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_integers.py
import unittest
if __name__ == '__main__':
unittest.main()
# okay decompyling c:\Users\PC\wotsources\files\originals\res\packages\scripts\scripts\common\Lib\ctypes\test\test_integers.pyc
# decompi... | [
"[email protected]"
] | |
a010e185bf8e52e2f22af54c3a9fdcb3c419e547 | b61dedf12868e2bc511b6693af1985911a13f336 | /src/logpipe/formats/pickle.py | 2dfea0f71f0be7e298f161b03f7014c150a64290 | [
"ISC"
] | permissive | vitorcarmovieira/django-logpipe | f9eebb6674b9ba180a63448c9d71ce2e87929f7c | 89d0543e341518f9ae49124c354e6a6c2e3f4150 | refs/heads/main | 2023-03-03T13:18:22.456270 | 2021-02-13T17:29:32 | 2021-02-13T17:29:32 | 326,679,534 | 1 | 1 | ISC | 2021-02-13T17:29:32 | 2021-01-04T12:39:30 | Python | UTF-8 | Python | false | false | 562 | py | from rest_framework import renderers, parsers
import pickle
class PickleRenderer(renderers.BaseRenderer):
media_type = 'application/python-pickle'
format = 'pickle'
charset = None
render_style = 'binary'
def render(self, data, media_type=None, renderer_context=None):
return pickle.dumps(d... | [
"[email protected]"
] | |
787ab2f450dbb132be7a57a5e36ccf3341ec5e94 | 6c9912ab5ff000cc9f489248de2f2687f61cac1a | /rrc/settings/prod.py | dcf462a3fa98c8ff0c7954e3e75f1577139baf02 | [
"MIT"
] | permissive | rocky-roll-call/rrc-backend | ed047457d4eae730168a109584c56389c4c01c09 | 02e8e11c3dab7661e48650e2e861a4a97788a4ce | refs/heads/master | 2020-04-28T14:26:24.623336 | 2019-12-30T04:11:20 | 2019-12-30T04:11:20 | 175,338,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
Production Settings
"""
from decouple import config, Csv
from dj_database_url import parse as db_url
from rrc.settings.dev import *
DATABASES = {"default": config("DATABASE_URL", cast=db_url)}
DEBUG = config("SECRET_KEY")
SECRET_KEY = config("SECRET_KEY")
ALLOWED_HOSTS = config("ALLOWED_HOSTS", cast=Csv())
JW... | [
"[email protected]"
] | |
c6c775bb54a0e2e106a903677ca605c033ab439a | f95d2646f8428cceed98681f8ed2407d4f044941 | /day09/day09/exercise/myadd.py | a9178c6996c200cf9c3a17191158f06e47e2dcf1 | [] | 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 | 623 | py | # 练习:
# 写一个函数myadd, 此函数可以计算两个数,三个数,及四个数的和
# def myadd(.....):
# ....
# print(myadd(10, 20)) # 30
# print(myadd(100, 200, 300)) # 600
# print(myadd(1, 2, 3, 4)) # 10
# 方法1
# def myadd(a, b, c=0, d=0):
# return a + b + c + d
# 方法2
# def myadd(a, b, c=None, d=None):
# if c is None:
#... | [
"[email protected]"
] | |
fb66fe333c795753e3bb1c54e9b12a0c9b1edb53 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/sonarr/__init__.py | c592e8435c28b8ea7f22b41bc2b6f515fbafa82d | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 4,327 | py | """The Sonarr component."""
from __future__ import annotations
from typing import Any
from aiopyarr.models.host_configuration import PyArrHostConfiguration
from aiopyarr.sonarr_client import SonarrClient
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
CONF_API_KEY,
CONF... | [
"[email protected]"
] | |
6949ae60b99663f19494a7ea87f9d87ec0858309 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_walleyes.py | 9095d3388cacad88aa57bdae0e7ba33f57fa39d6 | [
"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 | 226 | py |
#calss header
class _WALLEYES():
def __init__(self,):
self.name = "WALLEYES"
self.definitions = walleye
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['walleye']
| [
"[email protected]"
] | |
59d00a0a1af3c49e1d1aa9570187d7a6f89cdc8e | ff52e4d5ccc7bf0bcf3c41bb304f9c28f455c57e | /lms/lms/doctype/tasks/tasks.py | 20df73f8296465ab88fb9c1b6b58e2f7a92565f7 | [
"MIT"
] | permissive | vignesharumainayagam/engagex-lms-backup- | 889e76096d80b57f1df94c4ffa0dbc87ef6328f4 | d377c78873e66574a996c7d67b33ce9ff69f9d74 | refs/heads/master | 2020-03-11T18:00:28.166274 | 2018-04-19T05:36:46 | 2018-04-19T05:36:46 | 130,164,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Tasks(Document):
pass
@frappe.whitelist()
def get_events(start, end, filters=None):
... | [
"[email protected]"
] | |
2e2393fe770c6f960a4b4da26f9ebde7510eb4b4 | 526b892fa981573f26d55c361b42a9d3fa841db5 | /haas/highlighter/forms.py | c1c72f9063001d89e88ee11eb8b9560d184b6781 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | uranusjr/bbshighlighter | 13d89713245f95906a733b7aa8e7c39c58f6ec22 | da35d483e429e0cbd0619b1bc399f4fe67de9ac3 | refs/heads/master | 2020-05-31T22:36:58.424739 | 2014-03-07T17:24:00 | 2014-03-07T17:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from pygments.lexers import get_all_lexers
class HighlighterForm(forms.Form):
language = forms.ChoiceField()
code = forms.CharField(label='', widget=forms.Textarea)
def __init__(self, *args, *... | [
"[email protected]"
] | |
45b1ffda6000b52ced756e89f276e7c99ca0fde5 | 0ed0f9b98be3eb4f87aedfb67210b01a3bd4ffe4 | /Validation/test/sync_MC_cfg.py | c4c6e0f84886667de068721433af89aef78b258f | [] | no_license | jshlee/CATTools | 6e6714225010fa5dfcc819f578d3ad0b8458a8dc | 3805086b4577b439ecef5369d5bd56f25cfe1ca3 | refs/heads/cat80x | 2021-01-21T16:44:52.978003 | 2017-10-17T18:46:58 | 2017-10-17T18:46:58 | 25,828,473 | 1 | 2 | null | 2017-10-17T18:46:59 | 2014-10-27T16:32:59 | C++ | UTF-8 | Python | false | false | 1,332 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("CATeX")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
process.options.allowUnscheduled = c... | [
"[email protected]"
] | |
4237ec9fd7869d359af8e6f194348e6758a7a910 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/io_import_mc/__init__.py | 9987c1068ea276a0c20b744f7ea9530f0f1b2fd4 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,003 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"[email protected]"
] | |
01bb63ecb9346797486f1cf6af72c8fbf7e0b1e3 | f359c953ef823cc44f7d87a3736c3e4fb1817c0b | /EDBRCommon/python/PromptReco/Run2015D/SingleElectron/SingleElectron_Run2015D-bo.py | 93598b048e708643741ed759431ae1c51bb1d279 | [] | no_license | jruizvar/ExoDiBosonResonancesRun2 | aa613200725cf6cd825d7bcbde60d2e39ba84e39 | b407ab36504d0e04e6bddba4e57856f9f8c0ec66 | refs/heads/Analysis76X | 2021-01-18T20:00:57.358494 | 2016-05-30T21:30:19 | 2016-05-30T21:30:19 | 23,619,682 | 1 | 1 | null | 2016-04-22T18:38:45 | 2014-09-03T12:41:07 | Python | UTF-8 | Python | false | false | 930 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/data/Run2015D/Sing... | [
"[email protected]"
] | |
7d645049875ce042602061c064c8c1b640251ccb | 71764665e27f4b96bab44f38a4a591ffc2171c24 | /hhplt/productsuite/gs10/__init__.py | 0dba8ddde1ae1f18ae65c9240109e986b46b8791 | [] | no_license | kingdomjc/RSU_production_VAT | 693f8c504acc0cc88af92942734ccb85f7e7d7c0 | 9a3d6d3f5a5edfaf30afdff725661630aafe434c | refs/heads/master | 2020-07-31T05:03:46.699606 | 2019-09-24T02:09:53 | 2019-09-24T02:09:53 | 210,491,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,258 | py | #coding:utf-8
'''GS10 OBU生产测试'''
import hhplt.testengine.product_manage as product_manage
import battery,cq_overall_unit,trading,board_mending,cq_auto_board,manual_board,trading_mending,retradeAndValidateMac
#注册产品测试项
product_manage.registerProduct('GS10 OBU',(
cq_auto_bo... | [
"[email protected]"
] | |
17b4251a831504ca745d4b00d9f775904854ff17 | 407c790da88f1c38f8800d6555cfeb9397046e70 | /anuncios/forms.py | 8bbcc2cb74ef19bbc8098c25ac201c3d04753801 | [] | no_license | jonatasprates/matao4x4 | 5488473812ab4dc31011199f5a055c9cca4144bb | ad8de86d9a9bce13363fd6417dd738430c60e9bb | refs/heads/master | 2022-11-26T13:49:11.784141 | 2020-08-11T02:10:36 | 2020-08-11T02:10:36 | 286,622,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | #-*- coding: utf-8 -*-
from django.core.files.images import get_image_dimensions
from matao4x4.anuncios.models import Anunciante
from django import forms
class AnunciantesAdminForm(forms.ModelForm):
class Meta:
model = Anunciante
# validando o campo específico: imagem
def c... | [
"[email protected]"
] | |
7e32b253fb44929796b8569b0d1334b8e2ca7c12 | 33518b9521d8e633010b0b9d1ea0f7a937437200 | /Python/strobogrammatic_number_ii/strobogrammatic_number_ii.py | 3456ec0c3783ada61d9b190a8736aca60890cef3 | [] | no_license | lqs4188980/CodingPractice | 977ddb69306c92a5e3df88f26572200622fad82a | c17653832269ab1bb3e411f7d74bef4c8e9985b3 | refs/heads/master | 2021-01-22T05:10:40.885490 | 2016-02-05T09:06:51 | 2016-02-05T09:06:51 | 25,272,652 | 0 | 1 | null | 2016-01-06T07:50:29 | 2014-10-15T20:40:34 | Java | UTF-8 | Python | false | false | 1,335 | py | # corner cases:
# won't start with 0
# 0, 1, 8 good for central
# 0, 1, 6, 8, 9 for rest
class Solution(object):
def __init__(self):
self.odd = ['0','1','8']
self.whole = ['0','1','6','8','9']
self.non_zero = ['1','6','8','9']
def findStrobogrammatic(self, n):
"""
:type... | [
"[email protected]"
] | |
20c27ce9740fff5beebeaf33e73bf00621d46f2f | ef6a64f2e1276b2312fe69be5fb0f79de654f613 | /backend/breach/migrations/0014_auto_20160504_1753.py | dfab67023f3403bba72ecf71953d90b5076e106a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MasterScott/rupture | cd1d1fd410f376d1b5c32587a71fd9565ce6aae6 | 131c61a28550f082ca1598aa40ac37ca59204b40 | refs/heads/develop | 2021-07-06T04:29:04.791439 | 2019-07-28T10:47:39 | 2019-07-28T10:47:39 | 218,162,821 | 0 | 0 | MIT | 2021-01-12T08:59:19 | 2019-10-28T23:16:52 | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-04 17:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('breach', '0013_auto_20160330_1632'),
]
operations = [
migrations.AlterField(... | [
"[email protected]"
] | |
ab57c4b29c3146737651116ef31d6aee8c1efed7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/658.py | 25615d80a7676ddb94779696a868e8215c273d28 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | def dwar(NAOMI , KEN):
naomi = NAOMI[:]
ken = KEN[:]
naomi.sort()
ken.sort()
N = len(naomi)
count = 0
for turn in range(N):
if naomi[0] > ken[0]:
count += 1
naomi = naomi[1:]
ken = ken[1:]
else:
naomi = naomi[1:]
... | [
"[email protected]"
] | |
0c2d777b143221ee4e5b6e86f30dff1da4b5cc8b | 5b173a0e8a10a4f9ff0e3559cdaf8a211e239376 | /scoring_360/migrations/0002_auto_20190408_1246.py | 7d00471115c41ced34ee64497736eade78e325b8 | [] | no_license | Tur-4000/MTLCrewing | 9eb6a59ab0d8d0362cae01459470eb4cd3e4f9b5 | 388029cc0fbf60dacd2118dcc80ce3ec3d77d07b | refs/heads/master | 2022-05-02T11:05:30.205355 | 2019-04-08T14:05:19 | 2019-04-08T14:05:19 | 176,301,948 | 0 | 0 | null | 2022-03-11T23:42:58 | 2019-03-18T14:19:56 | JavaScript | UTF-8 | Python | false | false | 817 | py | # Generated by Django 2.1.7 on 2019-04-08 09:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crewing', '0028_auto_20190408_1246'),
('scoring_360', '0001_initial'),
]
operations = [
migrations.... | [
"[email protected]"
] | |
ba19fd6a44365f2760be541f3b378daf2577f033 | d19731cd2271ea9cba5f07935964e798c8a4f73b | /modules/compiled/tests/test_condensate.py | 5b23b7518e4fc9ccad8c03922c8295888b33cd79 | [] | no_license | jkiesele/HGCalML | 3949532f6b3f6a501670ffb60cedf8474caa934c | 5101b8cdca876a92a9dc87ceca9598bbbfaf980e | refs/heads/master | 2023-07-25T03:21:36.973479 | 2021-10-19T08:12:04 | 2021-10-19T08:12:04 | 186,409,038 | 0 | 5 | null | 2020-02-27T15:00:55 | 2019-05-13T11:46:33 | Python | UTF-8 | Python | false | false | 2,956 | py | from condensate_op import BuildCondensates
import tensorflow as tf
from ragged_plotting_tools import make_cluster_coordinates_plot
import matplotlib.pyplot as plt
import numpy as np
import time
print('starting test')
n_vert=4000
n_ccoords=2
n_feat=3
soft=False
radius=0.7
betas = tf.random.uniform((n_vert,1), dtype='f... | [
"[email protected]"
] | |
acf208104074450f635a9fcd79eae320b3a08fc3 | 34a0d7fc7ec039cf57bf0a33bc5abb423dfdc97f | /s3_app.py | db98d4ba7e241119900adc70c77bb3ea1d0c6e02 | [] | no_license | jrieke/db-playbooks | 422330a6e5cc6cebc105bcc704a265fc1164df65 | 9128b6bce9fa53c4ef89bc727f5b7b3e300b6904 | refs/heads/main | 2023-04-17T23:19:47.714623 | 2021-05-07T21:49:50 | 2021-05-07T21:49:50 | 357,368,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import streamlit as st
import s3fs
import time
import os
start_time = time.time()
# Create connection object.
# `anon=False` means not anonymous, i.e. it uses auth to pull data.
fs = s3fs.S3FileSystem(anon=False)
f"Creating fs took {time.time() - start_time} s"
start_time_read = time.time()
# Retrieve file content... | [
"[email protected]"
] | |
23d44eef4f0999f81021921c669b70a8abf10c82 | daeb851843a55ca3f34008765ebf8ff18c0d1ecd | /LL/page_object.py | b343f01ab97ca8d9b5a5378d41005f0f05b768ae | [] | no_license | Cola1995/Py | f5066df0ef5b60183f5e5e2ec6b77b2be536e7f8 | bab82d8f5aae18e612dbe9bcd38f0d4260463b16 | refs/heads/master | 2020-04-08T06:30:36.212074 | 2018-12-27T06:14:53 | 2018-12-27T06:14:53 | 159,099,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
import time
class Page(object):
'''基础类,用于页面对象类的继承'''
login='http://www.126.com'
def __init__(self,selenium_driver,base_url=login_url):
self.base_url=base_url
... | [
"[email protected]"
] | |
7e27e21ec2be3f0cfe1472b07ba46412a460a797 | 759f52976ad2cd9236da561ca254e11e08003487 | /part7/ex45/v2-replace-config/replacement_result.py | 4adea4014216b0100cfdcd8bde50cb4b26d7dd94 | [] | no_license | mbaeumer/fiftyseven | 57b571c3e09640a2ab0ed41e5d06643c12b48001 | d79b603d5b37bf1f4127d9253f8526ea3897dc08 | refs/heads/master | 2020-06-10T20:52:25.311992 | 2017-11-15T18:28:38 | 2017-11-15T18:28:38 | 75,877,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/python
class ReplacementResult:
def __init__(self, config, content):
self.config = config
self.content = content
| [
"[email protected]"
] | |
7a3e609fcf05b7eca4cfe7b4769b1f7eb50fe39a | e3b5698bc6a63551e0f30dc958428f2dd548eada | /homework/webtoon/migrations/0002_auto_20180215_1109.py | a86e1b9aba0e782e7cc0e3731216de107e578db3 | [] | no_license | standbyme227/stopout | 472021047af57a23c1a6c73db05d7c989e5baa16 | c33981e9ca143cdf6fd9c93664d90a50a07b45a3 | refs/heads/master | 2021-04-29T20:51:33.550436 | 2018-02-16T06:47:04 | 2018-02-16T06:47:04 | 121,605,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # Generated by Django 2.0.2 on 2018-02-15 11:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webtoon', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='webtoon',
name='img_url',
... | [
"[email protected]"
] | |
f7097802ca48e1dc7adb1d85d44f5f6130f7a905 | 85554f18eb2f4db5fa57326e55c84c91abd97fb2 | /graphlayer/core.py | ba96c502660606fdb0bb2707941c6e4d2713b572 | [
"BSD-2-Clause"
] | permissive | mwilliamson/python-graphlayer | f6e58bd1e812aabb365a569d579ebcb5f8aaa51c | 7fe773fb2e07028d5cfc1f30523ad17ba405c689 | refs/heads/master | 2023-05-12T03:37:36.607591 | 2023-01-14T21:26:33 | 2023-01-14T21:26:33 | 144,635,452 | 28 | 7 | BSD-2-Clause | 2023-01-14T21:27:20 | 2018-08-13T21:25:50 | Python | UTF-8 | Python | false | false | 2,117 | py | from . import iterables
def create_graph(resolvers):
return define_graph(resolvers).create_graph({})
def define_graph(resolvers):
return GraphDefinition(resolvers)
class GraphDefinition(object):
def __init__(self, resolvers):
self._resolvers = iterables.to_dict(
(resolver.type, res... | [
"[email protected]"
] | |
7b15c8ad37a0ad03a79f07873b58187b10f10f51 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/SWEA/SWEA2105.py | 4e3c17854fc9101aa88779572cadeffd409f6287 | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,511 | py | """
이 문제는 상당히 복잡하다. 약 3시간에 걸쳐서 푼 문제로, 한번 다시 풀어볼 필요성이 굉장히 크다.
생각해야 할 부분이 많아서 문제 자체가 복잡하다..
이 문제를 다 풀고, 문제를 풀기위해서 생각해야 하는 부분들을 다시한번 정리해보았다.
1.가는 방향은 어딘데? -> 원래 기초적인 DFS/BFS문제들은 대부분 상,하,좌,우 만 나와서 거기에 항상 익숙해져 있다. 하지만 이 문제는
기본적으로 가는방향이 다르다. 따라서 우선은 가는방향(마름모꼴을 이루면서, 나중에 합쳐지게 dfs가 돌게) 잘 구현을 해야... | [
"[email protected]"
] | |
6f408f78f4985ecc1686c686582bc51783bc1df1 | e81e09cdc62dcd196020dc01b07adc24faaee582 | /czsc/trader.py | b12513bed9ae6a6c6df4c34877ae940e6a8b09a8 | [
"MIT"
] | permissive | dingfengqian/czsc | 41cbd4155245ae8a50b51af485ae5516fea94156 | 00bfd91f0a0e27533cdd45b83b2fec197056b4b3 | refs/heads/master | 2023-02-27T18:58:48.810874 | 2021-01-28T11:48:56 | 2021-01-28T11:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | # coding: utf-8
import pandas as pd
from datetime import datetime
from .factors import KlineGeneratorBy1Min, CzscFactors
from .data.jq import get_kline
from .enum import FdNine, FdFive, FdSeven, FdThree, Factors
class CzscTrader:
"""缠中说禅股票 选股/择时"""
def __init__(self, symbol, max_count=1000, end_date=None):
... | [
"[email protected]"
] | |
a4ca3c5c84201afc3162db257b96a975c1498516 | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/checks/migrations/0013_auto_20210110_0505.py | abfbe322f1a66fb00b4864d1b01ac60ec64e5721 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.1.4 on 2021-01-10 05:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("checks", "0012_auto_20210110_0503"),
]
operations = [
migrations.AlterField(
model_name="checkhistory",
name="y",
... | [
"[email protected]"
] | |
616e64a571f1f9e005417d5543fe7d7c7e3e386b | 47e819cb96e0e9f45419960d30753f027047c224 | /stockSpider/stockSpider/spiders/stockSpider_Mysql.py | 07da58c3433aa9dc81c8f259d7e65b28dc803254 | [] | no_license | 1141938529/ClassExercises | 3600d75aa559b6938f3efb5831dbec803489cac0 | 0082e81a6cded1c8332c4a8d79a4104bfd8ab1c9 | refs/heads/master | 2021-05-08T16:38:30.391977 | 2018-02-04T13:10:45 | 2018-02-04T13:10:45 | 120,165,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | import scrapy
import time
from stockSpider.items import stockItem
class StockSpider(scrapy.Spider):
name = 'stockspider2'
start_urls = ['http://stock.10jqka.com.cn/']
stock_data = stockItem()
custom_settings = {
'ITEM_PIPELINES': {'stockSpider.pipelines.StockPipeline': 100, },
}
def p... | [
"[email protected]"
] | |
ffc0214e985810cf932673154e187b4d8ef072ba | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_remedy/tests/mocks/datatable_mock.py | 6afc05d176fb51eb4f60e7d1d4634a555752613f | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 3,534 | py | # (c) Copyright IBM Corp. 2021. All Rights Reserved.
from pytest_resilient_circuits import BasicResilientMock, resilient_endpoint
import requests_mock
import json
import six
class DTResilientMock(BasicResilientMock):
"""DTResilientMock a Mock class which inherits the base
endpoints and adds mock endpoints for... | [
"[email protected]"
] | |
3fa858904b5ef254d2669f70c272e376e8302d88 | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/comparison/test_print_options02.py | 0c43e2d0203b0635a207340a0ab2f4eec5d330e6 | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, [email protected]
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"[email protected]"
] | |
c7b2ada29b4f10fd565b5a55c71e32c9fae15022 | 536584e323161a97db79453b1aa192c89979a755 | /tests/fixtures/defxmlschema/chapter21/example21083.py | 7c2028b325e23a198f25c7a11efe69dc5736746a | [
"MIT"
] | permissive | brunato/xsdata | c792ae2749afb4ac5704f77b138f0f871002100c | dfa84cfd6be5373c929f5bc4178fe1fb7b7d2e3b | refs/heads/master | 2022-04-13T09:59:57.008871 | 2020-04-04T09:01:42 | 2020-04-04T09:06:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from dataclasses import dataclass, field
from typing import Optional
@dataclass
class CustomerType:
"""
:ivar name:
"""
name: Optional[str] = field(
default=None,
metadata=dict(
name="name",
type="Element",
namespace="http://datypic.com/all",
... | [
"[email protected]"
] | |
3c56f6119b20f0df091f3ba81613185aebbd9d45 | c54a6b935007f71c7e5fba8caf590d948cfa65cf | /contributors/models.py | e601c727116d75ebc1ba8892eaa77e69cb6c65a7 | [] | no_license | nescode/contributor | 6896de8fb0edaf8c1054e8a49958d3373f9aacec | 18383e86309e5f1db221cda5d09b02bf98bad623 | refs/heads/master | 2023-08-07T02:40:18.214732 | 2020-07-07T06:44:22 | 2020-07-07T06:44:22 | 262,589,144 | 0 | 3 | null | 2021-09-22T18:59:30 | 2020-05-09T14:31:18 | Python | UTF-8 | Python | false | false | 601 | py | from django.db import models
ROLE_CHOICES = (
('developer', 'developer'),
('designer', ' designer'),
('documentation team', 'documentation team'),
)
class CreateContributor(models.Model):
name = models.CharField(max_length=255)
email = models.EmailField(max_length=255)
phone = models.CharFie... | [
"[email protected]"
] | |
361d6992dff363f16c32d032157aec6bf96b77e7 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/FCU_Discharge_Fan_VFD_Speed_Status.py | 67d7b76a4f9139b1e9c6dea660ff014753e989cf | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.FCU_Fan_Status import FCU_Fan_Status
from brick.brickschema.org.schema._1_0_2.Brick.Discharge_Fan_VFD_Speed_Status... | [
"[email protected]"
] | |
29cddd507b018e9e9a65049588042e6995ffd44f | 8d90e2eae476ecbe88d46ef2f03fe7ba92cc733b | /Programming Basics with Python/For-cycle/For_C_lab_ex9_left_right_sum.py | 04d51d4f9ce78c72726b3f293a70e9907e509856 | [] | no_license | KaterinaMutafova/SoftUni | c3f8bae3c2bf7bd4038da010ca03edc412672468 | 7aeef6f25c3479a8d677676cb1d66df20ca0d411 | refs/heads/main | 2023-03-08T10:53:49.748153 | 2021-02-19T15:55:13 | 2021-02-19T15:55:13 | 317,597,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | n = int(input())
left_sum = 0
right_sum = 0
for i in range(n):
num_1 = int(input())
left_sum += num_1
for i in range(n):
num_2 = int(input())
right_sum += num_2
if left_sum == right_sum:
print(f"Yes, sum = {left_sum}")
else:
diff = abs(left_sum - right_sum)
print(f"No, d... | [
"[email protected]"
] | |
15b34b27bee228e2af26d52019fb4474cccf8260 | ef8b6298ae5d247c65454eeeb7b1198b18fe5580 | /CodingDojangPython/turtle_graphics_8.py | b1a6b1cd79d1f51ce5914ab864c944f2c257fb85 | [] | no_license | Supreme-YS/PythonWorkspace | 01728fc06b9f1ce9d48de8ab662c0b528c27df1d | 9b1d17c805e45285eb3594da84df02939cab2a85 | refs/heads/master | 2023-07-28T16:44:36.930819 | 2021-09-06T14:03:50 | 2021-09-06T14:03:50 | 289,924,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import turtle as t
t.shape('turtle')
t.speed('fastest') # 거북이 속도를 가장 빠르게 설정
for i in range(300): # 300번 반복
t.forward(i) # i만큼 앞으로 이동. 반복할 때마다 선이 길어짐
t.right(91) # 오른쪽으로 91도 회전
| [
"[email protected]"
] | |
fd6d861b9e060cf2c1d270f546716f557e8a67da | aab5143d8ee3ba15c9367b146287b7d5a6a41052 | /tests/command_download_aoj.py | 53a02cb26d8c3e6fc67e0fa6750e8afed449ff91 | [
"MIT"
] | permissive | kfaRabi/online-judge-tools | fc1e5796446a3f1b729507e018203aeff3193e3f | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | refs/heads/master | 2020-04-23T19:49:57.394790 | 2019-02-25T20:43:43 | 2019-02-26T09:15:27 | 171,419,052 | 0 | 0 | MIT | 2019-02-19T06:34:26 | 2019-02-19T06:34:23 | Python | UTF-8 | Python | false | false | 5,208 | py | import os
import unittest
import tests.command_download
class DownloadAOJTest(unittest.TestCase):
def snippet_call_download(self, *args, **kwargs):
tests.command_download.snippet_call_download(self, *args, **kwargs)
def test_call_download_aoj_DSL_1_A(self):
self.snippet_call_download('http:/... | [
"[email protected]"
] | |
e68f96a3c8e0dccbe87352d539826d189e75c6ea | 663d429e1f552ef958d37cfe4a0707354b544a9a | /新建文件夹/theading_demo.py | 7d32b29371111338cbc1370c36a639394c73a531 | [] | no_license | nie000/mylinuxlearn | 72a33024648fc4393442511c85d7c439e169a960 | 813ed75a0018446cd661001e8803f50880d09fff | refs/heads/main | 2023-06-20T07:46:11.842538 | 2021-07-15T13:46:43 | 2021-07-15T13:46:43 | 307,377,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,187 | py | # import time
#
# def lo1():
# time.sleep(4)
# print('<------lo1-------->')
#
#
# def lo2():
# time.sleep(2)
# print('<------lo2-------->')
#
#
# def main():
# t1 = time.time()
# lo1()
# lo2()
# t2 = time.time()
#
# print('total time: {}'.format(t2-t1))
#
# if __name__ == "__main__":... | [
"[email protected]"
] | |
f7108362ca0be8b69099cbdc38f4759264539fd8 | dc3c39d4dcaa1c4e4bd0e9405642159580a87767 | /findlove/settings.py | 869d4bdd5287dbfc4c64cd3e62d58556558361bc | [] | no_license | ylearner/findlove | f0d98a5ed99565ee8db77ab8b767b4c874d28260 | d5dd1ebe98fbb827e52088e98357b16accbcf3c8 | refs/heads/master | 2022-02-23T04:54:31.036032 | 2019-07-20T10:35:16 | 2019-07-20T10:35:16 | 197,905,314 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | """
Django settings for findlove project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"[email protected]"
] | |
862748235151ed238905e5074eb14d4850a9d11c | 20927c6b6dbb360bf0fd13d70115bdb27e7196e7 | /0x0A-python-inheritance/0-main.py~ | a0817dce1ea8a7a0fc19bf8c91bb07dc3abd1dcc | [] | no_license | PauloMorillo/holbertonschool-higher_level_programming | 27fc1c0a1ae5784bd22d07daaedb602ee618867d | 8a42a60aa4ea52b5cc2fb73e57f38aa6c5196c98 | refs/heads/master | 2021-08-16T17:13:45.568038 | 2020-07-29T01:20:25 | 2020-07-29T01:20:25 | 207,305,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/usr/bin/python3
lookup = __import__('0-lookup').lookup
class MyClass1(object):
pass
class MyClass2(object):
my_attr1 = 3
def my_meth(self):
pass
print(lookup(MyClass1))
print(lookup(MyClass2))
print(lookup(int))
| [
"[email protected]"
] | ||
413873a9e910423c4d7a172c6080316e21adde8a | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Custom_Rules/test_c155535.py | 686cb9c5c388b3fdef651d4013c96e2f837745fe | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def import *
from page_obj.scg.scg_button import *
from page_obj.scg.scg_def_firewall import *
from page_obj.scg.scg_def_sslvpn import *
from page_obj.scg.sc... | [
"[email protected]"
] | |
79c1195ef4085e2d612189df158046cecb1a24af | 425db5a849281d333e68c26a26678e7c8ce11b66 | /LeetCodeSolutions/LeetCode_0763.py | ef5ed806ec733581044ae63e06a8c6bc47b835e1 | [
"MIT"
] | permissive | lih627/python-algorithm-templates | e8092b327a02506086414df41bbfb2af5d6b06dc | a61fd583e33a769b44ab758990625d3381793768 | refs/heads/master | 2021-07-23T17:10:43.814639 | 2021-01-21T17:14:55 | 2021-01-21T17:14:55 | 238,456,498 | 29 | 8 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | class Solution:
def partitionLabels(self, S: str) -> List[int]:
parts = {}
for idx, c in enumerate(S):
if c not in parts:
parts[c] = [idx, idx]
else:
parts[c][1] = idx
_parts = [v for k, v in parts.items()]
_parts.sort()
... | [
"[email protected]"
] | |
24f2c153c0a666812ed68fc440c33f3285d0bae6 | 44cbc067afcced7fac7ad7f4584d0d16d66bf5b4 | /ansiblemetrics/general/lines_blank.py | 15d2145c0b6d973e6c3bf69221cf9e16cf3bbb2d | [
"Apache-2.0"
] | permissive | ElsevierSoftwareX/SOFTX_2020_231 | fb75820e99dbd6f2380146ecf5b8893d69942260 | e3ad95ebdc324ae308669d437ec60bd726580102 | refs/heads/master | 2023-01-18T22:53:04.785576 | 2020-11-18T11:52:39 | 2020-11-18T11:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from ansiblemetrics.lines_metric import LinesMetric
class LinesBlank(LinesMetric):
""" This class is responsible for providing the methods to count the blank lines of code (bloc) in a given .yaml file"""
def count(self):
bloc = 0
for l in self.yml.splitlines():
if not ... | [
"[email protected]"
] | |
46721e360b7369375cc7838c189ffee765b1c1cf | 8d78ee989a82bbff99d72facaa471a686961cb5b | /djangoProject/venv/Lib/site-packages/PIL/PcdImagePlugin.py | 47a8708f7f16402699fe1f1bac76fcb0c71268b4 | [] | no_license | jaydevdesai/Course_Enrollment_System | f12ad576bba73f23f49093a73e363742f87f86a7 | 0e3ebe5af76ab6b42c31d18ac45a7ef5b4d6bf59 | refs/heads/master | 2023-06-07T06:31:51.921429 | 2021-07-04T13:52:02 | 2021-07-04T13:52:02 | 382,835,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | #
# The Python Imaging Library.
# $Id$
#
# PCD file handling
#
# History:
# 96-05-10 fl Created
# 96-05-27 fl Added draft mode (128x192, 256x384)
#
# Copyright (c) Secret Labs AB 1997.
# Copyright (c) Fredrik Lundh 1996.
#
# See the README file for information on usage and redistribution.
#
from .... | [
"[email protected]"
] | |
397f19d4b75b7aea4234abb4b8304525b1030cbe | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/mon/target.py | cabbe846fbe9d58285c5d527f867aaecdc092217 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 5,412 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
2fc476b25c16b8bdd9f4e0e6b1bd076670904495 | 733ce69fcc11ea5ceed3783c6aa256f15510fcad | /venv/lib/python3.8/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py | 232dd95d2b2e6939f429a9ac6d5ebb44041e57fc | [] | no_license | ethanbahmanyari0122/scooteq | c7fc25ab6619b43d8dbe5c5e44e9412ebbc700ba | ca5bf60cdacd92f41e318b23766316f4cd4db5fa | refs/heads/master | 2023-06-01T23:57:03.671517 | 2021-06-18T10:35:31 | 2021-06-18T10:35:31 | 377,186,463 | 1 | 0 | null | 2021-06-18T08:53:09 | 2021-06-15T14:12:29 | Python | UTF-8 | Python | false | false | 5,723 | py | """A collection of modules for iterating through different kinds of
tree, generating tokens identical to those produced by the tokenizer
module.
To create a tree walker for a scooteq type of tree, you need to
implement a tree walker object (called TreeWalker by convention) that
implements a 'serialize' method which ta... | [
"[email protected]"
] | |
109b898a3d962708caae6619f13ebf7b6b6a54c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02239/s041311605.py | e539baf989142410359c23b219a92f876dc2bf59 | [] | 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 | 702 | py | # -*- coding: utf-8 -*-
import sys
from collections import deque
sys.setrecursionlimit(10 ** 9)
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
INF=float('inf')
N=INT()
nodes=[[] for i in ra... | [
"[email protected]"
] | |
fe289312a128747beaccaa044fd07f24db8438cf | c098a0f39cc448ea06bb9e61f4b8155d9feeee82 | /vsts/vsts/test/v4_1/models/test_iteration_details_model.py | 535993773b4bc11bd85c9542a49f8cf105bc9dac | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | nimisha-srinivas/vsts-python-api | 360713f009f948a425ccf5c65ded4ed9d79df07e | 666db9dc30b5bdee026a2534dc2ab3965fad285c | refs/heads/master | 2020-03-13T02:38:13.461082 | 2018-04-23T16:27:04 | 2018-04-23T16:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"[email protected]"
] | |
147f74e7695a23f54e4d60422aa134405e303107 | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/ctypes/test/test_varsize_struct.py | f4c25715a02e5cb28aa1eee72294595b8126bbb1 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 1,956 | py | from ctypes import *
import unittest
class VarSizeTest(unittest.TestCase):
def test_resize(self):
class X(Structure):
_fields_ = [("item", c_int),
("array", c_int * 1)]
self.failUnlessEqual(sizeof(X), sizeof(c_int) * 2)
x = X()
x.item ... | [
"[email protected]"
] | |
4749151995a180d653b3e898e082677a1668e88a | 139617b9e7c7dbbc592170a761a2f9fb1ee06734 | /main_kaggle.py | 0300f2b589b53fdf7d932cb6bf1cd133dfcab12b | [] | no_license | ANKITPODDER2000/FSP_ML_Project | 09aecb7d803a217a710914e6369ac4a790ec6424 | bba6cf8f70f9c6977654856a8be8de75ebf22f77 | refs/heads/master | 2022-12-14T06:21:18.370814 | 2020-09-18T17:15:50 | 2020-09-18T17:15:50 | 295,822,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | # -*- coding: utf-8 -*-
"""Untitled7.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1N_Vdb2XxxCwvUDqTVVT7hoS0qYL73aSw
from google.colab import files
files.upload()
! mkdir ~/.kaggle
! cp kaggle.json ~/.kaggle/
! chmod 600 ~/.kaggle/kaggle.json... | [
"[email protected]"
] | |
52f4054f55228ea0919d84539947c10ee02a97c2 | ad963dc590fe3ee16fe70674ffa9a77a3462a2d2 | /taskManager/migrations/0011_auto_20200210_1539.py | 3b5756687a8bcd93a9876ba0408a8f364cf10d02 | [] | no_license | ShuheiKuriki/task_manager | 564dc1a646efdd288ff31bc9044981aecbd6db78 | f5d4a53a758c64615f22c69baae59b36dd5dab1f | refs/heads/master | 2023-05-12T11:06:11.388036 | 2023-01-15T09:12:37 | 2023-01-15T09:12:37 | 234,110,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # Generated by Django 3.0.2 on 2020-02-10 06:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('taskManager', '0010_dele... | [
"[email protected]"
] | |
b3fcb829703ca9ecdd728c1793c5b8f9213bfd5c | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/kracekumar/gettowork.py | fe439f5f1fff77243040ee035dd7483d80428c15 | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | def reducelist(elem):
nitems = len(elem)
if nitems > sum(elem):
return -1 # IMPOSSIBLE
empty_list = [0 for i in range(nitems)]
elem.sort()
#elem.reverse()
count = 0
while (sum(empty_list) != nitems):
each = elem.pop()
count += 1
for i in range(0,len(empty_list... | [
"[email protected]"
] | |
9ef4bc80084e942c3e0264adedc1dce137002ed9 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2017v7/configuration_test_tau21wp_2017.py | 5a6dff8102aa14fe4ce1a29741c1c293111bfbf4 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,302 | py | # example of configuration file
treeName= 'Events'
tag = 'test_tau21wp_2017'
direc = "conf_test_tau21wp"
# used by mkShape to define output directory for root files
outputDir = 'rootFile_'+tag
# file with TTree aliases
aliasesFile = direc+'/aliases.py'
# file with list of variables
variablesFile = direc+'/variabl... | [
"[email protected]"
] | |
9db9ca8bc1f8cda57c69c3a2f593776bdb60eeb6 | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /src/CyPhyPET/Resources/zip.py | 5ee5bf64d4dce688e9cf9be0eb40b6c5af188e56 | [
"LicenseRef-scancode-other-permissive"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 868 | py | #!/usr/bin/python
import zipfile
import os
import sys
import os.path
path_join = os.path.join
if sys.platform == 'win32':
def path_join(*args):
return '\\\\?\\' + os.path.join(os.getcwd(), os.path.join(*args))
output_filename = 'source_data.zip'
if os.path.exists(output_filename):
os.remove(output_fi... | [
"[email protected]"
] | |
0472e752dc24ddaf0d91505984789b83cdf34efd | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/feature_engagement/DEPS | f25c147bc846d9c605930e33ad2974793f4f91cd | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 226 | include_rules = [
"-content",
"+components/feature_engagement/internal/jni_headers",
"+components/feature_engagement/features.h",
"+components/flags_ui",
"+components/keyed_service",
"+components/leveldb_proto",
]
| [
"[email protected]"
] | ||
277f7795b863efce66e36fe0d3af9d010aeeb97f | 9ae08906602af5eacec43d60e5e428269bf24eb1 | /detection.py | 648538a99d8aa1cf5d30ae48f7af2a87f8b59b77 | [] | no_license | yangzhaonan18/TSDcv2 | 9f73278979542d1a40ced5aa152bbc7fa363398c | e9cb0fefc7177db93510b7bc5ca1bb86e32571c6 | refs/heads/master | 2020-04-04T19:39:08.138349 | 2019-03-18T04:54:36 | 2019-03-18T04:54:36 | 156,214,910 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,944 | py | # -*- coding:utf-8 -*-
import cv2
from cal_wh_ratio import cal_wh_ratio
from Crop_cnt import Crop_cnt
from cal_color_ratio import cal_ratio
from find_crop_center import find_crop_center
def detection(frame, BinColors, color, contours, i): # 判断是否是需要识别的对象 是返回1 否为0
"""
:param frame: 一张没有处理过的原始图片
:param Bin... | [
"[email protected]"
] | |
9e87c0e877171415faf85154197b17b0bd660a82 | 5173c3e3956387a3f2ae8fcf4aed7c7a600dac78 | /Algorithm_Practice/Subset_BackTrackinig.py | 3179a5128a63a3e2612e05b9a06d76ea6127d75a | [] | no_license | ma0723/Min_Algorithm | df75f53f6e89b7817d4b52d686effb8236a4ddac | b02d1043008cb32e22daa9d4207b9a45f111d66f | refs/heads/master | 2023-07-25T11:00:15.397093 | 2021-08-30T02:08:05 | 2021-08-30T02:08:05 | 375,613,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | #s: 선택된 원소들의 합
#r:남은 원소들의 합(선택가능한 것들중에)
def f(i, N, K,s, r ):
global cnt
if s == K:
# 부분집합의 원소의 합이 K인 것을 찾음
cnt+=1
return
# 이미 K를 찾았으므로 원소가 추가되면 K보다 커지므로 고려 X
elif i == N:
# 모든 원소를 고려함 K는 못찾아냄
return
elif s > K:
# 현재까지의 합이 K보다 커지는 경우
return
elif s ... | [
"[email protected]"
] | |
93ebf812cf2dc1ab6fe7dacb49a0940fadec933e | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pylint/test/functional/bad_reversed_sequence.py | 5a7b1f3dad23ad88d9b3fc7280087bcf9eae9d3b | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,181 | py | """ Checks that reversed() receive proper argument """
# pylint: disable=missing-docstring, useless-object-inheritance
# pylint: disable=too-few-public-methods,no-self-use,no-absolute-import
from collections import deque
__revision__ = 0
class GoodReversed(object):
""" Implements __reversed__ """
def __reve... | [
"[email protected]"
] | |
14f4384b3f417db7ee5e8c97bf8f2c110123b40a | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /bin/Python27/Lib/site-packages/openmdao.main-0.8.1-py2.7.egg/openmdao/main/api.py | 829c20fd341079e51ad207c522ec775c63353842 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 1,672 | py | """
Pseudo package containing all of the main classes/objects in the
openmdao.main API.
"""
from openmdao.util.log import logger, enable_console
from openmdao.main.expreval import ExprEvaluator
from openmdao.main.factory import Factory
from openmdao.main.factorymanager import create, get_available_types
from open... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.