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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be8427425200cfcdd023813cec11e7e76feb7687 | cc2029f40a12e82712072275fc76a07ac59b5940 | /levelup/2018_jun/cracking_the_coding_interview/bit_manipulation/lonely_integer.py | fe730526aad82cf5ab6d2cbf58c6ebefef7ee9c5 | [
"MIT"
] | permissive | heitorchang/learn-code | d3fb8e45d539d302372126fe28e85032590b5707 | 5e6e56f7257de1910830619c01d470e892d7f9d8 | refs/heads/master | 2023-08-09T13:46:18.623772 | 2023-07-21T16:57:11 | 2023-07-21T16:57:11 | 147,522,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | description = """
Consider an array of integers, , where all but one of the integers occur in pairs. In other words, every element in occurs exactly twice except for one unique element.
Given the array A, find and print the unique element.
"""
idea = """The trick is to use ^, the XOR operator, which works like an o... | [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
02c2b0e738db8284da5789a1e1c0d22fe532cc7f | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/tmpconsolecmds.py | fe61c6d9461ef52b7de158706fc47fb986a26451 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,401 | py | # 2016.08.04 19:47:47 Střední Evropa (letní čas)
# Embedded file name: scripts/client/TmpConsoleCmds.py
import BigWorld
from debug_utils import *
class LanServers:
def search(self):
BigWorld.serverDiscovery.searching = 1
def stop(self):
BigWorld.serverDiscovery.searching = 0
def show(sel... | [
"info@webium.sk"
] | info@webium.sk |
0ba4c59dc5dbabd75eb1253f26c51dac2f341e2a | 41188a72facc51c65d0d58efe127f5e8c8811f5e | /剑指offer系列/剑指 Offer 10- I. 斐波那契数列/solution.py | e6c3f92354b6fca980afbc8ca16c75234a13c4f7 | [
"MIT"
] | permissive | furutuki/LeetCodeSolution | 74ccebc8335125bbc4cbf1a76eb8d4281802f5b9 | 089d27af04bf81149251787409d1866c7c4390fb | refs/heads/master | 2022-10-31T08:46:15.124759 | 2022-10-25T02:57:54 | 2022-10-25T02:57:54 | 168,449,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | class Solution:
def fib(self, n: int) -> int:
if n == 0 or n == 1:
return n
p = 0
q = 1
for i in range(2, n + 1):
v = p + q
p = q
q = v
return v
| [
"furutuki@foxmail.com"
] | furutuki@foxmail.com |
c73966a3fc448213f3f91f1b933494c8a7026e02 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/xnnc4xir/xnnc/proto/tf_pb2/tensor_slice_pb2.py | 230ade182b07198832aa5e020352d89fc81b06fc | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 5,983 | py | """
Copyright 2019 Xilinx Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
3c5c1249812089735ffccc93508f509726f53fe1 | 375e5bca82843647941068bd7634cf7adf2015ca | /tests/test_params.py | 72e95b3975f4a1da2e3a956a6eb84b060462415d | [
"MIT"
] | permissive | civodlu/trw | cd57e7bded7fdb0a9d623ed9cd50645fab96583b | 11c59dea0072d940b036166be22b392bb9e3b066 | refs/heads/master | 2023-02-08T09:56:39.203340 | 2023-02-07T14:22:16 | 2023-02-07T14:22:16 | 195,147,670 | 12 | 2 | MIT | 2020-10-19T15:24:11 | 2019-07-04T01:19:31 | Python | UTF-8 | Python | false | false | 5,909 | py | from unittest import TestCase
import trw
import numpy as np
import math
class TestParams(TestCase):
def test_power_initial_value(self):
"""
Make sure we apply the power of the initial value
"""
p = trw.hparams.ContinuousPower('hp1', 2, 0, 3)
value = p.get_value()
e... | [
"civodlu@gmail.com"
] | civodlu@gmail.com |
3a991ba7ff55c7fcf9ec17394317a8a7ddfd39e5 | ac8fb3f07482cb07605f83a3828ae20135fd3466 | /md/migrations/0005_auto__add_field_message_addons.py | 187baa67ac560cbe1df3bde3aaaa3f7ed89c45be | [] | no_license | maiduo/maiduo_web | d62719eca86c768afbbc0025861bc9616f520233 | cdb2009b7802545f254213c5a5378a5c5eb6ee7f | refs/heads/master | 2020-04-04T01:53:15.688541 | 2013-09-05T05:17:00 | 2013-09-05T05:17:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Message.addons'
db.add_column('md_message', 'addons',
self.gf('django.... | [
"weicongju@gmail.com"
] | weicongju@gmail.com |
bd042c615d349cf4ced871ca4ff7d0da067113e6 | 2923b9f58e6a143a3e070169612165585c301def | /generic_eq/source_6.8_lvz/define_stress_G.py | 10501c8db348632a1f01499055be6837f324eced | [] | no_license | hzfmer/summit_work_021421 | 16536dd716519bc9244da60007b9061ef5403429 | 6981b359fefb2af22e0bea6c47511de16cad22bd | refs/heads/master | 2023-03-11T15:34:36.418971 | 2021-02-05T23:22:10 | 2021-02-05T23:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py | #! /usr/bin/env python
import matplotlib
matplotlib.use('Agg')
from pylab import *
import numpy as np
from os.path import isfile
from karman_v2 import karman
dh=100.
nx=640
nz=180
xis=420
zis=100
zi1=150
xi0=210
xi1=490
#taper on mu_d for
tpw_h=50 #horizontals
tpw_b=50 #bottom
tpw_s=30 #surface
mu_stat=0.60
mu_... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
ba29c6957e023e48d163452f9faaf8ff5ace1ac5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/488/usersdata/343/112850/submittedfiles/AvF_Parte3.py | 1e2e1e82b3ff7536d05e5a5e4e517667fb7479d6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
n = int(input('Quantidade de números: '))
x = []
for i in range(n)
x.append(int(input('Digite os números: ')))
print (x) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9fb5039cd81967ecbb934c742d128872e28403f6 | 660ca6ed8923b583486440257e88cf021c462587 | /codesession_ecomm/codesession_ecomm/urls.py | 22382a7c2d220db9b03418e525977c8f2762d0dd | [] | no_license | CODEr-SaNjU/Django_ecom | b7876441a116b4cdb03418bf2893ae54a1193dc0 | e99dcb4b784245a5115c02ee0b8a2653aeccc65c | refs/heads/main | 2023-03-17T07:19:24.939284 | 2021-03-10T06:02:08 | 2021-03-10T06:02:08 | 338,566,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include, URLPattern
from codesession_app import urls
urlpatterns = [
path('admin/', admin.site.urls),
path('', include("codesession_app.urls"))
] + static(settings.MEDIA_UR... | [
"sanju2help@gmail.com"
] | sanju2help@gmail.com |
5fe75244d651e3f73e7a33a169a62135e86dd661 | a4174a9d51577d9b72b4e5dcf1be56bc9b0d242b | /retinanet/onnx_utils.py | e7ec076eb2513cab7e10f83614f9762a3b5ab1ab | [
"Apache-2.0"
] | permissive | lchen-wyze/retinanet-tensorflow2.x | 996396724c858fdc954880f3c20db7865d930a87 | 86404a2da6ec636d4b1aef768ac52f018c127798 | refs/heads/master | 2023-08-23T06:12:39.629288 | 2021-10-18T15:52:23 | 2021-10-18T15:52:23 | 418,040,957 | 0 | 0 | Apache-2.0 | 2021-10-17T06:26:21 | 2021-10-17T06:26:21 | null | UTF-8 | Python | false | false | 4,118 | py | import os
import json
import onnx
import onnx_graphsurgeon as gs
import tf2onnx
from absl import logging
import numpy as np
from retinanet.dataloader.anchor_generator import AnchorBoxGenerator
def _add_nms_plugin(model, params):
min_level = params.architecture.feature_fusion.min_level
max_level = params.arc... | [
"sriharihumbarwadi97@gmail.com"
] | sriharihumbarwadi97@gmail.com |
920e7e21738f31fa313a96897b29f96551084976 | b38f571182c10eca57ab7015b5ed7b8ea4560768 | /neutron/extensions/wrs_binding.py | dfb120f54928d38ef43736d00414576116254f82 | [
"Apache-2.0"
] | permissive | ericho/stx-neutron | 708397936f69c105030d689dafdbbee3cb069c31 | d4a8ad548c4afed73269575c48526a704dd09a9c | refs/heads/master | 2020-05-21T00:27:10.790255 | 2018-11-13T21:26:37 | 2018-11-19T21:17:05 | 185,827,770 | 0 | 0 | NOASSERTION | 2019-05-09T15:42:30 | 2019-05-09T15:42:30 | null | UTF-8 | Python | false | false | 3,021 | py | # Copyright (c) 2012 OpenStack Foundation.
# 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... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
b9503a66bfb730210a7472a78d65d3adeaef643c | 4daeb2542164257fceb6d4c81d076706e366d8e0 | /example/best_wsi_tissue_segmentation/utils.py | 743dacf507bf62f0d771c7797412071541ae17a9 | [
"MIT"
] | permissive | PeterJackNaylor/useful_wsi | 2c68eb4d556b7f7c658f659688c03e199b0392e6 | 8bad92832545eaa85cfc3df9100f2325a71c710b | refs/heads/master | 2020-03-23T02:28:55.522272 | 2019-11-28T09:23:28 | 2019-11-28T09:23:28 | 140,976,109 | 0 | 1 | NOASSERTION | 2020-03-13T17:33:24 | 2018-07-14T20:32:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,389 | py |
import numpy as np
from skimage import img_as_bool
from skimage import measure as meas
from skimage.morphology import remove_small_holes, remove_small_objects, binary_dilation, disk
from skimage.transform import resize
from segmentation_net.utils import expend
def sliding_window(image, stepSize, windowSize):
# ... | [
"peter.naylor@mines-paristech.fr"
] | peter.naylor@mines-paristech.fr |
b5f8b57fa60a6b53c442e9c88c030516806d072a | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/izpiti/izpit01b/M-17090-1563.py | 0d56a6a2ecb3e5186d06b3dcd16492246a7f3b99 | [] | 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 | 9,135 | py | #1
def najpogostejse_polje(navodila):
a = Robot()
slovar = {a.koordinate(): 1} #izhodiščno polje dodamo v slovar
ukazi = navodila.strip()
for i in ukazi:
if i == "D":
a.desno()
if i == "L":
a.levo()
if i != "D" and i != "L":
a.naprej... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
8f83af36b9a8543afb6ebb6ee95cce36edc858a5 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/datacatalog/v1beta1/datacatalog-v1beta1-py/google/cloud/datacatalog_v1beta1/services/data_catalog/transports/base.py | ee65230c009626274b912e281ec59c4b6a298144 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,478 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
b3dee722cca2702ab31ba97556230eef1d4b0e0c | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractZaelumTranslations.py | 3853255cccea5e9ec856ceb147369a9b0d9d3509 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 241 | py | def extractZaelumTranslations(item):
"""
'Zaelum Translations'
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol or frag) or 'preview' in item['title'].lower():
return None
return False
| [
"something@fake-url.com"
] | something@fake-url.com |
5dfdb7882377db3fc448594c7cb0feb1c8887527 | b44fe23c0b73de404e5a14576a3687b74a2e43f9 | /tests/test_adres_api.py | 4e39e34454a993935fb415f0c95fc4257c681234 | [
"MIT"
] | permissive | hootnot/postcode-api-wrapper | 3f1d6724edc924dd6edb96109443dbceefd90bfc | 42359cb9402f84a06f7d58f889f1156d653f5ea9 | refs/heads/master | 2020-05-30T01:29:31.669436 | 2016-09-13T05:37:41 | 2016-09-13T05:37:41 | 26,833,389 | 4 | 0 | null | 2016-03-26T13:03:18 | 2014-11-18T22:35:13 | Python | UTF-8 | Python | false | false | 10,115 | py | """Adres API tests."""
import unittest
import postcodepy
from postcodepy import typedefs
from postcodepy import PostcodeError
from . import unittestsetup
try:
from nose_parameterized import parameterized, param
except:
print("*** Please install 'nose_parameterized' to run these tests ***")
exit(1)
import ... | [
"f.brekeveld@gmail.com"
] | f.brekeveld@gmail.com |
816deeec27a3550402beaefbc2bf1a3e237254a5 | 6c8b19415643e20c75f22ae5a67fc0d29e7b3633 | /数据结构与算法进阶/04 矩阵0变换.py | 7c983b6be831af7ca00562be1e2136cf92e09c95 | [] | no_license | gongtian1234/-offer | 4375272abedd87c3fb9ab7d0bbac315bfe9a4203 | 9c5b039239cf24dfbcedf0f51128749137260a5a | refs/heads/master | 2022-03-26T22:29:17.309064 | 2022-02-23T08:37:39 | 2022-02-23T08:37:39 | 207,930,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | '''
题目:矩阵0变换。给定一个m*n的矩阵,如果有一个元素为0,则把该元素对应的行和列全部转换为0
思路:
【误区:遇到0直接就立马将其所在行与列都转变为0,结果会导致整个矩阵都变为0】
先定义两个列表来记录有0的行和列,通过遍历每一行去找0,如果遇到0则记录下其行号和列号,
然后再去将对应的行和列转为0
'''
def zeros(matrix):
row_lst = []
col_lst = []
if len(matrix)==0 or len(matrix[0])==0: # len([[], []]):2
return
rows, cols = len(matrix), ... | [
"noreply@github.com"
] | gongtian1234.noreply@github.com |
8706cc78f885c096d3598a482c7061326b14a38d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2369/60589/234952.py | 20cee1b26640a82b440abf705f0e9da5d5210304 | [] | 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 | 460 | py | num=int(input())
nodes=[]
for i in range(num):
nodes.append(input())
result=''
def makeTree(node):
global result
if node[0]!='*':
result= result + node[0]
for other in nodes:
if other[0]==node[1]:
makeTree(other)
break
for other in nodes:... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7829b379cae79b6cfcb7eb6792553fff09c0c746 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03096/s741826681.py | 38f7770d61514d6f279e53a09576b6676e74b3c0 | [] | 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 | 303 | py | from collections import defaultdict
d = defaultdict(int)
D = defaultdict(lambda:1)
N = int(input())
ans = 1
C = int(input())
d[C] += 1
c = C
for i in range(N - 1):
C = int(input())
d[C] += 1
if C == c:
pass
else:
if d[C] >= 2:
ans = (ans + D[C]) % 1000000007
D[C] = ans
c = C
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
52b546c3822316217b339079c7af2f83479e0e2d | 691e48e96cb4d676701f9f62bfb5af936d6d9cd6 | /Archive_2020/M4/OldM4/M4/2018_Raber_George_4_3.py | be0a3bf84c130340de0109bb846898b1e7bc6f91 | [] | no_license | mapossum/spa | 50d263ff1986dd73692e3d0866c2299ace180e59 | 90da0167aa6cbea067c88d30aea26440b366e6b3 | refs/heads/master | 2022-05-19T08:20:53.293065 | 2022-04-13T20:35:11 | 2022-04-13T20:35:11 | 29,207,514 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import math, urllib
def getaddresslocation(address):
params = urllib.urlencode({'address': address, 'key': 'AIzaSyAIkAkn6l3NkAqQ1xXmIniNnGvL24_N1Lc'})
f = urllib.urlopen("https://maps.googleapis.com/maps/api/geocode/json?%s" % params)
loc = eval(f.read())
return (loc["results"][0]["geometry"]["location"... | [
"george.raber@usm.edu"
] | george.raber@usm.edu |
0590a1535db63a8e277f2b77c87a2675e60cf747 | 09d727fd8d8205a4cb74a888a3b9447f2af5e5bf | /migrations/versions/73597dde8bf2_.py | f03280c586678c8c351210300bc16b21924affe0 | [] | no_license | YuriiKhomych/itea-blog | 776f49a6abcbe28282cd29a95e1589efb85b4f8b | 697fb3b2f48217d5777d2a3658289b9e99f61993 | refs/heads/master | 2022-10-02T22:31:08.826709 | 2020-03-12T19:56:01 | 2020-03-12T19:56:01 | 246,897,671 | 0 | 0 | null | 2022-09-16T18:20:16 | 2020-03-12T17:51:35 | Python | UTF-8 | Python | false | false | 1,090 | py | """empty message
Revision ID: 73597dde8bf2
Revises: a548552d96ec
Create Date: 2020-03-12 21:32:03.391934
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '73597dde8bf2'
down_revision = 'a548552d96ec'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"yuriykhomich@gmail.com"
] | yuriykhomich@gmail.com |
21ec9ba6e472117d62c89564c593e3bcc954324d | 8889b1d96280fbec4149331e4cb93e5f1da79f8b | /google/cloud/monitoring_v3/services/group_service/transports/base.py | 905f2150b1e7bd0c2860fda14f9672dd2572ad63 | [
"Apache-2.0"
] | permissive | Tryweirder/python-monitoring | 3e83b6c8480c0f3f470c14d01adb3057ed6743d2 | 800bde926634aa010e1b1fbb449bcf4cb34201a0 | refs/heads/master | 2023-04-06T00:01:59.695685 | 2021-04-13T17:17:52 | 2021-04-13T17:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,017 | 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 o... | [
"noreply@github.com"
] | Tryweirder.noreply@github.com |
dd5a7db62a91b15e9eeee6019b4a18a02a6200d1 | 7408dd6c91e601133ca6971d84639ce1b4f18622 | /SMHoF/__init__.py | 9d75312e5b4934644ecf804382b7448964bf128b | [] | no_license | theY4Kman/Yakbot-plugins | 72370cff674335e45f18b27418bc5f0cb87f62ca | faac0bd4fb2599c8adf5aab583ce986aafa037c7 | refs/heads/master | 2021-01-01T19:21:03.117097 | 2012-09-17T03:27:57 | 2012-09-17T03:27:57 | 1,045,656 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python
# =============================================================================
# SourceMod Donor Hall of Fame
# Copyright (C) 2010 Zach "theY4Kman" Kanzler <they4kman@gmail.com>
# =============================================================================
#
# This program is free software; you ... | [
"they4kman@gmail.com"
] | they4kman@gmail.com |
892532baaf4ce7a88ed1942a097eb82911005fdd | def8ec68c559b7d3c9ebac03bc6503eb701813cd | /searchers/mcts.py | b5717ab320447f4c0ae02d7ed18be38b199e4d44 | [
"MIT"
] | permissive | kaggledevs/negrinho2019towards | 70448181b8611528c02ba801cbc340778edf9533 | 9c917aff27411742b60ee8b640cec4e82c50fecd | refs/heads/master | 2020-09-02T12:22:05.484201 | 2019-10-27T22:39:35 | 2019-10-27T22:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | import os
import numpy as np
import deep_architect.utils as ut
import deep_architect.core as co
import deep_architect.hyperparameters as hp
from searchers.common import Searcher
# keeps the statistics and knows how to update information related to a node.
class MCTSTreeNode:
"""Encapsulates the information conta... | [
"negrinho@cs.cmu.edu"
] | negrinho@cs.cmu.edu |
68f9aacf56344f61ac880864da18c771f851400f | 551dabfe10ea6778546f380d3ee9f0500f352b0f | /2.4 SVR/2.4.6.py | 731ba3ac283925c632f5d776f820bac7c471643e | [] | no_license | mohamedalemam/sklearn | c32843b6a04fe4b2a326870ba3658e8c1fc3b424 | 387c21357b165a1bc3593f8303ac5f9a672bd62a | refs/heads/main | 2022-12-29T15:38:06.534505 | 2020-10-17T21:26:59 | 2020-10-17T21:26:59 | 301,839,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py |
# Importing the libraries
import numpy as np
import pandas as pd
dataset = pd.read_csv('houses.csv')
dataset.head(20)
from sklearn.impute import SimpleImputer
imp = SimpleImputer(missing_values=np.nan, strategy='mean')
imp = imp.fit(dataset)
dataset = imp.transform(dataset)
X = dataset[:, :-1]
y... | [
"noreply@github.com"
] | mohamedalemam.noreply@github.com |
b9ad61d750b8e1a77668e7c038b07192c3db5de9 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/inspur/sm/plugins/modules/clear_audit_log.py | 38327eac42d22af31227066276500492bd16ece5 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 2,313 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Copyright(C) 2020 Inspur Inc. All Rights Reserved.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
---
module: clear_aud... | [
"sifang@cisco.com"
] | sifang@cisco.com |
ef9e25e307c9e0eef8394067ffa6884c0d97e46d | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/177/E.py | 82d86c0439c2da1b0880f574eb9bb22b9395586f | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | from math import gcd
import sys
sys.setrecursionlimit(1000000)
def main():
N = int(input())
A = list(map(int, input().split()))
tmp = gcd(A[0],A[1])
set_A = set(A)
for i in range(2,N):
tmp = gcd(tmp, A[i])
if tmp != 1:
print('not coprime')
exit()
max_A = max(A)
... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
f1f10367df1a478a0f6338cdb9f9acabe2ad85df | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/1567.MaximumLengthOfSubarrayWith.py | 2b9e50057eb635a95e1895665760942f65d111d9 | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # 1567. Maximum Length of Subarray With Positive Product
# Given an array of integers nums, find the maximum length of a subarray where the product of all its elements is positive.
# A subarray of an array is a consecutive sequence of zero or more values taken out of that array.
# Return the maximum length of a suba... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
7d790cd29173bd61c5eac08ec97eccf81cdb0e0d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2829/61135/281530.py | e986558e5cbc75aed6a127bacc1db4b33bcb288f | [] | 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 | 241 | py | n=int(input())
s=0
num=input().split(" ")
numlist=list(int(a) for a in num)
numlist=sorted(numlist);
x1=numlist[len(numlist)-1]-numlist[1]
x2=numlist[len(numlist)-2]-numlist[0]
if x1>x2:
s=cha2
else:
s=cha1
if(n==2):
s=0
print(s) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0fd74efe2713d42d3a121dc01deda1efc18b5289 | 6f21068b31084e81f38db304a51a2609d8af37cd | /5_Advanced/forest.py | ec3196edb08ea8395ecfbb01baebaab7360c6b60 | [] | no_license | vickyf/eurocontrol_datascience | 374b889cac7b8d377caa78079fb57098e73bba0a | 0a7c09002e3b5f22ad563b05a6b4afe4cb6791d7 | refs/heads/master | 2020-03-19T06:03:14.864839 | 2018-06-04T07:24:25 | 2018-06-04T07:24:25 | 135,986,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from sklearn import tree, ensemble
import pandas as pd
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
iris = load_iris()
X = iris.data
y = iris.target
X_train, X_test, y_train, y_test = train_test_split(X, y, train_size=0.67)
clf = tree.DecisionTreeClassifier(random_state... | [
"vicky.froyen@infofarm.be"
] | vicky.froyen@infofarm.be |
33f41f74530ff763100bb2495d687c3bcafc70a1 | 70ee84411f244dff01f403df98396821202a2337 | /whosgoingsite/whosgoing/views/home.py | 67ed76ab98b8a95412cce59763bf9d0ad7e42df4 | [] | no_license | cherylcourt/whosgoing.today | 474371dfb4bc2fe6c747f05ea2709704d9a3911a | 82996d4fa234e337f502ce5175d93bc9a44a4c6c | refs/heads/master | 2021-01-18T19:09:44.138312 | 2015-02-18T03:18:33 | 2015-02-18T03:18:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from django.views.generic import TemplateView
from whosgoing.models import Invitation
class HomeView(TemplateView):
template_name = 'whosgoing/home.html'
def get_context_data(self, **kwargs):
data = super().get_context_data(**kwargs)
if not self.request.user.is_anonymous():
data['... | [
"tctimmeh@gmail.com"
] | tctimmeh@gmail.com |
8a0acc828a76e741a885c85fa50ed160d5908c6a | 6fc7f97017613956e23bf0117d03340d858793aa | /DS/Python/Proj4_dist/P1.py | e6644debef60172ab833cd9e5c712ea32b59ed98 | [] | no_license | Chaeguevara/21_1-SNU | 50c1a026b472c2caf5b1fed6307e01b1f91c9871 | fcef342729ab9e57ee5c77017499e9514f790870 | refs/heads/master | 2023-07-12T20:39:01.873987 | 2021-08-22T15:28:17 | 2021-08-22T15:28:17 | 345,637,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | """
**Instruction**
Please see instruction document.
"""
from BST_Helper import *
def P1(root: TreeNode, low: int, high: int) -> int:
##### Write your Code Here #####
sumVal = 0
def sumHelper(curNode, low, high, sumVal):
# base case
if not curNode:
return sumVa... | [
"dfso2@naver.com"
] | dfso2@naver.com |
c2d6235196fb20853f60477b150ebcc395dd6c46 | ce5ce3764e75774c0b7eab47893987b9f311b1b9 | /.history/moments/views_20210604004622.py | 31d0eef08a6995f5eabac3e1360e0167bac25d58 | [] | no_license | iSecloud/django-wechat | 410fb8a23b50dc2343c2f0167bbae560bf6e9694 | faaff9bb7f9454a63b2f8411d3577169b470baad | refs/heads/main | 2023-05-15T06:53:16.252422 | 2021-06-07T14:00:35 | 2021-06-07T14:00:35 | 374,685,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | from os import write
from django.db import models
from django.shortcuts import redirect, render
from .models import WeChatUser, Status
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.http import JsonResponse
# Create your views here.
def home(r... | [
"869820505@qq.com"
] | 869820505@qq.com |
988cab0c4c0f2f909388a3fbea66b50ff6b351fc | 92bf9ddd7b92e7ed73fa6989164700b2be3657b8 | /Project1/download/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py | 6ee3669aa74dfdc6af5620ea49f23d250d9a3d80 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/8220-lab | bc991424557ff46f325d4611a84d02560ba5a6cb | 3f0ca82028962e5b1c0f4a2c4a2390ce6603e11c | refs/heads/master | 2022-11-19T22:31:54.741707 | 2018-01-07T16:56:47 | 2018-01-07T16:56:47 | 282,337,970 | 0 | 0 | null | 2020-07-25T00:01:24 | 2020-07-25T00:01:23 | null | UTF-8 | Python | false | false | 28,164 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"yitianl@g.clemson.edu"
] | yitianl@g.clemson.edu |
2ded375b9e999496554ae605242f4767702ba13c | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLX/EXT/swap_control.py | 59a848178e2b69596c0cc769fb244edf89a025c2 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | '''Autogenerated by xml_generate script, do not edit!'''
import ctypes
from OpenGL import platform as _p
from OpenGL.constant import Constant as _C
# End users want this...
from OpenGL.raw.GLX import _errors
# Code generation uses this
from OpenGL.raw.GLX import _types as _cs
_EXTENSION_NAME = 'GLX_EXT_swap_control'
... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
0469ed84b3f0748a0c550ade020a5fa298b6d2be | e3eead40e93fdf5186269536edefab4f08e9a5a2 | /algo.py/algo/tree/tests/test_fenwick_tree.py | 02fc242feec5918d2999a2082ebb07f387649149 | [] | no_license | davll/practical-algorithms | bbc930b42363cae00ce39e8a686854c19131d334 | 0e35e4cc87bd41144b8e34302aafe776fec1b356 | refs/heads/master | 2021-08-22T13:12:34.555074 | 2020-03-28T08:56:13 | 2020-03-28T08:56:13 | 147,224,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | import unittest
#from ..fenwick_tree import FenwickTree
| [
"davll.xc@gmail.com"
] | davll.xc@gmail.com |
054715e7d2008f75cdbf3bd00acdb67f3c43875e | dd6e870a400353c123529999555517c84c864474 | /hipcooks/public/forms.py | ad501926bb37078bb3f005bf27a5ca72cfb9b52c | [] | no_license | fenriz07/flask-hippooks | 7bfea8e397603d74426725c31cf135758cc5e0d2 | a7e88fce2d588bca49d63a9800c8344f117a4469 | refs/heads/master | 2020-04-30T20:09:08.550402 | 2019-03-22T03:02:30 | 2019-03-22T03:02:30 | 177,058,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,427 | py | from flask.ext.wtf import Form, RecaptchaField
from wtforms import (validators, TextField, PasswordField, SelectField,
BooleanField, TextAreaField, ValidationError, Field,
SelectMultipleField, IntegerField, RadioField, FormField,
SubmitField)
from wtforms.f... | [
"servio.za@gmail.com"
] | servio.za@gmail.com |
1b4aa46c6cff31077f08d50f0fa9f7a501f30454 | 06a92f22a56361bdbb7b0d755177e28be28164ab | /scripts/dependencies/check_packages.sh | 28fe24b1c83b9c13d7ca0a4aa5da83cdef668e94 | [
"Apache-2.0"
] | permissive | danpovey/waldo | a77d94520579c01ed3b8ea348cd586ccb239d5a3 | c62b9b3722993e915f5cb8beaaf1913668dd074b | refs/heads/master | 2020-03-15T22:17:42.766495 | 2018-05-18T02:11:28 | 2018-05-18T02:11:28 | 132,370,372 | 0 | 0 | null | 2018-05-06T19:42:11 | 2018-05-06T19:42:10 | null | UTF-8 | Python | false | false | 1,973 | sh | #!/usr/bin/env python3
""" This module will be used to check whether the common requirements
that we think the bulk of the example directories will need exist or not.
It will check the requirements from requirements file
(scripts/dependencies/requirements.txt). It will prints the required
dependencies tha... | [
"dpovey@gmail.com"
] | dpovey@gmail.com |
2976d5b997dacaa5b0434f47ed5be8ecfd23b328 | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /src/transformers/models/data2vec/__init__.py | 45522f4ba893a154b3400b76b4bb280fd00b692a | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 4,933 | py | # Copyright 2022 The HuggingFace Team. 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 applicabl... | [
"noreply@github.com"
] | huggingface.noreply@github.com |
f69dcdd300373de226cd3ce124fe6163b55a39bc | 78fe3a6ca49a636f88a88d920754709e822dbfa6 | /novel/settings.py | 4ad1ee83b995f243f4856c6676ca61dd4cfe7d2c | [] | no_license | Annihilater/novel | 4bf7ce2933c16d51f3c513cec7cd2f21bfe4e047 | 52fd9cb797c2b0a35b4ca0e797b4256fdc3c33d0 | refs/heads/master | 2022-12-11T00:21:30.097388 | 2019-11-26T10:58:07 | 2019-11-26T10:58:07 | 223,412,840 | 0 | 0 | null | 2022-12-08T06:55:42 | 2019-11-22T13:45:52 | Python | UTF-8 | Python | false | false | 3,704 | py | # -*- coding: utf-8 -*-
# Scrapy settings for novel project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics/... | [
"yanmiexingkong@gmail.com"
] | yanmiexingkong@gmail.com |
2f15bed7a779ce71e3cf92e783c359929ff48076 | a15200778946f6f181e23373525b02b65c44ce6e | /Algoritmi/2020-07-14/all-CMS-submissions-2020-07-14/20200714T085810.VR445744_id831qkh.risparmio.py | 369729f6793c1f949925dce3e104eb5a922c8b03 | [] | no_license | alberto-uni/portafoglioVoti_public | db518f4d4e750d25dcb61e41aa3f9ea69aaaf275 | 40c00ab74f641f83b23e06806bfa29c833badef9 | refs/heads/master | 2023-08-29T03:33:06.477640 | 2021-10-08T17:12:31 | 2021-10-08T17:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | """
* user: VR445744_id831qkh
* fname: RICCARDO
* lname: BARTOLOMIOLI
* task: risparmio
* score: 5.0
* date: 2020-07-14 08:58:10.124743
"""
def combine(left, right):
parent = dict(tot=0, pref=0, suff=0)
parent['pref'] = left['pref']
parent['suff'] = right['suff']
if left['suff'] == 1 and right['pref'... | [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
04dcf87513054055bc41e0e2f4e9b4fc573df3a4 | f5f771cd8600c2aeb7fc9b192d9084ec5fdf3616 | /lux/extensions/auth/__init__.py | ce87dc4059f54f88d2a4c37457faa91aa6f7feae | [
"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 | 51 | py | from .backends import TokenBackend, SessionBackend
| [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
5ec756b1bf11d404855c3a83c811988da13d1474 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/0924/과제_이진탐색.py | 3c1e3830c34397e018593e6bff440116706ac0b1 | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | def find(st,ed,i,nx=0):
global rs
if st > ed :
return 0
m = (st+ed)//2
if i < als[m]:
ed = m-1
if nx == 0 or nx == 2:
nx = 1
find(st,ed,i,nx)
elif i > als[m]:
st = m+1
if nx == 0 or nx == 1:
nx = 2
find(st,ed,i,n... | [
"nan308@naver.com"
] | nan308@naver.com |
eece57d5d665b0ffd30e755b97610484a44556c2 | 0800aac473cbb94f3ac263c202979498c326cf18 | /특수관계.py | b9b0d0cac962ac5e7156f4a07226ce91fddeb9ec | [] | no_license | DanielHennyKwon/TAX_LIM_JEONG | 8f12e072c044cd17646f196c17b51d1e0cae179e | a263b4e90f0ac78500382047bf7ae72380213ca8 | refs/heads/master | 2023-06-16T10:50:55.111407 | 2021-07-11T02:59:50 | 2021-07-11T02:59:50 | 384,847,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # -*- coding: utf-8 -*-
#Created on 2018-11-5 @author: 권달현
법인과의거래를통한증여의제={
'특수관계법인과의 거래를 통한 증여의제의 의의':{},
'과세요건':{},
'증여자와 수증자':{},
'증여의제이익의 계산':{},
'재차증여합산배제 및 증여세과세표준의 계산 등':{},
'증여의제이익에 대한 이중과세조정':{},
}
법인제공사업기회이익의증여의제={
'과세요건':{},
'증여세 납세의무자':{},
'증여시기':{},
'증여의제이익의 납부':{},
}... | [
"cpahouse@naver.com"
] | cpahouse@naver.com |
7045739e7ee825dcc68cfc0a54622260115030e2 | eab3001f4ca319f1de48bb468169462408444181 | /阶段1-Python核心编程/04-数据序列/06-公共操作/hm_09_数据类型转换.py | a211d322964f9029ab32838a98d2b88075d06cbd | [] | no_license | wing1king/python_xuexi | f132ee188050423f45cd5fa411eb63f93ad21b3a | 34621dc65532d7c62bc3c85582eb09945759df5d | refs/heads/master | 2023-06-29T19:34:40.060710 | 2021-08-06T06:40:11 | 2021-08-06T06:40:22 | 385,446,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | list1 = [10, 20, 30, 40, 50]
s1 = {100, 300, 200, 500}
t1 = ('a', 'b', 'c', 'd', 'e')
# tuple(): 转换成元组
# print(tuple(list1))
# print(tuple(s1))
# list(): 转换成列表
# print(list(s1))
# print(list(t1))
# set(): 转换成几个
print(set(list1))
print(set(t1)) | [
"zhang4475153@126.com"
] | zhang4475153@126.com |
0be7220df8a783ec1b97d198a78635ad6c314e79 | d70672f26795e5eaaf718ff8f833c5e682569f8e | /cppyad/__init__.py | 03ce1a67711ac4000a64e44a1c7c5bd34f4199a5 | [
"Apache-2.0"
] | permissive | fracek/cppyad | 35c3eb25869e68d13dd7aef134dd276068b5b09f | e999bc9ff79089387ecf08f70b437c5b176f6426 | refs/heads/master | 2021-02-14T01:17:47.952527 | 2020-10-02T10:45:30 | 2020-10-02T10:45:30 | 244,753,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # Copyright 2020 Francesco Ceccon
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"francesco@ceccon.me"
] | francesco@ceccon.me |
8e9fc5d76d1a88da65053ea54479d239477b1b2d | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /test/test_find.py | 7f155850c4a969e0b99939d00216c4e12f50608e | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 340 | py | from ramda.find import find
from ramda.private.asserts import assert_equal
def positive(x):
return x > 0
def test_find_nocurry():
assert_equal(find(positive, [-2, -1, 0, 1, 2]), 1)
def test_find_curry():
assert_equal(find(positive)([-2, -1, 0, 1, 2]), 1)
def test_not_found():
assert_equal(find(p... | [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
58ddf8fe4f01845f6b82775ad5c75dd392b703e8 | 81a1abcb48622d098584837a529da84905739b3d | /jimsblog/urls.py | 465d34d0e0c4b224f9403bdd471a806d193994fe | [] | no_license | jimpalowski/Django_blog | 23c4c95561c8a96fa9d1609b24c5c68bcb7f8799 | 35e0fbb7d9872cefc526d7668bfa4bc118d19781 | refs/heads/master | 2021-04-15T08:09:56.558416 | 2018-03-26T06:42:41 | 2018-03-26T06:42:41 | 126,784,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | """jimsblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"palowskijim@gmail.com"
] | palowskijim@gmail.com |
9622c8447721d62c9faf2a11e78c87f770e5f15f | 6f797bae522927214b4c4065d88b92d6fff127e0 | /kur/containers/layers/reuse.py | 394774134d1fa05818ac7c81520ab9dccaf3bdd1 | [
"Apache-2.0",
"Python-2.0"
] | permissive | deepgram/kur | 5a3c6b5dba462327ccb134dcde53bf60ee4bf1fd | fd0c120e50815c1e5be64e5dde964dcd47234556 | refs/heads/master | 2023-08-17T11:38:47.613445 | 2020-11-04T19:09:50 | 2020-11-04T19:09:50 | 74,182,569 | 873 | 139 | Apache-2.0 | 2023-01-28T21:50:24 | 2016-11-19T02:42:09 | Python | UTF-8 | Python | false | false | 3,029 | py | """
Copyright 2016 Deepgram
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | [
"ajsyp@syptech.net"
] | ajsyp@syptech.net |
c6ba29f2a9d6374e4ecbe48b36a7c7f530007150 | f4caf89f681fe2a12bbf970945173f9b3da97cd6 | /forward/hello_world/migrations/0001_initial.py | 3bd2dcd8679831f5a9ad129cb8d4796acd7304ea | [] | no_license | darrenvsoo/myfirstcommit | e87315a75ba2c117822e84f3e680c64e2c5f68ef | 797dad6dc40d32207490e8b5503011d63a630fb9 | refs/heads/main | 2023-06-20T02:13:03.007690 | 2021-07-17T03:19:11 | 2021-07-17T03:19:11 | 384,649,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-07-11 09:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrati... | [
"you@example.com"
] | you@example.com |
494253db067dff7ce2728f26c03f5a611170033c | edcf46bb21c346078e97a1d19143d62fafd0a991 | /wifiweb2/init.py | bfc3e761895b605a51637c4762ee89407628d17a | [] | no_license | heiyouyou/youwifi | 893adaa823dc7f1e5d4b9811b077b6c9a8183ac6 | 6fc235575164c932998f484fa9d51a8486291a10 | refs/heads/master | 2020-03-08T08:43:08.167739 | 2018-04-04T08:06:45 | 2018-04-04T08:06:45 | 128,028,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
# 项目首次启动将热点对应的mac的品牌公司数据存入mongodb,只需执行一次该文件
from Forum.settings import DB_MONGODB
if __name__ == '__main__':
f = open('oui.properties')
data = []
for line in f:
tag = line.index('=')
start = line[0:tag]
end = ''
company = line[tag+1:... | [
"1337238043@qq.com"
] | 1337238043@qq.com |
095a1f0ac823ffd2124a145ab50dd938e0861237 | 70f41a06d733e680af3bb1f00d8ff33574f4f4bb | /src/fh_tools/language_test/DeepLearningNotes/Note-6 A3CNet/Note-6.2 A3C与HS300指数择时/test_framework.py | 4ec09aec08e0857ce0e0b0435c34df342f8ab789 | [
"MIT"
] | permissive | mmmaaaggg/RefUtils | 209f7136acc63c880e60974c347e19adc4c7ac2e | f127658e75b5c52b4db105a22176ee0931ceacae | refs/heads/master | 2021-06-11T16:06:06.245275 | 2021-03-10T05:32:14 | 2021-03-10T05:32:14 | 139,413,962 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from agent.framework import Framework
from agent.access import Access
state_size = [50, 58, 5]
A = Access(state_size, 3)
F = Framework(A, state_size, 3, "W0") | [
"mmmaaaggg@163.com"
] | mmmaaaggg@163.com |
7a6483d9d159d54633e8806d47a528c00cc2f6e9 | 8ac5fa643e54f6aac8af600eddbeb4c074095b2b | /tspdb/src/pindex/predict.py | a06c0b27946824497bf0a5bb97997680c1eb6228 | [
"Apache-2.0"
] | permissive | AbdullahO/tspdb | 00acca3b29a054f02ac07a0243c04ba575af0a19 | 6ba75833a128d4036caad488d144fb6b0ba682e6 | refs/heads/master | 2023-05-25T09:44:19.856796 | 2023-05-18T17:25:48 | 2023-05-18T17:25:48 | 210,507,080 | 179 | 60 | Apache-2.0 | 2023-02-10T23:10:00 | 2019-09-24T03:51:25 | Jupyter Notebook | UTF-8 | Python | false | false | 32,058 | py | import numpy as np
import pandas as pd
from tspdb.src.database_module.db_class import Interface
from tspdb.src.pindex.pindex_utils import index_ts_mapper, index_ts_inv_mapper, index_exists, get_bound_time
from scipy.stats import norm
def unnormalize(arr, mean, std):
return arr *std + mean
def get_predict... | [
"aalomar@mit.edu"
] | aalomar@mit.edu |
3feb1507ac264807494ae34a8bf3c0d10edd1700 | 96fdeb4dea9f5cc5e1da1993b8f34f3b2952f0c0 | /inner_fun_with_global.py | add761774772e14fc07a00ba5a5e645b1d861464 | [] | no_license | amritat123/function-questions | 4bf5546857f48f622f770874f122745ed7b3a823 | a67b0a635fd812bc264207f44e4a4501cc0af00d | refs/heads/main | 2023-05-28T13:12:21.969215 | 2021-06-22T18:24:08 | 2021-06-22T18:24:08 | 369,995,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | temp = 10
def func():
global temp
temp = 20
print(temp)
print(temp)
func()
print(temp) | [
"you@example.com"
] | you@example.com |
aa55e482807d1a3e1c7a75260494a4b6a37447c7 | c33c2e4842d18dd3de8adc1e8ed4aaccedf8201f | /Contest/ABC191/d/main.py | 3d00b55fbd0e7648cdc638866bbe324d1e8adaa4 | [] | no_license | katataku/atcoder | 1582a7ef0683763eb50eb48ba3f6167649afe956 | 762d2a060c63411129dadc8c0f35b8ac665176a4 | refs/heads/master | 2023-08-23T09:45:15.045806 | 2021-10-23T01:49:14 | 2021-10-23T01:49:14 | 389,627,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # -*- coding: utf-8 -*-
# Input#
import math
x, y, r = map(float, input().split())
# s = []
base_x = math.ceil(x - r)
base_y = math.ceil(y - r)
ans = 0
for i in range(math.ceil(r * 2) + 1):
flag = False
d_x = abs(x - (base_x + i))
if d_x > r:
continue
d_y = math.sqrt((r ** 2) - (d_x ** 2))
... | [
"katataku.dev@gmail.com"
] | katataku.dev@gmail.com |
73f5fbce113f31853bc914d360ced811731e0936 | 4cacf8188446170e0b4a14b05021bbd595c4db53 | /pyrolite/_version.py | ee3b95da19ffbc981568129dbc4380e96fa5080e | [
"BSD-3-Clause",
"MIT"
] | permissive | JustinGOSSES/pyrolite | 2d145583344f79e8f935ed19fa00037d42969664 | 21eb5b28d9295625241b73b820fc8892b00fc6b0 | refs/heads/master | 2020-12-23T11:26:55.078871 | 2020-01-10T09:03:22 | 2020-01-10T09:03:22 | 237,136,389 | 1 | 0 | NOASSERTION | 2020-01-30T04:08:52 | 2020-01-30T04:08:51 | null | UTF-8 | Python | false | false | 19,030 | py | # This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contain... | [
"morgan.j.williams@hotmail.com"
] | morgan.j.williams@hotmail.com |
bf6d7be7b042956727fa9a56f8c3c1d2b4c25d2c | 3527ff6346f98a5b7c51ce3c58428227f4bc8617 | /leetcode/python/929.py | 3fa4ed3642e45b82e0f2e35f8319920947af6560 | [] | no_license | ShawnDong98/Algorithm-Book | 48e2c1158d6e54d4652b0791749ba05a4b85f96d | f350b3d6e59fd5771e11ec0b466f9ba5eeb8e927 | refs/heads/master | 2022-07-17T04:09:39.559310 | 2022-07-13T15:46:37 | 2022-07-13T15:46:37 | 242,317,482 | 0 | 0 | null | 2020-10-11T14:50:48 | 2020-02-22T09:53:41 | C++ | UTF-8 | Python | false | false | 345 | py | from typing import List
class Solution:
def numUniqueEmails(self, emails: List[str]) -> int:
unique_emails = set()
for email in emails:
local, domain = email.split('@')
local = local.split('+')[0].replace('.', '')
unique_emails.add(local + '@' + domain)
r... | [
"ShawnDong98@gmail.com"
] | ShawnDong98@gmail.com |
08fbb0cef11d7866ed9590169e7f37e32b90ac63 | 6c72ae860de8c76103e80c290ece18c40cf1eda1 | /server/allennlp_server/tests/config_explorer/configuration_test.py | 08079a8c99877b6c138b053e719a7e57b31f0367 | [
"Apache-2.0"
] | permissive | jacobdanovitch/vibecheck-search | 483e511ef5ea355826832af4decf68577bcfa5f4 | 08ced23928b71f83204903e8b648e9a119bcf90a | refs/heads/master | 2021-02-07T09:12:38.104523 | 2020-03-03T00:10:48 | 2020-03-03T00:10:48 | 244,007,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | from typing import Dict
import pytest
from allennlp.common.testing import AllenNlpTestCase
from allennlp.nn.activations import Activation
from allennlp_server.config_explorer.configuration import (
BASE_CONFIG,
choices,
Config,
configure,
json_annotation,
)
class TestConfiguration(AllenNlpTestCa... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
3d900a36cccc90d4087c81fc9bd1184806e31dea | dc42540c9b04146d6674ee8825ec1824e8b4d0ac | /docs/conf.py | e23687e6b5e0979993f6640babbfb439c237e3d3 | [
"MIT"
] | permissive | sarmilaupadhyaya/nlpaug | 50c0c3fcdc472fbf79bdc4acb8788ea1f441cf9d | fc39f755615c5692ceb23032a933bba0b0ef8193 | refs/heads/master | 2023-04-29T23:38:12.546451 | 2021-05-14T05:30:43 | 2021-05-14T05:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,645 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# nlpaug documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 7 07:37:05 2019.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"makcedward@gmail.com"
] | makcedward@gmail.com |
ced93c2019d61dbc091d9e0ee0d4eda48763a97d | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/hr_expense_check/models/payment.py | 30e0bc473af1fa7b3a457118bc15254dc16ee9d8 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | # -*- coding: utf-8 -*-
from harpiya import models, fields, api
class HrExpenseRegisterPaymentWizard(models.TransientModel):
_inherit = "hr.expense.sheet.register.payment.wizard"
check_amount_in_words = fields.Char(string="Amount in Words")
check_manual_sequencing = fields.Boolean(related='journal_id.ch... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
35c57c3949786302a16e9c345092d8949a7cc1fe | 5c3b77012d86ee5d0b5746f1c17e6284f28ae667 | /custom/addons/purchase_price_type/models/__init__.py | 7b8f50956fcce9785257d22944a2bf9dc6a2c374 | [] | no_license | apesquero/Odoo-10-PyCharm | c7e813979cf9bd87d23b5d2b680ba04a784c8f0d | e8a17a97aab99d9133e50bbbfd8bfbe689995f44 | refs/heads/master | 2018-10-21T05:48:59.770463 | 2018-09-05T18:45:49 | 2018-09-05T18:45:49 | 120,489,311 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # -*- coding: utf-8 -*-
# from . import procurement_order
from . import purchase_order_line
| [
"apesquero@gmail.com"
] | apesquero@gmail.com |
2fd30ec68626023b97e8f57c70384cad5cdca18a | f47863b3a595cbe7ec1c02040e7214481e4f078a | /plugins/scan/netoray_nsg/2138.py | 9620877631f7f7e50f212961fd606785de79c337 | [] | no_license | gobiggo/0bscan | fe020b8f6f325292bda2b1fec25e3c49a431f373 | 281cf7c5c2181907e6863adde27bd3977b4a3474 | refs/heads/master | 2020-04-10T20:33:55.008835 | 2018-11-17T10:05:41 | 2018-11-17T10:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#info:http://www.wooyun.org/bugs/wooyun-2015-0140998
import urllib.parse
def assign(service, arg):
if service == "netoray_nsg":
arr = urllib.parse.urlparse(arg)
return True, '%s://%s/' % (arr.scheme, arr.netloc)
def audit(arg):
url = arg + "lo... | [
"zer0i3@aliyun.com"
] | zer0i3@aliyun.com |
4b834ad335bf0a3599890c397b9cf39a9c6f8e2e | 56f4456ee15a71c98e834ccf899325973a7624a1 | /django-verdant/rca/admin_urls.py | f6b92cd0b88a57e09aa2b2f6a4892ae5a2cf8fd1 | [] | no_license | torchbox/verdant-rca | d0a112db74403b36655136f5a42b75960f9fc470 | 93904da6f1e6797d93c63de0d1a29c65545ef1fa | refs/heads/master | 2022-12-14T09:05:40.940426 | 2022-05-26T12:30:41 | 2022-05-26T12:30:41 | 11,999,467 | 12 | 10 | null | 2022-12-08T07:02:23 | 2013-08-09T11:23:11 | Python | UTF-8 | Python | false | false | 289 | py | # RCA-specific extensions to Verdant admin.
from django.conf.urls import patterns, url
urlpatterns = patterns('rca.admin_views',
url(r'^rca_now/$', 'rca_now_index', name='rca_now_editor_index'),
url(r'^student_page/$', 'student_page_index', name='student_page_editor_index'),
)
| [
"matt@west.co.tt"
] | matt@west.co.tt |
3cdd164142feaf0f2d1b8e8283e378d79478d6f6 | 9d6034d969a7782894e3acd01c22c50f9921d8d1 | /WORKSPACE | c720778ceaf8dc105ebc25fa9440aa4db947548a | [] | no_license | EricCousineau-TRI/drake_external | 6f8e1f2a0c8206d14237ed211de29185f948269c | 645051982a3a25c3076fada5772038b1a34b2fba | refs/heads/master | 2021-01-22T05:28:41.310076 | 2017-05-27T01:48:33 | 2017-05-27T01:48:33 | 92,473,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | # -*- python -*-
# This file marks a workspace root for the Bazel build system. see
# http://bazel.io/ .
workspace(name = "drake_external")
# -- START drake externals
# Copy and paste this code section to any external Bazel projects that depend
# on drake and need its dependencies for convenience.
# @note See @drake... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global | |
6a36f7fbe1ded07c0a5d1539ceab7d3104774900 | 8807958eab34f289cc8b1b07e180af757bde7124 | /ijal_interlinear/wordsAsElementsLine.py | 67e5e60b3d83989478d99e0a44427d8b6088b9df | [
"BSD-2-Clause"
] | permissive | davidjamesbeck/IJAL-interlinear | 4f34cbb8626403f7bc52db96f0349d10ca2ce674 | cb5dbb1d6aea98cce76668aa868a9189f31baf3f | refs/heads/master | 2020-03-30T11:00:46.001171 | 2018-10-01T13:50:02 | 2018-10-01T13:50:02 | 151,148,840 | 0 | 0 | BSD-2-Clause | 2018-10-01T19:45:38 | 2018-10-01T19:45:37 | null | UTF-8 | Python | false | false | 6,104 | py | from line import *
import math
class WordsAsElementsLine(Line):
spokenText = None
freeTranslation = None
def __init__(self, doc, lineNumber, grammaticalTerms=[]):
Line.__init__(self, doc, lineNumber, grammaticalTerms)
self.deduceStructure()
def guidedDeduceStructure(self):
def d... | [
"paul.thurmond.shannon@gmail.com"
] | paul.thurmond.shannon@gmail.com |
05046d350b9a3c9a7ac5b16762d3bac64b51db08 | 30cffb7452220c2ac2961dd2e0f42e3b359a59c0 | /simscale_sdk/models/one_of_divergence_schemes_div_phi_internal_energy.py | 4f7df0018bb9d0cca095bf331e872cf05a3f8aab | [
"MIT"
] | permissive | vpurcarea/simscale-python-sdk | 0bf892d8824f8d4599caa0f345d5ba28e038f5eb | 6f2d12b2d21142bd854042c0fb402c2c797629e4 | refs/heads/master | 2023-03-14T04:31:06.226337 | 2021-03-03T16:20:01 | 2021-03-03T16:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class OneOfDivergenceSchemesDivPhiInternalEnergy(object):
"""NOTE: Th... | [
"simscale"
] | simscale |
9b6c74e30ea13be6e9577308116f3789176e307b | 1b2859a2a66052412439ea379b923a3d402f13b0 | /Logan P/IfElse.py | 5d9733da6d9c3eb2bd735b7cbb2c608249ef715f | [] | no_license | idcrypt3/camp_2019_07_28 | b0da4e3841fdffe3c54914c7ea78096dbdfdd90e | e5b989f264796d0c1d9ea96d65edce60c6965225 | refs/heads/master | 2020-06-26T05:09:27.110698 | 2019-08-02T22:27:30 | 2019-08-02T22:27:30 | 199,542,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | life = 3
if life > 0:
life-= 1
print("The player has " +str(life)+" lives left.")
elif life == 0:
print("The player has zero life.")
else:
print("The player ran out of life!")
a = 6
b = 3
if a > b:
print("a is greater than b.")
x = 2
if x > 1:
x += 2
print(x)
has_key = False
if has_key == T... | [
"idcrypt3@gmail.com"
] | idcrypt3@gmail.com |
4f25b305d865c515d8d9f67f4da12a0de87cdbe2 | bc441bb06b8948288f110af63feda4e798f30225 | /data_ops_analysis_sdk/model/cmdb/object_import_pb2.pyi | 80fbb8dcb89a9c2389d5bd53e7201c1ae1275bd6 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,853 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from data_ops_analysis_sdk.model.cmdb.object_attr_value_pb2 import (
ObjectAttrValue as data_ops_analysis_sdk___model___cmdb___object_attr_value_pb2___ObjectAttrValue,
)
from google.protobuf.descriptor import (
Descriptor as google___protob... | [
"service@easyops.cn"
] | service@easyops.cn |
8d252b8fbf85dda04d07de6d83f4542ec1deedd9 | e4712c4828b2970fa042af9b1c95dc82dbb8cb0d | /doc/python/pycharm/djproject/hammer/models.py | 6f95a090bf74934d9311010eaf2ce26b49aef7a0 | [] | no_license | Mark-Seaman/50-Tricks | 3becf8d43b4db4b9f2032c45e5ce0464d9472a9e | bbf9009eb37f82517128557dc9a44afe470ed450 | refs/heads/master | 2016-08-05T05:28:17.655817 | 2014-07-14T15:03:39 | 2014-07-14T15:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from django.db import models
# Create your models here.
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateField('date published')
class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = models.CharField(max_length=200)
votes = models.IntegerFi... | [
"mark.seaman@shrinking-world.com"
] | mark.seaman@shrinking-world.com |
c973d60bd3eaa775a2ab177dfef9d9e790510b66 | 32cba9d6b0cb420e13a2a26c9e8c3d07e2c127b6 | /附录A 梯度下降法/基于黄金分割法的一维搜索(原生Python实现).py | 49228adaf7c2a52de34e8ab4fd6f3830600e8b04 | [] | no_license | wanglg007/Lihang-Statistical-learning-methods-Code | bed22551a2883b40e93340d3f96cf2fcf9e19ef2 | 190d16310be154282550e1f55eaadd8c4dd83263 | refs/heads/main | 2023-07-03T17:00:35.809206 | 2021-08-02T08:37:33 | 2021-08-02T08:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | def golden_section_for_line_search(func, a0, b0, epsilon):
"""一维搜索极小值点(黄金分割法)
:param func: [function] 一元函数
:param a0: [int/float] 目标区域左侧边界
:param b0: [int/float] 目标区域右侧边界
:param epsilon: [int/float] 精度
"""
a1, b1 = a0 + 0.382 * (b0 - a0), b0 - 0.382 * (b0 - a0)
fa, fb = func(a1), func(b... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
d831763226057b47e3c59a607338c632ae112d82 | d02ebdcb0dbc9b2f85dcd4064ab93c647e976b03 | /rca/utils/migrations/0010_update_help_texts.py | f0954770a6a61dfaeecac9889f7a0ec46e2c4986 | [] | no_license | torchbox/rca-wagtail-2019 | 5deb298815478d0be98057bdd7d5c082aaaa1cb0 | d73ea183031bb1bc72f3c6890a02814f32926082 | refs/heads/master | 2023-09-04T03:14:30.369016 | 2023-08-22T07:15:02 | 2023-08-22T07:15:02 | 200,079,441 | 9 | 3 | null | 2023-08-22T08:07:16 | 2019-08-01T15:52:38 | Python | UTF-8 | Python | false | false | 605 | py | # Generated by Django 2.2.4 on 2019-09-23 14:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("utils", "0009_add_apply_tab_control")]
operations = [
migrations.AlterField(
model_name="programmesettings",
name="disable_apply_... | [
"kbhowbrook@gmail.com"
] | kbhowbrook@gmail.com |
84b9e62e5323a6c40b7f2e70611ea2f2e2d07e5e | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eveSpaceObject/spaceobjanimation.py | cd641069a3484ede979421761b6829b2002d8edc | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\eveSpaceObject\spaceobjanimation.py
import shipmode.data as stancedata
STATE_MACHINE_SHIP_STANDARD = 'shipStandard'
STATE_MACHINE_SHIP_STANCE = 'shipStance'
STATE_MACHINE_SHIP_LOOP = 'shipLoop'
stanceAnimations = {stancedata.sh... | [
"le02005@163.com"
] | le02005@163.com |
5de956302bbae998482cd40a50adb21db95ceaa9 | e131a6c933edbf1f75d32ddc83ddb0378a01bb06 | /retrive_involved_publishers.py | 95e05642613d901e3043d8266959488b95b8658e | [
"ISC"
] | permissive | essepuntato/ecss-2021 | d8220b8cd1c786c4f827a6d4914c475eb8975c0d | 98ae35d9b87cea407187c3c7e91a97b887fff296 | refs/heads/main | 2023-04-11T15:23:27.181319 | 2021-12-31T14:30:50 | 2021-12-31T14:30:50 | 420,807,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,485 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE I... | [
"essepuntato@gmail.com"
] | essepuntato@gmail.com |
d85d2dc0f2f98cab42b12847cf71d5252794e88d | f94e3f03f9585cbd297633b09343eb97679d8b31 | /RGAN.py | eab18a5c08adcb8067bfb57f6dd9504aff343738 | [] | no_license | TLESORT/pytorch-generative-model-collections | 1d780814c7f409e4f18183066937a6f304a1d8c4 | 372046a0819b9fe0f665178c41fde461faa69226 | refs/heads/master | 2021-04-27T19:37:19.180525 | 2018-07-04T11:47:38 | 2018-07-04T11:47:38 | 122,359,954 | 0 | 0 | null | 2018-02-21T16:14:38 | 2018-02-21T16:14:38 | null | UTF-8 | Python | false | false | 11,473 | py | import utils, torch, time, os, pickle
import numpy as np
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
class generator(nn.Module):
# Network Architecture is exactly same as in infoGAN (https... | [
"t.lesort@gmail.com"
] | t.lesort@gmail.com |
cc5c3fa1f5cd929613da431266429f79b71034af | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/48/usersdata/106/16639/submittedfiles/estatistica.py | 9216ca82d3ebce94d85f0a17b29d4a89984de073 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # -*- coding: utf-8 -*-
from __future__ import division
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def desvio(lista):
d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
93bcd38123cc27009a64e0272b87e43e9e923e4d | ad3f733d68059a1e05abc114a8b90ed41fa88345 | /imperative/python/megengine/module/normalization.py | 8c1a68490a30f79734702682cc90526fc9efdd13 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | wenming2014/MegEngine | c52dc68db4d036a03a5d7e060772cafe84294fc6 | 227d5b9fdbaca51b5cbe427318fb674af90f6b56 | refs/heads/master | 2023-03-20T05:23:49.638965 | 2021-02-15T07:23:20 | 2021-02-21T14:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,898 | py | # MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY ... | [
"megengine@megvii.com"
] | megengine@megvii.com |
95994dfd7d93d008e45b3341c63de55fb429d2ca | 0b23c2a6134ffab35f19484196f40fde2d5e4d20 | /v1/utils/trust.py | e5f53fa732dc8b117160c1f8c7e18bc12c16c5ef | [
"MIT"
] | permissive | shahraizali/Bank | b7735b937f103ddafccacbe9f8757cb151444c11 | d9cb926dd51af91e00199444b523f97c1b5fa3c7 | refs/heads/master | 2022-11-21T19:02:30.716956 | 2020-07-26T19:52:24 | 2020-07-26T19:52:24 | 282,784,429 | 1 | 0 | MIT | 2020-07-27T03:24:51 | 2020-07-27T03:24:50 | null | UTF-8 | Python | false | false | 473 | py | def calculate_weighted_trust(*, node, node_list):
"""
Calculate the weighted trust (0-100) for the given node using the node_list
"""
total_trust = sum([node.trust for node in node_list])
return (node.trust / total_trust) * 100
def decrease_trust(*, amount, node):
"""
Decrease trust of th... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
b4816440dc94526d958373c75aaed8ed2c8c3003 | d1a23658062d600ffe6549a4e224fbdb9115f59a | /runtests.py | 6dd147cce909f18aff4376c4a12c49b991cc8654 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | webpet/aiozmq | d263011ed174c7365f7de65187d15d790a3b5604 | 4ddcd86de209d21467d2040a3184afc2ab32f2a1 | refs/heads/master | 2021-01-18T00:20:30.659528 | 2014-04-19T23:15:27 | 2014-04-19T23:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,371 | py | """Run aiozmq unittests.
Usage:
python3 runtests.py [flags] [pattern] ...
Patterns are matched against the fully qualified name of the test,
including package, module, class and method,
e.g. 'tests.test_events.PolicyTests.testPolicy'.
For full help, try --help.
runtests.py --coverage is equivalent of:
$(COVERA... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
920cce426cd39f276b73555baba8a5411d649caa | a2b20597759990445081057d35d113434cfcf970 | /client/commands/server_event.py | d13483c93de5210ddd907e30376b9acae6aa1a76 | [
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 5,635 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This module provides Python event data structures to represent
interactions with the Pyre daemon, as well as an async utility
cann conne... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c753330b722ea43bcb6f689cbf60a244f0f18152 | d94e59cc3211e74cd88f0bc559bc9ef2f08188c3 | /blog/urls.py | 6b91f0b6a5d9e03944db7690d36820db5cb2056e | [] | no_license | jun-fajr/dream_blog | ab418f9559f744a38b7ec8b2690d50464fd36938 | e94dbbd9f84a58b817c85178a21b972f8f177dbc | refs/heads/master | 2022-01-08T18:09:51.439314 | 2019-01-14T05:34:27 | 2019-01-14T05:34:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path
from posts.views import index, blog, post
urlpatterns = [
path('admin/', admin.site.urls),
path('', index),
path('blog/', blog),
path('post/', post),
]
if settings... | [
"freire1996@gmail.com"
] | freire1996@gmail.com |
8a5e0e70693cca1e20a96d14046199fda2bf4448 | d8e22611203594a7a1cc0e799365301a9222c31c | /test/humancellatlas/data/metadata/helpers/schema_examples.py | 69fd1233016e646a718d22ef651d1ba306ec848d | [
"MIT"
] | permissive | HumanCellAtlas/metadata-api | fe8da0e15e050de4f7e207191ad16c4f5b9644f9 | 9401da9b601a3676cd199d2cacce242940710b3f | refs/heads/develop | 2021-06-05T03:23:31.246580 | 2021-04-27T01:04:19 | 2021-04-27T01:04:19 | 142,053,167 | 6 | 2 | MIT | 2021-04-27T01:05:44 | 2018-07-23T18:26:26 | Python | UTF-8 | Python | false | false | 2,923 | py | from io import BytesIO
import tarfile
import urllib.request
import uuid
import json
from dcplib.checksumming_io import ChecksummingSink
def download_example_bundle(repo, branch, path='/'): # pragma: no cover (because of canning)
manifest = []
metadata_files = {}
if path.startswith('/') or not path.endsw... | [
"hannes@ucsc.edu"
] | hannes@ucsc.edu |
62d9a581556a6fffd2927c20df97b1db9aca97ff | 391e88b6bfdea40d218807bbd2b4585610f0bf91 | /src/kawaz/core/personas/migrations/0004_auto_20150606_1554.py | e0e89b1285393a399b225f194a47f85f6f0eb35b | [] | no_license | kawazrepos/Kawaz3rd | 3de33c50dac5e9125948d9972427228a793cfe42 | 8f9a850c4df41b0fc1da5b73189772552d5cd531 | refs/heads/develop | 2020-04-16T14:42:35.758910 | 2017-06-20T15:48:55 | 2017-06-20T15:48:55 | 18,743,101 | 7 | 9 | null | 2017-06-20T15:48:56 | 2014-04-13T23:57:57 | Python | UTF-8 | Python | false | false | 463 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('personas', '0003_auto_20150426_1532'),
]
operations = [
migrations.AlterField(
model_name='account',
... | [
"giginet.net@gmail.com"
] | giginet.net@gmail.com |
3e768616e191ceda6f7dc73f489b55d08311d46b | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/father/body_state_guy_point_body.py | 6c322d9f0b663dddb880a4a98343213a9c20f93f | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | const request = require('request')
const uuidv4 = require('uuid/v4')
const { LimitReachedError } = require('./errors')
const ITEMS_IN_REQUEST_LIMIT = 25
const REQUEST_CHAR_LIMIT = 5000
const CHAR_PER_HOUR_LIMIT = 2000000
// const subscriptionKey = process.env.TRANSLATOR_TEXT_KEY;
// if (!subscriptionKey) {
// throw... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
76fa4badda4a9cd3b1b0b69d039e8cb041ce528f | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/classicchars/DistributedVampireMickey.py | a86049f93de5ae8496973c0cea391d13379af9ab | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # File: D (Python 2.4)
from pandac.PandaModules import *
import DistributedCCharBase
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from toontown.classicchars import DistributedMickey
import CharStateDatas
from toontown.toonbase import ... | [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
6e6cc60d4bdcefe18887731c40a43e9778ce9439 | 383845f6cd8e2a32f95e5970d2f7e9fb755b6598 | /course/tasks/swap-values.py | 29f5e914e62c422ba09f4c4722b5f6490d504559 | [] | no_license | ash/python-tut | e553e9e3a4ecb866e87c7ce9f04d7f517244ac01 | f89f079f13dd29eef6ba293b074a0087272dc8a6 | refs/heads/master | 2022-12-17T03:20:40.633262 | 2018-03-21T15:04:09 | 2018-03-21T15:04:09 | 96,119,629 | 0 | 0 | null | 2022-12-08T00:55:59 | 2017-07-03T14:29:02 | Python | UTF-8 | Python | false | false | 39 | py | a = 10
b = 20
a, b = b, a
print(a, b)
| [
"andy@shitov.ru"
] | andy@shitov.ru |
ef0b92ad4039d74c3895935af1c836e88f042882 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Geron17Hands/B_PartI/B_Chapter2/D_Discoverand/B_Lookingfor/index.py | 01defc51c1a428b3c991aedf2cfc8cae0aaf0ffe | [] | 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 | 8,028 | 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 |
660545710fb4151683cc94aba57c55c31f043a41 | 760fbf0e4675212a89dbba28ef771bf7ff7a0d91 | /Leetcode2020/剑指offer/树/剑指 Offer 32 - I. 从上到下打印二叉树【树的BFS队列打印】[2刷].py | 4b9b5e1e8a0a1380d25e32a4bd5a4ebb18386c60 | [] | no_license | chixujohnny/Leetcode | 1a420e318005140a2be036ab7c3fcd054b4ae011 | 3faa41556f13f45a08b49d4dcd371ed590f9cb14 | refs/heads/master | 2021-06-19T14:44:28.464335 | 2021-01-11T08:16:26 | 2021-01-11T08:16:26 | 155,142,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # coding: utf-8
# 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 levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
... | [
"1390463349@qq.com"
] | 1390463349@qq.com |
4b479dc1047f52a6aceda36b233cce0c0641fa95 | 8cf8c5afbb20316f355a029005087a10cbc250dd | /corona_virus/models.py | 0dbf65ded1f3dba0c9589edea2c8bf44af85ea01 | [] | no_license | habibor144369/corona_app | fec78406aa749f14c773a87ae87123debfa6c442 | 03cd274b3820a1562df2699bc10599a3d5bfb593 | refs/heads/master | 2023-03-31T06:13:27.183086 | 2021-03-28T15:43:09 | 2021-03-28T15:43:09 | 352,269,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.db import models
# Create your models here.
class API(models.Model):
url = models.URLField(max_length=250)
def __str__(self):
return self.url
| [
"you@example.com"
] | you@example.com |
433770f40764b1831ee9c385a58fa8e93b338def | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/1375. Number of Times Binary String Is Prefix-Aligned.py | aa4ea6be9e505e8abd92ffd508fc43c0ef756ba1 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | '''
You have a 1-indexed binary string of length n where all the bits are 0 initially. We will flip all the bits of this binary string (i.e., change them from 0 to 1) one by one. You are given a 1-indexed integer array flips where flips[i] indicates that the bit at index i will be flipped in the ith step.
A binary str... | [
"xiaohuanlin1993@gmail.com"
] | xiaohuanlin1993@gmail.com |
e44d4c8cdcd63142e8842a4d2195893849542ff4 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_1/Python/krecik/t1.py | 62998d5f859da23d7443d0ee44b09c89bf5ba852 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import codecs
with codecs.open('A-large.in','r','utf-8') as f:
test_cases = int(f.readline().strip())
for t in range(test_cases):
print "Case #%i:" % (t+1),
data = f.readline().strip().split('/')
if(int(data[1]) % 2 == 1 or float(data[0])/float(data[1]) < (1/(2 ** 40))):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
1105eeac5969d211984c3fa9ae55c9bc25b522d4 | 0a1d4fa6bb64048caa986a100aa2d096f0e14a3c | /src/heimdall/security/authorization.py | 0af12030d134617c523b2a89bcd140cd91e82584 | [] | no_license | OneTesseractInMultiverse/heimdall | bcc3ebd4b20ac02a56b7e6c8748edc39af55548d | 83f6a7a89cb7e66d33d186c03e75d9f69b934571 | refs/heads/master | 2022-06-08T20:25:51.855787 | 2019-10-05T14:28:12 | 2019-10-05T14:28:12 | 181,356,419 | 0 | 0 | null | 2022-05-25T02:21:21 | 2019-04-14T19:08:29 | Python | UTF-8 | Python | false | false | 2,421 | py | from functools import wraps
from flask import (
jsonify
)
from flask_jwt_extended import (
get_raw_jwt
)
# ---------------------------------------------------------------------------------------
# DECORATOR REQUIRE CLAIMS
# --------------------------------------------------------------------------------------... | [
"pedro@subvertic.com"
] | pedro@subvertic.com |
de21cd2451dd4e18583d95eb39dd0adfff50f8ee | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/unsignedInt/Schema+Instance/NISTXML-SV-IV-list-unsignedInt-length-1-1.py | dcadfbce3678dc6fc6dc2c65bc8b6e712dcf7617 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 369 | py | from output.models.nist_data.list_pkg.unsigned_int.schema_instance.nistschema_sv_iv_list_unsigned_int_length_1_xsd.nistschema_sv_iv_list_unsigned_int_length_1 import NistschemaSvIvListUnsignedIntLength1
obj = NistschemaSvIvListUnsignedIntLength1(
value=[
4153443162,
4141421134,
4172421153,... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
c7c0115db1260a3a22a76878e00ec6cb0afb5300 | 2fc1d40081764c9b1d3ba5b9681e6d6491f56d17 | /news/models.py | 5698c2edefffe26d1d91dd4506a20a36c0dcb5c9 | [] | no_license | hakimkal/primegate | 9907818dca4f1a09e426be01b7124a02641c32af | 4df640f710d824bb54970b5d03dde01214771ba0 | refs/heads/master | 2021-01-22T23:34:22.201608 | 2014-12-02T12:32:35 | 2014-12-02T12:32:35 | 26,557,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from django.db import models
from django.contrib.auth import get_user_model
from image_cropping import ImageRatioField
from datetime import datetime
class News(models.Model):
class Meta:
verbose_name = 'News'
verbose_name_plural ='News'
#ImageField(upload_to=None[, height_field=None, width_field... | [
"hakimkal@gmail.com"
] | hakimkal@gmail.com |
ca5c108287777105ceefcc5db92d6a023921e4ad | 8ee9c5c47268b5c683d06fcc75b101a9e69ccac3 | /python/Data Structures and Algorithms in Python Book/arrays/insertion_sort.py | 55da25d566cf60469b2fdef68c71dab83cdd7842 | [
"MIT"
] | permissive | gauravssnl/Data-Structures-and-Algorithms | c8103e4540735423598da88d828a705505c88de3 | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | refs/heads/master | 2021-03-20T18:50:12.375933 | 2021-01-29T14:07:50 | 2021-01-29T14:07:50 | 247,225,247 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | def insertion_sort(A):
for k in range(1, len(A)): # k = 1,, .. till n-1 th index , will use this index for item at index 0
curr = A[k]
j = k
while j > 0 and A[j-1] > curr:
A[j] = A[j-1]
j -= 1
A[j] = curr
if __name__ == "__main__":
arr = [10,... | [
"gaurav.ssnl@gmail.com"
] | gaurav.ssnl@gmail.com |
b0f78351c1cfdcf0e1fcd788b19a0aafec6844d9 | c73e8286579e7ba673440bac44bd527d416beaef | /MyNeutronSimHitAnalyzer/python/__init__.py | 5d7839901a054551eb260661207259e8a6324fff | [] | no_license | pietverwilligen/MyAnalyzers | 6815cec717f2ede3f44070466e33c9b292d5b452 | ccd04521747625d82a19174ebebb6a2cba53ddf2 | refs/heads/master | 2023-05-24T12:42:17.134907 | 2023-05-18T11:55:05 | 2023-05-18T11:55:05 | 16,079,295 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/MyAnalyzers/MyNeutronSimHitAnalyzer/',1)[0])+'/cfipython/slc7_amd64_gcc820/MyAnalyzers/MyNeutronSimHitAnalyzer')
| [
"piet.verwilligen@cern.ch"
] | piet.verwilligen@cern.ch |
f108f76c1ca6b76ba1e4940353330d4436046381 | c2e61c1e6529fda41be5e68c7e633dab22a94e4c | /s3downloader.py | ded5a2e47ee7a55874768fd623351e2f4d587ea5 | [] | no_license | leonardogloria/aws-workshop | f5cad0da2cbc93df31c34dfca384a2ef0f989061 | 42e483a732c7e6b7736515ada32d9648aced124d | refs/heads/master | 2021-01-13T08:36:29.563033 | 2016-10-24T18:57:21 | 2016-10-24T18:57:21 | 71,821,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from boto.s3.connection import S3Connection
import sepia
conn = S3Connection('bugala', 'bugala')
mybucket = conn.get_bucket('lgloriaworkshopaws') # Subs
#bucket_list = mybucket.list()
#keyString = str("3be00413-1b56-41ad-8224-4d9e7b0fd5bb.jpg")
key = mybucket.get_key("3be00413-1b56-41ad-8224-4d9e7b0fd5bb.jpg")
# c... | [
"="
] | = |
095876f8a65cf95354fb4255794f8e282bd3b8f4 | e306b7bcc4eff76eb3fe12d3b2331fe3d1861ae1 | /src/bitwardentools/vaultier/import_structure.py | 518720452108b0b3a3cb0df300c9d1efc2dc4e8a | [
"BSD-2-Clause"
] | permissive | liip-forks/bitwardentools | 3bbfbdb34362ef314e89c5965f8affaa1216ff6a | b000a8941ef8d07fbe1a5eb191896638d29bf1b6 | refs/heads/main | 2023-07-15T16:07:41.117950 | 2021-08-12T10:50:41 | 2021-08-12T10:50:41 | 389,682,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import json
import os
from collections import OrderedDict
from multiprocessing import Pool
import click
import bitwardentools
from bitwardentools import Client, L, as_bool
from bitwardentools import client ... | [
"kiorky@cryptelium.net"
] | kiorky@cryptelium.net |
e352a7ae0782253b9488f5466551bbeca7cc9d5b | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129094442.py | db3987e5ce559cd3b3cc7c41fae19e940751782c | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,568 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
from bs4 import BeautifulSoup
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Ap... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
7e9d18f4bc01cafda1701d8c1f1a21ff044121d2 | bfe3973571b066865d451fb7276b73158c4bd889 | /code/AllenNLP_Modifications/allennlp_selmo30k/build/lib/allennlp/commands/__init__.py | ad694cc42b7740d4bf516a6e9f2a7583dcfbe2c3 | [
"Apache-2.0"
] | permissive | UKPLab/naacl2019-like-humans-visual-attacks | 85dd11f13ac57e1a0a2e5e7f4161f3e6588fb0ed | 0d4eb57c239125c0d7e0e827a9887e182f3deebd | refs/heads/master | 2022-12-05T06:36:53.994158 | 2021-02-08T08:51:57 | 2021-02-08T08:51:57 | 174,987,605 | 26 | 6 | Apache-2.0 | 2022-11-21T20:49:09 | 2019-03-11T11:38:48 | Python | UTF-8 | Python | false | false | 2,821 | py | from typing import Dict
import argparse
import logging
from allennlp import __version__
from allennlp.commands.configure import Configure
from allennlp.commands.elmo import Elmo
from allennlp.commands.evaluate import Evaluate
from allennlp.commands.fine_tune import FineTune
from allennlp.commands.make_vocab import Mak... | [
"lee@ukp.informatik.tu-darmstadt.de"
] | lee@ukp.informatik.tu-darmstadt.de |
789472072b2c3dd8bebab5e39ef7e79338876ebe | 0a3e24df172a206a751217e5f85b334f39983101 | /Concurrent/spawnProcess.py | d982ed86e44379343b666099769c07c93912d560 | [] | no_license | yeboahd24/python202 | 1f399426a1f46d72da041ab3d138c582c695462d | d785a038183e52941e0cee8eb4f6cedd3c6a35ed | refs/heads/main | 2023-05-06T04:14:19.336839 | 2021-02-10T02:53:19 | 2021-02-10T02:53:19 | 309,841,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!usr/bin/env/python3
# getting PID of each sub-process helps in logging and debugging
import multiprocessing
import time
def childTask():
print("Child Process With PID: {}".format(multiprocessing.current_process().pid))
time.sleep(3)
print("Child process terminating")
def main():
pri... | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.