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
0db15b4cc6a44f8adccd2f80fa2eb3e9790721e5
8952afe242c836b516c6236cf0987676cfb7abf7
/TaobaoSdk/Domain/PromotionRange.py
4a1215a1a411db4e202405ad94ad0499d3952e22
[]
no_license
xieguanfu/TaobaoOpenPythonSDK
2fc20df983811990a2d981379c9da6c1117f9f21
88cdab41ba19a2326aa4085c92455697bd37d8d7
refs/heads/master
2021-01-18T14:38:51.465614
2014-08-21T05:44:42
2014-08-21T05:44:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,839
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 满就送参与范围 # @author wuliang@maimiaotech.com # @version: 0.0.0 from copy import deepcopy from datetime import datetime import os import sys import time import types _jsonEnode = None try: import demjson _jsonEnode = demjson...
[ "chenke@maimiaotech.com" ]
chenke@maimiaotech.com
31fe17f9f93b2c76880afc2c3755d527b066fc5f
2a6fec3bda56e5eb5ca839acfb0ef203b9b2f3e3
/Analysis_S4T/API/venv/Lib/site-packages/flask_mongoengine/metadata.py
addb2f058a8aaa769f49a34ef701abbfc39dfbcc
[]
no_license
LiuHaiYang/Analysis_S4T
d52ca766e88720136f0cb0273a019c0f24e0c1ce
c2065429f8ab616a79e00b359c57f4f1bf7aa813
refs/heads/master
2022-10-21T20:26:41.173707
2018-08-16T04:33:53
2018-08-16T04:33:53
99,551,231
0
1
null
2022-10-07T12:01:53
2017-08-07T07:45:25
Python
UTF-8
Python
false
false
358
py
import sys VERSION = (0, 8) if sys.version_info >= (3, 0): unicode = str basestring = (str, bytes) else: unicode = unicode basestring = basestring def get_version(): if isinstance(VERSION[-1], basestring): return '.'.join(map(str, VERSION[:-1])) + VERSION[-1] return '.'.join(map(str, V...
[ "843800695@qq.com" ]
843800695@qq.com
f7ce4ad598c1d17a7cc3b4e5b0f0b84c26f434b5
2d00cbf24df8e54e15689e8e09073ee49e09f795
/ml/rl/models/base.py
57dcc313e7a1c28fbcbe8c88a1c1be31900d6213
[ "BSD-3-Clause" ]
permissive
baek-jinoo/Horizon
ba09766ab682aa74c576d5910d4c7224ac0929c7
30c75bed0e328e18bfc324f010101fac930c3abc
refs/heads/master
2020-04-04T18:30:19.010271
2019-01-30T19:50:14
2019-01-30T20:00:19
156,166,471
0
0
NOASSERTION
2018-11-05T05:50:28
2018-11-05T05:42:44
Python
UTF-8
Python
false
false
11,923
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import abc from collections import OrderedDict from copy import deepcopy from io import BytesIO from typing import List, NamedTuple, Tuple import caffe2.python.onnx.backend import onnx import torch import torch.nn as nn fro...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
a502a8ea59e89c0c7c68c325e2400c3b26f29252
761b013bc7cd98850f3f26e3f0b0a8e4ec8fdf7d
/99_sum_and_mod_of_given_number.py
349b3cf9dcb9d5256641e984dc1a58e07bc3a8ed
[]
no_license
tjmode/placement
72e6bca120cb785cac3fc829d84b921af8add01a
ac5af6394e74212bf44510af837a144254ca2f99
refs/heads/master
2020-04-15T16:36:03.489076
2019-07-31T06:14:51
2019-07-31T06:14:51
164,842,584
2
1
null
null
null
null
UTF-8
Python
false
false
52
py
a,b,c=map(int,input().split()) d=a*b f=d%c print(f)
[ "noreply@github.com" ]
tjmode.noreply@github.com
1340a9ad60555ae1895ec7d79ab9db07e5a9b20b
50f63963e73a8436bef3c0e6e3be7056291e1e3b
/panda/direct/gui/DirectGuiGlobals.py
d71c97593dbe950c20fb9c21ea11498ac1b8c07c
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
MTTPAM/installer
7f4ad0c29631548345fac29ca7fbfcb38e37a111
aee7a9b75f1da88fdf6d5eae5cdf24739c540438
refs/heads/master
2020-03-09T15:32:48.765847
2018-11-13T03:35:50
2018-11-13T03:35:50
128,861,764
1
4
null
2018-11-13T03:35:50
2018-04-10T02:28:29
Python
UTF-8
Python
false
false
4,624
py
"""Undocumented Module""" __all__ = [] """ Global definitions used by Direct Gui Classes and handy constants that can be used during widget construction """ from panda3d.core import * defaultFont = None defaultFontFunc = TextNode.getDefaultFont defaultClickSound = None defaultRolloverSound = None defaultDialogGeom ...
[ "linktlh@gmail.com" ]
linktlh@gmail.com
fdbf73dd485d1e8a9e5c41e126e1fc605254edd2
3fa6edd22b4c826431d2b55d1aced446bf2755ac
/plottingid/server/start_farmer.py
673d8e9436477d4b9dece1bac82f4e1f6a69970e
[ "Apache-2.0" ]
permissive
luzofex/plottingid-blockchain-1
f3bca87316e93466b7512039f2c588a9baadd4a7
d8a6bdfeb4474b4075e89c129853a606f55dd778
refs/heads/main
2023-06-11T12:32:36.690472
2021-07-06T19:23:19
2021-07-06T19:23:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,307
py
import pathlib from typing import Dict from plottingid.consensus.constants import ConsensusConstants from plottingid.consensus.default_constants import DEFAULT_CONSTANTS from plottingid.farmer.farmer import Farmer from plottingid.farmer.farmer_api import FarmerAPI from plottingid.rpc.farmer_rpc_api import FarmerRpcApi...
[ "cengndupak@gmail.com" ]
cengndupak@gmail.com
9d3a5b75d7e31307e32ed252eee54644c8cc28e8
e5baa5ba65c5cb80b38203b28c064a475aa63693
/WebContent/actions.py
04dca07bf4097164c0c630255ac6897d69fb7e1f
[]
no_license
yxxcrtd/jitar2012
bbe00b1eb2e505400dcfec396201752c3888199c
ccae07ff44a3cb9dc3d0b75673cbca699fa66b80
refs/heads/master
2020-05-31T15:26:40.107486
2019-06-05T08:05:22
2019-06-05T08:05:22
190,352,419
0
0
null
null
null
null
UTF-8
Python
false
false
1,743
py
from cn.edustar.jitar.util import ParamUtil from action_query import ActionQuery class actions: def __init__(self): self.params = ParamUtil(request) def execute(self): self.get_action_list() request.setAttribute("head_nav", "actions") return "/WEB-INF/ftl/...
[ "yxxcrtd@gmail.com" ]
yxxcrtd@gmail.com
0659cc940d8cf677cba088ee969306135e8dc544
f1f1ccfa558fd0f0f80bd8b180b4d8f3e300a880
/metamorphosys/META/src/Python27Packages/py_modelica/py_modelica/__main__.py
d76793d5e3e5b0c0ff417971d055a9e5f822800e
[ "LicenseRef-scancode-other-permissive", "MIT" ]
permissive
pombreda/metamorphosys-desktop
58afdbe696bcddb0c8c84598ed25c28b08d3ba95
cfc87a9a3476e94faa96080d57a474860a3ffcca
refs/heads/master
2021-01-21T03:44:21.775196
2015-01-15T01:04:11
2015-01-15T01:04:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,236
py
# Copyright (C) 2013-2015 MetaMorph Software, Inc # Permission is hereby granted, free of charge, to any person obtaining a # copy of this data, including any software or models in source or binary # form, as well as any drawings, specifications, and documentation # (collectively "the Data"), to deal in the Data ...
[ "adam.nagel+git@gmail.com" ]
adam.nagel+git@gmail.com
cb2801ec1491d70f5f653ff97b4cf9dde3178c9d
377e3a552fb807febc18ce036af77edbce93ca19
/binary trees/check_identical_trees.py
6b72870ac1f5fd4bd971865a53247caf1f19df63
[]
no_license
souravs17031999/100dayscodingchallenge
940eb9b6d6037be4fc0dd5605f9f808614085bd9
d05966f3e6875a5ec5a8870b9d2627be570d18d9
refs/heads/master
2022-10-29T11:05:46.762554
2022-09-28T13:04:32
2022-09-28T13:04:32
215,993,823
44
12
null
2022-08-18T14:58:50
2019-10-18T09:55:03
Python
UTF-8
Python
false
false
2,151
py
# Program for identifying the identical trees if it is, return True or False. # -------------------------------------------------------------------------------- #Input : Roots of below trees # 10 10 # / \ / # 5 6 5 # As we can see in the above structure, in the second tree there is no ...
[ "souravs_1999@rediffmail.com" ]
souravs_1999@rediffmail.com
3c0198bb5586d36fcf3fc4946bb280e133177687
100ed0cc19fe444ef85609950e96116ca1ff78a2
/coding_int/chapter_2/2_7_intersection.py
772d261ce776bf2b002bf592bba4d36a1f68f413
[]
no_license
Data-drone/coding_practice
ab88cc21740ff5441f09dfef39ccf3a5d6a4c760
c3da10fabf044d76d5ac7c1313586aa740f3761c
refs/heads/master
2020-03-30T12:11:38.285187
2019-01-20T16:21:50
2019-01-20T16:21:50
151,212,906
0
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
class node: def __init__(self, value = None): self.next = None self.data = value def __str__(self): return "Node: {0}".format(self.data) class llist: def __init__(self, head = None): self.head = head self.tail = head def __iter__(self): current = ...
[ "bpl.law@gmail.com" ]
bpl.law@gmail.com
3930470de3f441239461e2e8a317113715306810
4f8e23e3e4abea0b997d0287d84d9dcc3d5d33e2
/backend/care_for_caleb_27574/settings.py
655266c468ab3edbae95712793474f0a5b0df7bc
[]
no_license
crowdbotics-apps/care-for-caleb-27574
feda3a35ac91e398ea1aee4d8e0c612e33207dec
efe44c57c08dee8bee6eea3e112faa957571b830
refs/heads/master
2023-05-07T20:17:18.358129
2021-05-30T00:55:46
2021-05-30T00:55:46
372,096,424
0
0
null
null
null
null
UTF-8
Python
false
false
7,126
py
""" Django settings for care_for_caleb_27574 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
56c34f03881d8b0291ecb8426983f809dba98aa6
f3ae33c9b0d7295c5f4fd2c6f90ededf447e4b79
/CA_EIS/tmp.py
4f7e63b09912973e6a3cc175ab02d3d9f04619af
[]
no_license
linnil1/2018_BIME_Practice
474f5b03fc01aee497e43922ec62d146e36f80c2
513e49d719629d6d6d4e7ef1a2d47306f2b8e103
refs/heads/master
2021-08-19T00:59:03.833443
2018-07-05T02:28:39
2018-07-05T02:28:39
130,243,751
0
0
null
null
null
null
UTF-8
Python
false
false
1,898
py
import os import re import numpy as np import matplotlib.pyplot as plt mname = "EIS" def save_load(): # save to file fname = "save" + mname + ".npz" fload = np.load(fname) meta = fload['meta'] data = fload['data'] return meta, data meta, data = save_load() def rctWCal(x) return (rct + 1...
[ "linnil1.886@gmail.com" ]
linnil1.886@gmail.com
ce1a73612e5e702002da849d446f1b6240203775
036a41c913b3a4e7ae265e22a672dd89302d3200
/0401-0500/0453/0453_Python_1.py
0f7d87a64b0d8ec0889e466a0307c865f6670356
[]
no_license
ChangxingJiang/LeetCode
e76f96ebda68d7ade53575354479cfc33ad4f627
a2209206cdd7229dd33e416f611e71a984a8dd9e
refs/heads/master
2023-04-13T15:23:35.174390
2021-04-24T05:54:14
2021-04-24T05:54:14
272,088,506
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
from typing import List class Solution: def minMoves(self, nums: List[int]) -> int: step = 0 while len(set(nums)) > 1: maximum = max(nums) nums.remove(maximum) nums = [i + 1 for i in nums] nums.append(maximum) step += 1 return ste...
[ "1278729001@qq.com" ]
1278729001@qq.com
d70d525d7df5b0c558ae847fce106004b8a7ded7
119a1a4312b05e883aeb11be866739e76e4c8374
/test/test_pytree.py
192d28373d6a9c2757f429e5872afa2e45d5e4a5
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
RoyXnadler/pytorch
54b857c456c137bff4456947701e0c7218063caf
ed0b8a3e836ade5652335bbfb6635d2edc4a1e8e
refs/heads/master
2023-07-17T23:49:41.625370
2021-08-12T18:03:32
2021-08-12T18:05:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,727
py
from collections import namedtuple import torch from torch.testing._internal.common_utils import TestCase, run_tests from torch.utils._pytree import _broadcast_to_and_flatten from torch.utils._pytree import ( tree_flatten, tree_map, tree_unflatten, TreeSpec, LeafSpec, ) class TestPytree(TestCase)...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
f41af2150c7e5a1e0d393bb1b7eec00baaca3f1b
cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc
/Python Books/Introduction-to-Programming-Python/pybook/RandomWalk.py
7845569cdd5d5b3cefa1f039ac3ed99ace538f1a
[]
no_license
theGreenJedi/Path
df24fca355590efef0c6cb5c52e7216c6b5d2464
b5ed2805dbb046480929e49e550bfd8af5bb4d6f
refs/heads/master
2023-07-27T14:23:37.694546
2021-07-16T01:38:55
2021-07-16T01:38:55
87,686,563
8
2
null
2023-07-11T22:49:03
2017-04-09T05:57:30
Jupyter Notebook
UTF-8
Python
false
false
1,206
py
import turtle from random import randint turtle.speed(1) # Set turtle speed to slowest # Draw 16 by 16 lattices turtle.color("gray") # Color for lattice x = -80 for y in range(-80, 80 + 1, 10): turtle.penup() turtle.goto(x, y) # Draw a horizontal line turtle.pendown() turtle.forward(160) ...
[ "GreenJedi@protonmail.com" ]
GreenJedi@protonmail.com
f9da96035d9e08357971bd03f1a6a226ef924cf4
7920e4e0504b5faa6d93a8a4fe0c8ccd4924d16d
/chrome/test/vr/perf/latency/run_latency_test.py
cd96b1640837e87f605c2279adcc7eedafb0c079
[ "BSD-3-Clause" ]
permissive
rudolfcn/chromium
36362302b0030a220f4d53e0df6d24d677e20caa
194f67a5a8dddfcd8594d471e30ea6b4e32f0c34
refs/heads/master
2023-01-14T14:15:39.016017
2017-06-23T16:10:47
2017-06-23T17:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,231
py
# Copyright 2017 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. """Script for automatically measuring motion-to-photon latency for VR. Doing so requires two specialized pieces of hardware. The first is a Motopho, which w...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
8203cec6572a199b7d8235bb04b2c7971e913900
f07900334326d809a80f3619197769ea63b84c17
/Python-Advanced/01-Lists-as-Stacks-and-Queues-Exercise/02-Maximum-and-Minimum-Element.py
504bd7b919755b27a0f47a92820a2889ab73058b
[]
no_license
SJeliazkova/SoftUni
394a0da0041bcf2d2be6c5ac18264d52df0f8ad1
5f2c7a9641495e75297d642346dd881de6bfc424
refs/heads/main
2023-02-27T19:11:35.637028
2021-02-06T18:55:58
2021-02-06T18:55:58
332,763,499
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
n = int(input()) nums = [ ] for _ in range(n): data = input().split(" ") command = int(data[ 0 ]) if command == 1: nums.append(int(data[ 1 ])) elif command == 2: if nums: nums.pop() elif command == 3: if nums: print(max(nums)) elif command == 4...
[ "77019056+SJeliazkova@users.noreply.github.com" ]
77019056+SJeliazkova@users.noreply.github.com
9f21c032f9d15f528f49efa065dffcf5e037c526
8b0c10d1fe05f23ae079823421bdacb3b16e01c8
/32_90/A1_pod100/traffic_matrix_3/A1_3.py
801c26a5a698e95f28411d7d3ba451a38668dee7
[]
no_license
LiYan1988/kthjocn_results
68beedc9fe83198bdf0dbd22f5d694d7aaf61580
a9e2300d687359cbd80a25061e97c2ee8d062fed
refs/heads/master
2021-01-13T11:17:10.293501
2016-12-24T02:53:07
2016-12-24T02:53:07
77,261,839
0
0
null
null
null
null
UTF-8
Python
false
false
2,459
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 4 15:15:10 2016 @author: li optimize both throughput and connections """ #import sys #sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs') from sdm import * from gurobipy import * np.random.seed(2010) num_cores=3 num_slots=80 i = 3 time_limit_routing ...
[ "yanli.bupt@gmail.com" ]
yanli.bupt@gmail.com
37c6b5090beb40ed987488a1700e21f797e42009
159aed4755e47623d0aa7b652e178296be5c9604
/data/scripts/templates/object/draft_schematic/item/shared_item_clothing_station.py
cb5c8d8585e30432d3722f334ef9a535d052707f
[ "MIT" ]
permissive
anhstudios/swganh
fb67d42776864b1371e95f769f6864d0784061a3
41c519f6cdef5a1c68b369e760781652ece7fec9
refs/heads/develop
2020-12-24T16:15:31.813207
2016-03-08T03:54:32
2016-03-08T03:54:32
1,380,891
33
44
null
2016-03-08T03:54:32
2011-02-18T02:32:45
Python
UTF-8
Python
false
false
455
py
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/item/shared_item_clothing_station.iff" result.attribute_te...
[ "rwl3564@rit.edu" ]
rwl3564@rit.edu
0d949fb07e0551eae24acc036c2ceced5a048603
7966fa31437cc8a539621a5a0642ce24c1c9de50
/PycharmProjects/leetcode/283.py
d5c9da364f3e90f5f3e48104242658f7c422e7a8
[]
no_license
crystal30/DataStructure
4f938508f4c60af9c5f8ec5520d5acedbe2dc90e
c55b0cfd2967a2221c27ed738e8de15034775945
refs/heads/master
2021-06-25T17:49:03.048853
2021-01-22T00:37:04
2021-01-22T00:37:04
192,374,326
0
0
null
null
null
null
UTF-8
Python
false
false
1,209
py
class Solution: def moveZeroes(self, nums): """ Do not return anything, modify nums in-place instead. """ len_nums = len(nums) i = 0 n = 0 while n < len_nums: if nums[i] == 0: nums.pop(i) nums.append(0) els...
[ "zhao_crystal@126.com" ]
zhao_crystal@126.com
5389bf9dae4af3b6bc6a62ce8f3f9a12281f8f75
75f1346a05db8be5b4eaf25103c42a711a5bfce9
/src/fp_api.py
c2c18b12288476eae61ec4f693f050bc32893b3d
[]
no_license
thetringuyen/fftiers
dab1915ac5a36eb374c2e120243d300698a11a57
7a3952ff589fd17e7e40d3199b1dad618ced8d18
refs/heads/master
2020-03-25T16:49:07.024569
2018-08-07T14:56:13
2018-08-07T14:56:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,953
py
import os import json import argparse import datetime def perform_session_download(year, position, week, scoring, json_path): """ year = '2018' position = 'RB' week = '9' scoring = 'STD' api_key = '7B7tSChOlX7qQ10DjsRX44Dvah6S1HwL5bWU0mbp' json_path = '/Users/borischen/projects/fftiers/test_rb.json' """ api_k...
[ "boris.chen@gmail.com" ]
boris.chen@gmail.com
442210f2ec9cd6e3a30d2fc6e4ac2c55a3902efd
4c5608f20fa2580774d734d94198dd10648e4339
/test/test_punt.py
b305e08bf5c1f81b6df7a646921da0b1deab2faa
[ "Apache-2.0" ]
permissive
mojtaba-eshghie/VPP-In-Situ-IOAM
3d1c3d01752a7934d2f060326674280e0bd93413
efebd91195eb1b0d98a4a1f5efd962ae79c77be6
refs/heads/master
2022-12-10T13:37:04.644952
2020-05-29T11:42:36
2020-05-29T11:42:36
194,249,816
2
0
Apache-2.0
2022-12-08T05:17:31
2019-06-28T09:50:05
C
UTF-8
Python
false
false
41,262
py
#!/usr/bin/env python import binascii import random import socket import os import threading import struct import copy from struct import unpack, unpack_from try: import unittest2 as unittest except ImportError: import unittest from util import ppp, ppc from re import compile import scapy.compat from scapy.pa...
[ "mojtaba.eshghi@ut.ac.ir" ]
mojtaba.eshghi@ut.ac.ir
e21d2dddc113c52dc291c2cba9f2048885fff30f
290c3f0c98f8b9b6cdf2d42442830503de3c708f
/code/f_e.py
a7b84532aabddd855dc1fec9a152438a1b362c20
[]
no_license
hag007/ex4advancedML
be09666185faf3b4a71552565e365357d5887722
97f4be0009952fb8c65256b19176d63ce1f142de
refs/heads/master
2020-03-18T09:38:39.626321
2018-06-03T20:29:41
2018-06-03T20:29:41
134,574,409
0
0
null
null
null
null
UTF-8
Python
false
false
3,603
py
'''This script demonstrates how to build a variational autoencoder with Keras. #Reference - Auto-Encoding Variational Bayes https://arxiv.org/abs/1312.6114 ''' from __future__ import print_function import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt from scipy.stats import ...
[ "hagai.levi.007@gmail.com" ]
hagai.levi.007@gmail.com
7bdbcf3ca76413c4f6efbf9e054d120ec2d7fb85
bc28c8d355be102e57a82d5c1d3db86afacd956c
/Examples/FunctionTesting/baseLinePositions.py
6228c2e357f5a1a009d7424228562ccf535116e6
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pathumego/PageBot
3d194f7b68d928e69bc8e7c0e26e1e49fae517d2
88023d21392f41a5c53ca0b8051a917fb592cf7b
refs/heads/master
2021-07-20T15:32:45.723589
2017-10-24T03:02:12
2017-10-24T03:02:12
109,038,879
1
0
null
2017-10-31T18:47:33
2017-10-31T18:47:33
null
UTF-8
Python
false
false
907
py
fs = FormattedString() fs += "b" fs.lineHeight(74) fs.font("Times") fs.fontSize(38) fs += "hello world " fs.font("Helvetica") fs.fontSize(10) fs.lineHeight(12) fs += "hi agian " * 10 r = (10, 10, 200, 200) textBox(fs, r) fill(None) stroke(1, 0, 0) rect(*r) ##### import CoreText import Quartz def textBoxBaseLines(...
[ "buro@petr.com" ]
buro@petr.com
c350b1ac0358cf31220dd44c10afa0a964c2e5cd
1577e1cf4e89584a125cffb855ca50a9654c6d55
/pyobjc/pyobjc/pyobjc-framework-Quartz-2.5.1/PyObjCTest/test_PDFSelection.py
3a9a7e7c1d7f86a6c1517ac3aa36048165fa61e4
[ "MIT" ]
permissive
apple-open-source/macos
a4188b5c2ef113d90281d03cd1b14e5ee52ebffb
2d2b15f13487673de33297e49f00ef94af743a9a
refs/heads/master
2023-08-01T11:03:26.870408
2023-03-27T00:00:00
2023-03-27T00:00:00
180,595,052
124
24
null
2022-12-27T14:54:09
2019-04-10T14:06:23
null
UTF-8
Python
false
false
243
py
from PyObjCTools.TestSupport import * from Quartz.PDFKit import * class TestPDFSelection (TestCase): def testMethods(self): self.assertArgIsBOOL(PDFSelection.drawForPage_withBox_active_, 2) if __name__ == "__main__": main()
[ "opensource@apple.com" ]
opensource@apple.com
087213e3350624bf92fc5a58ade05b5e5cdb74c4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02777/s198835868.py
de4d34a0127da1e355021977653d642edc145135
[]
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
97
py
s,t = input().split() d={} d[s], d[t] = map(int,input().split()) d[input()] -= 1 print(d[s],d[t])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
737e97fa0884703e8a8d42aab632bf4401167987
45852da1814939cebeb1d9449b9c134b96fab659
/scripts/plotFeatures.py
d6184fd60dc3e22bf7822e2191ac866f02ca6ea9
[]
no_license
arunchaganty/beethoven
88e2a29a7d8d4a7cf205a07b6df3668e41cacb14
80e5f0d4805861a0e477daf9d99e27c8eb4a42bc
refs/heads/master
2020-06-08T00:50:12.361426
2009-11-27T18:23:23
2009-11-27T18:23:23
336,115
2
1
null
null
null
null
UTF-8
Python
false
false
408
py
#!/usr/bin/env python import evaluators from mingus.midi import MidiFileIn if __name__ == "__main__": import sys if len(sys.argv) != 2: print "Usage: %s <midi-file>"%(sys.argv[0]) sys.exit(-1) filename = sys.argv[1] composition, bpm = MidiFileIn.MIDI_to_Composition(filename) tra...
[ "arunchaganty@gmail.com" ]
arunchaganty@gmail.com
74f71b3e15deb4c02a0708137d488f03fec6d785
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2740/47774/289523.py
0f8bedea3d7b7dd552db570280d8c83682bd67da
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
270
py
times=input().replace('[','').replace(']','').replace('"','').split(',') res=[] for time in times: num = int(time[0:2])*60+int(time[3:5]) res.append(num) res.sort() ans=res[0]+24*60-res[-1] for i in range(1,len(res)): ans=min(ans,res[i]-res[i-1]) print(ans)
[ "1069583789@qq.com" ]
1069583789@qq.com
dafef0760a99cdf7243f2984c999aec3a5d48917
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/2023.py
742cf354c97a640d7179cd6cf1263f93007b6af2
[]
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
921
py
def flip(row, flipperSize, idx): for i in range(flipperSize): row[idx + i] = flipElement(row[idx + i]) def flipElement(actual): if actual == "+": return "-" else: return "+" def solved(row): if "-" not in row: return True else: return False def answer(row,...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
7eee9333a3f16ce42b8a0315c4d04072b1a7df23
5c40c2bb22126b578b5ddcdd222cc6618acf5878
/examples/client.py
1c4b8ae154ee6f520ded5e80954821b600f6a83f
[ "Apache-2.0" ]
permissive
Fatal1ty/aioapns
320511edc7074520601644acf124b93a51f3ae7a
10757c1efa69713d0fd7d29fe600032c434168de
refs/heads/master
2023-05-26T19:36:40.949248
2023-04-16T13:07:45
2023-04-16T13:07:45
90,959,572
92
37
Apache-2.0
2023-08-28T21:17:32
2017-05-11T09:05:19
Python
UTF-8
Python
false
false
1,261
py
import asyncio import logging import uvloop from aioapns import APNs, NotificationRequest def setup_logger(log_level): log_level = getattr(logging, log_level) logging.basicConfig( format="[%(asctime)s] %(levelname)8s %(module)6s:%(lineno)03d %(message)s", level=log_level, ) if __name__...
[ "fatal1ty.rnd@gmail.com" ]
fatal1ty.rnd@gmail.com
786799ea289a74407593f860e676c520cf225e08
22f8c3c11bbf9054a367d6e1f72def30009ca7e4
/list/migrations/0016_auto_20151118_0354.py
d9f07dd27114ee01b25e7c44d7fe04c13411a10e
[]
no_license
djachenko/booklist
848018cf4c1a360e7ed809dd9a1f1fec336d2ec2
0176b2b3b1fa01e435ed291af562d47096e49c8a
refs/heads/master
2021-01-10T12:04:31.662948
2016-01-31T13:53:12
2016-01-31T13:53:12
49,863,636
0
0
null
2019-10-22T20:33:04
2016-01-18T08:44:44
Python
UTF-8
Python
false
false
528
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('list', '0015_auto_20151118_0345'), ] operations = [ migrations.RemoveField( model_name='book', name=...
[ "i.s.djachenko@gmail.com" ]
i.s.djachenko@gmail.com
28ac4ca04cdbb962029944a5125c26c3c42d243d
acf8fe77e599f8372adf4fc971012394715795d6
/flask/lib/python2.7/site-packages/egginst/repair_broken_egg_info.py
f4d80f39e0264567952000a3b2afcff6ae3cec89
[]
no_license
shaheershantk/Blog-Engine-Using-Flask
3e2f1457a59f282c336bbb63ff48171f938f5108
450e76a8bde0bd702d995fa7bb746ed920917f98
refs/heads/master
2021-01-01T19:42:03.401554
2014-11-10T15:01:08
2014-11-10T15:01:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,968
py
import argparse import errno import os.path import shutil import sys from egginst.main import (EggInst, get_installed, read_meta, setuptools_egg_info_dir, should_copy_in_egg_info) from egginst.utils import makedirs, rm_rf def package_egg_info_dir(egginst): return os.path.join(egginst.site_packages, setup...
[ "shaheer.shan@gmail.com" ]
shaheer.shan@gmail.com
667aee329b7da7b65a9bf1d1ab140538f146df9d
e4cae3759a053ca88a936e87e3329aec203608db
/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py
bb3cb57fe25816fb56f65c8db6643bb15e115ac9
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
a-santamaria/azure-sdk-for-python
c9413858747ccfcec2fbbefd50922c515cb4f634
9dec418ad621ac75f217e56e901f15b6624800b0
refs/heads/master
2022-05-19T00:01:07.604118
2021-02-01T22:52:25
2021-02-01T22:52:25
202,599,021
0
0
MIT
2019-08-15T19:22:33
2019-08-15T19:22:32
null
UTF-8
Python
false
false
5,568
py
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from azure.core.tracing.decorator import distributed_trace from ._generated._communication_identity_client\ import CommunicationIdentityClient as Co...
[ "noreply@github.com" ]
a-santamaria.noreply@github.com
25588c2167f3babcbbfa02146d540789a6c0c6d3
fce736560a57ec87e3bc13c7e293e73399bc65d1
/scripts/poke_eval_df.py
65a2a42539d62f4c10d0bc68cfb21be100fe3583
[]
no_license
gokul180288/instacart-basket-prediction-1
92d7ed9512bafeb400fb6cd2f4d06b605ce42c72
4d62ff6c1304639751c305000cf647a85a2d4dac
refs/heads/master
2021-01-18T17:05:50.179144
2017-08-15T20:22:52
2017-08-15T20:22:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
import numpy as np import tensorflow as tf import pandas as pd import sys, os.path sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import predictor as pred import rnnmodel import utils import evaluator from batch_helpers import iterate_wrapped_users, UserWrapper from insta_pb2 import Us...
[ "colin.morris2@gmail.com" ]
colin.morris2@gmail.com
9b79f001da2308b2ba8a4369b45eb54e7695a45b
9ef7687b327ce9e52dae214d8265c11f6acd44cf
/api/TallySheetVersionApi/TallySheetVersionPRE41Api.py
f642478069e5db5e5a2f073447722c0130b0fa07
[]
no_license
rangana/results-tabulation-api
ba0ac8e0f268e059240dd0d6d9b7bb1f23bff872
f8b90f786e99aaf6da1de13656d1ff28c9eb6de7
refs/heads/master
2020-07-13T09:13:47.999599
2019-08-27T10:00:10
2019-08-27T10:00:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,575
py
from util import RequestBody from schemas import TallySheetVersionPRE41Schema from orm.entities.Submission import TallySheet from orm.entities.SubmissionVersion.TallySheetVersion import TallySheetVersionPRE41 from exception import NotFoundException def get_by_id(tallySheetId, tallySheetVersionId): result = TallyS...
[ "l.dinukadesilva@gmail.com" ]
l.dinukadesilva@gmail.com
7515bb4e8974a5a6c7f4b1f80b22ff308e850c93
fbf27a33d219f337a7024fee8c84c639a67647d8
/memo_app/migrations/0009_remove_memos_name.py
30e409cbc2bc575fde4d3872fb83734e9bbcb0ff
[]
no_license
Jungjihyuk/django_memo
14cde63a828a2cdd9a404f3121a7e2aa263929a5
7c372155231cd377e92351326e870be668919d5d
refs/heads/master
2020-04-17T14:26:27.389462
2017-04-06T14:10:01
2017-04-06T14:10:01
166,648,462
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-03-08 06:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('memo_app', '0008_memos_name_id'), ] operations = [ migrations.RemoveField( ...
[ "siwabada@gmail.com" ]
siwabada@gmail.com
2876e44b91053205d8dbfd0e67dfd9b3fe303a1c
84cb5bf74a2b915cdc5f74dda81b43499d259e30
/test/integration/test_command_line.py
41b7e4538449aed35ff645161aec1150be596ffb
[ "BSD-3-Clause" ]
permissive
Graham42/mike
68b48b52560724e9fa6cfc7ab7b5fb888a48f453
7e4f8ee5c0732e418109e5233d56c8cc19f26109
refs/heads/master
2023-07-29T11:45:53.836453
2021-09-14T14:28:37
2021-09-14T14:31:23
406,400,528
0
0
BSD-3-Clause
2021-09-14T14:27:44
2021-09-14T14:27:43
null
UTF-8
Python
false
false
792
py
import unittest from . import assertPopen class HelpTest(unittest.TestCase): def test_help(self): output = assertPopen(['mike', 'help']) self.assertRegex( output, r'^usage: mike \[-h\] \[--version\] COMMAND \.\.\.' ) def test_help_subcommand(self): output = assert...
[ "itsjimporter@gmail.com" ]
itsjimporter@gmail.com
2e335963d780fb9f145bf415a9425df65ecbccb4
679791865a5d33931bad3f1d27cc8860574e16e1
/QuadHoru1.py
728f929d62955a732c91e61c329b39b5d04dcdd8
[]
no_license
mfkiwl/pico
24bebbb2998d96aeaac3fb627cc67a847ef3f68d
05418474bb9323dc2be4fc9e2094008e8749d626
refs/heads/main
2023-06-15T20:40:26.645080
2021-07-10T16:39:42
2021-07-10T16:39:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,495
py
# From https://www.raspberrypi.org/forums/viewtopic.php?p=1842706#p1842706 # Author: RPi Forum user 'horuable' # Mods: J.Beale 26-March-2021 from machine import Pin, mem32 from rp2 import asm_pio, StateMachine, PIO from time import ticks_ms, ticks_us, ticks_diff, sleep import array # Simulation SM @asm_pio(set_init=P...
[ "noreply@github.com" ]
mfkiwl.noreply@github.com
5f271b13e9401dee1c5ae6f9a7734047224c4137
6b148a053f5406e7daf2082fa1581d328972cca2
/main.py
ce5cb4bf5299db3fb7a0e6d5e94de0ddaf41548a
[]
no_license
CNDPlab/MSMARCO_Reshaped
cbfa8646b83eb1b4b2f142251f32518756b67a81
31c55ce4d2188f97978574f1793659824b737f1b
refs/heads/master
2020-04-04T22:04:05.585829
2018-11-21T01:40:36
2018-11-21T01:40:36
156,309,125
1
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
import fire import torch as t from Predictor import Models from Trainner import Trainner import fire from Loaders import get_dataloader from Predictor.Tools.Matrixs.ScoreFuncs.RougeScore.score_function import rouge_func from Predictor.Tools.Matrixs.LossFuncs.boundary_loss import boundary_loss_func from configs import D...
[ "lancertong@live.com" ]
lancertong@live.com
9707b13e614d1c25292f732707550d3006e2889e
f0c402d3858f0643561886797578b1e64655b1b3
/tests/riscv/privilege_switch/_noiss_fctrl.py
5af57eed84db4f65ee77735cf3bed8fcba559248
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Leo-Wang-JL/force-riscv
39ad2a72abd814df4b63879ce9825b6b06a9391a
deee6acaaee092eb90ac2538de122303334e5be3
refs/heads/master
2023-01-28T00:06:58.135651
2020-11-18T02:54:10
2020-11-18T02:54:10
271,873,013
0
0
NOASSERTION
2020-06-28T00:51:26
2020-06-12T19:15:26
C++
UTF-8
Python
false
false
704
py
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PRO...
[ "jwang1@futurewei.com" ]
jwang1@futurewei.com
5a5bd97b18b15e96850670215e3de9df96b489de
19c2ec1cc30922f80b1848a7063573572024b1ac
/zmqpy/__init__.py
b5181f8704f0c9dff7a4062ac6d6f9c382c0a734
[ "BSD-2-Clause" ]
permissive
gcflymoto/zmqpy
bb760489dbb25c47f609a99a0dc1fe2fe69faee0
893ef5fe5fd756cd5d6e233cd12c1040f8d49e9a
refs/heads/master
2021-01-16T23:00:05.042552
2013-08-13T06:19:43
2013-08-13T06:19:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
from .zmqpy import * from .constants import * from .error import * __all__ = ['zmqpy', 'constants', 'error']
[ "felipecruz@loogica.net" ]
felipecruz@loogica.net
07213d5bb841c4b3478f25634b4729a4443179b0
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/dfirtrack/dfirtrack_main/migrations/0007_systemstatus.py
9adde949f9349e22226b9483608cc5a4812d0473
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
476
py
# Generated by Django 2.0.2 on 2019-01-21 07:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dfirtrack_main', '0006_tagcolors'), ] operations = [ migrations.RunSQL("INSERT INTO dfirtrack_main_systemstatus (systemstatus_name) VALUES ('90_not...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
794e316852bb9520603fa4441ebfa063ea8b3386
0cc4eb3cb54f8394c127ace62d3108fdb5230c85
/.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/distutils/log.pyi
44ce9c3b7daa89ee9eff43dcfea6570d0c88f2ed
[]
no_license
jacobmerson/spack-develop-env
5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8
5fca20ca343b1a76f05fc635c87f94ed25417d94
refs/heads/master
2022-07-04T02:22:50.264727
2020-05-06T05:13:50
2020-05-06T05:13:50
261,657,112
0
0
null
null
null
null
UTF-8
Python
false
false
196
pyi
/lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/distutils/log.pyi
[ "mersoj@rpi.edu" ]
mersoj@rpi.edu
d160cfda0ac5d85498984ad8a9dd4ae0ce49e13b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_inflames.py
570c5c7eda7ef3cd4dcad6dd447e7b64f9d1b18c
[ "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
245
py
from xai.brain.wordbase.verbs._inflame import _INFLAME #calss header class _INFLAMES(_INFLAME, ): def __init__(self,): _INFLAME.__init__(self) self.name = "INFLAMES" self.specie = 'verbs' self.basic = "inflame" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
b426c97a04a5e64e0bb6fc5345f5197fbb954afb
4cacc43716ef24b50e4b336f3f6e920d9ef0e564
/IRP2/scripts/bam_to_ml_csv.py
9a0e9670aec7c16cce2ab57460976e3e6cc8dff4
[ "MIT" ]
permissive
ShepherdCode/ShepherdML
141e78943ecc8e387eeb84e4c4bbbf3448a46da0
335382730edf4537713ece62896e79a5a4430fb2
refs/heads/master
2023-08-17T15:02:28.985054
2023-07-25T15:49:46
2023-07-25T15:49:46
230,672,524
2
0
MIT
2023-08-29T11:55:04
2019-12-28T21:54:46
Jupyter Notebook
UTF-8
Python
false
false
12,019
py
import sys import re ''' $ samtools view Primary.bam | python bam_to_ml_csv.py > Primary.csv The bam file must be sorted by read ID, which is how aligners generate it by default. File format documentation: https://samtools.github.io/hts-specs/SAMv1.pdf https://samtools.github.io/hts-specs/SAMtags.pdf https://bowtie-b...
[ "jmill02@shepherd.edu" ]
jmill02@shepherd.edu
2dd2f27a0a87d46182fbc1a1ffbc7c262197d10a
66cd150a949ad2040eeb2ef2e9fd3218c1b75f1a
/Django/Pending_Projects/PBeltExam4/main/apps/xapp/views.py
587bc08c839b5808fc133fec238c9791630190da
[]
no_license
Exia01/Python
4849d836dbff82370247ebdfcf5b0ed64740dfb6
bc4b0aa7134bb5708dcddf56b7f07c9d225e6a20
refs/heads/master
2022-12-14T11:56:41.992560
2019-06-06T22:30:25
2019-06-06T22:30:25
131,539,015
2
0
null
2022-11-22T02:34:38
2018-04-29T23:44:59
Python
UTF-8
Python
false
false
3,630
py
from django.shortcuts import render, redirect from .models import * from django.contrib import messages from datetime import date today = date.today() def indexlogin(request): return render(request, 'xapp/login.html') def register(request): return render(request, 'xapp/register.html') def createuser(reque...
[ "sixgg4@gmail.com" ]
sixgg4@gmail.com
6948cb1fa239bd13273e486268171996a315afb5
9f487b9fda302d7320ebfe67264d1328905d02da
/kai_app/users/tests/test_views.py
1a5160a6f517f36c5e6018ce47f63e4560fbb251
[ "MIT" ]
permissive
altdotenv/kai_app
56831d674805cd61a91c2977a5fe7d62d4b3ac09
203089fc3f0a304511d8ada781629d4e65537423
refs/heads/master
2021-11-19T04:33:22.966932
2018-12-03T14:06:32
2018-12-03T14:06:32
160,193,756
0
0
MIT
2021-06-10T21:08:08
2018-12-03T13:18:12
Python
UTF-8
Python
false
false
1,499
py
import pytest from django.conf import settings from django.test import RequestFactory from kai_app.users.views import UserRedirectView, UserUpdateView pytestmark = pytest.mark.django_db class TestUserUpdateView: """ TODO: extracting view initialization code as class-scoped fixture would be g...
[ "jisu.han3201@gmail.com" ]
jisu.han3201@gmail.com
38087dc6ce3a255a79fef0594c2ca24dd123a94f
e5fe24a223a4186751b5856c1b4f9e0e8fe7910c
/build/bring_up/catkin_generated/pkg.installspace.context.pc.py
4e76f9a876dfd533446b71681a6a36a8cef2f1a5
[]
no_license
JoseBalbuena181096/AutoModelCar-Simulation
8c4b6ed906b537ef8058a2f294407afdf21905e6
00170c64ca35b436eced18e43f81d31e9c34b4c7
refs/heads/main
2023-04-19T10:52:14.647933
2021-05-05T07:39:22
2021-05-05T07:39:22
360,802,160
1
0
null
null
null
null
UTF-8
Python
false
false
370
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "bring_up" PROJECT_SPACE_DIR = "/home/...
[ "angelsnek2510@gmail.com" ]
angelsnek2510@gmail.com
fedadd7805f6bb13d40a3a0bd9511b1f6ca5fc74
7e6c828d8fa50b70fefb9f38e001834e9dba3413
/my315ok/socialorgnization/content/orgnization.py
1af753a8243790c78d616af3767c5c80cbea10e0
[]
no_license
adam139/my315ok.socialorgnization
6cc23978f4431c7f234f7f9294f4dceb943dcff5
49eca00b28251b263d0c4bcd280805f87c195108
refs/heads/master
2021-04-22T04:55:11.902028
2019-09-20T01:37:34
2019-09-20T01:37:34
23,513,662
0
0
null
null
null
null
UTF-8
Python
false
false
7,155
py
#-*- coding: UTF-8 -*- from five import grok from zope import schema from zope.interface import Interface from zope.schema.interfaces import IContextSourceBinder from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm import datetime from plone.directives import form, dexterity from plone.app.dexterity.behavio...
[ "yuejun.tang@gmail.com" ]
yuejun.tang@gmail.com
3e375f757f364ade1fae2034b43e08dc77cb504d
17554c4666f40759074dbe204aca6f9b5373d207
/tensorflow/contrib/eager/python/datasets.py
36b7d6d0098baea997ffeaaffab18e0f996a5110
[ "Apache-2.0" ]
permissive
PACELab/tensorflow-1
ef92f70c5e5ff4cb3bda9254b8ef66b45f124566
fff95ee576e266eae9ccf23688849303aa146a3d
refs/heads/master
2021-01-25T14:34:10.574775
2018-03-03T18:14:50
2018-03-03T18:14:50
123,713,012
0
1
Apache-2.0
2018-03-03T17:03:35
2018-03-03T17:03:35
null
UTF-8
Python
false
false
7,952
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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
f1e7108254410a8826e8dbd34af3e74610e58483
17993dcca87d490bc9841437309f309a5592ab38
/Codes/linear_regression/exercise/sklearn_bike.py
02417a40743b40d06f628a7b0e3143e37962267a
[]
no_license
dreamlikexin/machine_learning
bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e
850e87025270847210b6ad188d2da181983a72c7
refs/heads/master
2022-01-16T09:51:20.538340
2019-06-19T16:27:26
2019-06-19T16:27:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeRegressor from sklearn.linear_model import LinearRegression from sklearn.metrics import r2_score def get_data(): df = pd.read_csv("/Users/wanglei/ML_data/bike.csv") df.datetime = df....
[ "wanglei@wanglei-mbp.local" ]
wanglei@wanglei-mbp.local
d115affff327b7b413e614f209e4d1384891ebf6
b11735d9d9ccc9933bcc0b71b0b34141b210cd96
/gimmemotifs/commands/threshold.py
94a8a016896d6e3256909663c56cef5b146cc8a0
[ "MIT" ]
permissive
kipkurui/gimmemotifs
124bc592260506636a3e3a1db1d3d4058b396799
51bd0c6700877f79179f08e5bab7de70fc2eab94
refs/heads/master
2020-12-31T04:07:07.949089
2014-08-08T12:43:08
2014-08-08T12:43:08
26,086,618
1
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
# Copyright (c) 2009-2013 Simon van Heeringen <s.vanheeringen@ncmls.ru.nl> # # This module is free software. You can redistribute it and/or modify it under # the terms of the MIT License, see the file COPYING included with this # distribution. import sys from gimmemotifs.fasta import Fasta from gimmemotifs.motif imp...
[ "simon.vanheeringen@gmail.com" ]
simon.vanheeringen@gmail.com
1aed0b40ce74f2327fe71d5c8df49c6f035f773f
16ed3bed1b4f5433efd3394c0301f96b16a87bda
/account/serializers.py
47e2e1cf8b837c0d833ce56fee7634a786471414
[]
no_license
yangnibal/dae-backend
e8a7fb08b3b6b4d4dfdacb2757798330d5b7a9c6
d46aa1d73db44fd8f26f5d86d8625311206b4e25
refs/heads/master
2022-10-29T23:50:14.327169
2020-06-17T07:00:12
2020-06-17T07:00:12
269,614,869
0
0
null
null
null
null
UTF-8
Python
false
false
2,244
py
from rest_framework import serializers from .models import User from django.utils.translation import ugettext_lazy as _ from django.contrib.auth import authenticate class UserSerializer(serializers.ModelSerializer): id = serializers.CharField(read_only=True) class Meta: model = User fields = ['...
[ "wonjun9670@naver.com" ]
wonjun9670@naver.com
e6146a384c173740a5c9ade68e9380d616dc5cb4
6a95b330e1beec08b917ff45eccfd6be3fd4629f
/kubernetes/client/models/v1_fc_volume_source.py
38637a71698c8c349f43fa4082c6ab369175641a
[ "Apache-2.0" ]
permissive
TokkoLabs/client-python
f4a83d6540e64861b59e322c951380a670578d7f
f1ad9c6889105d8510472606c98f8d3807f82020
refs/heads/master
2023-07-14T01:36:46.152341
2017-12-21T21:32:11
2017-12-21T21:32:11
115,042,671
0
0
Apache-2.0
2021-08-06T03:29:17
2017-12-21T20:05:15
Python
UTF-8
Python
false
false
6,662
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "mehdy@google.com" ]
mehdy@google.com
4552ef277fea4e4e285557aaa36ab18031200011
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03612/s499548684.py
fa5f86d1420f02d23ffd1d9156dd2a66d04d97b7
[]
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
281
py
import math n = int(input()) p = list(map(int, input().split())) # 連続する部分列を数える cnt=0 ary=[] for i in range(n): if p[i]==i+1: cnt+=1 else: ary.append(cnt) cnt=0 ary.append(cnt) print(sum([math.ceil(i/2) for i in ary if i > 0]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4664662400bcca5833d6cd7467b63e342c0a335e
9062c1b2b1715d4b5b34062dd52b6007fb2ca537
/tensorflow/python/data/experimental/kernel_tests/auto_shard_dataset_test.py
628b076de7d433bc90a1411037a898bbc72ab1d2
[ "Apache-2.0" ]
permissive
robotastic/tensorflow
54c4c7cbcde5e9d374897d5038a96eb5feff16aa
b88f9f60de706dbe78acf9189b9fa04bdc7a6836
refs/heads/master
2020-08-30T06:13:07.176029
2019-11-05T01:49:44
2019-11-05T01:49:44
218,283,699
2
1
Apache-2.0
2019-10-29T12:38:51
2019-10-29T12:38:50
null
UTF-8
Python
false
false
14,228
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
b23f36f14614e117aa14d77915116c9100267bdf
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/networkx/algorithms/centrality/tests/test_trophic.py
17479bb85188a3503b5ce93172a129be22f922a7
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
8,802
py
"""Test trophic levels, trophic differences and trophic coherence """ import pytest np = pytest.importorskip("numpy") import networkx as nx from networkx.testing import almost_equal def test_trophic_levels(): """Trivial example """ G = nx.DiGraph() G.add_edge("a", "b") G.add_edge(...
[ "msaineti@icloud.com" ]
msaineti@icloud.com
4e281cdfa8bad778b7d3c095673a862da629b5ce
f0a5ad7b8aa39f51f233391fead0da3eabecc4ee
/.history/toolbox/sheets_20191128121151.py
8b7b11c37ac884353ee31d45ea601c894e7c19de
[]
no_license
OseiasBeu/webScrapping
e0a524847e55b24dbbd3d57bbe7fa43b4e101f48
1e72c7551aea355a891043baecfcbab8a89e719a
refs/heads/master
2022-10-25T18:12:50.858653
2020-06-18T01:29:24
2020-06-18T01:29:24
224,681,550
0
0
null
null
null
null
UTF-8
Python
false
false
2,469
py
from __future__ import print_function import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import numpy as np # import gspread def insertPlanMiddleware(rows): # If modifying these scopes...
[ "oseiasbeu@outlook.com" ]
oseiasbeu@outlook.com
d66be1235d75d0a9f8010ebd9d36319e1623f3f1
08e052c0c2ee4ad0cd4980fbc8a692c407118659
/Exercícios Finais/Exercícios 4/Questão 4_b_Lista 4.py
71ff461545304040e73c7ef61331d78d9d64c468
[]
no_license
miltonleal/MAC0110_Introduction_Computer_Science_IME_USP
6fad182f7fbb3e83403080800074bf57456cb0b5
b47936ce66e715dba79dff44779a750d795192a0
refs/heads/master
2023-03-04T11:06:48.092980
2021-02-17T14:47:46
2021-02-17T14:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
#Escreva uma função DesCriptografa(st, dsl) que faz o inverso. # Devolve st devidamente descriptografada com deslocamento dsl. def DesCriptografa (st,dsl): string_decrypt = "" #cria string vazia for i in st: #varre a string string_decrypt += chr((ord(i) + (-dsl)) % 256) #desloca a tabela ASCII no s...
[ "milton.leal@usp.br" ]
milton.leal@usp.br
0a38fdac8ee3f86ecbb73fd0c5c26c8cc9d47326
e3466d01359ce2ff9f3e3d63eb0971f56f9a0f3f
/leetcode/arrays/a_90_subsets_2.py
32397ea514ba608125bc84cf5b761bf06ad5bba7
[]
no_license
ruan65/python_algorithms_and_problem_solving
e58b683047f23a0b008fdf340a2a5c86811da0bb
96a34b07865a7251be849d3563fbe3fa7e7ee820
refs/heads/master
2023-01-08T23:34:28.385555
2020-11-10T00:01:58
2020-11-10T00:01:58
274,229,123
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
class Solution: def subsetsWithDup(self, nums: [int]) -> [[int]]: res = [[]] for n in nums: for sbs in [subset + [n] for subset in res]: sbs.sort() if sbs not in res: res.append(sbs) return res if __name__ == '__main__': p...
[ "ruan65@gmail.com" ]
ruan65@gmail.com
1658be29e9ccf308e521eee12300cbc105b6525b
15a0809e1a0b4f41273ea38cf2da67bbb96cbb45
/addon-src/build/config.gypi
56518175b362f63d625ff66d74952e82988cb644
[]
no_license
ietuday/advanced-node-concepts
24dafddb0aa4296c57eb61c103ac32340a2b5068
3eb534193934b8555c97fdc5d65e9b0cecf5d171
refs/heads/master
2020-03-09T00:32:38.994295
2018-04-07T06:34:04
2018-04-07T06:34:04
128,490,687
0
0
null
null
null
null
UTF-8
Python
false
false
2,157
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
[ "udayaditya.singh@gmail.com" ]
udayaditya.singh@gmail.com
654259393acac138beb27a45bf818d23fcf503b2
715966248566909e4e8978230b37458d031418c5
/01.jumptopython/chap03/책/124.py
a164afb048860118b228c385910eeee3b83b683d
[]
no_license
itminha123/jumptopython
1101f4e065ce2f8e0a1c68bb818b14b562fc43d1
8b25ae84f795eab5e7bcfa609646a2736ac2a98f
refs/heads/master
2021-09-19T08:29:33.686384
2018-07-25T18:59:55
2018-07-25T18:59:55
112,169,738
1
0
null
null
null
null
UTF-8
Python
false
false
56
py
prompt=""" 1.add 2.del 3.list 4.quit Enter number:"""
[ "itminha123@naver.com" ]
itminha123@naver.com
58efac51b172f45f65c58f6015b7a6f935bd6c98
50a39c462fac7e889f6257cc2c3e3c84986e4bb2
/scene_graph_V5.py
2b6ff5cc094c1dcdb8406fe2e60001d9d6a64812
[]
no_license
chickenbestlover/MSDN2
2b16f70eb58bcc67893ec65ed1a58db3f0dd79a9
58a0c6aa8e8e8953572567145ffecd5b10bdfb5a
refs/heads/master
2020-03-25T07:37:54.873304
2018-11-05T05:46:02
2018-11-05T05:46:02
143,572,068
0
0
null
null
null
null
UTF-8
Python
false
false
9,051
py
import sys sys.path.append('./FactorizableNet') import random import numpy.random as npr import numpy as np import argparse import yaml from pprint import pprint import cv2 import torch from torch.autograd import Variable from lib import network import lib.datasets as datasets import lib.utils.general_utils as utils im...
[ "jmpark@rit.kaist.ac.kr" ]
jmpark@rit.kaist.ac.kr
18d4bfa207564d45d577a41871087e69541c0473
bc899480ea50049929e6ba7a2836e39a51d0faa3
/leetcode/data_structures/BST/kth_smallest_BST_itr.py
6c9677d90c4d9079f56a89b1dc9f6e90dc2802e6
[]
no_license
grewy/practice_py
605a88f40eb54f7ac0fd54a1ab2d6bfdfae57b49
b00f649598a6e57af30b517baa304f3094345f6d
refs/heads/master
2021-07-09T01:33:07.158778
2020-10-15T12:33:06
2020-10-15T12:33:06
199,878,779
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def kthSmallest(self, root, k): """ :type root: TreeNode :type k: int :rtype: int ...
[ "mgatuiet@gmail.com" ]
mgatuiet@gmail.com
619ef6c33b9fccf7a2d7085e01dd1bafa2595701
d65a9118ddbf9ec7f156e7383240080942e9a47b
/python/pygecko/transport/__init__.py
f5f8d911fe048b2ce3b8c27acc4a324d23e2285b
[ "MIT" ]
permissive
gecko-robotics/gecko
4f96acbbd4d09b205073d6150ebb1345cf4e60fd
f340381113bdb423a39d47aaee61e013bb9e002a
refs/heads/master
2022-05-30T21:20:38.049321
2022-03-06T21:43:01
2022-03-06T21:43:01
165,568,726
2
0
MIT
2019-10-26T19:28:10
2019-01-14T00:06:09
HTML
UTF-8
Python
false
false
665
py
############################################## # The MIT License (MIT) # Copyright (c) 2014 Kevin Walchko # see LICENSE for full details ############################################## # from __future__ import absolute_import, print_function, division # from pygecko.transport.core import GeckoCore # from pygecko.transpo...
[ "walchko@users.noreply.github.com" ]
walchko@users.noreply.github.com
462a2463a496314ad0935280edc951f838d60f39
28489cb7b78af54f0812362682ed5245ea8f844c
/1 - Algorithms/3 - Sorting/1 - Insertion Sort - Part 1.py
0a5a9631a0a75743ac47fbd7a4415025cf3342aa
[ "MIT" ]
permissive
sbobbala76/Python.HackerRank
7782b179d0c7b25711fe2b98763beb9ec22d7b09
33c5c30d1e6af1f48370dbb075f168d339f7438a
refs/heads/master
2021-05-23T12:29:11.302406
2020-06-01T12:28:49
2020-06-01T12:28:49
253,286,651
0
0
MIT
2020-04-05T17:00:33
2020-04-05T17:00:32
null
UTF-8
Python
false
false
548
py
# Given a sorted list with an unsorted number e in the rightmost cell, # can you write some simple code to insert e into the list so that it remains sorted? def last_insertion_sort(sorted_array, value): item = a[-1] i = n - 1 while (item >= value) and (i > 0): i -= 1 item = a[i] if item < value: a[i + 1] = ...
[ "ehouarn.perret@outlook.com" ]
ehouarn.perret@outlook.com
3dd8ccd9f054a47d2898eb7806c3687dd041b080
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_5/bryann004/mymath.py
573ecd7e225c7b615080bdad0e4947a8f0b2a82a
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
def get_integer(n): a = input("Enter "+str(n)+":\n") while not a.isdigit (): a = input ("Enter "+str(n)+":\n") a = eval (a) return a def calc_factorial(n): nfactorial = 1 for i in range (1, n+1): nfactorial *= i return nfactorial
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
e9ee41bf99c91ee0223d23bff8bcc2c786e9a551
3f41bafb8012f264605724dbe9b1a6ee11a1f767
/source/object_detection/tensorflow_object_detection/generate_csv.py
e1b3bb3db7d2a6462a28bff28eed43ecccce7066
[]
no_license
pervin0527/pervinco
6d0c9aad8dbf6d944960b2e2c963054d1d91b29a
9ced846438130341726e31954cc7e45a887281ef
refs/heads/master
2022-11-26T02:11:00.848871
2022-11-24T00:56:14
2022-11-24T00:56:14
223,062,903
5
3
null
null
null
null
UTF-8
Python
false
false
2,363
py
import os import glob import sys import argparse import pandas as pd import xml.etree.ElementTree as ET from datetime import datetime from xml.dom import minidom def xml_to_csv(path): xml_list = [] for xml_file in sorted(glob.glob(path + '/*.xml')): img_file_name = xml_file.split('/')[-1] ...
[ "zfbtldnz@gmail.com" ]
zfbtldnz@gmail.com
cdafa9f0c9eae64c53f9a9b05e5c23db30d9bda3
3a533d1503f9a1c767ecd3a29885add49fff4f18
/saleor/order/migrations/0155_merge_20221215_1223.py
4aaf867a0d7b64a34f4f9d5a77289d389e502b9b
[ "BSD-3-Clause" ]
permissive
jonserna/saleor
0c1e4297e10e0a0ce530b5296f6b4488f524c145
b7d1b320e096d99567d3fa7bc4780862809d19ac
refs/heads/master
2023-06-25T17:25:17.459739
2023-06-19T14:05:41
2023-06-19T14:05:41
186,167,599
0
0
BSD-3-Clause
2019-12-29T15:46:40
2019-05-11T18:21:31
TypeScript
UTF-8
Python
false
false
265
py
# Generated by Django 3.2.16 on 2022-12-15 12:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("order", "0152_merge_20221215_1217"), ("order", "0154_auto_20220621_0850"), ] operations = []
[ "noreply@github.com" ]
jonserna.noreply@github.com
bfc89b9d3ef318a21e504a3d024ac0f0aac04200
eb189a409720368f6e49b59a47dfa0e42f86e06e
/efficientdet/main.py
1e74410699f8d5763941b00a6afe8574d0309d66
[ "Apache-2.0" ]
permissive
shenghh2015/cell_detection
1878cfee19f87ff08f1debd927f5cc9911d354ba
872ea94bf00714b36e617b214e8b13596b2fe61a
refs/heads/main
2023-08-30T03:36:38.944087
2021-11-04T15:40:20
2021-11-04T15:40:20
340,451,385
1
0
null
null
null
null
UTF-8
Python
false
false
16,244
py
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ "shenghh2015@gmail.com" ]
shenghh2015@gmail.com
03f65b40f99335657c33651ea991e4bbd3ede21f
62e69a4007f33fba3f8572bbde4e64048a7e4b81
/CVServer/apps/__init__.py
46ffc632fa42afab2e9c2212c14a7b7ac197a70b
[]
no_license
mindis/dm_server
672efe7c72806ab26adf89ecf4f843d83286b6f5
748541cb2651720a264dbfbf0b0fae5875357c5e
refs/heads/master
2020-08-01T19:42:57.124480
2019-09-24T08:16:18
2019-09-24T08:16:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
# author: zac # create-time: 2019-07-09 14:19 # usage: -
[ "zhoutong@apusapps.com" ]
zhoutong@apusapps.com
15a481c66c27336545f7b02c28fbe4589124699f
ca17bd80ac1d02c711423ac4093330172002a513
/strobogrammatic_number_ii/StrobogrammticII_Iterative.py
8f809353bba6f062bfae43e10a3f554cae79d800
[]
no_license
Omega094/lc_practice
64046dea8bbdaee99d767b70002a2b5b56313112
e61776bcfd5d93c663b247d71e00f1b298683714
refs/heads/master
2020-03-12T13:45:13.988645
2018-04-23T06:28:32
2018-04-23T06:28:32
130,649,699
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
class Solution(object): def findStrobogrammatic(self, n): """ :type n: int :rtype: List[str] """ pairDict = {"1": "1", "8": "8", "6": "9", "9":"6", "0":"0"} solutionList = [""] if n%2 == 1: solutionList = ["1","8","0"] n-= 1 ...
[ "zhao_j1@denison.edu" ]
zhao_j1@denison.edu
1158d946075450d3edc98626f5b62edc1c40c032
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/StudentProblem/10.21.11.47/3/1569572250.py
aa60a1e545272061a19a1f2378bbe3e4c921e158
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
import functools import typing import string import random import pytest def leap(year:int) -> bool: if year // 4 == 0 and year // 100 != 0: return true elif year // 100 and year // 4 != 0: return false else: return false #############################################################...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
5411dc37e9b0272acd5166d30623ed4b565ebb6f
30416a809d25a51999a1a2e30e737570af6c7fbe
/Reverse_LinkedList/SimpleSolution.py
c42171f170262c76ddb1a205e61817596aff3ab6
[]
no_license
Vanditg/Leetcode
06e22b418d45a841df4256567ec28a653954be77
6f427ea663d3772b0b83f8afc28b7967ead1f574
refs/heads/master
2021-05-24T14:52:54.298801
2020-06-22T12:52:23
2020-06-22T12:52:23
253,614,081
1
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
##================================== ## Leetcode ## Student: Vandit Jyotindra Gajjar ## Year: 2020 ## Problem: 206 ## Problem Name: Reverse Linked List ##=================================== # #Reverse a singly linked list. # #Example: # #Input: 1->2->3->4->5->NULL #Output: 5->4->3->2->1->NULL class Solution: def re...
[ "gajjarvandit@gmail.com" ]
gajjarvandit@gmail.com
fde22d20b54c347484a150bab3797a7585447a6e
51ea2be2a164e90a6f6c327ccedc95b5492a5329
/HackerEarth/Hashing/KK_crush.py
8d355241f1af52edccde1cbd0bfa0b42424f85c1
[ "MIT" ]
permissive
hanzohasashi33/Competetive_programming
081c30d248d54cdf488d36d1c965b0f184296562
b609972ada1c7177f182665e998beaa0c1eba514
refs/heads/master
2021-06-30T07:21:12.625721
2021-02-01T12:54:56
2021-02-01T12:54:56
216,160,136
22
23
MIT
2022-05-30T16:13:36
2019-10-19T06:28:39
C++
UTF-8
Python
false
false
297
py
# Write your code here test = int(input()) while test > 0 : n = int(input()) l = list(map(int,input().split())) q = int(input()) while q > 0 : x = int(input()) if x in l : print("Yes") else : print("No") q -= 1 test -= 1
[ "noreply@github.com" ]
hanzohasashi33.noreply@github.com
0ebc922ea3fa60160f7c61ba93041385bc25a9f3
495ed3a3c4caf579d371a83f7f1f4c43630ef17c
/van.py
034dcc53f9196133ca3a53e8aed89540b96cfef7
[]
no_license
sureshmelvinsigera/facebook2telegram
be5eb24b75574868514bab356083f61005a75140
0f2d75a63b99406af1be5fd20f01bafac6e566dd
refs/heads/main
2023-07-30T19:00:00.410053
2021-10-06T09:35:46
2021-10-06T09:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
import pyvan OPTIONS = { "main_file_name": "main.py", "show_console": True, "use_existing_requirements": True, "extra_pip_install_args": [], "python_version": None, "use_pipreqs": False, "install_only_these_modules": [], "exclude_modules": [], "include_modules": [], "path_to_get_pip_and_python_embe...
[ "ruslan.rv.ua@gmail.com" ]
ruslan.rv.ua@gmail.com
750a270c7070119896f7c002ff6fdf7d6c97694e
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/VanderPlas17Python/E_Chapter4/J_MultipleSubplots/index.py
cb745ebc89fce3a05eed86807049d312b557a25d
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
5,430
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.HierBlock import HierBlock as hbk from modules.node.block.ImageBlock ...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
c73de107a36ace0df7ddee36075d1f11915b28c3
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/span/src.py
efd20682f167867fd7ade4b9cc4dae0f06e5c781
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
11,879
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
3960177b5468c1c210d4dcc3a66109ce6fd8fd29
41d68948807032cbbfe2f3aa9aa1483e7ed62a22
/Algorithm/BFS.py
4989c25236c822fcc3305af9e5ec76ac950f97fa
[]
no_license
yamabook37/atcoder
5d587eb6b1893eaad34983fde85dc7d0bdcbffdc
6ea98c48f4f326fb693623f32283732eed4b770e
refs/heads/master
2023-08-05T06:49:09.502564
2023-07-30T15:08:05
2023-07-30T15:08:05
248,848,495
2
0
null
null
null
null
UTF-8
Python
false
false
932
py
# https://qiita.com/maebaru/items/53a30c78bad8d0df92af # Make tree as follows: # 1 # / \ # 2 3 # / \ / \ # 4 5 6 7 from collections import deque class Node: def __init__(self, x): self.val = x self.left = None self.right = None node1 = Node(1) # Root node node2 = Node(2) no...
[ "yuki.yamamoto0711@gmail.com" ]
yuki.yamamoto0711@gmail.com
c906a2a0520daef191d7fc21a09112240a1e090e
c0f86b926fc82baa633862896096c149dd9913cf
/Regex/Introduction/Matching-Start-End/Python2/solution.py
e690ba205655167948dc92034a6b838192313d70
[]
no_license
qxzsilver1/HackerRank
8df74dd0cd4a9dedd778cdecea395f4234eda767
bcb1b74711a625d8ad329a3f9fdd9f49b1bebc54
refs/heads/master
2021-09-09T15:45:35.681284
2021-09-07T00:11:16
2021-09-07T00:11:16
75,671,896
0
1
null
null
null
null
UTF-8
Python
false
false
131
py
Regex_Pattern = r"^\d\w\w\w\w\.$" # Do not delete 'r'. import re print(str(bool(re.search(Regex_Pattern, raw_input()))).lower())
[ "noreply@github.com" ]
qxzsilver1.noreply@github.com
496d50ac32b9edfba82943f4e4a16b791e4f3903
7c0f58cbf1b3a48a4062e905c4eaba4c6639f594
/risktables/pg_pandas.py
571c5a51848dd7f438a88da17cada8cb356e90ab
[]
no_license
bgithub1/risktables
2a05bafaed1eac26403cf09e1072e24b35ae2816
7853af3cfb2312a30cea0b14ac10f0ce7ded8a0f
refs/heads/master
2023-05-11T14:00:31.430106
2023-05-02T15:42:32
2023-05-02T15:42:32
198,758,745
4
3
null
2023-02-11T01:19:53
2019-07-25T04:43:10
Python
UTF-8
Python
false
false
14,219
py
''' Created on Aug 22, 2016 @author: bperlman1 general access to postgres via pandas and sqlalchemy ''' import pandas as pd from sqlalchemy import create_engine # import sys # import datetime # import psycopg2 as ps import os import sqlalchemy as sa from sqlalchemy.sql.expression import bindparam import sqlalchemy....
[ "bperlman1@gmail.com" ]
bperlman1@gmail.com
c4b1c9311fdd944ec91e6d4bf7e3fab65e17ce63
d3388de93a11e6e058b25a9bd17be73e1252ecad
/Intro to Programming Nanodegree Program/06. Intro to Python, Part 2/04 Style & Structure/11 B bot 7/order_breakfast.py
c4a9697122b87fe70be85179dd86e0d1569f9d49
[]
no_license
rsoemardja/Udacity
3511f77878ac7206e39e318a44b497908eec6231
5e18ed6b064238153f3ae66e7af1e88e6bd620ea
refs/heads/main
2023-05-13T09:54:34.524737
2021-06-07T09:14:44
2021-06-07T09:14:44
361,924,319
0
0
null
2021-06-07T09:14:45
2021-04-26T23:46:40
Python
UTF-8
Python
false
false
671
py
import time print("Hello! I am Bob, the Breakfast Bot.") time.sleep(2) print("Today we have two breakfasts available.") time.sleep(2) print("The first is waffles with strawberries and whipped cream.") time.sleep(2) print("The second is sweet potato pancakes with butter and syrup.") time.sleep(2) while True: respon...
[ "rsoemardja@gmail.com" ]
rsoemardja@gmail.com
a983d93522863e1210ceb7b08c71db75bbd7b8dd
781e2692049e87a4256320c76e82a19be257a05d
/all_data/cs61a/untarred backup/68.py
29ac086a4d78a2f9cec2db03c2f326090c3dc11d
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
1,064
py
def num_common_letters(goal_word, guess): """Returns the number of letters in goal_word that are also in guess. As per the rules of the game, goal_word cannot have any repeated letters, but guess is allowed to have repeated letters. goal_word and guess are assumed to be of the same length. goal_word...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
71f0eefbbedaa89ad92636f254ca071284a34deb
922ed6867ca2d8a255638a14e4d675fa29d76888
/pyapp/impl/action/ui/bookmark/delete/1_bookmark_delete.py
9a34410d42e65bc891652948ed070a722b96b377
[]
no_license
racktivity/ext-lfw
1c79c63ad9b51a9218694a376c3993abfa83ab74
be1487f1186fa5a8aa9b263a73365623093b4451
refs/heads/master
2021-01-10T04:50:40.440943
2015-01-20T13:35:03
2015-01-20T13:35:03
54,314,911
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from alkira import Alkira def main(q, i, p, params, tags): alkira = Alkira(p.api) alkira.deleteBookmark(params['bookmarkguid']) params['result'] = True def match(q, i, p, params, tags): return True
[ "devnull@localhost" ]
devnull@localhost
2ac255c546187789bea40a56a8af7e653854407b
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/matplotlib/2018/4/contour_image.py
94000053e159f2105b5d238a392fcdca5caa5477
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
3,274
py
""" ============= Contour Image ============= Test combinations of contouring, filled contouring, and image plotting. For contour labelling, see contour_demo.py. The emphasis in this demo is on showing how to make contours register correctly on images, and on how to get both of them oriented as desired. In particula...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
1d0edcfe1057d35285b3eecb643ef84fd8aaa0e6
008cef1271d91b7861029e4405c167125c463f40
/evolution_bayes.py
f68becaf06c2030b0252daf0c1e385115ed63a56
[ "MIT" ]
permissive
donkykong017/japonicus
aac550139a67b0c70a6671ca02669d02a0204982
27765d659095bba3024d82cee8a820a103cb3b66
refs/heads/master
2021-04-03T01:46:42.826784
2018-03-09T14:06:54
2018-03-09T14:06:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,756
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import json import os import numpy as np import pandas as pd import copy #from plotInfo import plotEvolutionSummary from bayes_opt import BayesianOptimization from multiprocessing import Pool import multiprocessing as mp import promoterz import evaluation...
[ "gabriel_scf@hotmail.com" ]
gabriel_scf@hotmail.com
368914e5515b9885ebedc8171c1553cadebff2d1
e909c983ca87a397ae4c33a6be99b287d673810b
/announcement/schema.py
c1a4aea1e1c1252d60eee398c64391ba1db11b84
[]
no_license
yoongyo/baedal
285bd2295bbf4a87b104886dbcf9ee799f99a45a
80ea1edc446f0d175449c560a7dc10e9a4ef8480
refs/heads/master
2022-04-16T12:19:47.876974
2020-04-18T07:56:59
2020-04-18T07:56:59
255,777,457
0
0
null
null
null
null
UTF-8
Python
false
false
1,308
py
import graphene from graphene_django.types import DjangoObjectType from .models import Advertisement, Announcement, Notice, Version, Event class AdvertisementType(DjangoObjectType): class Meta: model = Advertisement class AnnouncementType(DjangoObjectType): class Meta: model = Announcement ...
[ "jyg0172@naver.com" ]
jyg0172@naver.com
47e453419063d4d155be65c6b8acf70103939b67
6c2dbc8d4e536220fb3b1cc72aa8104aea8b0698
/aiogram/methods/export_chat_invite_link.py
271e35d107c3a92f6da8d34c5394dc401514f6ef
[ "MIT" ]
permissive
aiogram/aiogram
f8f98a0beb63bd4d93ea810638d5792569bf354b
04bd0c9e7c5421c060183b90d515050f41377bc1
refs/heads/dev-3.x
2023-08-30T21:20:13.018174
2023-08-28T23:01:54
2023-08-28T23:01:54
111,210,856
4,287
1,250
MIT
2023-09-10T21:34:03
2017-11-18T14:11:13
Python
UTF-8
Python
false
false
1,792
py
from __future__ import annotations from typing import TYPE_CHECKING, Any, Union from .base import TelegramMethod class ExportChatInviteLink(TelegramMethod[str]): """ Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an adminis...
[ "noreply@github.com" ]
aiogram.noreply@github.com
d1e8d74be01158cac27a5b46e5d3d6681095b6e0
3e600966adc8f0fe7114d5d988b32ead395edff2
/docs/source/conf.py
f605df036f8ca816dc0ae474dd483c7640557adf
[ "Apache-2.0" ]
permissive
johnbachman/pybel-tools
cadf407609462b9c2faaa62e5d35464fa27c1b7f
c691d7b33d449501142eb011bc2b8f63830645cf
refs/heads/develop
2021-09-14T20:30:07.873760
2018-05-10T14:07:08
2018-05-10T14:07:08
105,606,597
0
0
null
2017-10-03T02:23:24
2017-10-03T02:23:23
null
UTF-8
Python
false
false
4,891
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import sys sys.path.insert(0, os.path.abspath('../../src')) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. # # needs_sphinx = '1.0' # Add any Sphinx...
[ "cthoyt@gmail.com" ]
cthoyt@gmail.com
27ffc533d988d223808d24eed9eb4a3e5b76ca96
c61798997614f4430a6a56b16e8d17fe75fb2f9c
/Yurii_Khomych/l_12_networking/sockets/simple/blocking/example4_nonblock_server_processing.py
4e297498855b1aed95e940d809142e72174bce7f
[]
no_license
YuriiKhomych/ITEA_AC
ad944bbe74be88f306a45f38efa70765c5286162
f9eb147da1135a978929ae370d9c9fcd8dc59d21
refs/heads/master
2022-12-18T14:55:56.162451
2020-05-03T12:45:02
2020-05-03T12:45:02
234,373,863
0
9
null
2022-12-08T03:46:33
2020-01-16T17:26:50
Python
UTF-8
Python
false
false
551
py
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(("127.0.0.1", 8888)) sock.listen(5) sock.setblocking(False) while True: try: client, addr = sock.accept() except socket.error: print("no clients") except KeyboardInterrupt: break else: clie...
[ "yuriykhomich@gmail.com" ]
yuriykhomich@gmail.com
c825c9acea98b43b3d0aab9934351195347013ce
ef4d630ae9b9d5df430e00c5f9bc3f8b0c5d93af
/codes/go_mao_na_massa/echo.py
dd37b6cf54f1a2f37c3c5ebeb632543cd603e550
[ "MIT" ]
permissive
luiz158/talks_and_articles
3c6f6df50663562ca6975f1a9f1c79e3d29e4b0b
1e9bedff22acc78a39cc054c0de432ef80c2df7b
refs/heads/master
2023-06-21T05:18:43.051347
2021-08-09T17:24:07
2021-08-09T17:24:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
#!.venv/bin/python from blacksheep.server import Application from blacksheep.server.responses import json import uvicorn app = Application() @app.route("/") async def home(request): return json({"apple": 5, "lettuce": 7}) if __name__ == "__main__": uvicorn.run( "codes.go_mao_na_massa.echo:app", ...
[ "cassiobotaro@gmail.com" ]
cassiobotaro@gmail.com
adfbb779fd63b854e14295291e6055be0fa18ac0
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/Muller17Introduction/I_Chapter8/E_Whereto/B_OtherMachine/index.py
494334fb322fdb27bf005e67f293c857420ad35d
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
7,666
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.HierBlock import HierBlock as hbk from modules.node.block.ImageBlock ...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
5ab4124d5021f8d5473251b484f37e7cb1df1ced
7a1d071a4892b12deaab021562aab8b8bba4b2c6
/orbis/test/test_orbis.py
3fbbc2b79c88e382dfb447a5ead124af638e69bb
[ "BSD-2-Clause" ]
permissive
randlet/Orbis
729e9fb0a110507da51432ae75aa8615d522e9b0
1d3ba101b4208e37864cbe0b0ada9d939a88ea4e
refs/heads/master
2019-01-22T00:01:31.103510
2012-10-13T02:11:04
2012-10-13T02:11:04
4,645,654
2
2
null
null
null
null
UTF-8
Python
false
false
3,172
py
import numpy import shmo import orbis import orbis.gui import orbis.settings import os import sys import unittest import wx TEST_PRECISION = 4 #==================================================================================== class Test(unittest.TestCase): #-------------------------------------------------------...
[ "randle.taylor@gmail.com" ]
randle.taylor@gmail.com
3e54c96874a3166e87c1bb3844dbe976c3683e28
1d7657c95769d4606d8965e302e366f89a19ec6e
/Codeit/Python_Basic/불 대수.py
3104313e7c64b38dc8ff78f86b3ea0d3e1b5f147
[]
no_license
saanghyuk/python_django_study
7d1b26ffedacdbacfd7a36761e40252ae96d2257
7082e87ec7259e28b57a9f3193d2391ab2bd522a
refs/heads/master
2023-04-01T10:54:49.036073
2021-04-06T01:27:06
2021-04-06T01:27:06
334,146,111
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
print(True) print(False) print(type(3)) print(type(3.0)) print(type("str")) def hello(): print("hello") print(type(hello)) print(print) print(4/2)
[ "saanghyuk@gmail.com" ]
saanghyuk@gmail.com
748257ef1127bea5de0fc090ab657e2abad78d3c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_139/ch80_2020_04_22_17_59_21_669487.py
98e30a89530fd8c35eb7b40d344d17d7f23efa23
[]
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
172
py
def interseccao_chaves (x, y): lista = [] for i in range(len(x)): lista.append(x[i]) for i in range(len(y)): lista.append(y[i]) return lista
[ "you@example.com" ]
you@example.com
91b65f2d28645ac5b1cd5b415dde798bc26e8ca1
60aa3bcf5ace0282210685e74ee8ed31debe1769
/simulation/sims/aging.py
23b342e26fcadaefbb72febcbb45b5ff04bfac20
[]
no_license
TheBreadGuy/sims4-ai-engine
42afc79b8c02527353cc084117a4b8da900ebdb4
865212e841c716dc4364e0dba286f02af8d716e8
refs/heads/master
2023-03-16T00:57:45.672706
2016-05-01T17:26:01
2016-05-01T17:26:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,514
py
import random import sys from protocolbuffers import DistributorOps_pb2 from clock import interval_in_sim_days from date_and_time import create_time_span, TimeSpan from element_utils import build_element from event_testing.resolver import SingleSimResolver from event_testing.test_events import TestEvent from event_test...
[ "jp@bellgeorge.com" ]
jp@bellgeorge.com
4d9024ec8dba57f11e64a52217e8f05c90c678ab
d8af7c6372aff57012c80d3b8a9dfaab81499f71
/AIDStudy/01-PythonBase/day08/exercise03.py
5876f7227b5f09a26fbdc4d1f4f6e1e718ed05b5
[]
no_license
fanxiao168/pythonStudy
4843c56019b8f997fd7fc566904a9e0162e9a541
f94e2238d40c41ee54ff4184c500d659c6820c03
refs/heads/master
2021-02-04T20:54:10.850770
2020-05-28T08:55:35
2020-05-28T08:55:35
243,708,800
1
0
null
null
null
null
UTF-8
Python
false
false
328
py
# 定义一个函数myprint 统计该函数调用的次数 count = 0 def myprint(): # 如果在函数内部直接修改全局变量 程序会认为创建新的局部变量 # 需要先声明再赋值 global count # 将count声明为全局变量 count += 1 print(count) myprint() myprint() myprint() myprint()
[ "fanxiao168@126.com" ]
fanxiao168@126.com
26470f85044dc8e16e108e42dfbacc2f4556fb1f
b1b734ab75a6fe114733d3c0b8ca5046d54b407d
/third_party/ComputeLibrary/tests/SConscript
b2ca676f8ec7ba0a28ed04624345a31894605830
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-2-Clause", "Apache-2.0", "MIT" ]
permissive
waybarrios/video_nonlocal_net_caffe2
754fea2b96318d677144f16faadf59cb6b00189b
b19c2ac3ddc1836d90d7d0fccb60d710c017253e
refs/heads/master
2020-04-20T03:15:12.286080
2019-01-31T20:44:01
2019-01-31T20:44:01
168,593,110
0
0
Apache-2.0
2019-01-31T20:40:40
2019-01-31T20:40:39
null
UTF-8
Python
false
false
5,855
# Copyright (c) 2017 ARM Limited. # # SPDX-License-Identifier: MIT # # 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...
[ "gemfield@civilnet.cn" ]
gemfield@civilnet.cn
472a9c55861f25ea4a7bf3a18d010e754e15c596
baefebe5c29c52c2f424aabe68f360a4058e346f
/dalek/fitter/__init__.py
21ee7563c342372b597e9ac272eafbe26340091a
[]
no_license
vaditya04/dalek
ec4dc17ba7c1361294ce9d7f241dd73ae87a269c
643525f83de67fd68d06a3f6104b6c8636d235b8
refs/heads/master
2021-01-18T09:56:28.619658
2015-03-24T12:10:07
2015-03-24T12:10:07
31,782,839
0
0
null
2015-03-06T18:26:58
2015-03-06T18:26:58
null
UTF-8
Python
false
false
146
py
from base import BaseFitter, FitterConfiguration, run_fitter from fitness_function import BaseFitnessFunction from optimizers import BaseOptimizer
[ "wkerzendorf@gmail.com" ]
wkerzendorf@gmail.com
87689456a8a178e35bc6eb8049076ff653c397b6
92919df3c0e3b95cd971cca914d32acaad44dbc6
/sentry/middleware.py
5aff446dfcb8032876c46373c20b7d6f9bb3b4eb
[ "BSD-2-Clause" ]
permissive
jmacul2/sentry
51c721c56875201ee8932e752d4eadf58bf26234
6c02e4bd46126840e88ea6d45895efcfa7f6d828
refs/heads/master
2020-12-24T22:40:48.105572
2012-04-13T17:48:39
2012-04-13T17:48:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
from sentry.conf import settings from django.core.urlresolvers import reverse class SentryMiddleware(object): def process_request(self, request): # HACK: bootstrap some env crud if we havent yet if not settings.URL_PREFIX: settings.URL_PREFIX = request.build_absolute_uri(reverse('sentr...
[ "dcramer@gmail.com" ]
dcramer@gmail.com