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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f83f46f9d7f4babfa8c81312e6fd61edc7c8c9a | cc52011cb420651cdd9d37af1ffbad68f935c7be | /junk/face_test.py | 02765a052dfcd7d9789560f7bae2bde65f24a6ca | [] | no_license | fatpat314/mask_detection | 0988a341fd47849977bbb7babdc0ed2fce928a6d | 025b420014e8aac71d867e06ef9202a473e5357c | refs/heads/master | 2022-12-20T05:43:44.700740 | 2020-09-28T08:19:56 | 2020-09-28T08:19:56 | 290,686,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,137 | py | import face_recognition
import cv2
import numpy as np
import os
import glob
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the
# other example, but it includes some basic performance tweaks to make things run a lot faster:
# 1. Process each video frame... | [
"w.patrick.kelly@gmail.com"
] | w.patrick.kelly@gmail.com |
5d0f4cb826491c6d60bd55e2f82ff687aad64d45 | 9acbf0279c38d11e89f16831e9c43b49badabb00 | /IPTVPlayer/tsiplayer/addons/resources/sites/hds_stream.py | 9875340d9a861185488cd59312f8b1383ca23e95 | [] | no_license | dgbkn/e2iPlayer | 4f101b87bc5f67bf14690d012a62cbe8755ab82c | e5f413ea032eb9012569d9d149a368a3e73d9579 | refs/heads/master | 2023-05-15T05:01:18.204256 | 2021-06-06T18:03:42 | 2021-06-06T18:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,881 | py | # -*- coding: utf-8 -*-
# vStream https://github.com/Kodi-vStream/venom-xbmc-addons
import re
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.gui.hoster import cHosterGui
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.gui.gui import cGui
from Plugins.Extensions.IPTVPlayer.tsiplaye... | [
"echosmart76@gmail.com"
] | echosmart76@gmail.com |
da6cdfe9ab180d0e96dc02d884b46c6a2f8a3e88 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/preprocess_20210421153926.py | 328dd81758da2a656921e2d8033defa2f29c1d4b | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,518 | py |
import os
import random
import numpy as np
from PIL import Image
import tensorflow as tf
import hyperparameters as hp
class Datasets():
""" Class for containing the training and test sets as well as
other useful data-related information. Contains the functions
for preprocessing.
"""
def __init__... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
c26cdbd6de229d90cf71d67bf49f6a27ab68512f | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_optimizer/tensorflow/tf_nndct/utils/__init__.py | 3274ff4b5eecc566b7b6ab5c8e5fb76d2336b986 | [
"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 | 616 | 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, ... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
4db1b6a570c6c09cb4abbde4d2d5b91439464880 | 86a563e6eff56cf96bfa3c6dcdfb706e68114530 | /ch05/layer_naive.py | f4262f3f86dabc938f835840d0e9ffd66c61601c | [] | no_license | mingrammer/deep-learning-from-scratch | be322ee82fe5c8d2bcde3ac3e7d35792c5314d1f | 4e158aa3f773ac7c60585f3f1627e94dac7a05ba | refs/heads/master | 2021-01-01T06:36:44.414300 | 2017-08-10T17:15:55 | 2017-08-10T17:15:55 | 97,468,838 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | class MulLayer:
def __init__(self):
self.x = None
self.y = None
def forward(self, x, y):
self.x = x
self.y = y
out = x * y
return out
def backward(self, dout):
dx = dout * self.y
dy = dout * self.x
return dx, dy
class AddLayer:
... | [
"k239507@gmail.com"
] | k239507@gmail.com |
a6d693cdcbe37656bb5535ac4a05fe5cc9372d37 | 41d0bd94bbaec0299e6be6fc56a726545c1894cb | /sources/nytimes/__init__.py | 6b17755df17000bfee582d94d3ef7ceaa7c83853 | [
"Unlicense"
] | permissive | AB9IL/stream-sources | f86eec0552d0992e7ee02a39076e0a1042ebfe27 | ede8bd3ad7d51723d489192d0a6c5b2ea31ffe56 | refs/heads/master | 2023-02-03T23:09:25.582012 | 2020-12-23T08:12:42 | 2020-12-23T08:12:42 | 319,333,418 | 0 | 0 | Unlicense | 2020-12-07T13:47:06 | 2020-12-07T13:47:05 | null | UTF-8 | Python | false | false | 244 | py | from sources.generic import FeedSource
class Source(FeedSource):
SOURCE = {
'name': 'The New York Times',
'url': 'https://www.nytimes.com',
}
FEED_URL = 'http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml'
| [
"davy.wybiral@gmail.com"
] | davy.wybiral@gmail.com |
57058094d1fac2a6430800baef3bfb044fb40353 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/searchtext/iterators/InstructionSearchAddressIterator.pyi | 714c2a10a62f4d6f5eb1d692fba25f1bfdbdb764 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | pyi | from typing import Iterator
import ghidra.program.model.address
import java.lang
import java.util
import java.util.function
class InstructionSearchAddressIterator(object, ghidra.program.model.address.AddressIterator):
def __init__(self, __a0: ghidra.program.model.listing.InstructionIterator): ...
def __i... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
56be18a63c0d30a9e4ba2dae5d07aad985c61656 | 40c4b8b618d67fc48b862809b6e2835bb7cf76eb | /leetcode/65.py | e19e991fccbe8881504df78c7650cbe96eaad2ad | [] | no_license | berquist/ctci | 9fa08ac724990eee32f8ad7cffc3517491570d41 | f0a69d3e4dd1b73a43c96dcb7a9c7b9955c04c39 | refs/heads/master | 2022-08-18T01:53:16.994300 | 2022-08-15T00:36:07 | 2022-08-15T00:36:07 | 120,108,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | class Solution(object):
def isNumber(self, s):
"""
:type s: str
:rtype: bool
"""
# assert Solution().isNumber("0") == True
# assert Solution().isNumber(" 0.1 ") == True
# assert Solution().isNumber("abc") == False
# assert Solution().isNumber("1 a") == False
# assert Solution().is... | [
"eric.berquist@gmail.com"
] | eric.berquist@gmail.com |
101f05c1b708685c9f582744ecc1a14472bcf253 | 30b2b8a449558fc327daebf51096bf251ef6a8e9 | /scripts/Assemble.py | 389daba962491debc1e343d62c2dfc8ec94ca8d5 | [
"Zlib",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | ekg/shasta | 0ac3462d0e3f73375a1b583967992b7e5deba1fd | e2fd3c3d79fb4cafe77c62f6af2fef46f7a04b01 | refs/heads/master | 2020-06-02T12:59:50.717211 | 2019-06-10T12:13:22 | 2019-06-10T12:13:22 | 191,161,600 | 0 | 0 | NOASSERTION | 2019-06-10T12:13:04 | 2019-06-10T12:13:03 | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/python3
import shasta
import GetConfig
import ast
# Read the config file.
config = GetConfig.getConfig()
# Create the Assembler.
a = shasta.Assembler()
# Set up the consensus caller.
a.setupConsensusCaller(config['Assembly']['consensusCaller'])
# Figure out if we should use marginPhase, and if so set it... | [
"paoloczi@users.noreply.github.com"
] | paoloczi@users.noreply.github.com |
7f2e99bfc97cb0b7fc22df73b15f8e1a322d6df3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/exp-big-393.py | 20bce7381a23b7eb2eaa3484512995b694ea0636 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | # Compute x**y
def exp(x: int, y: int) -> int:
a: int = 0
a2: int = 0
a3: int = 0
a4: int = 0
a5: int = 0
def f(i: int) -> int:
nonlocal a
nonlocal a2
nonlocal a3
nonlocal a4
nonlocal a5
def geta() -> int:
return a
if i <= 0:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2cfadbdf605826104ecf7f24efa19f78691766cf | c11f92e6a1578338cf759b5e1624a53225642e79 | /babi/user_data.py | 8307f03bf2d4e55df9bd70db01a1dca7746c0fcf | [
"MIT"
] | permissive | pganssle/babi | c1d50df3bdb924316779ab82e996ad46baafb986 | d20be693d2c067570f0a82e2c2baee34c827c3bd | refs/heads/master | 2021-04-11T19:55:08.285937 | 2020-03-21T18:47:37 | 2020-03-21T18:47:37 | 249,049,571 | 0 | 0 | MIT | 2020-03-21T19:50:32 | 2020-03-21T19:50:32 | null | UTF-8 | Python | false | false | 393 | py | import os.path
def _xdg(*path: str, env: str, default: str) -> str:
return os.path.join(
os.environ.get(env) or os.path.expanduser(default),
'babi', *path,
)
def xdg_data(*path: str) -> str:
return _xdg(*path, env='XDG_DATA_HOME', default='~/.local/share')
def xdg_config(*path: str) ->... | [
"asottile@umich.edu"
] | asottile@umich.edu |
8e34a70a3f9397eeb53ec22828a93db95486d8b8 | e458083d9e0f3564d3089de9febe3cad61733f47 | /Weekdays/python_looping/python_loopings/iterative.py | a8a0cb3dacd9d0abb7f63a3db3305d1043195b89 | [] | no_license | chavhanpunamchand/pythonYogeshSir | cd71d002927f8bbc8ad5ecff3282e0b7c6cfc13c | 3ee675f188e2680cde9e04ad03f2f5c9f3d46ba0 | refs/heads/master | 2023-02-14T01:53:34.342147 | 2021-01-09T17:36:17 | 2021-01-09T17:36:17 | 293,258,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,839 | py | '''
Iterative --> points
do..while --atleast once --> thru flag--* --> not provided in python
while --> may or may not
range
random
random.randoint
enumerate
dict.keys
dict.values
dict.items
for --> when u are sure about no of iterations in advance
--> when u are not sure about no of iterations in advanc... | [
"chavhanpunamchand@gmail.com"
] | chavhanpunamchand@gmail.com |
3a0e1f78250db2e482d5eff70a0c07b7ee2c4b50 | 24a47669907cb008c3fea4265c4b6f37dddc54a4 | /keras_/kerascv/models/sepreresnet.py | 4331887dec1490c392c0c3197e65d35f06adb823 | [
"MIT"
] | permissive | JHLee0513/imgclsmob | ee1f6b8c7f677ed0e8a23e26d3165d37fd8549b4 | 45abcc1d313b84fa3595e13f0e4fa04b5db6c75d | refs/heads/master | 2020-04-22T14:13:25.337524 | 2019-02-12T18:26:09 | 2019-02-12T18:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,161 | py | """
SE-PreResNet, implemented in Keras.
Original paper: 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507.
"""
__all__ = ['sepreresnet', 'sepreresnet18', 'sepreresnet34', 'sepreresnet50', 'sepreresnet50b', 'sepreresnet101',
'sepreresnet101b', 'sepreresnet152', 'sepreresnet152b', 's... | [
"osemery@gmail.com"
] | osemery@gmail.com |
1084dd65c5e897d08750a0765d039c5aa79fbda4 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/nlp/gpt2/src/utils/tensor_manipulations.py | 8ff23330029fad9374e2b614e0f24e24d7e6f763 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 7,159 | py | # Copyright 2020 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.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
8b38feee1e7984c093ab2477b1e6c94aa9ae5032 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/rearrange_20200119162227.py | a2b26cbc31714c4d2901c190ccccaf9a0c97fe88 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 5,847 | py | import random
def random_rearrange(input_string):
''' Asks user for input of words, then
rearranges those words in a random order
'''
# input_string = input("enter words: ")
words = input_string.split(' ')
len_words = len(words)
# print(words)
word_list = []
for word in range(len... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
655703818b71a380d0ddde23057a56603097cada | e41e2505ff0b0534017e85bda0e06493094d1498 | /frontend/corona_REST/setting.py | 6315adfe2d6fb9e632722dc0d095178b642a7331 | [
"MIT"
] | permissive | luyuliu/COVID19-Dashboard | 5d516f85284ca908321696bee405fdf1da5531d1 | 717f83e2767fa53367232e742c110515957a94fd | refs/heads/master | 2023-09-04T11:59:37.076149 | 2021-11-12T20:32:46 | 2021-11-12T20:32:46 | 253,892,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | DOMAIN = {
'ridership_actual': {'datasource': {'source': 'ridership_actual'}},
'county_info': {'datasource': {'source': 'county_info'}},
'census_occu_pop': {'datasource': {'source': 'census_occu_pop'}},
'corona_cases_state_level': {'datasource': {'source': 'corona_cases_state_level'}},
... | [
"liuluyu0378@gmail.com"
] | liuluyu0378@gmail.com |
aef9f80055a7aed0d9ee6b1f6e97282e910a9c59 | a8b17b17f9b2a640013064c50e1cebc27a7a68de | /10-Merging-DataFrames-with-Pandas/04-case-study-Summer-Olympics/02-loading-ioc-codes-dataframe.py | 6f36f6445cdf16c2b2857aa63e94ef5d965ab92a | [] | no_license | JohnnyFang/datacamp | 20eae09752521f14006cb3fda600b10bd7b12398 | 0fa8fa7682c23b0eb07bd03e4b75f5b77aeafa75 | refs/heads/master | 2020-04-18T00:27:37.358176 | 2020-02-04T20:54:19 | 2020-02-04T20:54:19 | 167,078,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | '''
Read file_path into a DataFrame called ioc_codes. The identifier file_path has been pre-defined with the filename 'Summer Olympic medallists 1896 to 2008 - IOC COUNTRY CODES.csv'.
Select only the columns 'Country' and 'NOC' from ioc_codes.
Print the leading 5 and trailing 5 rows of the DataFrame ioc_co... | [
"fangdejavu@gmail.com"
] | fangdejavu@gmail.com |
a434c943b8afac2a3ba516952790983f4bebf8d9 | def27d5864764b877b6786835ec97f2bd74c6ba8 | /easy/HammingDistance.py | b9cb3fe45c35fdf770719e3a32aa986bf2a73a40 | [] | no_license | bolan2014/leetcode | f6cf38a49a9250abeb36543ea2498062c58e811d | 1c35fde3a65c4f216218f459736d4c39a29980d5 | refs/heads/master | 2021-04-09T16:59:41.494568 | 2017-05-10T03:47:14 | 2017-05-10T03:47:14 | 46,648,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | class Solution(object):
def hammingDistance(self, x, y):
"""
:type x: int
:type y: int
:rtype: int
"""
bix, biy = bin(x)[2:], bin(y)[2:]
if len(bix) > len(biy):
biy = (len(bix) - len(biy)) * '0' + biy
else:
bix = (len(biy) - len... | [
"1139217488@qq.com"
] | 1139217488@qq.com |
c453f63b56b29011977ee32465c52b69a612a70d | 630fe47bb5aa5e49b45ab101d87c2dd2c53d180f | /venv/Lib/site-packages/com/vmware/nsx/node/aaa/providers/vidm_client.py | b5c31723c754c80b2bea2a739a2388630213feb8 | [] | no_license | shrivastava-himanshu/Leetcode_practice | 467497a58d82ff3ae2569d5e610dc6f27a1f31d6 | 4c59799947c2b17bfd22ca2a08707ef85e84a913 | refs/heads/main | 2023-06-12T13:14:45.381839 | 2021-07-05T04:09:05 | 2021-07-05T04:09:05 | 367,546,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2021 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.nsx.node.aaa.providers.vidm.
#------------------------------------------------------... | [
"Himanshu.Shrivastava@vce.com"
] | Himanshu.Shrivastava@vce.com |
debe5f15c52bb08f8beadfea06a498d86d7c81c4 | 27880c807b97b3b318d002a547680c6881acf460 | /tests/argparse/special/test_overwrite.py | a4721283725798b1b7e6875be3aed206d66f9fc3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sbrodehl/miniflask | a1ebb809d544fbc235044624af9193982f01aced | 55b350b951ad2120ea13a986f742523206f407c6 | refs/heads/master | 2022-11-05T05:18:43.383396 | 2022-09-14T15:26:17 | 2022-09-14T15:26:17 | 252,498,534 | 0 | 0 | null | 2020-04-02T15:46:39 | 2020-04-02T15:46:39 | null | UTF-8 | Python | false | false | 2,702 | py | from pathlib import Path
import pytest
import miniflask # noqa: E402
def test_setup(capsys):
mf = miniflask.init(
module_dirs=str(Path(__file__).parent / "modules"),
debug=True
)
mf.load(["defaults"])
mf.parse_args([
"--var_default_override_twice_and_cli", "1114"
])
c... | [
"dhartmann@uni-mainz.de"
] | dhartmann@uni-mainz.de |
683cb94f99b944c57b75bcff395c4d70823f1021 | 27acd9eeb0d2b9b6326cc0477e7dbb84341e265c | /test/vraag4/src/isbn/156.py | 5d83c65f74ee33e129c19964d85548161b6c4135 | [] | no_license | VerstraeteBert/algos-ds | e0fe35bc3c5b7d8276c07250f56d3719ecc617de | d9215f11cdfa1a12a3b19ade3b95fa73848a636c | refs/heads/master | 2021-07-15T13:46:58.790446 | 2021-02-28T23:28:36 | 2021-02-28T23:28:36 | 240,883,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | def isISBN(code):
if not (
isinstance(code, str) and
len(code) == 13 and
( code.startswith('978') or code.startswith('979') ) and
code.isdigit()
):
return 0
controle=0
for i in range(12):
if i%2:
controle += 3* int(code[i])
... | [
"bertverstraete22@gmail.com"
] | bertverstraete22@gmail.com |
222e0833d388b0280d65ff78eb7ee790a0581964 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/student/role_helpers.py | ffe0f2c9f20f8f9d2d6244b6ab63b737d5bbcf22 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 1,412 | py | """
Helpers for student roles
"""
from openedx.core.djangoapps.django_comment_common.models import (
FORUM_ROLE_ADMINISTRATOR,
FORUM_ROLE_COMMUNITY_TA,
FORUM_ROLE_GROUP_MODERATOR,
FORUM_ROLE_MODERATOR,
Role
)
from common.djangoapps.student.roles import (
CourseBetaTesterRole,
CourseInstruc... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
28a140f400a6d510811875a29923efe76038cf73 | ebe422519443dbe9c4acd3c7fd527d05cf444c59 | /evaluation_expression.py | ae02e8d4501a759bbab9c83d68ce0494a8051e94 | [] | no_license | SaiSudhaV/coding_platforms | 2eba22d72fdc490a65e71daca41bb3d71b5d0a7b | 44d0f80104d0ab04ef93716f058b4b567759a699 | refs/heads/master | 2023-06-19T18:05:37.876791 | 2021-07-15T18:02:19 | 2021-07-15T18:02:19 | 355,178,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | class Solution:
# @param A : list of strings
# @return an integer
def evalRPN(self, A):
res, opr = [], ['+', '-', '*', '/']
for i in A:
if i not in opr:
res.append(i)
elif len(res) >= 2:
tem1 = str(res.pop())
tem2 = str(... | [
"saisudhavadisina@gmail.com"
] | saisudhavadisina@gmail.com |
64b12d49a26a0628242f870670d9e5d34e02cb5e | f850e0f75a76c500f5ba8a9ab6fa6d5f40d22b23 | /pyecharts_demo/demos/Bar/multiple_y_axes.py | e006b619f9172a4af780cb1631e85e41c4e503b7 | [
"MIT"
] | permissive | jay20161013/pywebio-chart-gallery | 805afa2643b0d330a4a2f80f1e0a8827e8f61afe | 11fd8a70b2e9ff5482cf5924b110a11f3469edfc | refs/heads/master | 2023-03-20T01:58:30.979109 | 2021-03-18T12:48:31 | 2021-03-18T12:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | from pywebio.output import put_html
import pyecharts.options as opts
from pyecharts.charts import Bar, Line
"""
Gallery 使用 pyecharts 1.0.0
参考地址: https://www.echartsjs.com/examples/editor.html?c=multiple-y-axis
目前无法实现的功能:
1、暂无
"""
colors = ["#5793f3", "#d14a61", "#675bba"]
x_data = ["1月", "2月", "3月", "4月", "5月", "6月... | [
"wang0.618@qq.com"
] | wang0.618@qq.com |
13a72f1e1d9a3d638183d21c021fdda9d81e2338 | 22d9d90aa171869bba3d31f2307abe58aadd3d1d | /qtim_tools/qtim_features/extract_features.py | bec0fcbfb0fe59a061988c379ed165343d2c6b95 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | liviust/qtim_tools | a790b66bf2d3cd1d5b8036a61a264be57614b47d | 64d7d68b1335239f0d7707f8c1e28af71706e4ad | refs/heads/master | 2020-05-27T21:19:22.480893 | 2017-02-28T22:30:14 | 2017-02-28T22:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,435 | py | """ This 'learner' program, perhaps wrongly named, is the my current
general utility function. It takes in a folder full of images and
labels, parses them into numpy arrays, extracts features from those
arrays, and writes them into an easily accessible .csv. As of yet,
it does not do any learning..
"""
... | [
"andrew_beers@alumni.brown.edu"
] | andrew_beers@alumni.brown.edu |
ee0d1f6ab07282ef487a55f8caa50881541945c5 | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/form/string_pdb_text/extract.py | 73bb0feea3ace5d705b0963185af3e24f5ad4607 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 812 | py | from molsysmt._private.exceptions import NotImplementedMethodError
from molsysmt._private.digestion import digest
from molsysmt._private.variables import is_all
@digest(form='string:pdb_text')
def extract(item, atom_indices='all', structure_indices='all', copy_if_all=True):
if is_all(atom_indices) and is_all(stru... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
6394a2ecb06983781a9b4f36dfbe1b467f515d16 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/OMS/YCHF_KCBYCHF_OMS_063.py | bf7954767971a8fe32cc9735084cfdcaf4130323 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,495 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
382b4289c3b1bb000f2690f9c6f2a63fe5e1583c | f33885d6f1e963586f9e7b1e1a46a271d125e2e7 | /ci/nur/fileutils.py | 338149b414047c1411f8783359d43a434d120e33 | [
"MIT"
] | permissive | nix-community/NUR | cad821a31d965ade9869c21f03edf9f7bb4cdf02 | 80012e6c2de5ea9c4101948b0d58c745e7813180 | refs/heads/master | 2023-09-03T05:05:30.497198 | 2023-09-03T04:32:01 | 2023-09-03T04:32:01 | 123,327,588 | 965 | 385 | MIT | 2023-09-12T07:10:52 | 2018-02-28T18:49:50 | Python | UTF-8 | Python | false | false | 921 | py | import json
import os
import shutil
from contextlib import contextmanager
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import Any, Generator, Union
PathType = Union[str, Path]
def to_path(path: PathType) -> Path:
if isinstance(path, Path):
return path
else:
ret... | [
"joerg@thalheim.io"
] | joerg@thalheim.io |
a2455184714558aeedd27f30413d548c77e63c4b | 7e260342bb04eba9bff4289da938e859b8d68b82 | /contrib/scripts.py | d6d2ef643382ab83ba2df65618bc02d78d78ab2f | [
"MIT"
] | permissive | christopherjenness/fava | 72c2d0e201f7792ac32a643be0479fa7623efc27 | 71c25d8a0ae08aa84150e33d464000d0161610ea | refs/heads/master | 2020-04-28T15:29:34.446050 | 2019-03-12T17:58:03 | 2019-03-12T17:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | #!/usr/bin/env python3
"""Various utilities."""
import json
import os
from beancount.query import query_env
from beancount.query import query_parser
import click
import requests
BASE_PATH = os.path.normpath(
os.path.join(os.path.dirname(__file__), "../fava")
)
LANGUAGES = ["de", "es", "fr", "nl", "pt", "ru", "zh... | [
"mail@jakobschnitzer.de"
] | mail@jakobschnitzer.de |
59778d5cfdb33ed8ffbcd1d7c0f2b05cd15a366d | 5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e | /py/google/cj2014/round1A/FullBinaryTree.py | df737dafe506eb93570aed7b49ecc60662a2dc43 | [
"MIT"
] | permissive | shhuan/algorithms | 36d70f1ab23dab881bf1a15573fbca7b2a3f4235 | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | refs/heads/master | 2021-05-07T14:21:15.362588 | 2017-11-07T08:20:16 | 2017-11-07T08:20:16 | 109,799,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # -*- coding: utf-8 -*-
"""
created by huash06 at 2015-04-08 10:48
"""
__author__ = 'huash06'
import sys
import os
import py.lib.Utils as Utils
from datetime import datetime
# sys.stdin = open('input/sample.txt', 'r')
sys.stdin = open('input/B-large-practice.in', 'r')
# sys.stdout = open('output/B-large-practice.ou... | [
"shuangquanhuang@gmail.com"
] | shuangquanhuang@gmail.com |
d34afd28088c387fc104acc632df1276df76726e | b2c070e09bff49241fcff98bcde825cfa96e93ca | /HackerEarth/Recursion/SubsetGeneration.py | 9af011b3289a694f328f9d18d4a03292e2e93f09 | [
"MIT"
] | permissive | Beryl2208/CI-2 | dcb1b923f9c4f1f8b167c36c8b22a80522322c53 | f671292dad2695e37458866442a6b951ba4e1a71 | refs/heads/master | 2022-12-26T19:11:28.559911 | 2020-10-06T06:27:51 | 2020-10-06T06:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Subset or Subsequence generation
# Input - "abc", Output - "a", "b", "c", "ab", "ac", "abc", "bc"
# Input - "abcd", Output - "a", "b", "c", "d", "ab", "ac", "ad", "abc", "acd", "abd", "abcd", "bc", "bcd", "bd", "cd"
# "abc" "ab" "ac" "a" "bc" "b" "c" ""
# \ / \ / \ / \ /
# "ab" "a" "b"... | [
"AbhiSaphire@github.com"
] | AbhiSaphire@github.com |
2641b37d027fbff1ece30b7f2825fb2fcbd20653 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0150.0_Evaluate_Reverse_Polish_Notation.py | 0a7404c8bbd5ea8d7d771e5b14d18c16066b3ef5 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | '''
approach: Stack
Time: O(N)
Space: O(N)
执行用时:32 ms, 在所有 Python 提交中击败了60.21%的用户
内存消耗:14.3 MB, 在所有 Python 提交中击败了76.44%的用户
'''
class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
"""
stack = []
for token in tokens:
... | [
"lixiang@rxthinking.com"
] | lixiang@rxthinking.com |
0d049d8ba10dab9d75bd9355eb364b3565a2349b | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/generic_container.py | f6e8fff7ae9f79d55e3c6619b9dd2ff2044fb9c6 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 2,678 | py | # 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) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | ashirey-msft.noreply@github.com |
0ec032d171d3f69969f5f45b107df6415097393f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-6283.py | 56c4dc6454c5bcb3750e15efea45835eab1b8d51 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
48ad1087d1425fbf659db1aec546c48a22425705 | 5491e80f7dc72a8091b16c26a5cfee93381ee30d | /Challenge202E_I_AM_BENDER_Binary_To_Text/challenge202E.py | a35a3a4915220b1f0ced3a8f61896c03fca380db | [] | no_license | tuipopenoe/DailyProgrammer | 87167c2ae275c40c3b1a30ae14497a3289f8797f | 8d42947b576b78456fa72cdf5b886cff9f32b769 | refs/heads/master | 2016-09-05T21:13:30.805504 | 2015-10-16T02:57:20 | 2015-10-16T02:57:20 | 21,139,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | #!/usr/bin/env python
# Tui Popenoe
# challenge202E.py - Binary to String
import sys
import binascii
def i_am_bender(binary):
return binascii.unhexlify('%x' % int(binary, 2))
def main():
if len(sys.argv) > 1:
print(i_am_bender(sys.argv[1]))
else:
print(i_am_bender(sys.stdin.read()))
if _... | [
"tuipopenoe@gmail.com"
] | tuipopenoe@gmail.com |
5f91841d99dce028ef4112a7f1b5929f5529de42 | 729aa3af1e6de25c0e46192ef62aaf77cc622979 | /comentarios/models.py | 68e967afb7853be71fb6423710c8f2e8619ff015 | [] | no_license | xuting1108/API-Pontos-Tur-sticos | 8b583869006b8570c44eebfc885bb3db7eff4f1d | 7a01434e806a7b3b1409f7c490071ba682525ad3 | refs/heads/master | 2022-11-19T15:09:48.057402 | 2020-06-15T21:38:00 | 2020-06-15T21:38:00 | 267,150,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from django.db import models
from django.contrib.auth.models import User
class Comentario(models.Model):
usuario = models.ForeignKey(User, on_delete=models.CASCADE)
comentarios = models.TextField()
data = models.DateTimeField(auto_now_add=True)
aprovado = models.BooleanField(default=True)
def... | [
"xuting1108@hotmail.com"
] | xuting1108@hotmail.com |
d5e1d94b0f4269311fc4634072447854264afac3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /CDqMdrTvfn2Wa8igp_16.py | 12713c2aa2161258166fab90eabe089a4b047990 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | """
Create a function that returns the next element in an **arithmetic sequence**.
In an arithmetic sequence, each element is formed by adding the same constant
to the previous element.
### Examples
next_element([3, 5, 7, 9]) ➞ 11
next_element([-5, -6, -7]) ➞ -8
next_element([2, 2, 2, 2, 2]) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4f729df74aa3cb8e7f8acf86cf08033467732bf3 | 5982a9c9c9cb682ec9732f9eeb438b62c61f2e99 | /Problem_234/my_bad_solution.py | d6896b10334da48b8afeefb2a9c1fcca30a0b44b | [] | no_license | chenshanghao/LeetCode_learning | 6fdf98473be8f2240dd86d5586bbd1bbb95d6b0c | acf2395f3b946054009d4543f2a13e83402323d3 | refs/heads/master | 2021-10-23T05:23:01.970535 | 2019-03-15T05:08:54 | 2019-03-15T05:08:54 | 114,688,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
val_list = []
while(head):
val_li... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
67086c4670dfe4cb66c73ee192fb47a5a8183bcf | 4597f9e8c2772f276904b76c334b4d181fa9f839 | /Python/Compare-Version-Numbers.py | 85b753029af257cf562da8fb4d2fb870da2c0e73 | [] | no_license | xxw1122/Leetcode | 258ee541765e6b04a95e225284575e562edc4db9 | 4c991a8cd024b504ceb0ef7abd8f3cceb6be2fb8 | refs/heads/master | 2020-12-25T11:58:00.223146 | 2015-08-11T02:10:25 | 2015-08-11T02:10:25 | 40,542,869 | 2 | 6 | null | 2020-09-30T20:54:57 | 2015-08-11T13:21:17 | C++ | UTF-8 | Python | false | false | 872 | py | class Solution:
# @param a, a string
# @param b, a string
# @return a boolean
def compareVersion(self, version1, version2):
seq1 = []
seq2 = []
if version1.find('.') >= 0:
seq1 = version1.split('.')
else:
seq1.append(version1)
if version2.f... | [
"jiangyi0425@gmail.com"
] | jiangyi0425@gmail.com |
bd4bfd2045243258a2936d602e25e747bd5817ce | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_quivered.py | ae5ecb9ccecdd6d0e423ea42fa27b78863065fdc | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.nouns._quiver import _QUIVER
#calss header
class _QUIVERED(_QUIVER, ):
def __init__(self,):
_QUIVER.__init__(self)
self.name = "QUIVERED"
self.specie = 'nouns'
self.basic = "quiver"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
434c4bd312a9abd7b4c412e91f46470e4d93787a | 3151fabc3eb907d6cd1bb17739c215a8e95a6370 | /storagetest/pkgs/pts/compilebench/__init__.py | 2b4e431708e278479b68217206765020f8856961 | [
"MIT"
] | permissive | txu2k8/storage-test | a3afe96dc206392603f4aa000a7df428d885454b | 62a16ec57d619f724c46939bf85c4c0df82ef47c | refs/heads/master | 2023-03-25T11:00:54.346476 | 2021-03-15T01:40:53 | 2021-03-15T01:40:53 | 307,604,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@file : __init__.py.py
@Time : 2020/11/12 18:27
@Author: Tao.Xu
@Email : tao.xu2008@outlook.com
"""
from .compile_bench import *
__all__ = ['CompileBench']
"""
compilebench
==============
https://oss.oracle.com/~mason/compilebench/
https://openbenchmarking.org/test/pts/... | [
"tao.xu2008@outlook.com"
] | tao.xu2008@outlook.com |
7741d2640a25fdf9bfc3c4d3a9f38b475e4ced61 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02753/s804894259.py | 636735cbd5323d345ac8e012b55a33a9143478c1 | [] | 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 | 94 | py | line = list(input())
line.sort()
if line[0] == line[2]:
print("No")
else:
print("Yes") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b280a2a7d4766e6375a02765b3244e920e0b405b | a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c | /notebook/list_2d_sort.py | ed70c8ed858f38ef3ada5a56ba0468b997f515fc | [
"MIT"
] | permissive | nkmk/python-snippets | a6c66bdf999502e52f4795a3074ced63bf440817 | f9dd286a9cf93f474e20371f8fffc4732cb3c4d5 | refs/heads/master | 2023-08-03T04:20:05.606293 | 2023-07-26T13:21:11 | 2023-07-26T13:21:11 | 98,900,570 | 253 | 77 | MIT | 2020-10-25T01:12:53 | 2017-07-31T14:54:47 | Jupyter Notebook | UTF-8 | Python | false | false | 2,885 | py | import pprint
l_2d = [[20, 3, 100], [1, 200, 30], [300, 10, 2]]
pprint.pprint(l_2d, width=20)
# [[20, 3, 100],
# [1, 200, 30],
# [300, 10, 2]]
pprint.pprint(sorted(l_2d), width=20)
# [[1, 200, 30],
# [20, 3, 100],
# [300, 10, 2]]
pprint.pprint([sorted(l) for l in l_2d], width=20)
# [[3, 20, 100],
# [1, 30, 200]... | [
"nkmk.on@gmail.com"
] | nkmk.on@gmail.com |
8c5ed7790f16d81a0c36ea704e83ed858dde2f9b | 71cb8d9eb437a9faf330931f3713ba5dc688405d | /analyze_data.py | 20d0de521c42d33cccb15314658cdb6ae2767102 | [
"MIT"
] | permissive | mattare2/perceptual-acoustic-similarity | 294d967ab2cd47120d33e650f7488d37cec199ca | eced010ee2d1a36c6052c8afd1b8c4af709dc418 | refs/heads/master | 2021-01-18T11:26:36.763005 | 2015-04-21T07:21:22 | 2015-04-21T07:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,408 | py | import csv
import os
from functools import partial
from acousticsim.main import acoustic_similarity_mapping
from acousticsim.helper import get_vowel_points
from acousticsim.praat.wrapper import (to_pitch_praat, to_formants_praat,
to_intensity_praat, to_mfcc_praat)
from acousti... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
e93bfd5399e5ab1d1e5fa8e1374a7859d94a0446 | 512b388a53022f561e2375b4621f78572d3b4f04 | /clients/migrations/0010_auto_20200904_1044.py | cb1046a194005d2c79ecd0cc9708388a797fa99b | [] | no_license | Madoka09/Worker15 | 006d5ac44dc55c3ae7f72d3b8300f3567395cdff | 181012d309052b2df3d4ef99a197e8acef73a185 | refs/heads/master | 2023-03-24T05:29:02.060796 | 2021-03-16T21:56:21 | 2021-03-16T21:56:21 | 336,394,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.0.4 on 2020-09-04 15:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('clients', '0009_auto_20200903_2132'),
]
operations = [
migrations.RenameField(
model_name='clientsaddress',
old_name='altern... | [
"personal.galvan.francisco@gmail.com"
] | personal.galvan.francisco@gmail.com |
e8ad7c6fc7df5ae3504281a89fd22b8eadb6cdef | b75918b2ac1dfaf2c1219f40d63004900c9338b1 | /tests/conftest.py | bdc760d2cb724f587868a0e459829b3640bca13f | [] | no_license | solashirai/ExplainableCourseRecommender | e0f036da9814a0187daa5635da0ff2f86386026d | 6a2795cfc4536548ac3679b3d23b953e55a50a37 | refs/heads/main | 2023-04-14T14:27:36.054830 | 2021-04-19T02:29:48 | 2021-04-19T02:29:48 | 302,346,189 | 1 | 0 | null | 2021-04-18T16:13:48 | 2020-10-08T13:17:44 | Python | UTF-8 | Python | false | false | 14,309 | py | import pytest
from escore.models import *
from escore.services.course import GraphCourseQueryService
from frex.stores import LocalGraph, RemoteGraph
from escore.utils.path import DATA_DIR
from escore.pipeline import RecommendCoursesPipeline
from rdflib import URIRef, Namespace
individual_ns = Namespace(
"https://... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
c8bf10335c7c1e07b2176c968917ab7c4d5ace34 | 0f3a0be642cd6a2dd792c548cf7212176761e9b1 | /pywps_services/r_mult.py | 9910ee9228a37f667c6a73112163cb45b3e7d2ec | [] | no_license | huhabla/wps-grass-bridge | 63a5d60735d372e295ec6adabe527eec9e72635a | aefdf1516a7517b1b745ec72e2d2481a78e10017 | refs/heads/master | 2021-01-10T10:10:34.246497 | 2014-01-22T23:40:58 | 2014-01-22T23:40:58 | 53,005,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | # ################################################ #
# This process was generated using GrassXMLtoPyWPS #
# Author: Soeren Gebbert #
# Mail: soerengebbert <at> googlemail <dot> com #
# ################################################ #
from pywps.Process import WPSProcess
from PyWPSGrassM... | [
"soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202"
] | soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202 |
2d51dc8a47690b543abd5f2196e6d22032e34caf | de3b77cb0927f28cbd85e9142c2dfd7c8be7c27e | /tests/migrations/015_user_demographics_up.py | 9e08957363737d8cf8968f4a19885fea3c67bec4 | [
"MIT"
] | permissive | LoansBot/database | f3dcbccde59fdb80c876d2612f250662946588e6 | eeaed26c2dcfdf0f9637b47ebe15cd1e000d8cc4 | refs/heads/master | 2021-07-02T22:07:18.683278 | 2021-06-02T04:09:38 | 2021-06-02T04:09:38 | 239,400,935 | 0 | 1 | MIT | 2021-06-02T04:14:31 | 2020-02-10T01:06:53 | Python | UTF-8 | Python | false | false | 1,166 | py | import unittest
import helper
class UpTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.connection = helper.setup_connection()
cls.cursor = cls.connection.cursor()
@classmethod
def tearDownClass(cls):
cls.cursor.close()
cls.connection.rollback... | [
"noreply@github.com"
] | LoansBot.noreply@github.com |
1f25eaacf5c9ccac5ef060cdcaf3e75712ac30ba | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/tensorflow/_api/v2/compat/v2/nn/__init__.py | 422cec64251f38906def1dec89cf3e9f3c1cb091 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f9f44f6062a76ea4edc6b57e9980c88ed09cd53ee57337d2e7cebd8696fc0e2f
size 6611
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
addd10e6193e7e8522a2c5f729c47c0dba75866f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-5429.py | f003b6f244e54ff69c91f1a5eb2bd1fb0dbdf743 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6a244e5d202b43213040fc14188fe4cf309356c2 | a7b78ab632b77d1ed6b7e1fa46c33eda7a523961 | /src/foreign_if/python/UT/src/eigen/test_049.py | 558da13e6a88495e2835d12cb1b59571e2a9938d | [
"BSD-2-Clause"
] | permissive | frovedis/frovedis | 80b830da4f3374891f3646a2298d71a3f42a1b2d | 875ae298dfa84ee9815f53db5bf7a8b76a379a6f | refs/heads/master | 2023-05-12T20:06:44.165117 | 2023-04-29T08:30:36 | 2023-04-29T08:30:36 | 138,103,263 | 68 | 13 | BSD-2-Clause | 2018-12-20T10:46:53 | 2018-06-21T01:17:51 | C++ | UTF-8 | Python | false | false | 926 | py | #!/usr/bin/env python
import sys
from frovedis.exrpc.server import FrovedisServer
from frovedis.linalg import eigsh
from scipy.sparse import csr_matrix
desc = "Testing eigsh() for csr_matrix and which = 'SM': "
# initializing the Frovedis server
argvs = sys.argv
argc = len(argvs)
if argc < 2:
print ('Please give... | [
"takuy_araki@nec.com"
] | takuy_araki@nec.com |
f3b344d9bd81f498554471e88f34378fee094fa7 | 5a5e0a01efa6ef0961992e53bb4f64840f93150b | /RegressionVisualizer/manage.py | b5db558ef481979ffecd909114ebd0e5bdf372b6 | [] | no_license | scotteskridge/RegressionApp | ed059e3205ab54061129779404345b55c0dee75c | 68932a9c94235a1e8bd6cd71a765b545f2266189 | refs/heads/master | 2021-01-19T20:48:13.495541 | 2017-04-25T02:39:49 | 2017-04-25T02:39:56 | 88,555,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "RegressionVisualizer.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ens... | [
"scott.eskridge@gmail.com"
] | scott.eskridge@gmail.com |
8469347fb48f63964d990558280d45cfb929ffc9 | c237dfae82e07e606ba9385b336af8173d01b251 | /lib/python/ZPublisher/Client.py | dba20da517921245ef45d6e504060b5b852fa055 | [
"ZPL-2.0"
] | permissive | OS2World/APP-SERVER-Zope | 242e0eec294bfb1ac4e6fa715ed423dd2b3ea6ff | dedc799bd7eda913ffc45da43507abe2fa5113be | refs/heads/master | 2020-05-09T18:29:47.818789 | 2014-11-07T01:48:29 | 2014-11-07T01:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,145 | py | #!/bin/sh
""":"
exec python $0 ${1+"$@"}
"""
#"
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL... | [
"martin@os2world.com"
] | martin@os2world.com |
6cc1542064216d2c36184802c5ba5aaf719fec2f | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ALCATEL-IND1-E-SERVICE-MIB.py | 6ac2637b7fc0d24af9f67b9e0d9c926639877700 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 47,663 | py | #
# PySNMP MIB module ALCATEL-IND1-E-SERVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-E-SERVICE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:17:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3475609803c5fec24d9602e8f2f214ff2e1146fa | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/products/migrations/0028_auto_20200119_1557.py | e26102391438dd63340bedc439d85503f7d4b02e | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 521 | py | # Generated by Django 2.2.8 on 2020-01-19 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0027_auto_20191217_0738'),
]
operations = [
migrations.AlterField(
model_name='product',
name='price',
... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
6a31dadc459e9cff086a628b3036733ed01e6692 | d4f28073663e228e8bd119a70d17a8a21fc849c9 | /algorithms/libHIN/dataStructures.py | 4fda0163757175cd407c888d0454542bb85622da | [] | no_license | wsgan001/embedding_graph | fe81fa6cd81265a1b371d5de0dc4889bf7572763 | 93b49015dd2610e4348b2f7e3dc90405bd803c36 | refs/heads/master | 2021-08-27T18:54:47.803771 | 2017-11-23T09:36:05 | 2017-11-23T09:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,748 | py | ## core data structures
import networkx as nx
import numpy as np
import scipy.sparse as sp
from .decomposition import get_calculation_method
class Class:
def __init__(self, lab_id, name, members):
self.name = name
self.id = lab_id
self.index = -1
self.members = members # ids of me... | [
"skrljblaz@gmail.com"
] | skrljblaz@gmail.com |
5ae8895b70d3c766d80a1f22a634ad71a70d012e | ab1d0fcd4900e0a88d49999cbbde4b06cc441e5d | /Labs/Lab 5/lab05_soln/raytracer_main.py | 9cd89a7bb62e8dba71c76dd33c177a47aecd373e | [] | no_license | ThomasMGilman/ETGG1803_ConceptsOf3DGraphicsAndMath | bf261b7ce16bb686e42b1a2600aa97b4f8984b65 | fdf4e216b117769246154cd360b2c321f4581354 | refs/heads/master | 2020-03-29T23:14:05.715926 | 2018-09-26T17:18:25 | 2018-09-26T17:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | import raytracer
import objects3d
import time
import pygame
import math3d
caseNum = 2
# Pygame setup
if caseNum == 1:
win_width = 700; win_height = 150;
elif caseNum == 2:
win_width = 800; win_height = 600;
else:
win_width = 300; win_height = 200;
pygame.display.init()
screen = pygame... | [
"Thomas.Gilman@ymail.com"
] | Thomas.Gilman@ymail.com |
c0c758ec3f45045fd732d1505955fd973d3253de | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc036/D/4119191.py | 5214b136ffa3fbda10cfeb4ddda4f643d5080a9d | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | import sys
stdin = sys.stdin
sys.setrecursionlimit(10**5)
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline(... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
2a6b93697a823699f907bd04a3d16ae2b742d3dd | 8b683dd48ad3021990ca5133ec24a1ab260b687c | /worm_plates/collect/refine_coords.py | c86eb3c3b422cbf802411536855a272433f692d0 | [] | no_license | ver228/worm-eggs | fd4afa13cba12f6553c0e8225fb591d9ea3806f1 | 0b2db08d9d81c3b31d9ebcd593059db02b3ee2fe | refs/heads/master | 2022-04-01T06:29:56.358944 | 2020-02-14T15:55:39 | 2020-02-14T15:55:39 | 240,544,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 1 16:22:37 2019
@author: avelinojaver
"""
from pathlib import Path
import pandas as pd
import tables
import tqdm
import cv2
import numpy as np
from skimage.feature import peak_local_max
from scipy.spatial.distance import cdist
from scipy.optimize... | [
"ver228@gmail.com"
] | ver228@gmail.com |
f58c19c5218fc279438b07e3ca1976d176013a3a | 2868a3f3bca36328b4fcff5cce92f8adeb25b033 | /+100ns/Co_optimized/step1_dc/set.py | 25b40663a2257d720ef9bd0d368b0791db804c94 | [] | no_license | linfranksong/TM-enzyme_input | 1c2a5e12e69c48febd5b5900aa00fe2339d42298 | 6e46a5b2c451efb93761707b77917a98ca0bfedc | refs/heads/master | 2022-03-19T19:49:09.373397 | 2019-12-04T00:11:59 | 2019-12-04T00:11:59 | 205,220,795 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | import os
dir = os.path.dirname(os.path.realpath(__file__)) + '/'
#for a in [150,200,250,300,350,400,450,500,550,600]:
for a in [150]:
#for a in [200,250,300,350,400,450,500,550,600]:
os.system("rm -r %s_dc_repe"%(a))
os.system("cp -r temp/ %s_dc_repe"%(a))
adir=dir+ "%s_dc_repe/"%(a)
os.chdir(adir)
os.syste... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
acd65c46ffa5dd3f4fa612a415887f694e67e27f | 9a6c5607ae6f6305f1427fe5ee37ab8a0aa9b710 | /0 Python Fundamental/25.c.filter.py | bf848a8ad7d8b4c95625bf195a090ed00fc3af2e | [] | no_license | raviitsoft/Python_Fundamental_DataScience | 3796b957751a6d9125452bcf2aa409e64d7c8d8a | 6f99fdd187646f0d28ffd4ddbe3ace4597c47967 | refs/heads/master | 2020-12-22T19:39:46.814043 | 2020-01-28T09:04:55 | 2020-01-28T09:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | ages = [5, 12, 17, 18, 24, 32]
def myFunc(x):
if x < 18:
return False
else:
return True
adults = filter(myFunc, ages)
# print(adults)
# print(list(adults))
#############################
z = filter(lambda a: True if a >= 18 else False, ages)
print(list(z))
z = filter(lambda a: a >= 18, ages)
print(list(... | [
"lintangwisesa@ymail.com"
] | lintangwisesa@ymail.com |
643b2ad8db2c458d77f96dff2374d2efa0c66723 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/api_connexion/schemas/dag_warning_schema.py | 9531eb6b36bc3833a39d24bcef895f01444f9bb6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 1,705 | 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... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
bf1e15e32502c294cb2398b0ca3de70499a04222 | 8b5d58fc22888d2fb051a3c59936659ca347043a | /NtupleAnalysis/src/Hplus2tbAnalysis/work/plotting/plotHistograms.py | 35ff6c7ca74f8f56b0ceca013609826b3d9da715 | [] | no_license | attikis/HplusHW | c54f4429dd48e99b7e597043fa6d442d7a3573ba | e62ce79c914c6b5bfd1faa44ff94356fb55fe561 | refs/heads/master | 2020-06-15T22:00:43.733407 | 2019-07-05T10:30:07 | 2019-07-05T10:30:07 | 195,402,507 | 1 | 0 | null | 2019-07-05T12:02:22 | 2019-07-05T12:02:22 | null | UTF-8 | Python | false | false | 9,600 | py | #!/usr/bin/env python
'''
Usage (single plot):
./plotHistograms.py -m <pseudo_mcrab_directory> <jsonfile>
Usage (multiple plots):
./plotHistograms.py -m <pseudo_mcrab_directory> json/AfterAllSelections/*.json
or
./plotHistograms.py -m <pseudo_mcrab_directory> json/AfterAllSelections/*.json json/AfterStandardSelection... | [
"attikis@cern.ch"
] | attikis@cern.ch |
731c66717f6fccb33365c99d8aac3d158051db66 | d954e2f74d1186c8e35be8ea579656513d8d3b98 | /rllib/algorithms/algorithm.py | 9900c03202990821f5dfb9100ad1ead2f61353ee | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vakker/ray | a865de214e60f9e62d61c03ae7ce55ad6030f84c | de238dd626a48a16c8b3cd006f3482db75f63a83 | refs/heads/master | 2023-01-23T22:30:44.839942 | 2022-10-23T01:05:48 | 2022-10-23T01:05:48 | 171,845,804 | 0 | 1 | Apache-2.0 | 2023-01-14T08:01:04 | 2019-02-21T09:54:36 | Python | UTF-8 | Python | false | false | 140,996 | py | from collections import defaultdict
import concurrent
import copy
from datetime import datetime
import functools
import gym
import importlib
import json
import logging
import math
import numpy as np
import os
from packaging import version
import pkg_resources
import tempfile
import time
from typing import (
Callabl... | [
"noreply@github.com"
] | vakker.noreply@github.com |
162eb2ee34fdecebf7be87ac009e79c0a715e25f | 77077a391973d1f8c05647d08fc135facd04fc5e | /xlsxwriter/test/app/test_app02.py | fa347d734560186995daf0fad3e57c79c5129178 | [
"BSD-2-Clause-Views"
] | permissive | DeltaEpsilon7787/XlsxWriter | 28fb1012eaa42ea0f82e063f28c0c548ca016c5e | 550b9c5bd678c861dcc9f6f4072b33a69566e065 | refs/heads/main | 2023-08-02T09:14:10.657395 | 2021-09-06T10:51:56 | 2021-09-06T10:51:56 | 384,948,081 | 0 | 0 | NOASSERTION | 2021-07-11T12:57:26 | 2021-07-11T12:57:25 | null | UTF-8 | Python | false | false | 2,234 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ..helperfunctions import _xml_to_list
from ...app import App
class TestAssembleApp(unittest.TestCase... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
884954af9fd64a0f3d0508d1272327e2ed3bedf5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03013/s813541273.py | bdbeb4a2fbfb0352ad56b6b9937305511b1f8a7c | [] | 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 | 379 | py | N, M = map(int, input().split(' '))
broken_list = []
if M > 0:
for i in range(M):
broken_list.append(int(input()))
broken_set =set(broken_list)
nums = [0] * (N + 1)
nums[0] = 1
if 1 not in broken_set:
nums[1] = 1
for i in range(2, N + 1):
nums[i] = nums[i - 1] + nums[i - 2]
if i in b... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
276a93f98115025f9db6a4c5e6df42b82e9feccc | db274b14aa63f4cf40b1e496ffeef918d8654f69 | /manage.py | d6262ef4e1dd3c3abaf89b085aa2ffe2f3d672f2 | [] | no_license | mahmudgithub/demo_pactics_project_seven | 02f98d8373dfa3e9b5d8e06d2e5f01a030d48291 | 4a8aa330a6abfb5e12916c368bd849190788127a | refs/heads/master | 2022-03-28T11:58:34.185598 | 2020-01-29T06:35:22 | 2020-01-29T06:35:22 | 236,919,480 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project_g.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"mahmudhossain838@gmail.com"
] | mahmudhossain838@gmail.com |
4159cf0257ad3d20a29b9c1d3308026f6be5c1cf | 1925c535d439d2d47e27ace779f08be0b2a75750 | /leetcode/best_time_to_buy_and_sell_stock_4.py | 1d58d8730fa45eba6ecf813ee448ef105a05236d | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | # Say you have an array for which the ith element is the price of a given stock on day i.
# Design an algorithm to find the maximum profit. You may complete at most k transactions.
# Note:
# You may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again).
# Example 1:
... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
7d721c03caa26629e29120c9c88caf4b817914fe | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/codeInsight/smartEnter/colonAfterFinalCaseClauseWithPrecedingIncompleteCaseClause.py | ff245238744da24b5bebf8391bf5e8c4d1ab488c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 83 | py | match x:
case 1:
pass
case
case 3:
pass
case<caret> | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
f2af3503bf7206c6d28a8f29b727061a682f9706 | 3bafaed1d12e4e1fb221a11998a7b9a858b04644 | /App/migrations/0013_auto_20201230_1553.py | fb1ff2ce8bdd568a36fb4d395ecb6cc782160ba0 | [] | no_license | nian-20/AtroBOM | 8c96e9247292b5f4a3a4f22b7d93a8749f7ed80c | 0370636238e722489b3fddc3a65d4e9ceb7cbfb0 | refs/heads/master | 2023-08-15T09:13:10.042024 | 2021-09-30T19:12:03 | 2021-09-30T19:12:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 3.1.4 on 2020-12-30 12:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0012_auto_20201230_1544'),
]
operations = [
migrations.AlterField(
model_name='rate',
name='rate',
... | [
"nimadorostkar97@gmail.com"
] | nimadorostkar97@gmail.com |
50a143d4fe47cc7b13e7ca802246ee09743ff7a8 | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/event/dd/acceptcriteria/and_.py | 255229b61f9d197892bc0c331d353dba4488b0e7 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | # @MUNTJAC_COPYRIGHT@
# @MUNTJAC_LICENSE@
"""A compound criterion that accepts the drag if all of its criteria
accepts the drag."""
from muntjac.event.dd.acceptcriteria.client_side_criterion import \
ClientSideCriterion
class And(ClientSideCriterion):
"""A compound criterion that accepts the drag if all of ... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
73a3cec53ce6d0265522dccd62a747fdbcca6834 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/157/D.py | b0ded2ec31985f6eebca56e6df87d7327321da26 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 2,140 | py | import sys
sys.setrecursionlimit(10 ** 6)
# from decorator import stop_watch
#
#
# @stop_watch
def solve(N, M, K, ABs, CDs):
friend_map = [[] for _ in range(N + 1)]
for a, b in ABs:
friend_map[a].append(b)
friend_map[b].append(a)
block_map = [[] for _ in range(N + 1)]
for c, d in CDs:
... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
6aa7e3d975d5bf066350200717a911882e17e7eb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02572/s151845218.py | 31aa5234e9d20d7b4ae01fd2cf130eac5d0d9908 | [] | 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 | 434 | py | N = int(input()) #入力する整数
A = list(map(int,input().split())) #入力する数列A
SUMA = sum(A) #数列の和
MOD = 10**9 + 7 # mod
C = [0] * (N-1) #累積和数列
for i in range(N-1): #\sum_{j = i+1}^{N}を求めて数列に代入する
SUMA -= A[i]
C[i] = SUMA
ans = 0 #求める答え
for i in range(N-1):
ans += A[i]*C[i]
ans %= MOD #その都度modで割った余りにする
print(ans) #答えを出力する | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0225bd6623519534724f02704f9d1bdca8fa82b6 | 210af68aec4713e8cbe8dc988d509090815e6ff4 | /0x04-python-more_data_structures/9-multiply_by_2.py | adcaf10fe0fc6a3ad8467a5cb752a4816fcc9910 | [] | no_license | mahdibz97/holbertonschool-higher_level_programming | 8e383d474438ba563311f829a763ce8733931c1a | 7184a1eadcaf76f33135c00effe4390b1c227cbd | refs/heads/master | 2022-12-19T12:29:44.678292 | 2020-09-25T07:56:44 | 2020-09-25T07:56:44 | 259,281,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/python3
def multiply_by_2(a_dictionary):
new = {}
for i in a_dictionary.keys():
new[i] = (a_dictionary[i] * 2)
return new
| [
"ben.zouitina.mahdi97@gmail.com"
] | ben.zouitina.mahdi97@gmail.com |
b67f2769bfefa0625cc6527943ef1b7faf9c0f9a | ff1fe0e31e863ab69e2434b574115fed782d76ad | /set.py | e37f9c7d1e8de9534208c0ced057cebe0e3f014c | [] | no_license | tasnuvaleeya/python_programming | cd7200e0dc0c4ec6bd23c4f9360fc251a7c4a516 | 45a577634e53a1c4cab927eb770cde01a00571ce | refs/heads/master | 2021-04-12T02:47:46.011445 | 2018-03-17T14:54:09 | 2018-03-17T14:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | groceries = {'cereal', 'milk','rice', 'beer', 'beer'}
if 'milk' in groceries:
print('you already have milk')
else:
print('oh yes u need milk')
| [
"tasnuva2606@gmail.com"
] | tasnuva2606@gmail.com |
9f46f7e89e19b7e65cfb7e37c5e03e9be0b2d4fe | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/speech-text-file/gTTS/build/lib/gtts/tokenizer/symbols.py | 3d40893c51295eda1b689b6f438f7089a38dc848 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a7c43c0c9dfa06ad8af4ec38d5a26b50deffacc6f2b881170eb8a37576f6d970
size 278
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
79c19d888d893e972115162a390efd937500f92b | 90f39575e1164e928359dd9afb602999bf68a71c | /valuenode.py | b747c749b403c752a05962ee9c650c90a253b6e9 | [] | no_license | sachinjose/Programming_Language | bcf4cbaa147f236b29be4b97936d3540b6e399fe | 1d5749e7339a95b25ce37a93987b447e7e46e85c | refs/heads/main | 2023-06-01T23:56:39.824175 | 2021-06-17T04:39:55 | 2021-06-17T04:39:55 | 374,157,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,381 | py | from strings_with_arrows import *
import string
import os
import math
import constants
from error import *
from position import *
from lexer import *
from nodes import *
from rtresult import *
########################################################
## Value
########################################################
##... | [
"sachinjose16@gmail.com"
] | sachinjose16@gmail.com |
4b063dac8fbb9c047f40f60e35b317e14d6ab716 | ba2f34ff8a7b2c36ae88a2f02ca495ad084bb6ab | /Cryptanalysis/break_autokey.py | aecc051205c004e9a18d31b229c6ec47d72a3899 | [
"MIT"
] | permissive | BlackLuny/cyberweapons | bc05e07cdc67f58c9cf68178762eb541c8c0cc55 | dfd4623f323ba702bae7c9f71132b4584636d2e5 | refs/heads/master | 2021-05-16T07:28:35.651835 | 2017-09-16T21:04:50 | 2017-09-16T21:04:50 | 103,801,285 | 1 | 0 | null | 2017-09-17T03:50:18 | 2017-09-17T03:50:18 | null | UTF-8 | Python | false | false | 2,037 | py | from ngram_score import ngram_score
from pycipher import Autokey
import re
from itertools import permutations
qgram = ngram_score('quadgrams.txt')
trigram = ngram_score('trigrams.txt')
ctext = 'isjiqymdebvuzrvwhmvysibugzhyinmiyeiklcvioimbninyksmmnjmgalvimlhspjxmgfiraqlhjcpvolqmnyynhpdetoxemgnoxl'
ctext = re.sub(r'[^A-... | [
"suhubdyd@iro.umontreal.ca"
] | suhubdyd@iro.umontreal.ca |
bff7768f9a5f3a84f3142fcac45842c549f8bd13 | d5b60325d88d59bb3c6cde58036514921abfd6e9 | /DjangoChat/DjangoChat/wsgi.py | c2d57315e9c4b78413c290b4da11fa09adacfd85 | [] | no_license | dagrishin/DjangoChat | 472044874bbd1a91efe5a7e6611af02aa485acd1 | d800fff81ac3632752e3486a90c062dde4b18780 | refs/heads/master | 2022-12-22T06:56:57.676392 | 2020-09-29T07:14:50 | 2020-09-29T07:14:50 | 299,532,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for DjangoChat project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"grishin-dim@yandex.ru"
] | grishin-dim@yandex.ru |
7cc166e065fe935c41d23495250403d7dcdf2d32 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /pytorch/source/caffe2/python/workspace_test.py | 93bcb115e685bccfd0f46ea8cc663fdb6cd3d849 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 26,342 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import os
import unittest
from caffe2.proto import caffe2_pb2
from caffe2.python import core, test_util, workspace, model_helper, brew
import caffe2.... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
10ea87ac6afba40de0a3d96e81db5dc69ef6df3d | 7c3ad63b17b868672ff14e798bb965109c10d403 | /src/kNN_single.py | 6b257b9b63560794a04b98462bedff7409e85679 | [] | no_license | ternaus/kaggle_liberty | 87cc6e5259e1ea4ce69726a83e4e642db85d8e22 | 5eb17b6bf1f6f6f6f4f6eab880592547ad41007d | refs/heads/master | 2016-09-11T02:13:22.121760 | 2015-08-26T22:23:47 | 2015-08-26T22:23:47 | 39,865,075 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from __future__ import division
__author__ = 'Vladimir Iglovikov'
from operator import itemgetter
from sklearn import metrics
from gini_normalized import normalized_gini
import numpy as np
import pandas as pd
from sklearn.grid_search import GridSearchCV
from sklearn.neighbors import KNeighborsRegressor
from sklearn.pr... | [
"iglovikov@gmail.com"
] | iglovikov@gmail.com |
01a1ef6dc25aacb7b99e3bb2d2e912e04233c3cc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_outgoes.py | 710d7af255478e9b9f5ce4bf9bc34b044eb81186 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
#calss header
class _OUTGOES():
def __init__(self,):
self.name = "OUTGOES"
self.definitions = outgo
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['outgo']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5a6960680cae86c401d945eb77b50e792096b7ac | 464850ba426263b17084fc71363ca14b8278b15e | /80.py | c539164e19aa8d461121a1829efe084c3408f060 | [] | no_license | eng-arvind/python | 8442c30ec10f979f913b354458b4f910539d8728 | 249f5f35f245a3f1742b10310de37ca6c6023af2 | refs/heads/master | 2020-12-23T06:40:16.911269 | 2020-02-02T18:42:01 | 2020-02-02T18:42:01 | 237,069,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | n = 7
for i in range(n):
for j in range(n):
if i + j == n//2 or i - j == n//2 or i + j == (n//2)*3 or j - i == n//2:
print("*", end="")
else:
print(end=" ")
print()
| [
"noreply@github.com"
] | eng-arvind.noreply@github.com |
fb3b2fd6f3497e8dd1ded9a6c54a330aac22db31 | 3fa1b23746232975b3b014db2f525007a3b49991 | /anna_code/demographics/rct_consented/subset_values_to_randomized_people.py | a4791706554ee798896de773f5da39c3e0e96e89 | [] | no_license | AshleyLab/myheartcounts | ba879e10abbde085b5c9550f0c13ab3f730d7d03 | 0f80492f7d3fc53d25bdb2c69f14961326450edf | refs/heads/master | 2021-06-17T05:41:58.405061 | 2021-02-28T05:33:08 | 2021-02-28T05:33:08 | 32,551,526 | 7 | 1 | null | 2020-08-17T22:37:43 | 2015-03-19T23:25:01 | OpenEdge ABL | UTF-8 | Python | false | false | 325 | py | import pandas as pd
import sys
import pdb
data=pd.read_csv(sys.argv[1],header=None,sep='\t')
subjects=pd.read_csv('subjects.txt',header=None)
subset=data[data[0].isin(subjects[0])]
#nums=pd.to_numeric(subset[1],errors='coerce')
#mean_val=nums.mean()
#print(mean_val)
#std_val=nums.std()
#print(std_val)
pdb.set_trac... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
63d46a52a9c3929779b4d498745424b1505a9754 | 17f29e8f3eab9deb724b10bc7e61c73f1fca21c6 | /backend/home/migrations/0004_auto_20200320_0813.py | 8596cdb6cafc9245c067cfa29396a8d0c4ff6f09 | [] | no_license | crowdbotics-apps/mobilemobapp-dev-2035 | 91df345e8f6e42760c4156a7dd73a6d8b17250e0 | 041b1c20c4a14b4595fbcca943cdf46dec445497 | refs/heads/master | 2022-04-12T06:06:17.910111 | 2020-03-20T08:13:11 | 2020-03-20T08:13:11 | 248,153,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | # Generated by Django 2.2.11 on 2020-03-20 08:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0003_customtext_test'),
]
operations = [
migrations.CreateModel(
name='Test',
fields=[
('id... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
53ff44496cb0984d03f5da6f7271f4c8652cc91d | 14561adc9918f32b7f9334fa4dde08a3bfa17c26 | /pipeline/Bacteria_denovo/Bacteria_denovo.pipeline.py | d4951738835c6a9781c9201f9ea8cd6c6fcab482 | [] | no_license | ZhikunWu/awesome-metagenomic | b932169f505d39864a91067283ad7ce954280923 | 71183f262aa539a3983af4de47f7cc69be8cf7a6 | refs/heads/master | 2021-10-08T00:00:00.181593 | 2018-12-06T02:07:42 | 2018-12-06T02:07:42 | 111,966,593 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | #!/usr/bin/env python
import yaml
import os
import sys
IN_PATH = config["IN_PATH"]
PIPE_DIR = config["PIPE_DIR"]
THREADS = config["THREADS"]
ThreadFold = config["ThreadFold"]
SAMPLES = config["SAMPLES"]
PROJECTS = config["PROJECTS"]
include: PIPE_DIR + "/Nano_QualityControl.rule.py"
include: PIPE_DIR... | [
"598466208@qq.com"
] | 598466208@qq.com |
fa959aa6f4a922c56b0970dcb74658e61c42d1f2 | 4ef98e50c40dc9f79ac9e422a208427f034f804d | /maps/models.py | 1e2a9a1d04f3ff48376a6325fbc92a1d1d52468a | [] | no_license | couleurmate/DeweyMaps | 5bd4eef11d429a7f252b8fb3141a7a47697154b4 | 063e9e7e412d57d2fdaf976728aaff66eb5fd38a | refs/heads/master | 2021-01-17T04:51:22.226762 | 2015-07-05T10:38:57 | 2015-07-05T10:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | from django.contrib.gis.db import models
from closet.models import Subcategory
class Marker(models.Model):
name = models.CharField(blank=False, max_length=255)
position = models.PointField(geography=True, blank=False)
comment = models.TextField(blank=True, null=False, default="")
subcategories = mode... | [
"nikita.marchant@gmail.com"
] | nikita.marchant@gmail.com |
1093b9c3c57519cf4dc597bf6df497b6e31fe0fe | e15f86312db3109bbda053063557693518af4ead | /pcsk9/select_fam.py | 35318362eec5e7e8604254ceeeedd5879854dcdc | [] | no_license | heichiyidui/dev | 3aecf0f92e4af4184b4eae2b1935f281b7746c86 | 73c20c19928eb94d9aec10f0d307604b147b8088 | refs/heads/master | 2020-12-29T01:54:24.236229 | 2016-07-01T14:51:01 | 2016-07-01T14:51:01 | 35,271,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/env python3
# tail -n +2 plink.genome | awk '{print $2,$4}' > t.in
edges = []
ifile =open('t.in')
for line in ifile:
cols = line[:-1].split()
edges.append([cols[0],cols[1]])
ifile.close()
import collections
node_dgres = collections.Counter()
nodes_1 = [x[0] for x in edges]
nodes_2 = [x[1] for x in... | [
"kuanggong@gmail.com"
] | kuanggong@gmail.com |
fd038588e1514db2ce8a3b98d9a04bf9c08b8692 | 9c3c83007c5bf0f36635b0045b2aad7f8a11ac11 | /novice/04-05/graphql/venv/lib/python3.6/site-packages/graphql/utils/value_from_ast.py | 7ad52bca43bf423c08c5f077dd51404ba8164137 | [
"MIT"
] | permissive | septiannurtrir/praxis-academy | bc58f9484db36b36c202bf90fdfd359482b72770 | 1ef7f959c372ae991d74ccd373123142c2fbc542 | refs/heads/master | 2021-06-21T17:04:58.379408 | 2019-09-13T16:46:08 | 2019-09-13T16:46:08 | 203,007,994 | 1 | 0 | MIT | 2021-03-20T01:43:24 | 2019-08-18T13:38:23 | Python | UTF-8 | Python | false | false | 2,920 | py | from ..language import ast
from ..type import (
GraphQLEnumType,
GraphQLInputObjectType,
GraphQLList,
GraphQLNonNull,
GraphQLScalarType,
)
# Necessary for static type checking
if False: # flake8: noqa
from ..language.ast import Node
from ..type.definition import GraphQLType
from typing... | [
"septiannurtrir@gmail.com"
] | septiannurtrir@gmail.com |
7e5dbb102fab53228104ce9a43c6407ab1972c45 | 50989266203628be7649d152392f4a1789997b90 | /lisp.py | 9c96a7942a34631c24cce5c62058308aa3242b27 | [] | no_license | cheery/snakelisp | b2820819959be4ed0b62a60c511b15623ae5589e | c62c0401e7d8cbd63afb8a7242850f7740420614 | refs/heads/master | 2020-05-15T08:53:26.443191 | 2014-09-16T15:55:43 | 2014-09-16T15:55:43 | 23,539,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,257 | py | #!/usr/bin/env python
from pythonboot.blip import ListNode, TextNode, MarkNode, isList, isText, isMark, open_list
import json
import transpiler
from cps import Call, Lambda, Assign, Variable, Constant, Environ, null, true, false
import subprocess
import sys
import re
# call = Call([arguments]), call[i]
# lambda = Lamb... | [
"cheery@boxbase.org"
] | cheery@boxbase.org |
992f8823515ccee3a140f890755137552e8928d4 | 438ee853669a67cd46537f6d02cf356d05e03681 | /doctor_dashboard/urls.py | 47694bb78b753fc56cdb14fe68d5c7380a309fe8 | [] | no_license | tngeene/doc_appointment | a6648bed5c3d1d27e25131945910c5c425468fa1 | 6d1f320db03ad9fcc42b09e19a0d0a73e5af233a | refs/heads/master | 2023-02-22T05:37:36.510685 | 2021-01-19T11:46:01 | 2021-01-19T11:46:01 | 324,834,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.urls import path, include
app_name = "doctor_dashboard"
urlpatterns = [
path('', include('doctor_dashboard.routes.index')),
path('appointments/', include('doctor_dashboard.routes.appointments')),
# path('doctors/', include('doctor_dashboard.routes.doctors')),
# path('patients/', include('d... | [
"tngeene27@gmail.com"
] | tngeene27@gmail.com |
d29ecd2dab536aba7307bb95697055dbc30cf2aa | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_3377.py | 561d811f19c812512cfb3db4c9e030dcd1210575 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
fc0bbcd096df9fe751b943cfd1fd20e466ee4baf | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Poppler/PageLayout.py | 605c3665f4dee50e741e5800be5b7e77e834cdc8 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 13,686 | py | # encoding: utf-8
# module gi.repository.Poppler
# from /usr/lib64/girepository-1.0/Poppler-0.18.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
82f573ab57442baca38130076f8b17ddd1163034 | a665f561b103a51404785f35d0026c60f0083cb4 | /0x05-python-exceptions/101-safe_function.py | 38683ee508361b035c621dad79ea63525fad197f | [] | no_license | Joshua-Enrico/holbertonschool-higher_level_programming | c5f3c9ab55167ea2e7ea3b31dd8edf2e22a18bde | 8c1559f9c772b60186e899e17c67d299f88de726 | refs/heads/main | 2023-07-31T17:45:16.723947 | 2021-09-23T00:29:25 | 2021-09-23T00:29:25 | 361,960,411 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #!/usr/bin/python3
def safe_function(fct, *args):
try:
div = fct(*args)
return div
except Exception as error:
import sys
print("Exception: {}".format(error), file=sys.stderr)
return None
| [
"tmrfack@gmail.com"
] | tmrfack@gmail.com |
d4c44550df6570a3c03d89d628513a25c2868572 | 0ae589f33fbf37a6af830dd7494cc576f267f202 | /scenario/settings.py | ea8db96a3b7c5d412a773b2d60a74cbfa2abfd55 | [] | no_license | vamsi9477/sosioHosting | 85be712762738604625a13569f85aa986c31d5b0 | 42dbe2171a32b4cf40d202f16d89c49db9b3c10e | refs/heads/master | 2020-04-05T01:09:02.486917 | 2018-11-06T18:03:07 | 2018-11-06T18:03:07 | 156,425,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | """
Django settings for scenario project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"vamsikrishna6668@gmail.com"
] | vamsikrishna6668@gmail.com |
eeedc6e06be66be4ba83b0914b71cabc517a8dc2 | ad010f3ecdaa260b2d8732b8b784d58b3c812b9e | /spider_admin_pro/config/yaml_config.py | a43dc91138192f1c70a92ea9429b25cabd30f721 | [] | no_license | laashub-soa/spider-admin-pro | 52261816015afa672176423f38d0206f9bbafa15 | 5faefebd25ad6a163a6a7d18076dc10adba7d970 | refs/heads/master | 2023-08-14T01:24:15.659796 | 2021-09-27T04:15:52 | 2021-09-27T04:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | # -*- coding: utf-8 -*-
#################################
# 读取用户自定义变量
#################################
import os
import yaml
from spider_admin_pro.config import env_config
from spider_admin_pro.logger import logger
config_file = os.path.join(os.getcwd(), 'config.yml')
logger.info('config_file: %s', config_file)
... | [
"1940607002@qq.com"
] | 1940607002@qq.com |
096bc1c7152955fc7efee92dc96b6923843848ec | ee41311a11a1c6baedafd9a914d5a1f8330fe8a9 | /SANEF_LIVE/venv/Lib/site-packages/anaconda_navigator/widgets/tabs/tests/test_environments_tab.py | 2e4d36bd2647c721b4161cbc2957d1664db066a3 | [] | no_license | sethnanati/CodeRepoPython | 2dffb7263620bd905bf694f348485d894a9513db | b55e66611d19b35e9926d1b1387320cf48e177c8 | refs/heads/master | 2023-07-07T11:16:12.958401 | 2021-02-13T10:09:48 | 2021-02-13T10:09:48 | 376,531,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,911 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2016-2017 Anaconda, Inc.
#
# May be copied and distributed freely only as part of an Anaconda or
# Miniconda installation.
# ---------------------------------------------------------------------... | [
"adeyemiadenuga@gmail.com"
] | adeyemiadenuga@gmail.com |
2ab57e0a422988c3ab9c0a083d6d0b87670ebc16 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_116/ch117_2020_03_23_21_27_19_174351.py | cc5e23b34f33ab76256d64d25a4ac3b24699c59a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from math import sin
def snell_descartes(n1,n2,θ1):
sin(θ2)=n1*(sin(θ1))/n2
return θ2
| [
"you@example.com"
] | you@example.com |
013f62d1095057fe79083d89f83110ecb8c70f3f | dc99d95671170444cd7bf02e37da6ecda4a5f19e | /apps/courses/views.py | 744bef09fd1699bd93842b7c1d3d4a04ab7d3ca9 | [] | no_license | bbright3493/python_real_war | 734d49ed9f7e1800d24dc754424a07b69d7d8c1f | 6e43bb7d814920222f3310bd6fd9f04cb3d5bbf1 | refs/heads/master | 2020-03-30T06:08:40.249185 | 2018-10-22T07:33:41 | 2018-10-22T07:33:41 | 150,841,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,305 | py | # -*- coding: utf-8 -*-
import json
from django.shortcuts import render, HttpResponse
from django.views.generic.base import View
from pure_pagination import Paginator, EmptyPage, PageNotAnInteger
from utils.mixin_utils import LoginRequiredMixin
from .models import Course, Lesson, ChoiceQuestion, Video, ProgramQuesti... | [
"44704708@qq.com"
] | 44704708@qq.com |
382ec61b5d92e38174ded2840080940b3653dd40 | d72505a7961bf7f96094a6c7013f3c794495044b | /client.py | 4856fbb4f78c0f80314f35362b41858153512a26 | [] | no_license | 520hacker/websocket-connetions-benchmark | fa6ce757ec9cd68c5bcd60a5421700af6ae4814b | af609d775742cfeca5714133cddea32c8b0c51c0 | refs/heads/master | 2020-06-05T19:20:43.277616 | 2019-02-13T08:08:55 | 2019-02-13T08:08:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# debug in python 3.6
#__author__ == 'ipcpu'
import websocket
import time
import threading
import json
import multiprocessing
from threadpool import ThreadPool, makeRequests
#修改成自己的websocket地址
WS_URL = "ws://10.140.12.45:8888/"
#定义进程数
processes=5
#定义线程数(每个文件可能限制1024个,可以修改f... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.