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
6249e0ffb60185954c5323d646f6ee5e4b97a4cc
2be8a9f06d4003d12c0a727fb83d284c31a53050
/HoudiniHotBox17.0/lib/PastFbx.py
a984bb3fb35778efa1d77ea747bb869b4f43016f
[]
no_license
LiuLiangFx/SmileHotBOX
7551d9578b2defe612950cb8e3bffdb85024cede
8bd8eac69b3c2a9824b9aa4488ca77789bea8d85
refs/heads/master
2021-01-01T10:22:26.959731
2020-02-09T03:16:32
2020-02-09T03:16:32
239,236,801
0
0
null
2020-02-09T02:47:18
2020-02-09T02:47:18
null
UTF-8
Python
false
false
3,133
py
import hou class PastFbx: def __init__(self): pass def checkNode(self,node, name,temp1 =0): for childrenNode in node.parent().children(): if childrenNode.name() == name: temp1 =childrenNode return temp1 def checkInput(self,qian,hou1,temp=0): ...
[ "change52092@yahoo.com" ]
change52092@yahoo.com
0f6b34fbcc11d1d36e1186122b4196348d01de41
15d3a10db27128c06f84c30fa8d64b2e1c629fd9
/express/express/api_exception.py
50d8121033b83ac36e6070744f39d492bda13465
[]
no_license
yiyuhao/exp
7cba6650e3113ba05698f90a7baf75b680dd6435
866a90b2e6f0d113559b0674f514cdd56020f7d6
refs/heads/master
2020-03-19T20:20:04.799355
2018-07-15T14:55:24
2018-07-15T14:55:24
136,897,007
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
# -*- coding: utf-8 -* from rest_framework.views import exception_handler def custom_exception_handler(exc, context): # Call REST framework's default exception handler first, # to get the standard error response. response = exception_handler(exc, context) # Now add the HTTP status code to the response...
[ "yiyuhao@mixadx.com" ]
yiyuhao@mixadx.com
3b2ebe81d2835ea42691bb7d5bff97c782a8bc00
59ac1d0f09ebfb527701031f3ab2cfbfb8055f51
/soapsales/employees/migrations/0003_auto_20200902_1721.py
0819efd6aafd9e48e4f311586f2596836d84ff10
[]
no_license
DUMBALINYOLO/erpmanu
d4eb61b66cfa3704bd514b58580bdfec5639e3b0
db979bafcc7481f60af467d1f48d0a81bbbfc1aa
refs/heads/master
2023-04-28T13:07:45.593051
2021-05-12T09:30:23
2021-05-12T09:30:23
288,446,097
1
1
null
null
null
null
UTF-8
Python
false
false
543
py
# Generated by Django 3.0.7 on 2020-09-02 15:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employees', '0002_auto_20200902_0038'), ] operations = [ migrations.RenameField( model_name='employee', old_name='is...
[ "baridzimaximillem@gmail.com" ]
baridzimaximillem@gmail.com
27ca4ceae6de9d605e2bfc5c1fee240d3f1fe145
10300363f12e5a6a0ea6a69d0a6d210174499d60
/times.py
746272f2b9f1a029c66f51b8e55c0ba5edea3241
[]
no_license
nedbat/point_match
2da5cc12bf3f3866b35ec71ea227a5d21760ca97
a6c19ed1d206ec1ad02b13e15b8d761192b32593
refs/heads/master
2023-06-22T04:16:09.638622
2019-04-01T21:25:09
2019-04-01T21:25:09
100,109,656
3
1
null
null
null
null
UTF-8
Python
false
false
1,068
py
import random import timeit if 0: TRIES = 10000 for z in range(7): n = int(10**z) stmt='random.randint(1, 999999) in d' setup='import random; d = {{random.randint(1, 999999): 1 for _ in xrange({N:d})}}'.format(N=n) total = timeit.timeit(stmt=stmt, setup=setup, number=TRIES) ...
[ "ned@nedbatchelder.com" ]
ned@nedbatchelder.com
4a3ade146a01bc93108ba525a191d0f4fc777c9b
811f4cdb25e26f3b27640aaa2e2bca93e660d2d7
/src/anomalib/models/components/flow/all_in_one_block.py
f2ab1e17c372351bdd22788c8bdee20d621f06a3
[ "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0", "Apache-2.0" ]
permissive
openvinotoolkit/anomalib
4467dfc392398845e816387267cdf979ff76fe15
4abfa93dcfcb98771bc768b334c929ff9a02ce8b
refs/heads/main
2023-09-03T16:49:05.019269
2023-08-28T14:22:19
2023-08-28T14:22:19
423,775,360
2,325
454
Apache-2.0
2023-09-14T11:21:33
2021-11-02T09:11:38
Python
UTF-8
Python
false
false
12,649
py
"""All In One Block Layer.""" # Copyright (c) https://github.com/vislearn/FrEIA # SPDX-License-Identifier: MIT # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations import warnings from typing import Callable import torch import torch.nn.functional as F fro...
[ "noreply@github.com" ]
openvinotoolkit.noreply@github.com
adcb107a99607a4473a99cbe4a62c8ecc5918f4d
f71118a9f24e09bba18d021f9c4a43a97dc4dead
/codes/scripts/make_gif_video.py
fc81e5647ff7ce75b5bb35f226bce946a93a1d56
[ "Apache-2.0" ]
permissive
BlueAmulet/BasicSR
d7420fd9d7b73bf0cd90a3201d84393f262e63be
7040913d8659a05af4c2428feb71c260efbf1e9c
refs/heads/lite
2021-07-10T14:48:26.037589
2020-07-23T01:59:27
2020-07-23T01:59:27
196,041,187
19
9
Apache-2.0
2020-09-01T17:39:00
2019-07-09T16:00:14
Python
UTF-8
Python
false
false
3,311
py
""" Add text to images, then make gif/video sequence from images. Since the created gif has low quality with color issues, use this script to generate image with text and then use `gifski`. Call `ffmpeg` to make video. """ import os.path import numpy as np import cv2 crt_path = os.path.dirname(os.path.realpath(__f...
[ "wxt1994@126.com" ]
wxt1994@126.com
6747e33efcd4f93c3dbf79fe12368de440154955
b45e649b4580692dd1b8bf63ad29befb3daad95a
/spark/src/main/python/preprocBinning.py
6c21866ee6f9e294698dfe7cff5be5841bf1c7fa
[]
no_license
xu-hao/FHIR-PIT
21ea0e5b8796d86f3a931b99e3e7a3f1e58b04a2
db2fb04e2cc0d9fce2f8043f594f60fdb8f5a8e8
refs/heads/master
2021-05-25T09:49:48.084629
2021-05-19T20:17:11
2021-05-19T20:17:11
127,015,534
2
0
null
null
null
null
UTF-8
Python
false
false
660
py
import os import sys import json from preprocPatient import * from preprocVisit import * year_start, year_end, config_file, input_dir, output_dir = sys.argv[1:] for year in range(int(year_start), int(year_end) + 1): ...
[ "xuh@cs.unc.edu" ]
xuh@cs.unc.edu
f93a39f3c7ce5dc35b811f46c70586ec4a00c270
4d93acd63ce2835fcd7ea610fcd412b727a4f03e
/08-Markov/decay.py
aa454eea1ad7fb4d3765d62e0e5f8e83dfc8525a
[]
no_license
jsbarbosa/JuanBarbosa_MCA
41ebcc27bb7dd8a886c9b4c1b416bd7e3cad2e57
4f49d17282679ae1fa81d7cc892b6560edf93828
refs/heads/master
2021-01-11T17:53:44.115810
2017-04-24T17:58:09
2017-04-24T17:58:09
79,863,469
0
0
null
null
null
null
UTF-8
Python
false
false
1,590
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 13 18:21:00 2017 @author: juan """ import numpy as np import matplotlib.pyplot as plt obs = np.array([1.5, 1.7, 2]) def rand(): return 2*np.random.random() - 1 def integral(a, b, lm): return -lm*(func(b, lm) - func(a, lm)) def fu...
[ "js.barbosa10@uniandes.edu.co" ]
js.barbosa10@uniandes.edu.co
d39c8a61833fc2f4123d6803bf8dce614ed0a12a
cfc9a8831e5946d738329fad2763d643dec8566f
/src/encoded/tests/test_create_mapping.py
44d89dea3b1ec2d190ef281061e331a2302547be
[ "MIT" ]
permissive
emi80/encoded
8e244a66b0d36610dcf8d9a47d385640dfa7987d
2fe2c2afbd3be21b65b10a189a3bd623ecdaee37
refs/heads/master
2021-01-18T12:34:56.060690
2015-03-05T21:56:05
2015-03-05T21:56:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
import pytest from ..loadxl import ORDER @pytest.mark.parametrize('item_type', ORDER) def test_create_mapping(registry, item_type): from ..commands.create_mapping import type_mapping from ..contentbase import TYPES mapping = type_mapping(registry[TYPES], item_type) assert mapping
[ "laurence@lrowe.co.uk" ]
laurence@lrowe.co.uk
8fc10d35f9fa5cced3f4939ab0d2ca50d42ab5cb
b5dbf732d26a2a924c85c5a107035be48bfe69cd
/2.7.py
a41cca6bfe45aaf10f7b7a81df3ea5680c11f318
[]
no_license
Beks667/2.7Hw
2435bfa58e252357c46819f6987639ca025549be
4e03706bdfc70f2f94145a50f493f36995d08cdb
refs/heads/main
2023-04-19T13:10:24.348768
2021-05-07T12:44:27
2021-05-07T12:44:27
365,230,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
# class Phone : # def __init__ (self,brand,model,color): # self.brand = brand # self.model = model # self.color = color # def show (self): # print(f"{self.brand},{self.model},{self.color}") # phone = Phone("Apple", "XS", "black") # phone.show() # class Monkey: # max_age...
[ "you@example.com" ]
you@example.com
ecd72f46add5e5f213fc1533ff3e25f25160af31
9de18e1e39c941aeba1781630711cef1d3d4d44c
/experiments/cifar10/conv.py
41757c9d21758f8c35cf7d9e176d18cd6ff88602
[]
no_license
BINDS-LAB-UMASS/bindsnet_experiments
cee786ae7e087845f58e0af4a49fa319d4fb81d5
8a20be9d1ede021b70ff95cc7e85024ff5a222db
refs/heads/master
2022-11-12T11:33:20.451028
2019-10-01T15:40:28
2019-10-01T15:40:28
135,615,246
41
10
null
2022-10-28T00:35:03
2018-05-31T17:28:04
Python
UTF-8
Python
false
false
14,333
py
import os import sys import torch import argparse import numpy as np import matplotlib.pyplot as plt from time import time as t sys.path.append('..') from utils import print_results, update_curves from bindsnet.datasets import CIFAR10 from bindsnet.network import Network from bindsnet.learning import Hebbian from b...
[ "djsaunde@umass.edu" ]
djsaunde@umass.edu
e1bccde57c18d31ab7ae91528e51e89563c8c9b2
3e7b2ebb64e9e324ce47d19def21ae62cc1e56a6
/Problem-solving/HackerRank/p14- sWAP cASE.py
5f4f5a0512103085cb85a010c0c4672a7a9a5c87
[]
no_license
shuvo14051/python-data-algo
9b6622d9260e95ca9ffabd39b02996f13bdf20d1
8f66ff6f2bd88a0ae48dac72e4ea6c5382a836ec
refs/heads/master
2023-02-03T03:04:01.183093
2020-12-13T10:13:15
2020-12-13T10:13:15
274,106,480
0
0
null
2020-07-05T06:33:28
2020-06-22T10:24:05
Python
UTF-8
Python
false
false
194
py
# n = input() # # swaped_n = n.swapcase() # # print(swaped_n) def swap_case(s): return s.swapcase() if __name__ == '__main__': s = input() result = swap_case(s) print(result)
[ "shuvo1137017@gmail.com" ]
shuvo1137017@gmail.com
e8b0c3235cae1f212444dfb8a51751d4dc4ad88f
c0717724c7dc3937252bb4a7bd7c796088db4c5d
/solutions/rijeci.py
f7bb3e0093b8d9f71b50155f01803ba70acde38f
[]
no_license
matthew-cheney/kattis-solutions
58cd03394ad95e9ca7ffa3de66b69d90647b31ff
d9397ca4715a3ad576046a62bdd6c0fb9542d838
refs/heads/main
2023-01-24T12:49:18.871137
2020-12-10T04:10:48
2020-12-10T04:10:48
318,857,227
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
K = int(input()) A, B = 1, 0 for k in range(K): A, B = B, A + B print(A, B)
[ "m.cheney95@outlook.com" ]
m.cheney95@outlook.com
0769073e54f97a7b28ca46674614b73ce89d67c6
37906b41991719dff0590f9161f9b69af8d7e491
/tensorflow/python/tpu/tensor_tracer.py
b9aec3f2e26e5272030fbfb380877f6d6a789d29
[ "Apache-2.0" ]
permissive
nauman07/tensorflow
7ae4277564bb596c0f8ba5d107a35d9505c3c2fb
f88cf68393e60525506a567e0081b8e2e6db409b
refs/heads/master
2020-08-28T15:55:35.510154
2019-10-26T15:34:58
2019-10-26T15:39:08
217,742,698
3
0
Apache-2.0
2019-10-26T17:11:10
2019-10-26T17:11:09
null
UTF-8
Python
false
false
66,668
py
# Copyright 2018 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
25dd87758892b414426ec0e9c48e05fb4ac4a527
a4a44ad46cd1306e2da72ff89483b0102fc9787d
/SamplePython/Developer Tool/fab_fabric/pengenalan_dr_web/11_settings.py
8a018fc9d73ccd0692dcf6cf3d3a40dad2777d35
[]
no_license
okipriyadi/NewSamplePython
640eb3754de98e6276f0aa1dcf849ecea22d26b1
e12aeb37e88ffbd16881a20a3c37cd835b7387d0
refs/heads/master
2020-05-22T01:15:17.427350
2017-02-21T04:47:08
2017-02-21T04:47:08
30,009,299
1
0
null
null
null
null
UTF-8
Python
false
false
333
py
""" settings (fabric.context_managers.settings) When you need to temporarily (i.e. for a certain command chain), you can use the settings statement (i.e. override env values). Usage examples: """ from fabric.api import settings, sudo # Perform actions using a different *user* with settings(user="avionics"): sudo...
[ "oki.priyadi@pacificavionics.net" ]
oki.priyadi@pacificavionics.net
4e8a125a7458dd004507e648e9417922ad85affe
14d7f5f83b6f84871ff6ebfa0af4c17b7115a33f
/eco_models/mpb/integration_stop.py
f391a20c2a14bae90e14d4ebe8bd5777a3fa7d32
[]
no_license
tonychangmsu/Python_Scripts
8ca7bc841c94dcab36743bce190357ac2b1698a5
036f498b1fc68953d90aac15f0a5ea2f2f72423b
refs/heads/master
2016-09-11T14:32:17.133399
2016-03-28T16:34:40
2016-03-28T16:34:40
10,370,475
2
0
null
null
null
null
UTF-8
Python
false
false
736
py
# Title: integration_stop.py # Author: Tony Chang # Date: 10.26.2015 # Abstract: Attempt to find a solution to determining where the cumulative sum (numerical integration), of a array of 2D matricies sum up to one (find the index) import numpy as np #first suppose we have a 3D matrix of values under 1...
[ "tony.chang@msu.montana.edu" ]
tony.chang@msu.montana.edu
9ae067e5cd4eccc2e3a324cc2e07669caccf8637
6630694f401f6f475dd81bb01ff9368db844ccff
/configs/_base_/models/hrnet/hrnet-w48.py
f0604958481ba2af277e3a0f9515dc1423def6c6
[ "Apache-2.0" ]
permissive
open-mmlab/mmpretrain
98a4d6b3bb747efc3d50decebf84fc3ffa41076a
d2ccc44a2c8e5d49bb26187aff42f2abc90aee28
refs/heads/main
2023-08-30T19:11:24.771498
2023-08-23T02:45:18
2023-08-23T02:45:18
278,415,292
652
186
Apache-2.0
2023-09-08T08:01:40
2020-07-09T16:25:04
Python
UTF-8
Python
false
false
418
py
# model settings model = dict( type='ImageClassifier', backbone=dict(type='HRNet', arch='w48'), neck=[ dict(type='HRFuseScales', in_channels=(48, 96, 192, 384)), dict(type='GlobalAveragePooling'), ], head=dict( type='LinearClsHead', in_channels=2048, num_class...
[ "noreply@github.com" ]
open-mmlab.noreply@github.com
170f4291b543e014fadf954a0e8b37173c22f52f
965e1e205bf053d93b32be0dab4d45455b42b3a2
/NLP/PartsSpeech.py
29aa35ab37a1d1ca416e2d528400a686da8f4ba4
[]
no_license
panditdandgule/DataScience
9e58867dd960ec554e0bbb8e4ce93baa226ab927
3eb59c129d81a6ba6b45e24113e25e63d19c60cb
refs/heads/master
2021-07-22T21:44:12.700518
2020-05-14T12:01:05
2020-05-14T12:01:05
166,497,260
2
0
null
null
null
null
UTF-8
Python
false
false
669
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Dec 15 19:59:50 2018 @author: pandit """ import nltk from nltk.corpus import state_union from nltk.tokenize import PunktSentenceTokenizer train_text=state_union.raw("2005-GWBush.txt") sample_text=state_union.raw("2005-GWBush.txt") custom_sent_tokeniz...
[ "panditdandgule777@gmail.com" ]
panditdandgule777@gmail.com
f70d4e2e4894ba7b8637af7ba93f753c0b5faa18
e23a4f57ce5474d468258e5e63b9e23fb6011188
/115_testing/examples/Github/_Level_1/python_unittests-master/sample_functions.py
8d63bc99d2a30ac0321b97976440c0d8474e1244
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
204
py
def sum(a, b): return a + b def contains_numbers(alpha_num_str): for char in alpha_num_str: if char.isdigit(): return False return False def div(a, b): return a / b
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
d4a278c814384d490f690a077bab77a109b60b57
0ad79e7104500b5988f07e9f19f17a540f07605a
/Python算法指南/动态规划/67_最小和子数组_灵活运用动态规划.py
3273d8c3606054f4d873463057975d507015c93a
[]
no_license
tonyyo/PycharmProjects
f0ce458ed662e33e75ddffbfcf28b0d1ed638743
a28620923336c352103858e0ccfc4117d1c4ea01
refs/heads/master
2022-09-19T02:02:15.919201
2020-06-03T12:57:38
2020-06-03T12:57:38
263,204,131
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
class Solution: def minSubArray(self, nums): MIN = 65536 SUM = nums[0] for i in range(1, len(nums)): SUM = SUM + nums[i] if SUM < 0 else nums[i] # SUM > 0有害于最小和 MIN = min(MIN, SUM) return MIN if __name__ == '__main__': temp = Solution() List1 = [1, -1...
[ "1325338208@qq.com" ]
1325338208@qq.com
962ad189b3695ad55e5db43027b6e869b2817147
fb408595c1edee0be293302c6d7bfc0c77d37c46
/python/DP/DP_2096.py
a5753e0e8dda2057310f4dee0f056e7940fbb74d
[]
no_license
as950118/Algorithm
39ad25519fd0e42b90ddf3797a61239862ad79b5
739a7d4b569057cdb6b6faa74254512b83d02bb1
refs/heads/master
2023-07-21T12:38:00.653579
2023-07-19T06:57:17
2023-07-19T06:57:17
125,176,176
1
0
null
null
null
null
UTF-8
Python
false
false
610
py
n = int(input()) arr = [0]*(3) dp_max = [0]*(3) dp_min = [0]*(3) arr = list(map(int, input().split())) temp = arr[:] dp_max = temp[:] dp_min = temp[:] for i in range(1, n): arr = list(map(int, input().split())) temp[0] = max(dp_max[0], dp_max[1]) + arr[0] temp[1] = max(dp_max[0], dp_max[1], dp_max[2]) + ...
[ "na_qa@icloud.com" ]
na_qa@icloud.com
f443e27275903b151314c40311f6464aafca1b44
72784799e5436e8a96462bdbcb29baeb644dcc7f
/utilities/animate.py
2c562e41c8ec2e736db293f0f772a55ff0091345
[]
no_license
simonsben/undergrad_thesis
31dd205cb734f7c876b5053040e5ab0bf8fbd5cb
8458d00ae6525602b944279c2c280149a5957cb1
refs/heads/master
2020-04-02T10:46:55.255322
2019-04-08T06:01:48
2019-04-08T06:01:48
154,354,775
1
0
null
null
null
null
UTF-8
Python
false
false
979
py
from matplotlib.pylab import figure, show, savefig, title, axis, draw from networkx import spring_layout, draw_networkx_edges, draw_networkx_nodes from matplotlib.animation import FuncAnimation def add_node(graph, i, plot_layout): # draw_networkx_edges(graph, plot_layout, alpha=.3) # draw_networkx_nodes(node,...
[ "simons.ben0@gmail.com" ]
simons.ben0@gmail.com
52a608c85aa5b18e530c6cb0cae1d8d2f58b7ec4
14d8418ca5990217be67aee89fdaa310db03fbba
/test_stats_d_graph_display.py
fffe014750a15f323e8f39408530e03c6133cae4
[ "Apache-2.0" ]
permissive
sachanta/lm-sdk-python
3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0
e476d415c7279457f79b5d032a73d950af2fe96b
refs/heads/master
2023-08-03T08:39:42.842790
2021-09-13T07:20:56
2021-09-13T07:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,445
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
[ "bamboo@build01.us-west-1.logicmonitor.net" ]
bamboo@build01.us-west-1.logicmonitor.net
ed3cea97ae571dfe1f0a45dba14fc43b93212a84
fb21a8f1fc02f5cee6f0a759e336561726d3b184
/experiments/lstm-notcut/run.py
74e6c8e8a8f1be2abab441657d41651360c17bd5
[]
no_license
yamaguchi-milkcocholate/GoogleBrain-VentilatorPressurePrediction
76632353ff25a0c9ad8db51ef1f4b728954537b5
1996bb81f5b6880a20b8e39c681fecef0bc8a201
refs/heads/main
2023-09-05T17:25:46.980274
2021-11-24T04:40:50
2021-11-24T04:40:50
410,795,933
0
0
null
2021-11-04T01:28:27
2021-09-27T08:06:55
Python
UTF-8
Python
false
false
6,082
py
from random import seed import numpy as np import pandas as pd import json import os import sys import gc import shutil from pprint import pprint from pathlib import Path from typing import * import tensorflow as tf from tensorflow import keras from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau, M...
[ "zuuuubo.tetsu@outlook.jp" ]
zuuuubo.tetsu@outlook.jp
75b4c345054f9757d6e642ce84b0d8c16a1c82c6
eb00755d9d0f2630ffdb21e3ab6685b2fbcb0d9e
/tests/bench/bench_scripts/bench_sampleData.py
729fcf79af5383d0af68875e3179d971fe99aff2
[ "BSD-3-Clause" ]
permissive
mlangill/biom-format
aca45518c71b807cf30b0f548ad726880802a2b5
4cebfbdba8b6b64ff0d503df33634e3d52de1de0
refs/heads/master
2021-01-16T21:59:51.218830
2013-12-04T16:41:50
2013-12-04T16:41:50
9,486,201
1
0
null
null
null
null
UTF-8
Python
false
false
274
py
#!/usr/bin/env python from sys import argv from gzip import open as gzip_open from biom.parse import parse_biom_table from random import choice if __name__ == '__main__': table = parse_biom_table(gzip_open(argv[1])) foo = table.sampleData(choice(table.SampleIds))
[ "mcdonadt@colorado.edu" ]
mcdonadt@colorado.edu
0dac53703ab198d385005c1bd7a5a57d670af88e
caee06b143be5117a667e0f14ed6cf54958e85c1
/page/showreview.py
0b3dcc9721d9eed2b09256eae20318e2959a16f8
[ "Apache-2.0", "MIT" ]
permissive
ctesting/critic
720b68331aac81443e53ccd0c4c6cb4c3b75b5ec
8ba956d124279d0fca9d4522fb0ee6970e863588
refs/heads/master
2021-01-17T13:43:41.205293
2013-03-15T20:34:47
2013-03-15T20:34:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
49,272
py
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2012 Jens Lindström, Opera Software ASA # # 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...
[ "jl@opera.com" ]
jl@opera.com
37a2620996f5b4f1543105bffdc6fb58220c624c
6a4ebebbe0d7f81efc4f1749054a2ed7242c0e58
/granary/test/test_googleplus.py
e12902c656d570b1ffc904713e8a4b875bb87829
[ "LicenseRef-scancode-public-domain" ]
permissive
skylarker/granary
6e192ecd2475febb3585728d5ba7afe34742107d
2fd8ef017588b955e78606242ce582849cfd57ac
refs/heads/master
2020-12-26T21:35:04.155528
2016-04-18T18:15:30
2016-04-18T18:15:30
56,891,160
1
0
null
2016-04-22T23:43:09
2016-04-22T23:43:09
null
UTF-8
Python
false
false
21,560
py
# coding=utf-8 """Unit tests for googleplus.py. See googleapiclient/http.py for details on using RequestMockBuilder to mock out Google API calls. (This is the current doc on apiclient mocks, but it doesn't mention RequestMockBuilder: https://developers.google.com/api-client-library/python/guide/mocks ) TODO: figure o...
[ "git@ryanb.org" ]
git@ryanb.org
73b01d6e83f15e3b8998e48fde1d8e9a8e9c8657
5b7a0d2c364e40581eeff6c592067c954b96aa5b
/test_circle_ellipse.py
d03fd6ea80484a28a8acc42dbf20a692f6fa80ae
[]
no_license
skconan/dice_detection
a0f5afbfd1d5e38cf6f5d72872103280690e5ffc
da5b065398c0976b90833a10e6dfcde162ce1540
refs/heads/master
2020-03-18T16:42:32.272709
2018-07-05T04:26:47
2018-07-05T04:28:03
134,981,877
0
0
null
null
null
null
UTF-8
Python
false
false
2,445
py
import cv2 as cv from lib import * import numpy as np from dice_detection import * if __name__=='__main__': cap = cv.VideoCapture(CONST.VDO_PATH + 'dice_01.mp4') while True: ret, image = cap.read() if image is None: continue # image = cv.resize(image,(0,0),fx=0.5,fy=0.5) ...
[ "supakit.kr@gmail.com" ]
supakit.kr@gmail.com
d7df6a4d66ed2fa92ca477942ec9176c1f23591a
f5f771cd8600c2aeb7fc9b192d9084ec5fdf3616
/lux/extensions/odm/mapper.py
ef04cc0a9b43586b1fb4efb156df2f1e77bd748a
[ "BSD-3-Clause" ]
permissive
SirZazu/lux
75fe9fde4ddaee1c9c17e55c6e6d07a289ea2f5b
d647c34d11d1172d40e16b6afaba4ee67950fb5a
refs/heads/master
2021-01-21T19:40:46.536485
2015-06-02T16:30:18
2015-06-02T16:30:18
36,931,033
0
3
null
2015-10-09T14:08:26
2015-06-05T12:15:21
Python
UTF-8
Python
false
false
11,508
py
import re import os import logging from copy import copy from contextlib import contextmanager from inspect import ismodule from importlib import import_module from itertools import chain from sqlalchemy import MetaData, Table, inspect, event, exc from sqlalchemy.engine import create_engine from sqlalchemy.ext.declara...
[ "luca.sbardella@gmail.com" ]
luca.sbardella@gmail.com
75a1c7bfd7129ce55f5eba80d259be9cc3f58c32
d4cd2476f8fa8a7d94e183a68bd0678971310c5b
/checkio/05_Alice_in_Wonderland/01_Alice_05_DigitDoublets.py
93be0ef309f0753e3758c5c296e1049c4e7b3414
[]
no_license
gwqw/LessonsSolution
b495579f6d5b483c30d290bfa8ef0a2e29515985
0b841b1ae8867890fe06a5f0dcee63db9a3319a3
refs/heads/master
2020-07-05T19:15:53.758725
2019-10-01T11:34:44
2019-10-01T11:34:44
202,744,145
0
0
null
null
null
null
UTF-8
Python
false
false
2,207
py
# check if nums differs only by one digit def isOneDiff(n1, n2): n1 = str(n1) n2 = str(n2) diffcount = 0 for i in range(len(n1)): if n1[i] != n2[i]: diffcount += 1 if diffcount > 1: return False return (diffcount == 1) # find next nums in list def findnext(numbers): first_nu...
[ "=" ]
=
bf7d221c249a3241ed1caec79c3c80e33dfe5221
35fb414cc9f5c408dc5d2c8316a5b6e4de3ccf22
/test/templates/analyze_2l_2tau_cfg.py
569b94fbe3d5ab083963e3c54bb48fe7dbaef4c9
[]
no_license
kartikmaurya/tth-htt
abf1abafc9335da9687938f8588550a86631f751
8486aa6f33085a7b2d665e9215b828970f6ee8a7
refs/heads/master
2020-05-05T02:09:31.876729
2019-04-05T06:54:50
2019-04-05T06:54:50
177,517,377
0
0
null
2019-03-25T05:01:21
2019-03-25T05:01:21
null
UTF-8
Python
false
false
4,412
py
import FWCore.ParameterSet.Config as cms import os from tthAnalysis.HiggsToTauTau.configs.recommendedMEtFilters_cfi import * from tthAnalysis.HiggsToTauTau.configs.EvtYieldHistManager_cfi import * process = cms.PSet() process.fwliteInput = cms.PSet( fileNames = cms.vstring(), maxEvents = cms.int32(-1), o...
[ "karlehataht@gmail.com" ]
karlehataht@gmail.com
8768faa5431569743e0a31b1002db656d70a142c
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/shared-data/python/tests/errors/__init__.py
8b858a24b392381b87b32f4c5db9f32be4fbee49
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
43
py
"""Tests for shared-data global errors."""
[ "noreply@github.com" ]
Opentrons.noreply@github.com
93dc5c3a9db14864da78ac12366778f18d0c1263
b289a5076e06a24064526569086644f6383587c4
/projetofinanceiro/appfinanceiro/apps.py
1fec721d51e98309f6b4f627541b2729ccc1f5a5
[]
no_license
Rubensrvsc/Programacao-WEB
d2eb36d7364736fdb93981b549e139d79e048310
e38f3a809a0aa244f32f053ed9aa45c7e8586b5e
refs/heads/master
2020-03-29T12:59:25.098325
2019-01-02T19:49:42
2019-01-02T19:49:42
149,933,053
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
from django.apps import AppConfig class AppfinanceiroConfig(AppConfig): name = 'appfinanceiro'
[ "Rubensspfc100@gmail.com" ]
Rubensspfc100@gmail.com
c47123eb1d1b70624bb34e5b9652c9cf7a8dd2ec
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-2/vse-naloge-brez-testov/DN10-M-123.py
0c1eae41abe8c8c3d571897a3c84d3a0b0442dcb
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,389
py
otroci = { "Adam": ["Matjaž", "Cilka", "Daniel"], "Aleksander": [], "Alenka": [], "Barbara": [], "Cilka": [], "Daniel": ["Elizabeta", "Hans"], "Erik": [], "Elizabeta": ["Ludvik", "Jurij", "Barbara"], "Franc": [], "Herman": ["Margareta"], "Hans": ["Herman", "Erik"],...
[ "benjamin.fele@gmail.com" ]
benjamin.fele@gmail.com
a430b405c518f5492c4bfcf40ae484ae3432d216
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02618/s417415114.py
ddebb487f588173570c9610c70cadb46a063199e
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
from sys import exit import copy #import numpy as np #from collections import deque d, = map(int, input().split()) c= list(map(int, input().split())) s=[list(map(int, input().split())) for _ in range(d)] # t=[int(input()) for _ in range(d)] sche=[0 for _ in range(d)] s_tmp=float("inf")*(-1) for off in range(0,13): ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e712ac004c472f06084a23769197fbe9c9c1722a
f09dc121f213f2881df3572288b7ee5b39246d73
/aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/DeleteConnectionRequest.py
9a4d962fc099ab8a8094f136d5551e069631099c
[ "Apache-2.0" ]
permissive
hetw/aliyun-openapi-python-sdk
2f31378ad6be0896fb8090423f607e9c7d3ae774
7443eacee9fbbaa93c7975c6dbec92d3c364c577
refs/heads/master
2023-01-19T22:42:36.214770
2020-12-04T10:55:14
2020-12-04T10:55:14
318,689,093
1
0
NOASSERTION
2020-12-05T03:03:03
2020-12-05T03:03:03
null
UTF-8
Python
false
false
1,474
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
91cd296fa5741cfcebc94e7927b78d1ff38eebc5
030aadc06eba914dbc9f7e774d54cafd5acc0ae6
/docker/wsgi_docker.py
4f4d5ae871cf9698ce31dd779b010d807bd24fde
[]
no_license
torchbox/wagtail-template
985047e917031cf033f61c0c2480870da430aa15
4c0cb34d28ccbc03a96ca9f1ff0499a3554ba5e6
refs/heads/develop
2016-09-06T14:55:28.078233
2015-08-11T12:03:08
2015-08-11T12:03:08
21,358,329
9
5
null
2015-05-06T09:29:53
2014-06-30T16:42:33
Python
UTF-8
Python
false
false
124
py
from whitenoise.django import DjangoWhiteNoise from .wsgi import application application = DjangoWhiteNoise(application)
[ "karlhobley10@gmail.com" ]
karlhobley10@gmail.com
f1a84740d0a5c3bf1ba1441ba380dc64176cbe97
d7ad696cd1b550bb41d20f87b83c984ec7f19aa7
/practice/design_pattern/03_abstract_factory/abstract_factory.py
5fa712b16a1b0fb0cd9de79237fa18d370861894
[]
no_license
mida-hub/hobby
2947d10da7964d945e63d57b549c1dcb90ef7305
6e6f381e59fc2b0429fab36474d867aa3855af77
refs/heads/master
2022-12-21T23:33:14.857931
2022-12-19T16:30:34
2022-12-19T16:30:34
147,890,434
0
0
null
2021-03-20T04:31:58
2018-09-08T01:31:59
Jupyter Notebook
UTF-8
Python
false
false
1,129
py
# Abstract Factory # abstract_factory.py from abc import ABC, abstractmethod class AbcItem(ABC): def __init__(self, caption): self.caption = caption @abstractmethod def make_html(self): pass class PageItem(AbcItem): def __init__(self, title, author): self.title = title ...
[ "rusuden0106@gmail.com" ]
rusuden0106@gmail.com
bb48285834ee29beb7a898493b7d407dafdf7dd6
8c7a187ebfe858ff3f840602585d166b29fce576
/appstore/regulate_underscores.py
db0232fa39df3b96f78c3dc29fa2e15e90914bc1
[]
no_license
ohannes/pythonScripts
b756faa2e6d5314cb04c7afc0ca07f69027f59b2
5249b2735d8b2a9a2c6ad8a1ae625cb47f50d0b5
refs/heads/master
2020-04-06T04:20:29.565042
2015-07-19T17:40:39
2015-07-19T17:40:39
34,119,366
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
import sys sys.path.append(os.environ["ohannes"]) from ohannes import * input_file = getStrArg(1, 1) output_file = input_file + ".regulated" lines = getFileLines(input_file) ftw = open(output_file, write_mode) for line in lines: sharp_found = False equal_found = False line_regulated = False if not "=>" in line ...
[ "yasinyildiza@gmail.com" ]
yasinyildiza@gmail.com
2e77842e863422f2ffdaefdc8d6d8126892ba1d3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03347/s144374882.py
8ce3352dfe431d952e676130950485ebdc55dc2e
[]
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
751
py
import sys,queue,math,copy,itertools,bisect,collections,heapq def main(): sys.setrecursionlimit(10**7) INF = 10**18 MOD = 10**9 + 7 LI = lambda : [int(x) for x in sys.stdin.readline().split()] NI = lambda : int(sys.stdin.readline()) SI = lambda : sys.stdin.readline().rstrip() N = NI() ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7098f4dd04eee66744539b132a94f353fab0fbdd
3373b2bbe6303dcee3ae7f7f3e715ce674878a7b
/packages/hyperk/wcsim_dev.py
7187f72a10ce70577639daba6aa414e563e94670
[ "MIT" ]
permissive
pgjones/nusoft
f3515a6e2fc90622638cde0b8712ba6fcea2aa8e
442c7bca2f921892ecf9eb3ff6821e2a9da7b156
refs/heads/master
2020-09-12T21:44:54.453633
2014-10-03T20:22:09
2014-10-03T20:22:09
17,223,474
1
0
null
null
null
null
UTF-8
Python
false
false
3,401
py
#!/usr/bin/env python # # WCSimDev # # The HyperK WCSim development version # # Author P G Jones - 2014-06-20 <p.g.jones@qmul.ac.uk> : New file. #################################################################################################### import nusoft.package.local as local_package import os import nusoft.envfi...
[ "p.g.jones@qmul.ac.uk" ]
p.g.jones@qmul.ac.uk
3ae2079875387f561dad5fbc4ea251ed85ed9d12
fcef3602a044a82b75eb1bdee87a5eb347a56769
/recolo/tests/test_coordinate_solver.py
d18af8c84528da0a59395aaf2880b71ea511ddb3
[ "MIT" ]
permissive
PolymerGuy/recolo
5cb9c6b01d7eeb4108710606341518aa13efc1d1
05b14f0834fa675579eabdf43fac046259df19bb
refs/heads/master
2023-04-12T00:17:50.150126
2022-03-11T12:42:44
2022-03-11T12:42:44
343,329,602
4
1
MIT
2022-03-05T08:04:49
2021-03-01T07:39:40
Python
UTF-8
Python
false
false
3,877
py
from unittest import TestCase from recolo.artificial_grid_deformation import find_coords_in_undef_conf, interpolated_disp_field import numpy as np def rms_diff(array1, array2): return np.sqrt(np.nanmean((array1 - array2) ** 2.)) def biharmonic_disp_field(x, y, amp_scale=0.5): return (amp_scale * 0.4 * np.co...
[ "sindre.n.olufsen@ntnu.no" ]
sindre.n.olufsen@ntnu.no
68d8c35e5fbad07bc4f7755a167a5ce85247e30e
3ce592352627591346ea33ea0c2665ad879414e2
/References/search/3-3.soduku.py
8c6629c01cce7fc88632fdba5af2f6689c63a47c
[ "MIT" ]
permissive
royqh1979/python_libs_usage
113df732ef106f4a5faae1343493756fd703c8c0
57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511
refs/heads/master
2021-04-16T18:14:43.835482
2021-01-11T03:55:25
2021-01-11T03:55:25
249,374,754
0
0
null
null
null
null
UTF-8
Python
false
false
14,139
py
""" 数独求解 使用简化的启发式回溯搜索 使用递归实现 每次优先尝试填写可行数字最少的格子 """ import numpy as np from easygraphics import * from dataclasses import dataclass import copy from typing import Set FONT_WIDTH = 30 BOARD_TOP = 10 BOARD_LEFT = 10 SQUARE_WIDTH = 50 SPEED = 100 # 棋盘,为了方便定义为[10][10],实际只用[1][1]-[9][9] board = np.zeros((10, 10),dtype...
[ "royqh1979@gmail.com" ]
royqh1979@gmail.com
138d7251e99fd5b8de87425401cfefea55cd6357
84065ee4fb4ebeb8cb2cf1d3f6f385d2c56d787e
/page/__init__.py
359e38e1661042b3715145fd8b364217bb2881c4
[]
no_license
bian-py/app_kefu_code
59ed0bcf247e5dd7b06e0f91cdd9563faa49ce60
2f84a152bdc2c226f2bcb6aabc34f0a5313c094e
refs/heads/master
2023-01-28T11:17:40.984458
2020-12-08T11:07:50
2020-12-08T11:07:50
319,289,680
0
0
null
null
null
null
UTF-8
Python
false
false
7,863
py
from selenium.webdriver.common.by import By # 以下是服务器页面配置信息 fwq_new = By.XPATH, '//*[contains(@content-desc,"添加新的服务器")]' fwq_hand_input = By.XPATH, '//*[contains(@content-desc,"手工输入")]' fwq_scan_code = By.XPATH, '//*[contains(@content-desc,"扫码二维码")]' fwq_input_name = By.XPATH, """//android.view.View[@content-desc="{{ '...
[ "334783747@qq.com" ]
334783747@qq.com
ee70005f6474b587eee09a190290dc11f5c5439e
4d7b2858eb43506f822e1c3c906bee287186b2a9
/pizza_project/lib/__init__.py
f0acbff325741a8764e1c8595c7766f74b4ceaf7
[]
no_license
byt3-m3/da_pizza_house
c4d98b1c3246aa48256b368a69fad4046bf19691
01d163b511428b442e8d8f97bc4408e6060851db
refs/heads/master
2022-12-08T03:52:02.487557
2020-09-01T21:06:32
2020-09-01T21:06:32
292,047,731
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
from pizza_project.lib.inventory import * from pizza_project.lib.store import *
[ "cbaxtertech@gmail.com" ]
cbaxtertech@gmail.com
e3ba9166ff9f094c8ede9e3c3756bb8117241c50
3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf
/AOJ/ITP1/python/ITP1_1_D_Watch.py
c0a07556a3ffec6f81a94127a026e1a802c5a520
[]
no_license
kokorinosoba/contests
3ee14acf729eda872ebec9ec7fe3431f50ae23c2
6e0dcd7c8ee086650d89fc65616981361b9b20b9
refs/heads/master
2022-08-04T13:45:29.722075
2022-07-24T08:50:11
2022-07-24T08:50:11
149,092,111
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
s=int(input()) print(s//3600,s//60%60,s%60,sep=':') """ S=int(input()) m,s=divmod(S,60) h,m=divmod(m,60) print(h,m,s,sep=":") """
[ "34607448+kokorinosoba@users.noreply.github.com" ]
34607448+kokorinosoba@users.noreply.github.com
7765cc67a607b9556d7c75470b892c02b3fe5707
f208676788a901f4b66fa0a5809ef5563c1d5471
/classy_vision/hooks/classy_hook.py
ad5c0a900f8643ca8ed1f247fd4a4e113ac37853
[ "MIT" ]
permissive
cwb96/ClassyVision
10e47703ec3989260840efe22db94720122f9e66
597a929b820efdd914cd21672d3947fa9c26d55e
refs/heads/master
2021-02-18T03:35:51.520837
2020-03-05T05:41:24
2020-03-05T05:43:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,321
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from abc import ABC, abstractmethod from typing import Any, Dict from classy_vision import tasks class ClassyHookSta...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
942d5f383fb074463bde66060a1faedb97568626
1033c93917117f462771571c29dd046954582bd8
/revscores/features/proportion_of_symbolic_added.py
2eeae56295eca238e2c206c786853e46201b8d7b
[ "MIT" ]
permissive
jonasagx/Revision-Scoring
d4e3e892ac5de3a7f3032ef2b4fcc7b6efb20330
dfacba014e30d49577aa1a56aab13393ecede9d5
refs/heads/master
2021-01-17T11:57:39.393734
2015-01-10T19:13:02
2015-01-10T19:13:02
29,064,762
0
1
null
2015-01-10T19:13:03
2015-01-10T17:25:22
Python
UTF-8
Python
false
false
501
py
from .chars_added import chars_added from .feature import Feature from .symbolic_chars_added import symbolic_chars_added def process(chars_added, symbolic_chars_added): return symbolic_chars_added/(chars_added or 1) proportion_of_symbolic_added = Feature("proportion_of_symbolic_added", process, ...
[ "aaron.halfaker@gmail.com" ]
aaron.halfaker@gmail.com
55095ee0ea77fe40bd4ed68f53cd486d3d782b2d
fb235cccecab5368074bc43ed8677025f925dceb
/notebooks/westgrid/cffi_practice/__init__.py
6a5ba61abdb1177997fc7a77bffbd803fbab65cb
[]
no_license
sbowman-mitre/parallel_python_course
88a5f767de2f0f630d48faf94983fad51ecbe50f
85b03809c9725c38df85b0ac1e9b34cc50c0dc54
refs/heads/master
2022-01-04T18:29:12.443568
2019-11-29T16:08:06
2019-11-29T16:08:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
# import version for use by setup.py from ._version import version_info, __version__ # noqa: F401 imported but unused from pathlib import Path import pdb import os import pdb def get_paths(*args, **kwargs): binpath=Path(os.environ['CONDA_PREFIX']) <<<<<<< HEAD libfile= binpath / Path('lib/libcffi_funs.so') ...
[ "paustin@eos.ubc.ca" ]
paustin@eos.ubc.ca
4668b524700dbf55e3711938e6cfd959affaa864
57ddfddd1e11db649536a8ed6e19bf5312d82d71
/AtCoder/ABC1/ABC123/ABC123-A.py
04402036b76e6ab088ca47d8dcc146c57c639e4d
[]
no_license
pgDora56/ProgrammingContest
f9e7f4bb77714dc5088c2287e641c0aa760d0f04
fdf1ac5d1ad655c73208d98712110a3896b1683d
refs/heads/master
2023-08-11T12:10:40.750151
2021-09-23T11:13:27
2021-09-23T11:13:27
139,927,108
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
sm = float('inf') bi = - float('inf') for _ in range(5): v = int(input()) if v < sm: sm = v if v > bi: bi = v if bi - sm > int(input()): print(':(') else: print('Yay!')
[ "doradora.prog@gmail.com" ]
doradora.prog@gmail.com
8c36fc26a272f071d2585e8f26ae41f860d794bf
85381529f7a09d11b2e2491671c2d5e965467ac6
/OJ/Leetcode/Algorithm/54. Spiral Matrix.py
877d512e72cd9a17631f7f49ff7225fae0269c52
[]
no_license
Mr-Phoebe/ACM-ICPC
862a06666d9db622a8eded7607be5eec1b1a4055
baf6b1b7ce3ad1592208377a13f8153a8b942e91
refs/heads/master
2023-04-07T03:46:03.631407
2023-03-19T03:41:05
2023-03-19T03:41:05
46,262,661
19
3
null
null
null
null
UTF-8
Python
false
false
688
py
# -*- coding: utf-8 -*- # @Author: HaonanWu # @Date: 2017-03-03 10:57:26 # @Last Modified by: HaonanWu # @Last Modified time: 2017-03-03 11:01:34 class Solution(object): def spiralOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ ret = [] ...
[ "whn289467822@outlook.com" ]
whn289467822@outlook.com
143a773bbbec049d6b12a6406b50a9fce3cdd585
26dec2f8f87a187119336b09d90182d532e9add8
/mcod/resources/documents.py
da3e92fb9c8f6d9a843336fb6541b7e1b3f9d460
[]
no_license
olekstomek/mcod-backend-dane.gov.pl
7008bcd2dbd0dbada7fe535536b02cf27f3fe4fd
090dbf82c57633de9d53530f0c93dddf6b43a23b
refs/heads/source-with-hitory-from-gitlab
2022-09-14T08:09:45.213971
2019-05-31T06:22:11
2019-05-31T06:22:11
242,246,709
0
1
null
2020-02-24T22:39:26
2020-02-21T23:11:50
Python
UTF-8
Python
false
false
2,197
py
from django.apps import apps from django_elasticsearch_dsl import DocType, Index, fields from mcod import settings from mcod.lib.search.fields import TranslatedTextField Resource = apps.get_model('resources', 'Resource') Dataset = apps.get_model('datasets', 'Dataset') TaskResult = apps.get_model('django_celery_result...
[ "piotr.zientarski@britenet.com.pl" ]
piotr.zientarski@britenet.com.pl
220274ef4a9b4c4918eadc9760519ac1b39963d8
3cd18a3e789d3a0739768f1ae848d9f74b9dbbe7
/mounth001/day21/exercise03.py
fe9a7a38bb1bfcf3fe7454d21909dc564595ee5d
[]
no_license
Molly-l/66
4bfe2f93e726d3cc059222c93a2bb3460b21ad78
fae24a968f590060522d30f1b278fcfcdab8b36f
refs/heads/master
2020-09-28T12:50:18.590794
2019-11-27T04:42:28
2019-11-27T04:42:28
226,782,243
0
0
null
null
null
null
UTF-8
Python
false
false
773
py
""" lstack.py 栈的链式结构 重点代码 思路: 1. 源于节点存储数据,建立节点关联 2. 封装方法 入栈 出栈 栈空 栈顶元素 3. 链表的开头作为栈顶(不需要每次遍历) """ # 自定义异常 class StackError(Exception): pass # 创建节点类 class Node: def __init__(self,val,next=None): self.val = val # 有用数据 self.next = next # 节点关系 # 链式栈 class LStack: def __init__(self): ...
[ "769358744@qq.com" ]
769358744@qq.com
d8cd32918e0332ff185300fa7e171a9a68f0cdd3
7ce076dd764fe4b5c7881734f157bc6f77a99ead
/tests/providers/exasol/operators/test_exasol.py
68e3d121b48bccf3971c3dd9c3a0247ac1f8a694
[ "Apache-2.0", "BSD-3-Clause", "MIT", "Python-2.0" ]
permissive
kaxil/airflow
db31c98e23f2e0d869d857484e56a7c58acef231
42f1da179db00491610946a0b089dd82269adc74
refs/heads/master
2023-04-28T04:46:38.478352
2020-09-28T20:51:16
2020-09-28T20:51:16
112,322,392
1
1
Apache-2.0
2020-08-27T20:15:22
2017-11-28T10:42:19
Python
UTF-8
Python
false
false
1,922
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
kaxil.noreply@github.com
7046f96277b3a24fa4c120d9e42ebb229ccaad4a
fe7763e194be94c402482619c0111fcaca1ef7f6
/tutorial/snippets/permissions.py
a42b29204436ae53823a6a8aff8bf895527515ec
[ "MIT" ]
permissive
antoniocarlosortiz/django-rest-framework-sample
1fc8b11af2aa1cacfbbc2c3363e097262eec7aee
45ff0213b4a74566c8571c498c67adf66b420d3e
refs/heads/master
2021-01-01T05:18:51.457373
2016-04-23T18:28:12
2016-04-23T18:28:12
56,934,397
0
1
null
null
null
null
UTF-8
Python
false
false
474
py
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): """ Custom permission to only allow owners of an object to edit it. """ def has_object_permission(self, request, view, obj): # Read permissions are allowed to any request. # so we'll always allo...
[ "ortizantoniocarlos@gmail.com" ]
ortizantoniocarlos@gmail.com
c412835e863548366c31fa22434e45e614059113
56278a6e508ce1a282270f90f1cd9984edd14965
/tests/test_validation/_test_utils.py
ae430d81167f643c218fc773e99d0fc4cf3c2974
[ "MIT" ]
permissive
gc-ss/py-gql
3d5707938e503dc26addc6340be330c1aeb2aa76
5a2d180537218e1c30c65b2a933fb4fe197785ae
refs/heads/master
2023-04-10T05:21:24.086980
2020-04-01T14:18:20
2020-04-01T14:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
# -*- coding: utf-8 -*- from py_gql._string_utils import dedent from py_gql.lang import parse from py_gql.validation import validate_ast from py_gql.validation.validate import SPECIFIED_RULES, default_validator def _ensure_list(value): if isinstance(value, list): return value else: return [va...
[ "c.lirsac@gmail.com" ]
c.lirsac@gmail.com
c2191030e2543c62287b31ad7e253f8767252f1c
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v9/enums/types/feed_item_quality_approval_status.py
2b7fc3c81f16e8f0168b1a99e3484c10977c937b
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
1,260
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
GerhardusM.noreply@github.com
a30f1f5184e240fdb168d288874791f7260c7029
cdbb11473dc8d34767a5916f9f85cb68eb2ca3f2
/core/helpers.py
a9cf1b2ad8c669f8aac1b940187d7a46adde3660
[]
no_license
skyride/evestats
fb2a1a248952771731dcfecadab7d02b1f08cd4b
4bd2153f65c084b478272513733dcc78f9a0ef98
refs/heads/master
2020-03-23T13:50:19.216870
2018-08-05T19:19:47
2018-08-05T19:19:47
141,640,834
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
from sde.models import Type def generate_breadcrumb_trail(marketgroup): def recurse(node): """Return an list containing the path to this trail""" if isinstance(node, dict): return [] elif isinstance(node, Type): return [*recurse(node.market_group), node] ...
[ "adam.findlay@mercurytide.co.uk" ]
adam.findlay@mercurytide.co.uk
48dee7176bb8171d5e34ce3b814a3824745949bb
974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184
/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_hosts_operations.py
51cb4faf00fcd17afa1aa62853dffed3a1b72cf3
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
gaoyp830/azure-sdk-for-python
4816f04c554dcffb7510a6b7044b0c86a2dd32e1
1c66defa502b754abcc9e5afa444ca03c609342f
refs/heads/master
2022-10-20T21:33:44.281041
2022-09-29T17:03:13
2022-09-29T17:03:13
250,355,505
0
0
MIT
2020-03-26T19:42:13
2020-03-26T19:42:12
null
UTF-8
Python
false
false
44,268
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
gaoyp830.noreply@github.com
fa3e65432481dc50669a709c3740fc9753628e14
8f0524fc0171e27a15f4cf5fb3fe48ef2053b40e
/leetcode/DP/edit_distance_formula.py
e9141de529dbc4bde7fdefe5cc4713fae1837147
[]
no_license
MohammedAlewi/competitive-programming
51514fa04ba03d14f8e00031ee413d6d74df971f
960da78bfa956cb1cf79a0cd19553af97a2aa0f3
refs/heads/master
2023-02-08T20:25:58.279241
2023-02-02T00:11:23
2023-02-02T00:11:23
222,710,225
1
0
null
null
null
null
UTF-8
Python
false
false
275
py
def edit_str(s1,s2,n,m): if n<0 or m<0: return max(m,n)+1 elif s1[n]==s2[m]: return edit_str(s1,s2,n-1,m-1) else: return min(edit_str(s1,s2,n-1,m-1),edit_str(s1,s2,n,m-1),edit_str(s1,s2,n-1,m)) +1 print(edit_str("kitten","sitting",5,6))
[ "rofyalewi@gmail.com" ]
rofyalewi@gmail.com
aae84273d14923a5fb83bf35b9b0e6a31ea3d1af
a6270537b5c6d924fa6353a8f0328e07c71a0366
/numbasltiprovider/urls.py
c12994c32a9c81f0df352e00b8c9d1aa5310f5c7
[ "Apache-2.0" ]
permissive
oscarsiles/numbas-lti-provider
9b993175a6b6463a974373c7bdb2c9f38b057b89
ef7080a2593a800a1b9630c746e4f8667e2ec42d
refs/heads/master
2020-08-20T03:47:54.399198
2020-08-05T13:44:16
2020-08-05T13:44:16
215,979,486
0
0
NOASSERTION
2019-10-18T08:39:09
2019-10-18T08:39:09
null
UTF-8
Python
false
false
519
py
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^', include('numbas_lti.urls')), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if se...
[ "christianperfect@gmail.com" ]
christianperfect@gmail.com
2f85952fcbe3b65f4c744f4e3bb7f9549a012652
cb4cfcece4bc14f591b038adbc7fadccaf447a1d
/ELEVSTRS.py
d84b11ce6e30ca754fe1115b5248d18d884db818
[]
no_license
psycho-pomp/CodeChef
ba88cc8e15b3e87d39ad0c4665c6892620c09d22
881edddded0bc8820d22f42b94b9959fd6912c88
refs/heads/master
2023-03-21T06:46:14.455055
2021-03-11T12:07:48
2021-03-11T12:07:48
275,214,989
3
0
null
null
null
null
UTF-8
Python
false
false
224
py
# cook your dish here from math import sqrt t=int(input()) for _ in range(t): n,v1,v2=map(int,input().split()) t1=n/v1 t2=(sqrt(2)*n)/v2 if t2>=t1: print("Stairs") else: print("Elevator")
[ "noreply@github.com" ]
psycho-pomp.noreply@github.com
8c7ec1217dd7bc22b88439c1f406972e4f2a9006
3bae1ed6460064f997264091aca0f37ac31c1a77
/apps/cloud_api_generator/generatedServer/tasklets/rack/create/rack_create.py
3e407f24ace515e0974c5621850b08fc380425ff
[]
no_license
racktivity/ext-pylabs-core
04d96b80ac1942754257d59e91460c3a141f0a32
53d349fa6bee0ccead29afd6676979b44c109a61
refs/heads/master
2021-01-22T10:33:18.523799
2017-06-08T09:09:28
2017-06-08T09:09:28
54,314,984
0
0
null
2017-06-08T09:09:29
2016-03-20T11:55:01
Python
UTF-8
Python
false
false
174
py
__author__ = 'aserver' __tags__ = 'rack', 'create' __priority__= 3 def main(q, i, params, tags): params['result'] = '' def match(q, i, params, tags): return True
[ "devnull@localhost" ]
devnull@localhost
7be5aa773f2e343fd4b8b491a4269fdf9fff5719
ca609a94fd8ab33cc6606b7b93f3b3ef201813fb
/2017-feb/1.python/5.data-frames.py
959658216b9ad8cb6baf46f1063d69277bcff50f
[]
no_license
rajesh2win/datascience
fbc87def2a031f83ffceb4b8d7bbc31e8b2397b2
27aca9a6c6dcae3800fabdca4e3d76bd47d933e6
refs/heads/master
2021-01-20T21:06:12.488996
2017-08-01T04:39:07
2017-08-01T04:39:07
101,746,310
1
0
null
2017-08-29T09:53:49
2017-08-29T09:53:49
null
UTF-8
Python
false
false
726
py
import pandas as pd col1 = [10,20,30,40] col2 = ['abc','def','xyz','pqr'] col3 = [0,0,0,0] #creating data frame df1 = pd.DataFrame({'pid':col1, 'pname':col2,'survived':col3}) df1.shape df1.info() df1.describe() df1.head(2) df1.tail() df1['col4'] = 0 #access frame content by column/columns df1.pid df1['pid'] df1[['p...
[ "info@algorithmica.co.in" ]
info@algorithmica.co.in
2ce930a77f53d08bd7633bac3cdee86c6e5cdd88
f7327136419a3b895fb185bdc0af7a08256f8aed
/python/paddle/nn/layer/fused_transformer.py
0084f7ff339df3e185dbe727d4632f758e7e9255
[ "Apache-2.0" ]
permissive
paddlelaw/Paddle
45a7598535d6a4b9dd0cfb9bbc61540ff9c1c21e
12865234fe1e28fe5df50a43901845ceaea42c2d
refs/heads/develop
2023-08-28T01:19:16.786973
2021-10-09T14:39:35
2021-10-09T14:39:35
331,300,511
0
0
Apache-2.0
2021-10-09T14:39:36
2021-01-20T12:29:27
Python
UTF-8
Python
false
false
19,928
py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
paddlelaw.noreply@github.com
0a53f26329b7e8f590b399d677a12e83e6704b2e
28a124b6a2f22a53af3b6bb754e77af88b4138e1
/DJANGO/companytodo/reports/migrations/0006_auto_20191209_0121.py
a29feb60b3e3cadd0f868274c2f14a8a99ef6f0e
[]
no_license
mebaysan/LearningKitforBeginners-Python
f7c6668a9978b52cad6cc2b969990d7bbfedc376
9e1a47fb14b3d81c5b009b74432902090e213085
refs/heads/master
2022-12-21T03:12:19.892857
2021-06-22T11:58:27
2021-06-22T11:58:27
173,840,726
18
4
null
2022-12-10T03:00:22
2019-03-04T23:56:27
Python
UTF-8
Python
false
false
350
py
# Generated by Django 2.2.7 on 2019-12-08 22:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reports', '0005_auto_20191209_0120'), ] operations = [ migrations.AlterModelOptions( name='report', options={'ordering': ('-...
[ "menesbaysan@gmail.com" ]
menesbaysan@gmail.com
a81f1658dd871e8e403dcf6b4e512ae458767a2f
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/HBKAGJZ62JkCTgYX3_15.py
5c5665b4393c00c704f2eb04cb3ee08dfe0d3464
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
def last(l,n): if n>len(l): return 'invalid' elif n==0: return [] else: return l[len(l)-n:]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
31f85f215a9f769b8f6cf5f1c88dce4b0be8c037
4f0f411d8d9abe3d520a962d30da67959e6bff2f
/tests/sequence/test_phylo.py
d40dbd398c6fe4c8b0188a102157cb630725e1f8
[ "BSD-3-Clause" ]
permissive
ajshedivy/biotite
685f196416cc7be74d299a13f23947f85eb5825e
15fe39de165aba6e8bd6376fa8f8ddf069718fb5
refs/heads/master
2023-08-24T14:45:25.239920
2021-10-06T14:32:40
2021-10-06T14:32:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,165
py
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. from os.path import join import numpy as np import pytest import biotite import biotite.sequence.phylo as phylo from ..util import data_dir @pytest.fixture def di...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
c0300915f88b4cbb234193be8a08ceb789f7fd55
c24b28c0dc4ad8f83845f4c61882f1e04d49b5cd
/Plotly_Graphs/Plotly_Introduction/plotly_charts.py
d17cd6a9de3a549f8ebb82ff2712db48bbb76398
[]
no_license
Coding-with-Adam/Dash-by-Plotly
759e927759513d96060a770b1e0b0a66db13f54f
9f178f1d52536efd33827758b741acc4039d8d9b
refs/heads/master
2023-08-31T17:23:02.029281
2023-08-08T05:12:50
2023-08-08T05:12:50
234,687,337
1,293
1,822
null
2023-07-31T15:47:07
2020-01-18T05:36:28
Jupyter Notebook
UTF-8
Python
false
false
370
py
import pandas as pd import plotly.express as px dfb = pd.read_csv("bird-window-collision-death.csv") df = px.data.tips() fig = px.pie(dfb, values='Deaths', names='Bldg #', color="Side", hole=0.3) fig.update_traces(textinfo="label+percent", insidetextfont=dict(color="white")) fig.update_layout(legend={"itemclick":False...
[ "noreply@github.com" ]
Coding-with-Adam.noreply@github.com
9ff2f22cb931ef1b4b6f3de6cb5ba468dace744c
ae613a880eecf783ba23e7ca871f9e165ec2ce6e
/calculate_root.py
f6e918aef989a07665376a59101b386c993edc8e
[ "MIT" ]
permissive
h-mayorquin/capacity_code
52d7e81026cd804677d5a5a6312b434bdff6ed32
f885f0e409d3f9c54b8e20c902f7ef28584ca8a2
refs/heads/master
2020-08-28T00:30:14.760936
2020-01-31T17:26:29
2020-01-31T17:26:29
217,534,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
import warnings import pickle import pandas as pd import numpy as np import random from math import ceil, floor from copy import deepcopy from functions import * warnings.filterwarnings('ignore') minicolumns = 10 hypercolumns = 5 sequence_length = 2 number_of_sequences = 20 pattern_seed = np.random.randint(0, 20) de...
[ "h.mayorquin@gmail.com" ]
h.mayorquin@gmail.com
c1337933143e4be73f495569475dbf98d651bfac
f0b52a3ae5115b9a839d6bd3e765de83ecb21a28
/Payload_Type/Apollo/mythic/agent_functions/net_localgroup_member.py
6b2fad53fcf068ef12c142ebdcfed4c9d96d878c
[ "BSD-3-Clause", "MIT" ]
permissive
bopin2020/Apollo
ad98f1cb872bd2134509df55ee67a79c51e6d316
7660439cbc8d4f18af2b564a5b7a0ac4f8f3765a
refs/heads/master
2023-01-12T23:50:01.266984
2020-11-12T07:03:13
2020-11-12T07:03:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,699
py
from CommandBase import * import json class NetLocalgroupMemberArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = { "computer": CommandParameter(name="computer", required=False, type=ParameterType.String, description="Computer to enu...
[ "djhohnstein@gmail.com" ]
djhohnstein@gmail.com
109e032b250691b3bf5f5ea34a9982e509cbd868
3d9825900eb1546de8ad5d13cae893eb0d6a9b14
/AutoWorkup/SEMTools/setup.py
94c4428d8e6622b3e676c76f782d87775210107d
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
rtkarcher/BRAINSTools
20d69f96e6d5ca92adaeb06aa4fe6556b5e7b268
961135366450400409cece431423ed480855d34c
refs/heads/master
2021-01-15T08:53:48.961607
2013-06-26T19:09:34
2013-06-26T19:09:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('SEMTools', parent_package, top_path) config.add_data_dir('dif...
[ "hans-johnson@uiowa.edu" ]
hans-johnson@uiowa.edu
b1b669b81b3b3af232520b452ae2ec8d589ea9bc
2104153bfc138b7e677aba0da9da376c38b7dcd0
/apps/extensions/db.py
cfe285977011e170da1d102d9769b0ee4dfad351
[]
no_license
lucassimon/flask-api-users
992c75491cf577f74649097e49a04fbc74ea50e1
510443d481486f09a09398a5225ace82320477f3
refs/heads/master
2023-06-09T16:17:39.873516
2023-06-05T04:24:56
2023-06-05T04:24:56
137,128,845
22
16
null
2018-11-20T18:00:53
2018-06-12T21:18:41
Python
UTF-8
Python
false
false
71
py
# Third from flask_mongoengine import MongoEngine db = MongoEngine()
[ "lucassrod@gmail.com" ]
lucassrod@gmail.com
4cecb1fdea73ca9f39f2bdf440f6840a5f57c2f2
7aebfaec6957ad67523f1d8851856af88fb997a6
/catkin_ws/build/robotiq/robotiq_3f_gripper_control/catkin_generated/pkg.develspace.context.pc.py
472d6f1b90073d4764f3841493bb27694a2f8bfa
[]
no_license
k-makihara/ROS
918e79e521999085ab628b6bf27ec28a51a8ab87
45b60e0488a5ff1e3d8f1ca09bfd191dbf8c0508
refs/heads/master
2023-01-28T06:00:55.943392
2020-11-26T05:27:16
2020-11-26T05:27:16
316,127,707
0
0
null
null
null
null
UTF-8
Python
false
false
684
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/mslab/catkin_ws/devel/include".split(';') if "/home/mslab/catkin_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "controller_manager;diagnostic_updater;dynamic_reconfigure;hardware_inter...
[ "makihara@ms.esys.tsukuba.ac.jp" ]
makihara@ms.esys.tsukuba.ac.jp
b836ab3184c86a5580190a268a1f5b5241677048
ef54d37f8a3303013ca7469871a320d303957ed7
/robo4.2/fusion/tests/wpst_crm/feature_tests/TBIRD/F110_Port_Monitoring/port_monitor_support_module.py
a6deffdae867986fcbebc06b5c2da63aca16ddb9
[]
no_license
richa92/Jenkin_Regression_Testing
d18badfcf16bda682dfe7bcbbd66f54a9a27a58d
24a74926170cbdfafa47e972644e2fe5b627d8ff
refs/heads/master
2020-07-12T10:01:59.099137
2019-08-27T12:14:53
2019-08-27T12:14:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
''' This module is used to include some helper function for Port Monitoring ''' def set_networkuri_lig(data_variable, get_output): ''' Build the network URI's from the network Name and form the LIG body ''' temp = data_variable for i in range(len(temp['uplinkSets'])): for j in range(len(temp['uplinkSets'][...
[ "akul@SAC0MKUVCQ.asiapacific.hpqcorp.net" ]
akul@SAC0MKUVCQ.asiapacific.hpqcorp.net
ebe07b6c084e6824573cbad59b09aeeccd77287e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03130/s063741533.py
8e8ac571e89e7cbb1f076333c2fcb83f461a3bff
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
def examA(): N, K = LI() if (N+1)//2>=K: print("YES") else: print("NO") return def examB(): d = [0]*4 for _ in range(3): a, b = LI() a -=1; b -=1 d[a] +=1 d[b] +=1 for i in d: if i>=3 or i==0: print("NO") return...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2b2602042f1ed0d95c722a129a06ec21856cab22
cc90d98a64693ca4542c999b5d2241b60eb33aac
/Problem62-3.py
e12955f5179fe407cd38b8141c64e187aee5cac8
[]
no_license
Nan-Do/eulerproject
1f63b23a4d4e344c8525238b2333920e733b03c9
d33033d6af10d1aca8f7db9bcf187ef8f6005040
refs/heads/master
2021-01-10T15:51:39.594159
2016-04-14T05:41:16
2016-04-14T05:41:16
48,170,330
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
from itertools import count, permutations from math import ceil def gen_cubes(): for n in count(start=1): yield n ** 3 def is_cube(n): v = ceil(pow(n, (1/3.))) return (v ** 3) == n def check_cube(number, limit): n_str = str(number) count = 0 repeated = set() for n in set(permutati...
[ "icemanf@gmail.com" ]
icemanf@gmail.com
18122f8ba0ea425a2f59eac84a1b4f2b379a77d3
5204b7b60f1780e2af1bd785beed4145f8d38d83
/python/Gohan/core/__init__.py
123b3426cb27438160bffca3d7edf46567d62acd
[]
no_license
sdss/mangadesign
e5001c30db25e6efe9a439359e0e67fd9b5266e4
6852432aeb682b19d46eff22f8cf57bbac272b7e
refs/heads/master
2021-06-08T16:42:33.819938
2020-08-24T14:58:13
2020-08-24T14:58:13
89,097,774
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
from .configuration import get_config
[ "gallegoj@uw.edu" ]
gallegoj@uw.edu
175cd537ba734aea16b54646d227d7f043eae53f
3027a838581e2b0778bd6ae40f9a6c72017b3b0d
/loss.py
84c014beac4352f30db99c0f34f0a9b4f0f3262b
[]
no_license
arthur-qiu/robust
2617adf3be8ea24592990e66b35123d02b0db045
3f40b45a740a1d3f2ba81a18e2cb510fe613d616
refs/heads/master
2020-12-04T12:08:52.665675
2020-02-26T10:37:34
2020-02-26T10:37:34
231,758,355
0
0
null
null
null
null
UTF-8
Python
false
false
2,164
py
import numpy as np import torch import torch.nn as nn import math import torch.nn.functional as F def Entropy(input_): bs = input_.size(0) epsilon = 1e-5 entropy = -input_ * torch.log(input_ + epsilon) entropy = torch.sum(entropy, dim=1) return entropy def grl_hook(coeff): def fun1(grad): ...
[ "Arthur" ]
Arthur
d7feedf3e0f9eec8c5f371d5bd23732533460493
5babecf71b6b3c3295219b59bd96e348e1cfaf80
/singleylinkedlist.py
c5bb94f61e1e34fc34faa6ab4bc6d013e5858183
[]
no_license
jefinagilbert/dataStructures
46697a8c1ec5cdb943a1e95e887f6343a85f648b
04773fc0dff7d18078f3960b0993ce8ab7918a19
refs/heads/main
2023-06-12T02:06:24.345124
2021-07-10T18:05:44
2021-07-10T18:05:44
384,760,735
0
0
null
null
null
null
UTF-8
Python
false
false
3,771
py
class node: def __init__(self,data): self.data = data self.next = None class linkedlist: def __init__(self): self.head = None def printlinkedlist(self): temp = self.head print (temp) while (temp): print (temp.data,end=" -> ")...
[ "noreply@github.com" ]
jefinagilbert.noreply@github.com
271813ce9df854023fe3b6d50c40601bd44a2d32
b80059648afab4474e567ec1035d63d060d9b3a6
/src/analyze.py
e18911d2f1160107000f7ce93c5532bf18c7c900
[ "MIT" ]
permissive
SteemData/classify.steemdata.com
8b34d7ae9e666b9dfe9930c82dc347650356fb94
507d2d537a502701dd6e28c9581c132942084b7a
refs/heads/master
2021-03-19T05:57:34.360839
2017-11-09T22:30:59
2017-11-09T22:30:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
import boto3 from easydict import EasyDict as ed config = ed( region_name = 'us-west-2', s3_bucket_name = 'steem-hackaton-input' ) rkg = boto3.client('rekognition', region_name=config.region_name) def nsfw(img: bytes): response = rkg.detect_moderation_labels( Image={'Bytes': img}, ) retu...
[ "_@furion.me" ]
_@furion.me
bfa64414e10648e405e89258f858138cfe2bcc91
f4e21b9a042577400689e83a7ae11c0eee13cecf
/gneiss/regression/tests/test_transformer.py
3f7aa1cd6eebc62d528cecdf3407afee1faff1f6
[]
no_license
ebolyen/gneiss
8facaaffe9904c8641f418fdd1461c1ae447e593
bb47be8805bf887afcc40b72365b062aa74ff823
refs/heads/master
2022-12-21T21:08:09.162341
2017-04-21T01:30:10
2017-04-21T01:30:10
88,930,099
0
0
null
2017-04-21T02:20:16
2017-04-21T02:20:16
null
UTF-8
Python
false
false
2,346
py
# ---------------------------------------------------------------------------- # Copyright (c) 2016--, gneiss development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ------------------------------------------------...
[ "jamietmorton@gmail.com" ]
jamietmorton@gmail.com
0d37df26911f7aa45fd992907792f711b760b1d3
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/cv/classification/Gluon_ResNet50_v1d_for_PyTorch/timm/models/layers/involution.py
97e83500b1f997b67fbd369776d069d277ac3bdb
[ "Apache-2.0", "MIT", "CC-BY-NC-4.0", "GPL-1.0-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
2,501
py
# Copyright [yyyy] [name of copyright owner] # Copyright 2021 Huawei Technologies Co., Ltd # # 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.or...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
a5ae575a5d08b866c988d7daff8b8357e695454b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03148/s977826358.py
4dcf39217ab9acca14bc5415bf0a46880be55e2c
[]
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
3,165
py
import sys readline = sys.stdin.readline MOD = 10 ** 9 + 7 INF = float('INF') sys.setrecursionlimit(10 ** 5) import heapq class PriorityQueue: class Reverse: def __init__(self, val): self.val = val def __lt__(self, other): return self.val > other.val def __repr_...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6849d2ec9790e047a0e8c225fd2ba62a5fdcdd56
3dcfa2980db0770af9b4355b0d5a5e5ef2313c50
/corpus/exceptions.py
173d06acf3cf5bd7493cf25b0c6f41cbc47cf052
[ "CC-BY-NC-2.0", "CC-BY-NC-4.0", "Apache-2.0" ]
permissive
looselycoupled/partisan-discourse
5f4638d984fb54a5add870d4cb59445811c412a1
8579924094c92e25e21ce59a26232269cf6b34bc
refs/heads/master
2020-03-27T06:35:49.627350
2018-08-25T18:05:44
2018-08-25T18:05:44
146,118,079
0
0
Apache-2.0
2018-08-25T18:02:38
2018-08-25T18:02:38
null
UTF-8
Python
false
false
977
py
# corpus.exceptions # Custom exceptions for corpus handling. # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Mon Jul 18 09:57:26 2016 -0400 # # Copyright (C) 2016 District Data Labs # For license information, see LICENSE.txt # # ID: exceptions.py [63935bc] benjamin@bengfort.com $ """ Custo...
[ "benjamin@bengfort.com" ]
benjamin@bengfort.com
e6abd68ee8891fd33558e2c79ba7b61eeb2bd4b5
b35aea9f4411f5dc7942392d78dc31bb76c7ec73
/djangoProject/services/migrations/0004_alter_sub_head.py
142021ffe6400739d7b16a3cef8ad1787f49ebfd
[]
no_license
ashkanusefi/rondshow
1079b81704fff55a1d54fa8dee2712ab61e92f4a
7e5a80fcc6e326b8b1737a54fb53becc4195e475
refs/heads/master
2023-09-01T18:45:33.170465
2021-09-18T11:24:52
2021-09-18T11:24:52
407,820,565
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# Generated by Django 3.2.5 on 2021-07-13 10:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('services', '0003_alter_sub_head'), ] operations = [ migrations.AlterField( model_name='sub', ...
[ "yousefi.ashkan96@gmail.com" ]
yousefi.ashkan96@gmail.com
ad2cf41e2835382146d98e659562119b73b04000
10425fd2f058afb9dd823929314bfede0a4eb513
/flaskaiohttp_websocket/app.py
67a5c4b45adbbf95106696a4225673ec018d7153
[]
no_license
gaozhidf/flask_websocket
60883571a469a7c283e3da9a8fbf81d752f82f71
41653f71b7fd6d07d3592a22a11f29e795ba45d8
refs/heads/master
2022-11-29T04:31:08.953294
2017-08-12T08:53:24
2017-08-12T08:53:24
49,828,952
0
2
null
null
null
null
UTF-8
Python
false
false
2,060
py
import json import asyncio import aiohttp from flask import Flask, current_app from flask_aiohttp import AioHTTP from flask_aiohttp.helper import async, websocket app = Flask(__name__) aio = AioHTTP(app) @app.route('/echo') @websocket def echo(): while True: msg = yield from aio.ws.receive_msg() ...
[ "gaozhidf@gmail.com" ]
gaozhidf@gmail.com
5e56cc78a121e1d1b486e6bc4a3fc7a7cd46762b
2b54b1fb1540ab73d6c83cae3acd5fdd58bdead5
/Platinum_clusters_Project/final_images/Pt13_O2_DFTsorted/Pt7_3O2_TiO2_101surface_zorderimageplotbasedondepth1.py
4f1b59995eb2ca8b9bc48aa8fecadced15bc2251
[]
no_license
sivachiriki/GOFEE_Pt_V_supported
5787d44294262870075f35f2d31c096021b7ce20
6bd700dac1f3e7c58394b758d75246ac6e07eade
refs/heads/master
2022-04-08T11:38:13.038455
2020-03-09T10:48:31
2020-03-09T10:48:31
226,359,812
0
0
null
null
null
null
UTF-8
Python
false
false
3,837
py
from __future__ import division import matplotlib #matplotlib.use('Agg') # Can also use 'tkagg' or 'webagg' #from plot_neb_tio2 import * from matplotlib.offsetbox import TextArea, VPacker, AnnotationBbox import matplotlib.patches as patches import matplotlib.pyplot as plt from ase.io import read, write from ase.visua...
[ "sivachiriki@phys.au.dk" ]
sivachiriki@phys.au.dk
3dc1ada00afa0327b9f7befb7328a8b103da9b07
d7719b7b537a1484228d377d265ebeea8f76748a
/Robot Operating System (ROS)/ROS/Starter Code and Resources/ROS_Minimal_Projects/rospy_minimal_packages/modular_pub_sub/setup.py
f8270eaaf22d1aa84841ec98b72a858c7271b601
[ "BSD-2-Clause" ]
permissive
OpenSUTD/coding-notes
9724ac9d35f585ff3140a43c8a10fcdcbaedfc79
f9b8c778f8494d0bf47bd816cfd77b88e78a5a1f
refs/heads/master
2022-07-16T22:17:21.930385
2019-07-03T10:11:30
2019-07-03T10:11:30
166,292,417
7
5
BSD-2-Clause
2019-07-03T11:20:16
2019-01-17T20:30:47
C++
UTF-8
Python
false
false
275
py
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup setup_args = generate_distutils_setup( packages = ['modular_pub_sub'], package_dir = {'': 'src'}, install_requires = [''] ) setup(**setup_args)
[ "methylDragon@gmail.com" ]
methylDragon@gmail.com
c1f7a9a1be4dab922be13ef7a1acc032b4a8ac3b
c53adaefd26bda80cd7ce22ea0cae877e364c2c5
/lib/network.py
52ca885512d164a52547c7b33578191591958ef4
[ "MIT" ]
permissive
Morningstarpayments/electrum
a59ac886b23ef5abcc940a5d51ea1ebef78908b7
a035bac8577d53a805dc111eb3ba89f48e96fe34
refs/heads/master
2021-07-06T08:59:44.926421
2017-10-03T00:21:10
2017-10-03T00:21:10
105,598,670
0
0
null
2017-10-03T00:19:17
2017-10-03T00:19:17
null
UTF-8
Python
false
false
33,849
py
# Electrum - Lightweight Bitcoin Client # Copyright (c) 2011-2016 Thomas Voegtlin # # 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 rig...
[ "you@example.com" ]
you@example.com
47a76feedcb553cbdfed82f9a1800c56ebd293fe
a79519c0032ce5630710bef726886e226369ad1a
/bikeshed/refs/__init__.py
23d416226c7293aba42df293012d75de99a3883b
[ "CC0-1.0" ]
permissive
ylafon/bikeshed
9598aee18ac5a9f5fc3094bc847f30f768d4ee07
5471ba1f1c21f5b90546909fa30891f0148a750c
refs/heads/main
2022-07-31T23:42:22.592066
2022-07-27T09:17:23
2022-07-27T09:17:28
311,297,114
0
0
CC0-1.0
2020-11-09T10:08:03
2020-11-09T10:08:02
null
UTF-8
Python
false
false
100
py
from .manager import ReferenceManager from .source import RefSource from .wrapper import RefWrapper
[ "jackalmage@gmail.com" ]
jackalmage@gmail.com
4f86503e9967ceaa9cb417c55dc2f4ceb6706b4e
a8595670862f9475050abf73399afe34faaa083b
/wb_api/urls.py
f2d8bb64d1f13e51f8b884542b8f6d173580934d
[]
no_license
skiboorg/wb_api
14392df2da8569212c0ba05e527b46fcd9c30338
c45d8c340a45958bc6d380c2a431d13d0f1ebf37
refs/heads/master
2022-12-06T03:52:58.621255
2020-08-26T19:25:24
2020-08-26T19:25:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
from django.contrib import admin from django.urls import path,include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls')), path('api/v1/', include('api.urls')), path('ckeditor/', ...
[ "11@11.11" ]
11@11.11
48217e37537211a9bfd2b671886a356efa6a7a8d
b047a32da65cc0fafe249160f57765ddbe80176e
/apps/support/templatetags/forum.py
20f193d4a3ba8af04bb65ae72f774e72f6431c3b
[ "MIT" ]
permissive
fengjinqi/website
0568c679e7964bdbb637831a4f1dec7c5e8d767c
340eecec49ce0d66cd6a491d0ae9ad23ec9f841b
refs/heads/master
2023-02-18T10:12:52.158471
2023-02-16T08:40:13
2023-02-16T08:40:13
160,755,540
367
114
MIT
2022-12-08T01:42:40
2018-12-07T01:44:34
Python
UTF-8
Python
false
false
1,226
py
from datetime import datetime from django.contrib.sessions.models import Session from django.core.cache import cache #from apps.forum.views import get_online_count from apps.support.models import QQ from apps.forum.models import Forum from django import template from django.utils.timezone import now, timedelta from a...
[ "tarena_feng@126.com" ]
tarena_feng@126.com
4a98ed5c35bc602fa3cf5522d5f85ab078bbcb92
009f9761767f93a2986f8b5a2ba61bac6f33dc59
/examples/intro/8/example.py
0fc03bff85a41b5054ceffe6fd6a14aa7ee9e136
[ "MIT" ]
permissive
crasiak/ginkgo
8798d28d16732cc1c5b18f8e5df0d17f8866f999
2592de2c8acfe6e62f33e7ac1f79cc5613567908
refs/heads/master
2021-01-16T20:07:45.269511
2012-04-06T07:26:46
2012-04-06T07:26:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
import gevent from gevent.pywsgi import WSGIServer from gevent.server import StreamServer from gevent.socket import create_connection from ginkgo.core import Service class TcpClient(Service): def __init__(self, address, handler): self.address = address self.handler = handler def do_st...
[ "progrium@gmail.com" ]
progrium@gmail.com
df8f34cabb73d62adf171eeae4b7788cbdfdf467
6db8aba817161dc573f16cde185f4a1c02c753e0
/XOR.py
0c07e2db55b43284b1baa73054a707acc0f131b8
[]
no_license
Prakashchater/Leetcode-array-easy-questions
456153a13397c895acae6550dad8f1b1851ff854
7c5d40f9d68dbf61f4a61a33d9b54f769473b057
refs/heads/main
2023-06-19T14:01:52.483440
2021-07-22T19:44:40
2021-07-22T19:44:40
354,926,404
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
xor = 0 out = [] arr = [10,11,1,2,3] n = arr[len(arr)-1] for i in range(len(arr)-1): out.append(arr[i]^arr[i+1]) out.append(arr[len(arr)-1]) print(out)
[ "prakashchater@gmail.com" ]
prakashchater@gmail.com
ac7f9a29b1083ff198275d312b01fecad5ed4fc3
039446516b188899e2fd21a41087ad20f06d666b
/src/server_code/game_logic.py
9934157d88fc8ff515d2b4ff8f39a8e5a2c028ab
[]
no_license
Tyorat/TicTacToe
62ebbeee168568a0c590a5923127a3ac529ba134
0281f3c7b293256e2c73ac1530786308cea385af
refs/heads/main
2023-06-24T22:37:18.744669
2021-07-12T23:11:30
2021-07-12T23:11:30
377,521,858
0
0
null
2021-07-12T23:11:31
2021-06-16T14:20:21
Python
UTF-8
Python
false
false
2,001
py
import secrets WIN_COMBO = ((1, 2, 3), (4, 5, 6), (7, 8, 9), (1, 4, 7), (2, 5, 8), (3, 6, 9), (1, 5, 9), (7, 5, 3) ) SWITCH_TURN = {"x": "o", "o": "x"} class WrongMove(Exception): pass class Game: def __ini...
[ "you@example.com" ]
you@example.com
c8df91551a44a334be5a4cd94d26220e4cc54a07
84e661d5d293ec0c544fedab7727767f01e7ddcf
/target/migrations/0011_auto_20201101_1147.py
9ca50acaa24915c420cbf92d31354e33dd6cdc7f
[ "BSD-3-Clause" ]
permissive
groundupnews/gu
ea6734fcb9509efc407061e35724dfe8ba056044
4c036e79fd735dcb1e5a4f15322cdf87dc015a42
refs/heads/master
2023-08-31T13:13:47.178119
2023-08-18T11:42:58
2023-08-18T11:42:58
48,944,009
21
23
BSD-3-Clause
2023-09-14T13:06:42
2016-01-03T11:56:48
JavaScript
UTF-8
Python
false
false
882
py
# Generated by Django 3.0.10 on 2020-11-01 09:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('target', '0010_auto_20201101_1127'), ] operations = [ migrations.AddField( model_name='target', name='tweet_notifie...
[ "nathangeffen@gmail.com" ]
nathangeffen@gmail.com
4f91db0c179ce5761c01cb598130a254ba26e16f
1e8d9a251b36f2e80a851d541321522ce4e812fa
/igmspec/scripts/plot_igmspec.py
c3e68e4c64d8f0b820e6ba8daf9c1882d20f2c30
[]
no_license
Waelthus/igmspec
c81f31360e9528bd150a991ad96b8b4ca94962d0
8fdbb622360ca5263711f75d0f7571ed955f6e28
refs/heads/master
2020-12-25T21:55:50.001007
2016-07-17T21:17:08
2016-07-17T21:17:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
#!/usr/bin/env python """ Loads and plots a requested spectrum """ import pdb def parser(options=None): import argparse parser = argparse.ArgumentParser(description='plot_igmspec script v0.2') parser.add_argument("coord", type=str, help="Coordinates, e.g. J081240+320808") parser.add_argument("--tol...
[ "xavier@ucolick.org" ]
xavier@ucolick.org
c37ee59446bb0ce436a571312628fce8121b88a8
1905e5cece92e6cdc68dac3ebb0ee1d05bef35c8
/fuzzinator/tracker/base.py
84de8815bb65c1977f3e473d326d6eed14335b6c
[ "BSD-3-Clause" ]
permissive
darrynza/fuzzinator
e876131d18c5f0a17ae8bdc2fb10f18d8b0084fb
e1642f75ba8c1b555f7e2557b52f43df4d17b89f
refs/heads/master
2020-04-29T04:39:36.453300
2018-12-06T17:15:35
2019-01-08T23:36:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# Copyright (c) 2016-2018 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. class BaseTracker(object): @property def logged_in(self)...
[ "reni@inf.u-szeged.hu" ]
reni@inf.u-szeged.hu
007ee5b8228f8de322122564f9f44722684aa6cf
87a9706379670da62739b3c1fbbdd75edb5107b8
/Django/django_celery_test/django_celery_test/celeryconfig.py
cda60c880a754a04fa66f089f2be5f3d6b7e1eed
[]
no_license
zxbzxb180/python_work
ba21ab74f842e0d560a8bb192bb8a874d356b9e1
6406024e011aa06d1bda78d97cfecc47f7f2058c
refs/heads/master
2022-12-12T23:53:36.887963
2020-03-04T07:20:29
2020-03-04T07:20:29
194,494,744
0
0
null
2022-11-22T03:54:47
2019-06-30T08:48:44
Python
UTF-8
Python
false
false
854
py
import djcelery djcelery.setup_loader() BROKER_BACKEND = 'redis' BROKER_URL = 'redis://:6222580@localhost:6379/1' CELERY_RESULT_BACKEND = 'redis://:6222580@localhost:6379/2' CELERY_QUEUES = { 'beat_tasks': { 'exchange': 'beat_tasks', 'exchange_type': 'direct', 'binding_key': 'beat_tasks' ...
[ "616529325@qq.com" ]
616529325@qq.com