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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7674a5d7a0a50b1ed02e4f7081b7aa283efe3521 | 17318ced0568a79002fac9f2c9a393a7ad1b56d6 | /pettingzoo/atari/mario_bros_v0.py | 1bfa72b744a83d2130082fee9803a77a9856cca7 | [
"MIT",
"Apache-2.0"
] | permissive | KonstantinKlepikov/PettingZoo | 16aaac48b20e5e266c7485c41026281fbaad8046 | 34c4d38e8fbc1cd6ecbebe58176e6d39ba1645de | refs/heads/master | 2022-11-30T04:41:33.616944 | 2020-08-12T17:24:47 | 2020-08-12T17:24:47 | 287,140,769 | 1 | 0 | NOASSERTION | 2020-08-13T00:09:46 | 2020-08-13T00:09:45 | null | UTF-8 | Python | false | false | 207 | py | from .base_atari_env import BaseAtariEnv, base_env_wrapper_fn
def raw_env(**kwargs):
return BaseAtariEnv(game="mario_bros", num_players=2, mode_num=None, **kwargs)
env = base_env_wrapper_fn(raw_env)
| [
"weepingwillowben@gmail.com"
] | weepingwillowben@gmail.com |
c99d3d4e9968aafc8927abe6b162e684ab08d1ec | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/qichamao_cmpInfo_20210202184219.py | d2a7a023d6f7ea7f4089aee5de3eb2b024004efc | [] | 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 | 4,657 | py | import requests
from bs4 import BeautifulSoup
import time
import csv
import pandas as pd
import numpy as np
# login = {'user':'13710149700',
# 'password':'123456'}
# 使用的网站是企查查
# requests.post('https://www.qichamao.com',data=login,headers=afterLogin_headers)
afterLogin_headers = {'Cookie':'qznewsite.uid=y4es... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
549fae78ab7110ecc1100b2f8f1c8fda64aabbd3 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations/_subnets_operations.py | 67708769b5a9812253df744d077cc9fa9d013a68 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 35,448 | 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 may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
b9d92221b6d4728bcf54c137bdb1c17797b62bc4 | f94b8b3202c3e6d8f5e0ba42bb36d6bf4c6be681 | /ur10_moveit_ws/build/ur_msgs/catkin_generated/generate_cached_setup.py | 3ac91e843eb97abd94b5da6a43ab3ea2eb237c46 | [] | no_license | mrinmoysarkar/ariac_competition | 7a478967373db39b336a42c38ffc32956d15fa71 | c4feb36a2b67b5c667a80f3fe6b4b1a017f62f02 | refs/heads/master | 2020-06-14T11:09:17.830409 | 2016-12-09T11:38:30 | 2016-12-09T11:38:30 | 75,191,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"mrinmoy.pol@gmail.com"
] | mrinmoy.pol@gmail.com |
93073cca9b6f84e1589ef44d581c137f5a10f43d | 8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f | /0001_0599/228.py | 4d8423a6d6ce45661da51982f1d59fffc7061277 | [] | no_license | renjieliu/leetcode | e1caf13c18a8107ed9252588b339fb76bcb1b246 | 4668b64fcb9320b6c316d8608fc61911ce43b6c7 | refs/heads/master | 2023-03-18T18:16:06.187741 | 2023-03-14T20:31:59 | 2023-03-14T20:31:59 | 128,823,819 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | class Solution:
def summaryRanges(self, nums: 'List[int]') -> 'List[str]':
if nums == []:
return []
output = []
start = nums[0]
end = nums[0]
for i in range(1, len(nums)): # each number, compare with the previous. If it's not prev+1, add previous segment
... | [
"anlrj@qq.com"
] | anlrj@qq.com |
0aec5173f63528b48692f278fc0dbae1c08e7cfe | 30b97efb2f36f81aa684d16d19e0e2db17f2967d | /Prgrammers/lv2/쿼드압축 후 개수 세기.py | 6380574700732c14239b3eb339d678bfe722a5f0 | [] | no_license | jmseb3/bakjoon | 0a784a74c6476ef51864e2ada9d2551c7c7979eb | a38db54e851372059b0e45add92e43e556835e62 | refs/heads/main | 2023-08-25T08:43:04.579785 | 2021-10-01T08:40:37 | 2021-10-01T08:40:37 | 362,287,450 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | def solution(arr):
def quad_tree(x,y,n):
check = False
ck = arr[x][y]
for i in range(x,x+n):
for j in range(y,y+n):
if arr[i][j] != ck:
check = True
break
if check:
k=n//2
quad_tree(x... | [
"jmseb3@naver.com"
] | jmseb3@naver.com |
d6248861ba5a432a3344522c5f2a9be2a7f76428 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_addressed.py | aed4f569188cfae3b06afa50cc244f7802b035d3 | [
"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 | 247 | py |
from xai.brain.wordbase.verbs._address import _ADDRESS
#calss header
class _ADDRESSED(_ADDRESS, ):
def __init__(self,):
_ADDRESS.__init__(self)
self.name = "ADDRESSED"
self.specie = 'verbs'
self.basic = "address"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6202e1998890ed6ddfe7831301a0e92aad29b6d8 | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /deriva-annotations/catalog1/catalog-configs/Vocab/chem_comp_type_term.py | 0d217d2848e01d82437f337fefd80fd07574d74b | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 6,045 | py | import argparse
from deriva.core import ErmrestCatalog, AttrDict, get_credential, DerivaPathError
from deriva.utils.catalog.components.deriva_model import DerivaCatalog
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import... | [
"brinda.vallat@rcsb.org"
] | brinda.vallat@rcsb.org |
7db93f16828f66528bae473c68edf11b0b11e5ea | e2cd4f444b18adca671ae2ac8856594b22c6d2ae | /arc/models/reg_mod.py | 94baada83c2914f232fbf7dce26c729334d68c5a | [] | no_license | anshumanairy/Sprint-Management | 36c54c03b66a0d02071a337e8217144a0b0c9578 | 0c4e8fe87ec4099253d894b7876f0b5b914a2652 | refs/heads/master | 2022-12-28T02:46:25.847713 | 2020-10-02T10:02:13 | 2020-10-02T10:02:13 | 195,804,893 | 0 | 0 | null | 2020-10-02T10:02:14 | 2019-07-08T12:11:27 | CSS | UTF-8 | Python | false | false | 1,459 | py | from django.db import models
class user_sprint_detail(models.Model):
uname = models.CharField(max_length=150)
name = models.CharField(max_length=20)
sprint_id = models.IntegerField()
roles = models.CharField(max_length=4)
html = models.BooleanField(default=False)
php = models.BooleanField(defa... | [
"anshuman.airy04@gmail.com"
] | anshuman.airy04@gmail.com |
203096148783fea7c61cf1e7ead72f12c0d78fc3 | a7a570a1e45e7a9a64e5ba92ced425b83efea372 | /tests/test_centos7_shared/verify_client.d/test_consul.py | 35958720f3718b4c95120869e2cdb45a2f70d0bb | [] | no_license | exphost/exphost.consul | caf3b1cef53c46178b37ac7e77a6ee2198c3514e | 62496f41d9f55224aba938f61f3935aba3b12664 | refs/heads/master | 2023-02-04T15:06:14.777399 | 2021-06-20T08:42:33 | 2021-06-20T08:43:16 | 215,569,039 | 0 | 0 | null | 2023-01-24T23:15:25 | 2019-10-16T14:29:45 | Shell | UTF-8 | Python | false | false | 150 | py | def test_consul_members(host):
assert host.check_output("consul members -http-addr=http://127.0.0.1:4440 list|grep 'alive.*client'|wc -l") == "2"
| [
"torgiren@gmail.com"
] | torgiren@gmail.com |
a228df0e36dec173a27f487b59bf1f9f09ebe607 | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/common/test_run/xlogy_grad_run.py | ae28ff0121c369251a8201432452aee38d41f3bf | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 2,708 | 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... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
c8ee088312afebbf087d3c0a0dcf9891a62eff46 | 4a52187b9bf77a767d6017aaa20269a9101b4e41 | /Reposicion Gerardo Becerra/9 Nov/Rep3.py | 336ce5d27134ff57ca28d551ecfc3d64adf3440e | [] | no_license | emilianoNM/Tecnicas3-2 | b755d0ecbea43e927f8b2fa00160b7b4c5f1a849 | 3f9d9ba931c729a31d23520cad5ee894b469e698 | refs/heads/master | 2020-03-28T21:07:26.443447 | 2018-11-26T04:37:11 | 2018-11-26T04:37:11 | 149,130,371 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 135 | py |
# coding: utf-8
# In[ ]:
#Gerardo Becerra
n = 1
h = ''
while n <= 99:
if n%2 == 0:
h += ' %i' % n
n += 1
print h
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
9b9b265f6e9fb31e918bf0ffb9ce3b9395f01ab9 | c2820169a55a020a4221178c186245371c82b10b | /qanta/guesser/rnn_entity.py | 567fd20a7329a49440bcfef635f494736734e0a3 | [
"MIT"
] | permissive | Agnon1573/qb | b9c278647d3e3ccfdaf29ffb8b4406efe026510a | 61c7af949b1c25b46a10436a25ea785c62e72c12 | refs/heads/master | 2021-04-06T08:19:38.410383 | 2018-03-05T20:35:15 | 2018-03-05T20:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,754 | py | from typing import List, Optional, Tuple
import json
import time
import pickle
import os
import shutil
import re
import string
from pprint import pformat
import numpy as np
import spacy
from spacy.tokens import Token
from sklearn.model_selection import train_test_split
import progressbar
import pycountry
import to... | [
"ski.rodriguez@gmail.com"
] | ski.rodriguez@gmail.com |
ac3d008a24c8e47944b2d79d2bc72884fa2c5e6e | 767e2c06c8973923a2514536fe4cd25a701e0e2f | /config/grid_gw_2.py | aa524d6fdd563d565f1865c48c87f04e5b5f305d | [] | no_license | stanleylio/grid | 8b6aca2e682dfa6dfa6912e50a76de619b61165e | f25c969611a348fe7684db9a2cc5b13f2c8857cf | refs/heads/master | 2021-01-23T21:45:54.023569 | 2017-11-30T23:52:14 | 2017-11-30T23:52:14 | 102,902,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | nodeid = 'b206a62d-67b0-4f99-b364-dce9acb4834e'
name = 'grid-gw-2'
location = 'CLASSIFIED'
note = 'nanopi-based, dummy data, norminal 1 sps'
conf = [
{
'dbtag':'ts_gw',
'description':'Sample time (gateway)',
},
{
'dbtag':'ts_pic',
'description':'Sample time (PIC, probably f... | [
"stanleylio@gmail.com"
] | stanleylio@gmail.com |
b28fb79017553dd637d04f68ef305dfdfda6bbb1 | 1c87cd03003275b1d9623cfffa5a29738e612025 | /Hangulpy.py | 4564a8d98efe632f51bdaa25166fa9a390805df0 | [] | no_license | DSKSD/sentiment_bot | 7b231ea29a3a704d92c6a7625f159429b872b205 | 71ba133d2ef674e9fb5eca0bea9b3162e6e0ea0a | refs/heads/master | 2021-01-21T14:57:59.902703 | 2017-06-25T15:00:34 | 2017-06-25T15:00:34 | 95,366,604 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,022 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Hangulpy.py
Copyright (C) 2012 Ryan Rho, Hyunwoo Cho
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation th... | [
"tjdehd1222@gmail.com"
] | tjdehd1222@gmail.com |
d207a41133a700e3d57ddb143d995ac0e4f521df | d33fa69a6948e4f7ec95e9fe8f3ff2befbd51779 | /mmdet/core/bbox/assign_sampling.py | b1b199a9cddb4a867418116d75f6a873cb997a50 | [
"Apache-2.0"
] | permissive | chengdazhi/mmdetection | 83848d7d26940ca982460e6a5c54f625b94f47db | 08cb54216479e59b4e4fad19ea2c9b3c72fb0405 | refs/heads/master | 2020-04-10T13:46:51.481551 | 2018-12-25T13:01:27 | 2018-12-25T13:01:27 | 161,059,155 | 2 | 0 | Apache-2.0 | 2018-12-09T16:32:58 | 2018-12-09T16:32:58 | null | UTF-8 | Python | false | false | 1,215 | py | import mmcv
from . import assigners, samplers
def build_assigner(cfg, default_args=None):
if isinstance(cfg, assigners.BaseAssigner):
return cfg
elif isinstance(cfg, dict):
return mmcv.runner.obj_from_dict(
cfg, assigners, default_args=default_args)
else:
raise TypeErr... | [
"chenkaidev@gmail.com"
] | chenkaidev@gmail.com |
2114873bc292280f71df9f6680f57c76c4e020d7 | 138de1dd1ee991b9ab530764dbd64ae829307318 | /heap_demo.py | a1e22e37641a737a531bd68e1b2736bfc46ae146 | [] | no_license | listenzcc/basic_algorithms | dcf45a79d80d77da9544f1c07d3ed75150819f8b | 43896308bf6e5875e2d961be4316db5b98e874c4 | refs/heads/master | 2020-04-18T11:26:18.711426 | 2019-03-03T07:32:57 | 2019-03-03T07:32:57 | 167,499,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | # code: utf-8
import numpy as np
class Heap:
def __init__(self):
self.nums = []
self.length = 0
def len(self):
return self.length
def append(self, x):
self.nums.append(x)
self.length += 1
def stack(self, j):
self.swap(j, self.len()-1)
self.le... | [
"listenzcc@mail.bnu.edu.cn"
] | listenzcc@mail.bnu.edu.cn |
3be202e64755f951a54ad55a2e343a5e999dd3ab | e9f2d427b3c74c68b97321768e7d03949e7de62a | /codeforces/20.02.24.A.py | 06d44cd99432bcafaff8261606a09f2e530a2c4a | [] | no_license | mark-ni/competitive-programming | ab84f0af5831b76bdb7f36c3ddd6f89b4be34fee | efe74f111f71a2a1293a46f65a5eef1298046c1a | refs/heads/master | 2023-03-20T00:02:32.030442 | 2021-03-09T01:09:59 | 2021-03-09T01:09:59 | 345,829,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | t=int(input())
for _ in range(t):
a,b=map(int,input().split())
if a == b:
print(0)
elif a < b:
if (b - a) % 2 == 1:
print(1)
else:
print(2)
else:
if (a - b) % 2 == 0:
print(1)
else:
print(2)
| [
"markni10423@gmail.com"
] | markni10423@gmail.com |
32195feddbf80e325c1f31c5c3edbc5fc7a6d2bc | a4a44ad46cd1306e2da72ff89483b0102fc9787d | /SamplePython/samplePython/Networking/dari_buku_python_network_programming/Bab1_Sockets_IPv4_and_Simple ClientServer_Programming/_02_convert_IPv4_ke_format_binary.py | 42613a809313e3bd42793ddd7ea62d69a27e39c9 | [] | no_license | okipriyadi/NewSamplePython | 640eb3754de98e6276f0aa1dcf849ecea22d26b1 | e12aeb37e88ffbd16881a20a3c37cd835b7387d0 | refs/heads/master | 2020-05-22T01:15:17.427350 | 2017-02-21T04:47:08 | 2017-02-21T04:47:08 | 30,009,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | """
When you would like to deal with low-level network functions, sometimes, the usual string
notation of IP addresses are not very useful. They need to be converted to the packed 32-bit
binary formats.
"""
import socket
from binascii import hexlify
for ip_addr in ['127.0.0.1', '192.168.0.1']:
packed_ip_addr = so... | [
"oki.priyadi@pacificavionics.net"
] | oki.priyadi@pacificavionics.net |
f88fc2c46ab9471724769c049245c7a3aa922db7 | cd7d3e01e78b48eac77739157407b58cab1cc51c | /school/migrations/0001_initial.py | 91a2b464f6543dbdff6efb3a3b56d65a759a2e53 | [] | no_license | dimka1993kh/Dj_HW_5.1 | 5b0a0cfd6af8372353b0a88a37155060aaa6dc4e | a11271ea191d05478dcda37a8c71d61d91370050 | refs/heads/master | 2023-04-23T21:35:28.625669 | 2021-05-03T10:26:04 | 2021-05-03T10:26:04 | 363,892,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | # Generated by Django 3.1.2 on 2021-05-03 09:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Teacher',
fields=[
... | [
"dimka1993kh@gmail.com"
] | dimka1993kh@gmail.com |
8d4d56eae6b0f88ff0450b0fc07a87fa327ce5cc | 6e77f1dadd6e30d9c22dd9817354f04dd1261f7f | /cp_images.py | 3f641489665a6914b8a89bea0c9cf4100935a6c2 | [] | no_license | matthew-brett/mpl-build | c709634d5a0aecff0d2ad7e4b63c41cb1dce0e53 | b7dd1cf0d7ea94a6c0cf689a0441c5d463776de9 | refs/heads/master | 2020-03-22T05:56:45.716719 | 2018-07-03T16:24:10 | 2018-07-03T16:24:10 | 139,601,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | """ Copy matplotlib test images to installed directory
"""
import sys
from os.path import dirname, join as pjoin
from shutil import copytree
import matplotlib
MPL_SRC_DIR = sys.argv[1]
MPL_INSTALL_DIR = dirname(matplotlib.__file__)
copytree(pjoin(MPL_SRC_DIR, 'lib', 'matplotlib', 'tests', 'baseline_images'),
... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
cfd2b5af7d5b6d6305482d858c5c68d01da43c46 | 271c7959a39f3d7ff63dddf285004fd5badee4d9 | /venv/Lib/site-packages/jnpr/junos/factory/view.py | 062afab39fa024c7bc97401dfb676197fb474a73 | [
"MIT"
] | permissive | natemellendorf/configpy | b6b01ea4db1f2b9109fd4ddb860e9977316ed964 | 750da5eaef33cede9f3ef532453d63e507f34a2c | refs/heads/master | 2022-12-11T05:22:54.289720 | 2019-07-22T05:26:09 | 2019-07-22T05:26:09 | 176,197,442 | 4 | 1 | MIT | 2022-12-08T02:48:51 | 2019-03-18T03:24:12 | Python | UTF-8 | Python | false | false | 9,570 | py | import warnings
from contextlib import contextmanager
from copy import deepcopy
from lxml import etree
import json
import sys
from jnpr.junos.factory.viewfields import ViewFields
from jnpr.junos.factory.to_json import TableViewJSONEncoder
class View(object):
"""
View is the base-class that makes extracting ... | [
"nate.mellendorf@gmail.com"
] | nate.mellendorf@gmail.com |
89fb693f16bc4fb163e68fe1fffb48da7cb10357 | a03ce6cf50d26f491aa8346044d99ea5ff25a02c | /tebblog/spiders/teb.py | 04a931d61440e5350077a2d76ed1b7c81dc0ea18 | [] | no_license | daniel-kanchev/tebblog | ef0f5a2c41cd664a630f045348d592fa269d8bcf | b6376ee8a842ecd27b6510974bbe6dbbd29e8710 | refs/heads/main | 2023-03-02T22:33:22.933433 | 2021-02-04T11:57:20 | 2021-02-04T11:57:20 | 335,917,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | import scrapy
from scrapy.loader import ItemLoader
from tebblog.items import Article
from itemloaders.processors import TakeFirst
class TebSpider(scrapy.Spider):
name = 'teb'
allowed_domains = ['blogteb.com']
# oldest article, scrape from here for all articles
# start_urls = ['https://www.blogteb.com/... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
ff0ecfbe8f1aa438bca09a1baf36eade6d9bc84c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/configs/cornernet/cornernet_hourglass104_mstest_10x5_210e_coco.py | e4b62db0b3027f15234152595b7bd844de90db49 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,997 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
ae9bdf90bb4b5a3b2ca548636cba97a033aec9d5 | 44d0ffe95850f83b0d7491fa426d1c495b9bea4c | /test/201704111512_test_25_stat_sbatch.py | 267d2a28116d40f0c6c4f3f8d3dab851cbc82666 | [] | no_license | lizhengbio/methylantion_ML_sumamry | e2870758ef9d124f92454e22207ad7e47494c7f7 | d0505a41d41bab816618ee07af5b71a92f8fc93e | refs/heads/master | 2020-05-19T11:17:18.256329 | 2018-03-23T01:31:37 | 2018-03-23T01:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# __author__ = "PengZhang"
import os
sbatch_job_id_all = "/mnt/ilustre/users/sanger-dev/sg-users/zhangpeng/fighting/test/20170411/test_25/all_time.txt"
sbatch_name_file = "/mnt/ilustre/users/sanger-dev/sg-users/zhangpeng/fighting/test/20170411/test_25/"
with open("/mnt/ilustr... | [
"zhangp@origimed.com"
] | zhangp@origimed.com |
7a42644b55ae2bad33888f01d789f965d9d5b089 | 2bbd5079676d960cf10693df0ce4f33707a9a6b4 | /monitoring-ansible/roles/ansible-kubernetes-modules/library/openshift_v1_role.py | 7d3b557596b9d225957d759b2b7c7b05b0e414bc | [
"Apache-2.0"
] | permissive | amitganvir23/test-data | 443740fdd30ccda590b72d0cd7a92493aa9294c8 | 2620ff79ffec93f98d30a1c9c640835ce7279978 | refs/heads/master | 2020-07-24T18:17:18.921405 | 2019-09-12T08:53:53 | 2019-09-12T08:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,615 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from ansible.module_utils.openshift_common import OpenShiftAnsibleModule, OpenShiftAnsibleException
DOCUMENTATION = '''
module: openshift_v1_role
short_description: OpenShift Role
description:
- Manage the lifecycle of a role object. Supports check mode, and attempts to to be... | [
"amit.ganvir6@gmail.com"
] | amit.ganvir6@gmail.com |
1a1f8e0023ca7870a60f79f3592cf215e59a60ab | 7d1d30be1995f2780cbf8999f1891e967936c090 | /pttweaks/activity/models.py | 5be3a6964eddfee275923e631d0913cdc771ec5a | [] | no_license | EastAgile/PT-tweaks | 118274f70c198fb8885f4a42136a5a1bdefc4e51 | 7d5742862e42672eb77441ef7a7250d7a3a9359e | refs/heads/master | 2022-12-10T20:07:04.859288 | 2019-08-08T05:29:41 | 2019-08-08T05:29:41 | 164,597,129 | 0 | 1 | null | 2022-12-08T05:49:40 | 2019-01-08T08:06:59 | Python | UTF-8 | Python | false | false | 610 | py | from django.db import models
from django.contrib.postgres.fields import JSONField
from model_utils.models import TimeStampedModel
ADJUST_STORY_ACCEPTED_DATE = 'ADJUST_STORY_ACCEPTED_DATE'
JOB_CHOICES = (
(ADJUST_STORY_ACCEPTED_DATE, 'adjust_accepted_date'),
)
class ActivityChangeLog(TimeStampedModel):
sto... | [
"open-source@eastagile.com"
] | open-source@eastagile.com |
d6b02ddce533db44ba1c2a1040b43572a7885ec0 | d1cea43b6cf60f54342d80a68615aeef3228882b | /koytola/core/account/utils.py | 9b6a772013d344e2ab7c5e980a4a36c965eec735 | [] | no_license | salesshuban/koytola-repo | 33d82cbccb3264bddade80a5651a8be8eeb61942 | acb64d667a2e8b3e8ddf32ec569743e6597540e1 | refs/heads/main | 2023-08-14T02:13:46.134653 | 2021-09-30T12:09:47 | 2021-09-30T12:09:47 | 412,049,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | from ..core.utils import create_thumbnails
from ..plugins.manager import get_plugins_manager
from .models import User
class AddressType:
BILLING = "billing"
SHIPPING = "shipping"
CHOICES = [
(BILLING, "Billing"),
(SHIPPING, "Shipping"),
]
def store_user_address(user, address, addres... | [
"sales.shuban@gmail.com"
] | sales.shuban@gmail.com |
d7781bebb8fd4517bea081320138beadedab8f35 | beb4c1dd9077f11ebd7aca407b272acbc780aa3c | /natureShare/natureShare/settings.py | 28cd33b3a17cf4eb51f4ad4146990ba0df8ab51c | [] | no_license | jpchato/nature-share | f89cfc1295648e9a0b03b7281d72d9179357b0be | 2cb952e72ea43c45884cd4a6c4b39c32936fe612 | refs/heads/master | 2023-02-19T06:46:01.213253 | 2021-01-15T19:10:24 | 2021-01-15T19:10:24 | 317,411,534 | 1 | 0 | null | 2021-01-13T20:23:29 | 2020-12-01T03:15:01 | Python | UTF-8 | Python | false | false | 4,727 | py | """
Django settings for natureShare project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"jpchato@gmail.com"
] | jpchato@gmail.com |
d4d9e641d2e1cc92211d6f5c241aeb41d0082979 | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pbase/day30/udp_client.py | 911c39814911295ef639c8738e02235f7e9d889a | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from socket import *
from threading import *
from time import sleep
host = '0.0.0.0'
post = 6666
BUFFERSIZE = 1024
addr = (host, post)
sockfd = socket(AF_INET, SOCK_DGRAM)
# def f1(fd):
# while True:
# data,address = fd.recvfrom(BUFFERSIZE)
# print(data.decode())
def f2():
# fd.sendto('nih... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
fc3d825a3fa87122f6c4650f97b41f8c214b98db | 965ef7770b0efdf28ba1ab74e72598353060d256 | /ex05_tuple.py | 7fef0df77d50fe93f005b424f5d1b1c7429f28a4 | [] | no_license | DikranHachikyan/CPYT210409-PLDA | 87dfca698212905b33b50a0564ae904911d7ff00 | 7ec99a7ef6082e8b58d5a79a66a7875837520d21 | refs/heads/master | 2023-04-18T04:46:38.231406 | 2021-04-28T10:05:08 | 2021-04-28T10:05:08 | 356,246,772 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # %%
tp = (12, 2, 4, 6)
# %%
tp[2]
# %%
# TypeError
# tp[1] = 100
# %%
a, b, c, d = tp
# %%
del d
# %%
b, c, a, _ = tp
# %%
4 in tp
# %%
tp2 = (34,)
# %%
| [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
f79f52d680b01a0f5979825aa57bc10c26efcf6e | 1bbfeca83bac53d22b1110ca7f6c9a28bc46c22e | /ru-olymp-train-winter-2009/Problems/081225s/path/gen.py | 089bd26e8ea7cd95f98439d992a0bb52c5fac2dc | [] | no_license | stden/olymp | a633c1dfb1dd8d184a123d6da89f46163d5fad93 | d85a4bb0b88797ec878b64db86ad8ec8854a63cd | refs/heads/master | 2016-09-06T06:30:56.466755 | 2013-07-13T08:48:16 | 2013-07-13T08:48:16 | 5,158,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | #! /usr/bin/python
TASKNAME = 'path'
TESTSTR = '%02d'
SMALLTESTS = 33
TOFILES = False
import random, sys
random.seed (hash (TASKNAME))
try:
import psyco
psyco.full ()
sys.stderr.write ('(using psyco)\n')
except:
sys.stderr.write ('(psyco not available)\n')
MinN, MaxN = 1, 22
MinM, MaxM = 0, 1000
test = SMALLTEST... | [
"super.denis@gmail.com"
] | super.denis@gmail.com |
29f84588a9f3215991a986a2e82a46d8200be473 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200524125845.py | dee91fb635a295b441cc9666c756637f995cfdb5 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | def solution(N):
print(N)
maximumCount = 0
binaryNumber = []
while( N > 0):
N = int(N / 2)
if N % 2 == 0 :
binaryNumber.append(0)
else:
binaryNumber.append(1)
# then reverse the number
number = list(reversed(binaryNumber))
s = [str(i) for i i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
5f306ebbf467458cc7acac9553429f0805768aa9 | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/map/MapConfig.py | 55bf726561da47e5541d6b699f312cb43fc184bf | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,989 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.map.MapConfig
from pandac.PandaModules import *
from direct.showbase.PythonUtil import clampScalar, lerp
from direct.gui.DirectG... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
91b08851842c7a0d3b0f90522c076d9f735977cd | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp52_3500.py | c9cd50459367437910a6d4151a36fc4b27b6f997 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,978 | py | ITEM: TIMESTEP
3500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
6.7126508330890644e-01 4.6528734916686361e+01
6.7126508330890644e-01 4.6528734916686361e+01
6.7126508330890644e-01 4.6528734916686361e+01
ITEM: ATOMS id type xs ys zs
8 1 0.121011 0.0639225 0.0635565
35 1 0.0600754 0.125854 0.0660915
130 1 0.06012... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
44d028ce57728fc93d9d5fcf89834222d9f08cda | de20b8364925ee7e030c8dab1647745c0dd8e978 | /107/save1_passed.py | eb1c6c0d8614b8c5f0a03a2320076d53579be401 | [] | no_license | davidcolton/bitesofpy | 46d9800df057aa8a1d23e2ebae251a36fbaa9c80 | 4e3226ea695095f763d68694c5e06800ad4891f1 | refs/heads/master | 2021-08-03T23:23:41.298304 | 2021-07-22T23:03:00 | 2021-07-22T23:03:00 | 201,806,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | def filter_positive_even_numbers(numbers):
"""Receives a list of numbers, and filters out numbers that
are both positive and even (divisible by 2), try to use a
list comprehension"""
return [x for x in numbers if x % 2 == 0 and x > 0]
filter_positive_even_numbers([-2,-1,0,1,2,3,4,5,6]) | [
"davidcolton@gmail.com"
] | davidcolton@gmail.com |
b840cc62bdc2e6c51e5a8f9fdab012db51e919dc | 2ba65a65140e818787ab455ca374f99348ade844 | /bit_manupulation/q016_n_queens.py | 0581841f448a26a2ec821f9ace167984a709751f | [] | no_license | samyakjain101/DSA | 9e917f817a1cf69553b5f8ca5b739bc6f0c81307 | 632a605150704ceb5238cb77289785eb5a58201c | refs/heads/main | 2023-05-06T06:31:09.401315 | 2021-06-01T13:37:59 | 2021-06-01T13:37:59 | 340,645,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | """Problem Statement
https://leetcode.com/problems/sudoku-solver/
"""
from typing import List
class Solution:
def solve(self, n, i, cols, diagonals, diagonals_reverse, board, answer) -> None:
if i == n:
temp = []
for row in board:
temp.append("".join(row))
... | [
"samyakjain101@gmail.com"
] | samyakjain101@gmail.com |
a4a498714136fdda16e2dc4cd45ad4a27c4e8d61 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/YARN/package/scripts/yarn.py | a9c7b3d1219321847df7e77d07227e6e3d422391 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 5,261 | 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 use this ... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
f2354c07805e1f7e82d331674ef07c9d59680b2d | 7669f9120a603f27e5e1bc03a830d8a6f4444371 | /application.py | a446e3bef7e2b935c8dc691a4f7d7da0ce105e8d | [] | no_license | cash2one/youxia | 53bacdd7b31e95413438be7d92b5394d0393a9be | e865362f4fcfdd3ce4e0859e3c99f9d10765d489 | refs/heads/master | 2020-06-10T19:06:45.277808 | 2016-11-04T01:34:45 | 2016-11-04T01:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,431 | py | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2016 youxia
# cat /etc/mime.types
# application/octet-stream crx
import sys
reload(sys)
sys.setdefaultencoding("utf8")
import os.path
import re
import memcache
import torndb
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web... | [
"gaolinjie@gmail.com"
] | gaolinjie@gmail.com |
ba4a0e69334cad868240a15315f800e428d56c77 | c3c31ce9a8822ac0352475934f5b3fbdacac62a1 | /ssseg/cfgs/segformer/cfgs_ade20k_mitb0.py | 6a3fb3954bd144101c34b8c24a8018cc257050eb | [
"MIT"
] | permissive | guofenggitlearning/sssegmentation | 1e51b5b14bff3b5ad0d469ac98d711adb79cef11 | 7a405b1a4949606deae067223ebd68cceec6b225 | refs/heads/main | 2023-08-28T03:26:39.204259 | 2021-11-03T00:51:30 | 2021-11-03T00:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | '''define the config file for ade20k and mit-b0'''
import os
from .base_cfg import *
# modify dataset config
DATASET_CFG = DATASET_CFG.copy()
DATASET_CFG.update({
'type': 'ade20k',
'rootdir': os.path.join(os.getcwd(), 'ADE20k'),
})
# modify dataloader config
DATALOADER_CFG = DATALOADER_CFG.copy()
# modify opt... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
12e89284e93bbbdb432002ca8998b6eecfee99e0 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/5-sender_receiver_20.py | b5d5d54b5aa1afd48bc8fd13393814dfcecfc9fb | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,505 | py | from typing import FrozenSet
from collections import Iterable
from math import log, ceil
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msa... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
7fa7378161a6a61b12723c926a28f862f1f344df | d8ce86f69df7972bcd274f000f204a5a974a3bb1 | /venv/Scripts/easy_install-script.py | c1a7cbe249c00ec092740f1ad7afedd8e969d1a4 | [] | no_license | chinitacode/django_web_app | 7c4674bb8aea6390695bc2a6921b93bdcc26733c | e4b30cbac2c201285e99580e8d6570e05c974267 | refs/heads/master | 2021-01-07T00:59:05.466453 | 2020-02-19T06:04:23 | 2020-02-19T06:04:23 | 241,532,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #!D:\ELearning\DatasStructure\Projects\mysite\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"ziyu_zhou_victoria@163.com"
] | ziyu_zhou_victoria@163.com |
d17fbab645ba834567b2852c9aaabc8ff7551013 | 5d34003423b4bcf641cb31b3d58c062d2011c7b7 | /code/test-27.py | 0566f6b71c3d215c084601d6af772ff9bae5715d | [] | no_license | feiwl/Coding | a9f84cb867f7a84f0924b848a412dc1bedbb7d84 | 85973fe3d839b65f4f0b73c35ca0d0134588a76d | refs/heads/main | 2023-02-17T21:54:04.441162 | 2021-01-07T04:25:19 | 2021-01-07T04:25:19 | 327,518,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | import dolphindb as ddb
import os
import pandas as pd
import time
import numpy as np
import argparse
def generate_insert_args(directorys):
szWindCode = list()
nActionDay = list()
nTime = list()
nOpen = list()
nHigh = list()
nLow = list()
nMatch = list()
iVolume = list()
iTurnover = ... | [
"feiwl8378@163.com"
] | feiwl8378@163.com |
98c4e0f20bac396ce5f1253171e3e675bad68ffe | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /geeksforgeeks/mathematical/gcd-of-array.py | 4711f97c4a6c7bbc948bff0ef84fa3f919ccca76 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | if __name__ == '__main__':
for _ in range(int(input())):
if int(input()) < 2:
print(int(input()))
continue
nums = sorted(map(int, input().split()))
while len(nums) > 1:
nums = [nums[i] % nums[0] for i in range(1, len(nums))
if nums[i] ... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
1c0b8aa4207ed1a49940fef44b59fd3ee7457761 | ff80c71b3d6e704e00a8ce4bd4a5efa92ee70a54 | /task2/admin.py | 63982f0afd3554106c0fa0c0bc621a5e757946de | [] | no_license | sahloulmouhib/forgery-detection-backend | 0833df165a401d4b14bec8feea6d86a855e6be86 | 6895ec743572fc30208bfab4a3587a72a6695be6 | refs/heads/master | 2023-02-28T15:41:29.727420 | 2021-02-08T23:04:19 | 2021-02-08T23:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.contrib import admin
# Register your models here.
from .models import Client
admin.site.register(Client) | [
"you@example.com"
] | you@example.com |
9b256b9a23650b32669ae933ff8cd43d59318858 | e2c65159e811bab0679200c5ec4bed5fd452f146 | /ietf/person/migrations/0016_add_email_addresses_from_rfc_editor.py | 0b34483d5c9b52c0749519984ece634e9fc774bd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ekr/ietfdb | f002078e60ddf11c96f91ad039afa4cfeb5fd792 | 8d936836b0b9ff31cda415b0a423e3f5b33ab695 | refs/heads/master | 2021-07-10T10:59:52.026021 | 2017-10-10T15:02:00 | 2017-10-10T15:02:00 | 106,584,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-04-20 14:21
from __future__ import unicode_literals
from django.db import migrations
new_addresses = {
'104-8456@mcimail.com': 3385, # John Linn
'a.ballardie@cs.ucl.ac.uk': 8269, # Anthony J. Ballardie
'a_bogdanov@iname.ru': 104669, # Alexander Bogdanov
'ab... | [
"henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0"
] | henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0 |
655876f8c51c74c491e6c8ecfecb51491fd3082d | b8c4593be5e941260748c35d43db29934b9ce5f0 | /fee_calculator/settings/dev.py | 3981b4e48572b2b63f59167381e754c08d6a5d97 | [] | no_license | cosmic-byte/fee-calc | 4d45d11ae2ed8a4d0904fe54e1b3f11a67b58708 | 41fe43e69038f4cd1dcabaeb5b8fc6c5d0ea814f | refs/heads/master | 2022-12-12T04:09:51.872986 | 2020-02-20T09:56:41 | 2020-02-20T09:56:41 | 241,848,191 | 2 | 0 | null | 2022-12-07T09:13:06 | 2020-02-20T09:51:01 | Python | UTF-8 | Python | false | false | 1,012 | py | import sys
from fee_calculator.settings.base import * # NOQA (ignore all errors on this line)
SECRET_KEY = os.getenv(
"DJANGO_SECRET_KEY", "alq7#8r33k!cv47r8pelqldnkl46v!b4-sfwvdo$x(=p%1read"
)
JWT_AUTH.update({"JWT_SECRET_KEY": SECRET_KEY})
DEBUG = os.getenv("DJANGO_DEBUG", True)
ALLOWED_HOSTS = os.getenv("DJAN... | [
"gregobinna@gmail.com"
] | gregobinna@gmail.com |
4f9c7d9899103bbf94e184215b6ee0890206dfc8 | 61b546f7191a2c6c26bef09f349cdc76c5bd6b22 | /resource/template/actioncode/sample.py | 83ca680868f1013df92b1efa338862a7fd30962b | [
"OFL-1.1",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | isabella232/openwhisk-vscode-extension | 79c61f354206a22754167893940a47b86304aba9 | 32873bdbf4127e9a21eccbdb080ed8197ad616ec | refs/heads/master | 2023-08-20T06:29:33.936866 | 2021-09-25T01:32:39 | 2021-09-25T01:32:39 | 418,880,872 | 0 | 0 | Apache-2.0 | 2021-10-19T12:06:21 | 2021-10-19T10:45:50 | null | UTF-8 | Python | false | false | 977 | py | """Python sample code.
/*
* 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
* (t... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
dcb44295524cda53f0f0e8209a8411545c6fb952 | aae988b58da8078d9891b0bcceb22d02567ec24a | /order/migrations/0004_remove_order_total_price_with_code.py | 4af624920c79c77070af868bb48189095c1c4ead | [] | no_license | skiboorg/docs_antiviral | 450c3ed38c0e8461d391192c971d3f1966cf3e42 | ce91986f33bad43779b2d370f6c5da06829ad102 | refs/heads/master | 2023-02-25T16:15:43.148108 | 2021-02-03T16:09:22 | 2021-02-03T16:09:22 | 321,614,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # Generated by Django 3.1.4 on 2020-12-16 18:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('order', '0003_order_promo_code'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='total_price_with_code',... | [
"11@11.11"
] | 11@11.11 |
84cc762b295c124a602ad072525572a3c02e4218 | cb1d06e91347a23438057d9f40b5a74cad595766 | /autonetkit/design/mpls.py | 17d043dbcbd604ea20c55775f5bdf730ed431bca | [] | permissive | plucena24/autonetkit | 9f94d3fba6bfad54793a7de58ef17439c2c71f0b | f7e8c03ee685d5b89f9028cb556017e730e0446c | refs/heads/master | 2023-08-16T18:03:54.593010 | 2014-11-07T13:43:39 | 2014-11-07T13:43:39 | 27,204,033 | 0 | 0 | BSD-3-Clause | 2023-08-08T18:36:36 | 2014-11-27T01:36:38 | Python | UTF-8 | Python | false | false | 11,677 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import autonetkit.log as log
import autonetkit.ank as ank_utils
import itertools
from autonetkit.ank_utils import call_log
#@call_log
def mpls_te(anm):
g_in = anm['input']
g_phy = anm['phy']
g_l3 = anm['layer3']
# add regardless, so allows quick check o... | [
"simon.knight@gmail.com"
] | simon.knight@gmail.com |
b0d52d58ab2c7fce070d525a7e482d6f1367b0c2 | d90283bff72b5a55dd4d0f90c7325355b00ce7b1 | /p1804/p09/cqyx/game.py | c7f5a9f8d569a4a85b649ca6e3b1945f7666313f | [] | no_license | yuemeiss/p1804daima | f841f52e63081d53d50a199e4d148d4533605bb6 | 6ea08eb9971e42bf4ac535033a006d98ed98bf98 | refs/heads/master | 2020-03-15T23:29:59.691297 | 2018-08-06T02:42:49 | 2018-08-06T02:42:49 | 132,395,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import random
#1=苹果 2=梨 3=桃
user=int(input("请投币:"))
money=1
while money < 5:
a=random.randint(1,3)
if a==1 :
print("苹果")
elif a==2 :
print("梨子")
else:
print("桃子")
if money == 3:
break
money += 1
"""
b=random.randint(1,3)
if b==1 :
print("苹果")
... | [
"1083027306@qq.com"
] | 1083027306@qq.com |
bc544c627f1f77778105ad1e3142bf79943b51cd | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/fifth/rank_3c9a_Q.py | c62dbfb4f2e5be3298327b3cd07c1e36c7f899f9 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
bb2223161ed514f0c68a6ae172de2834a7737968 | 350db570521d3fc43f07df645addb9d6e648c17e | /0862_Shortest_Subarray_with_Sum_at_Least_K/solution.py | 8ec4c51dc096a729c23c703367af57d24a9af79d | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | '''
862. Shortest Subarray with Sum at Least K
Level: Hard
https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k
'''
'''
Solution:
'''
class Solution:
def shortestSubarray(self, A: List[int], K: int) -> int:
| [
"benjaminhuanghuang@gmail.com"
] | benjaminhuanghuang@gmail.com |
7a566284f8e029b747e7ff66feaff0462c934afc | 9afbb6993450d1e0c3bae68e86844bd06d4419ee | /gui/btn2.py | af01083fa4a29a0d99644799f414122dd8041859 | [] | no_license | Jigar710/Python_Programs | 6f331caac30878655d4cca4ad97d4214c0262088 | 714a6306487eb6712f32ccb51b6a2407a81873fa | refs/heads/main | 2023-02-25T12:24:44.874199 | 2021-01-28T15:43:24 | 2021-01-28T15:43:24 | 332,869,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from tkinter import *
root = Tk()
root.title("My window")
root.minsize(200,200)
root.maxsize(400,400)
root.geometry("300x300")
btn1 = Button(root,text="first",relief='raised',width=20)
btn2 = Button(root,text="sec",relief='sunken',width=20)
btn3 = Button(root,text="third",relief=FLAT,width=20)
btn4 = Button(root,text... | [
"jigar.shekhat.777@gmail.com"
] | jigar.shekhat.777@gmail.com |
d261c22b4cad8502af51cf0c3c63ac0b3b708edc | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/auxiliaryconnection_71f4dd5bf8920fb286894abbd3dc40d2.py | 386d4ad5c55d1cb2b4f4fe87168516a22bd094a8 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,045 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
7de3000def61b5c4d776d6307977bd8ed893e93c | 56b4d00870af18752b4414495b08e2ec3adf3ae4 | /src/sentry/api/endpoints/organization_details.py | 3ab8f15b47f6cf4e1abcf3c63a89b3c90a12d58f | [
"BSD-2-Clause"
] | permissive | commonlims/commonlims | 26c3f937eaa18e6935c5d3fcec823053ab7fefd9 | 36a02ed244c7b59ee1f2523e64e4749e404ab0f7 | refs/heads/develop | 2021-07-01T17:20:46.586630 | 2021-02-02T08:53:22 | 2021-02-02T08:53:22 | 185,200,241 | 4 | 1 | NOASSERTION | 2021-02-02T08:53:23 | 2019-05-06T13:16:37 | Python | UTF-8 | Python | false | false | 18,182 | py | from __future__ import absolute_import
import logging
import six
from rest_framework import serializers, status
from uuid import uuid4
from sentry import roles
from sentry.api.base import DocSection
from sentry.api.bases.organization import OrganizationEndpoint
from sentry.api.decorators import sudo_required
from se... | [
"costeinar@gmail.com"
] | costeinar@gmail.com |
388d9a26c2eb90e3dccc6de49454087c3cb305e3 | 6dbcbe21144dd2f5f77c05b1432afa44128abcb7 | /model/pytorch/cnn.py | f59bb9e1fbe746d59a3bc4f663d9116db3321088 | [
"MIT"
] | permissive | Ailln/text-classification | afe03977d2a983d88ea17ee30dffa6b6f38a074e | d7536ca7d072f9604f632c21f74eb0fa46233010 | refs/heads/master | 2021-07-07T16:49:54.554760 | 2020-07-16T02:19:05 | 2020-07-16T02:19:05 | 142,171,507 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | import torch.nn as nn
class Model(nn.Module):
def __init__(self, config):
super().__init__()
self.seq_length = config["seq_length"]
self.batch_size = config["batch_size"]
self.embedding_size = config["embedding_size"]
self.vocab_size = config["vocab_size"]
self.num_... | [
"kinggreenhall@gmail.com"
] | kinggreenhall@gmail.com |
9442385aa51f1a33e1adfebc3db2bf502ed8c951 | 28c6989b05f8ea30065877ae84beaaadcb392d69 | /env1/bin/sqlformat | ae1735fa1c04325937cd9c1ff15e4b8fc3747000 | [] | no_license | Umutonipamera/ToDoListApp | cfc56fd15ebddaf10aebe6e17dc132125df22ff9 | 65901fa0ed3841ef740ddb300873262cc6574862 | refs/heads/master | 2023-06-24T07:11:09.791246 | 2021-07-27T18:29:42 | 2021-07-27T18:29:42 | 388,177,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/home/student/Documents/ToDoList/env1/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"umutonipamera@gmail.com"
] | umutonipamera@gmail.com | |
b131655841408ce2fe89236dc2dc963907d39b8b | 67a217b360c29ac52da4f09b227f89f3265f57ea | /aizynthfinder/training/preprocess_recommender.py | af6540021ab57cbc16d23a94b54d38aace972eeb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | almohajer/aizynthfinder | ab404b9ec7bfb6b505cee7dfe509e7530986ceaa | 42f83c9eb9fed3fe80dc966bb7b25ccacf1dc022 | refs/heads/master | 2023-08-18T08:18:38.960473 | 2021-09-20T10:56:21 | 2021-09-20T10:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | """ Module routines for pre-processing data for recommender training
"""
import argparse
import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelBinarizer
from scipy import sparse
from aizynthfinder.training.utils import (
Config,
split_and_save_data,
reactants_to_fingerprint,
)
de... | [
"samuel.genheden@gmail.com"
] | samuel.genheden@gmail.com |
e5bd4a589c7b131159b9bef069495886587c3089 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2015/12/test_kalman.py | 98545e978b9b236d72439a1d38e44c3dd87eb979 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 22,530 | py | """
Tests for _statespace module
Author: Chad Fulton
License: Simplified-BSD
References
----------
Kim, Chang-Jin, and Charles R. Nelson. 1999.
"State-Space Models with Regime Switching:
Classical and Gibbs-Sampling Approaches with Applications".
MIT Press Books. The MIT Press.
Hamilton, James D. 1994.
Time Series ... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
9936d344c9018fa9d335bd8dd779d057ef293c44 | 99f851bc034bdedd61ff673b4ca1d294e9451d04 | /iprPy/records/calculation-dynamic-relax.py | 366ee15b74ee0f08f6d1e161c08e0b304ff4f5a2 | [] | no_license | njisrawi/iprPy | c583ba92b2537ce449c3fb6a832a06036dc1918f | 5ce6c14b1cc889069495a2f29db19d5d78e29ede | refs/heads/master | 2021-01-20T09:00:24.709510 | 2017-01-25T20:28:54 | 2017-01-25T20:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,994 | py | from DataModelDict import DataModelDict as DM
import atomman as am
import atomman.unitconvert as uc
import numpy as np
from iprPy.tools import aslist
def schema():
dir = os.path.dirname(os.path.abspath(__file__))
return os.path.join(dir, 'record-calculation-dynamic-relax.xsd')
def todict(record, full=True):... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
847623801d00a34af1c8b164dd6dd1272ec19ada | e5b58c07ea05bcf637ae83962b120a2f53bba8ed | /staticfiles_dotd/views.py | 1fa2d08274c544e91fce0ae74d9497458ed2063b | [
"BSD-3-Clause"
] | permissive | lamby/django-staticfiles-dotd | 2094fb9c9c78329299cc87ee0239b61b89d9b1d2 | 7c0be4bbf9574cf46adad2685492673c8db7bdfa | refs/heads/master | 2021-01-10T08:04:37.096623 | 2020-08-04T22:03:30 | 2020-08-04T22:03:30 | 50,206,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | import os
import stat
import mimetypes
import posixpath
from urllib.parse import unquote
from django.conf import settings
from django.http import Http404, HttpResponse, FileResponse, \
HttpResponseNotModified
from django.views import static
from django.utils.http import http_date
from django.views.static import w... | [
"chris@chris-lamb.co.uk"
] | chris@chris-lamb.co.uk |
27f14f936a2c3a8bc704f552a9b6dd3a841d042e | de7cae42ec760bae3b532259b399a8c6df0394c9 | /wxPython/samples/wxPIA_book/Chapter-01/spare.py | 756e5c5df2723300dc0c8a11fc7e6d1a5caf421a | [] | no_license | nvaccess/wxPython | b70f91bd682b86e20434d0c69ac497dfbf875838 | 13cceab2a1891ab443e62078be729dc1e1e2e283 | refs/heads/master | 2020-05-31T00:11:36.079007 | 2016-07-12T09:25:04 | 2016-07-12T09:25:04 | 63,135,776 | 1 | 2 | null | 2016-07-18T02:43:08 | 2016-07-12T07:18:57 | C++ | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/env python
"""Spare.py is a starting point for simple wxPython programs."""
import wx
class Frame(wx.Frame):
pass
class App(wx.App):
def OnInit(self):
self.frame = Frame(parent=None, title='Spare')
self.frame.Show()
self.SetTopWindow(self.frame)
return True
if __... | [
"robin@alldunn.com"
] | robin@alldunn.com |
0a94048d1e29d38379afe7e4ef0eb3be8d5c434e | ed7757eb7c030e1c0cd7a2aacde9d7785b8ef825 | /arcade/examples/text_loc_example_done.py | 672b2b016631bba19da2d4ed6c8e5788a9974462 | [
"MIT"
] | permissive | callmebg/arcade | 3f45796e0e8b02151d7283f1b4d619ad320c64e5 | 50d05415001423a4f15013b95db05bea6ca1fd09 | refs/heads/master | 2021-05-17T10:20:25.070726 | 2020-03-27T19:19:58 | 2020-03-27T19:19:58 | 250,736,736 | 1 | 0 | NOASSERTION | 2020-03-28T07:20:06 | 2020-03-28T07:20:05 | null | UTF-8 | Python | false | false | 1,979 | py | """
Example showing how to draw text to the screen.
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.text_loc_example_done
"""
import arcade
import gettext
import os
# Set the working directory (where we expect to find files) to the same
# directory thi... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
44d07a80dbd97e045dc5286f70381e5a80f0ee70 | e2cef7fff2528a9c23bc1938bf34403061f3ef61 | /extra_scripts/convert_folder_to_filelist.py | 35c420712c85553bcf7427c0bc0531387ef1bcf7 | [
"Apache-2.0",
"MIT"
] | permissive | MetaVai/vissl | 69361e75b294ce1029df3e2a216c10e45504abef | ee91c2c3b6cb9a27bb396161116bb270ec9c86c5 | refs/heads/main | 2023-08-22T09:56:12.729814 | 2021-10-15T19:14:49 | 2021-10-15T19:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,541 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This script creates .npy filelist for all splits in the input path.
The script assumes that the input directory has the structure of
the to... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
82317b6adaf24828d66c1c1125d14c01e2b1d442 | 083c9e436115c778935ae430fd0ba3b2d52ce5b6 | /remove_accent.py | 716d5e18f3c0e0b7b62c5258749587ed1b856539 | [] | no_license | thanhlt998/domain_rank | dc7e1e67b2a43b0659306a944c389be6c5f60629 | b3231f195a5307dbd0b8b579071f4fc3ee9cfd7c | refs/heads/master | 2022-02-12T03:17:27.705367 | 2019-08-07T03:55:00 | 2019-08-07T03:55:00 | 197,317,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import re
import json
from mysql_connection import select_domain_objects, update_meaning_word_rate
PATTERNS = {
'[àáảãạăắằẵặẳâầấậẫẩ]': 'a',
'[đ]': 'd',
'[èéẻẽẹêềếểễệ]': 'e',
'[ìíỉĩị]': 'i',
'[òóỏõọôồốổỗộơờớởỡợ]': 'o',
'[ùúủũụưừứửữự]': 'u',
'[ỳýỷỹỵ]': 'y'
}
def convert(text):
"""
... | [
"thanhlt998@gmail.com"
] | thanhlt998@gmail.com |
cb60a1fdcb896f7a5ff466ca6ce46afcdddeea1d | 010c5fbc97731286be00028ff33fc981d943bca3 | /primal/src/code/impute/impute/color/__init__.py | b72b71be9d5187b266acc8c7390bcd64a34b998f | [] | no_license | orenlivne/ober | 6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30 | 810b16b2611f32c191182042240851152784edea | refs/heads/master | 2021-01-23T13:48:49.172653 | 2014-04-03T13:57:44 | 2014-04-03T13:57:44 | 6,902,212 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | '''
============================================================
IBD segment sharing identification algorithms package.
Created on September 14, 2012
@author: Oren Livne <livne@uchicago.edu>
============================================================
'''
import hap_color_grouping, hap_color
| [
"oren.livne@gmail.com"
] | oren.livne@gmail.com |
5c3ed6940df396b67864cf5506eaa97685d84bce | 0bab87d3d3bc6f790f6d924330acf7ae1c6ebc30 | /kunyi/data_structure_ii/merge-k-sorted-arrays.py | 742863010caf9769bbc52107fecb7f74aef29b62 | [] | no_license | KunyiLiu/algorithm_problems | 2032b9488cd2f20b23b47c456107475f609b178f | b27a1d4d65429101ef027f5e1e91ba2afd13bd32 | refs/heads/master | 2020-04-26T15:29:43.875656 | 2019-10-21T19:09:01 | 2019-10-21T19:09:01 | 173,648,702 | 0 | 0 | null | 2019-07-21T19:15:23 | 2019-03-04T00:48:02 | Python | UTF-8 | Python | false | false | 3,089 | py | ############## heapq ########################
import heapq
class Solution:
"""
@param arrays: k sorted integer arrays
@return: a sorted array
"""
def mergekSortedArrays(self, arrays):
# heapq records val, ind
# maximumly put k elements to heap
# O(N log k)
hea... | [
"noreply@github.com"
] | KunyiLiu.noreply@github.com |
ecfc55b5a861d8b9acd6c89aa1e0de4b29379336 | 454cb7ce13e0e359b978bc34830f83fdb7426630 | /python/e345.py | ad88c12b94a811f8b5e6e44803878bf4823692c7 | [] | no_license | scorpio-su/zerojudge | d662925b1769e8f2b7cba1db291642b44365e3e8 | 4897d1626147d432d21577c330d489c6dd576cd6 | refs/heads/master | 2022-12-06T00:59:20.648107 | 2020-08-20T13:16:56 | 2020-08-20T13:16:56 | 279,103,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 4 00:29:15 2020
@author: Username
"""
import sys
for t in [input()]:
if t == 'EOF': break
t=t.replace('\n','')
while int(t)//10:
num=0
for i in range(len(t)): num+=int(t[i])
t=str(num)
print(t) | [
"aa891119@gmail.com"
] | aa891119@gmail.com |
93da18573f34f043ba1bec8eabbd0fc8505ac684 | 1caf4418f3549567637f5e9893a445f52a38c6a0 | /CmsAdmin/user_content/migrations/0017_auto_20201205_0617.py | ef2475c91152297c4bb512b44919be1c9b17ba1d | [] | no_license | Final-Game/social_network_backend | c601563e08c0fd7de72a614944f354ef8d2d31d8 | 8111787d1d20eb87733ae360d8baa745a65e2743 | refs/heads/master | 2023-03-04T21:12:43.147084 | 2021-02-23T03:45:22 | 2021-02-23T03:45:22 | 290,542,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | # Generated by Django 2.2.16 on 2020-12-05 06:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user_content', '0016_auto_20201205_0549'),
]
operations = [
migrations.AlterField(
model_name=... | [
"kakavip.198.kaka@gmail.com"
] | kakavip.198.kaka@gmail.com |
2ce3171a1f9c222afd78465e256e7ba9256e73aa | 7239d389894613ef132edb1198a4f47cb2b65f92 | /packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py | 47d8c9c119af7f263295d7758735efe20215dec1 | [
"MIT"
] | permissive | fast3dd13sa/plotly.py | 2169417b72481ff2937b5a9ce90d426cd1cccd80 | e778c6b5e6ae9665d7a5e2ddb666f43806df3959 | refs/heads/master | 2022-04-26T01:11:46.345181 | 2020-04-27T19:49:56 | 2020-04-27T19:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,355 | py | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class AngularAxis(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.polar"
_path_str = "layout.polar.angularaxis"
_valid_props = {
"categ... | [
"noreply@github.com"
] | fast3dd13sa.noreply@github.com |
96d8a34b3cd25c0e6dc1ea2fbdab9a93836032c6 | 7bdc3d746cc9d6bff78b8a77d06253b7c489c00a | /env/lib/python3.6/site-packages/allauth/socialaccount/providers/stripe/provider.py | f0543fc16cf8adfd4cdc236059c43ffdfd1f3fde | [
"MIT"
] | permissive | Ao99/e-commerce-django | fadc0de705f67b16e8dd82f6cc962fd9efd548d9 | 6fe69a03047619b199c236532f53f7c2cb22a079 | refs/heads/master | 2022-12-14T01:56:19.266754 | 2021-09-09T18:18:47 | 2021-09-09T18:18:47 | 229,646,356 | 2 | 2 | MIT | 2022-12-08T03:22:13 | 2019-12-22T23:52:46 | JavaScript | UTF-8 | Python | false | false | 738 | py | from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class StripeAccount(ProviderAccount):
def to_str(self):
default = super(StripeAccount, self).to_str()
return self.account.extra_data.get('business_name', defa... | [
"aodong99@gmail.com"
] | aodong99@gmail.com |
73ae1f829aac04e5cf64578d0680afca18c8bc67 | 1ac7b4daeb1a5c8d792d0d5b5f909d63d86f50c2 | /datasciencebox/_version.py | bd66ec5cbb93fde86039687f38d0ee4629511269 | [
"Apache-2.0"
] | permissive | danielfrg/datasciencebox | aba62dca0d30fe3a60af975d58aed9be42ba792a | 6b7aa642c6616a46547035fcb815acc1de605a6f | refs/heads/master | 2021-01-24T06:30:48.037289 | 2016-02-02T22:52:26 | 2016-02-02T22:52:26 | 30,687,207 | 26 | 7 | null | null | null | null | UTF-8 | Python | false | false | 15,751 | 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 contains th... | [
"df.rodriguez143@gmail.com"
] | df.rodriguez143@gmail.com |
f777362a174a2f87bad3092ee523e69c4051168d | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/scikit-learn_test_results/conflicts/43_species_distributions_expected.py | 7f460789cc8fa9a9d9031f7e290c1130c7926513 | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,746 | py | """
=============================
Species distribution dataset
=============================
This dataset represents the geographic distribution of species.
The dataset is provided by Phillips et. al. (2006).
The two species are:
- `"Bradypus variegatus"
<http://www.iucnredlist.org/apps/redlist/details/3038/0>`_... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
7fbcb9f778738f2956f6c8a8f2cbbb42806ce55d | 7116c9850b40ea1ea27dc3d4a63ed718287be177 | /assignments/mp7/utils/gen_pbs.py | c8c4ecc8a3623ddc2bb986505ab0f7b92f1a8d96 | [] | no_license | share020/dl | f29829b51f9b0d223427b390805c49319945287b | 73c10db832c4100da7454d3122c29bd22dd0e690 | refs/heads/master | 2020-04-17T06:22:06.998056 | 2018-11-30T03:05:48 | 2018-11-30T03:05:48 | 166,322,141 | 2 | 0 | null | 2019-01-18T01:19:43 | 2019-01-18T01:19:43 | null | UTF-8 | Python | false | false | 771 | py | """This script creates a PBS file that runs one hyperameter setting."""
training_file = "preprocess_data.py"
walltime = "02:00:00"
jobname = "mp7-preprocess_data"
netid = "zna2"
directory = "~/scratch/mp7/"
print "#!/bin/bash"
print "#PBS -l nodes=1:ppn=16:xk"
# Change this if your hyperparameters change
print "#PB... | [
"32248549+Zhenye-Na@users.noreply.github.com"
] | 32248549+Zhenye-Na@users.noreply.github.com |
357fb5157bc85b2125aac9f00224da9f856e83c5 | 9a2a1df678c2a3bcfc7e2013798c7a633e3b4b96 | /config/wsgi.py | 7875815ac5e4c3ba85241bd1e2f3430bc60f836f | [
"MIT"
] | permissive | reckonsys/opensteer | 05bf2cc34d52cecba09aabb70a20b4b93737cae3 | 3c47bcf0a8de8e363ce8cced02827fe21a0d406a | refs/heads/master | 2022-12-09T11:33:59.270495 | 2020-07-29T03:05:09 | 2020-07-29T03:05:09 | 207,564,379 | 6 | 1 | MIT | 2022-12-08T06:39:46 | 2019-09-10T13:17:19 | Python | UTF-8 | Python | false | false | 1,679 | py | """
WSGI config for OpenSteer project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"dhilipsiva@pm.me"
] | dhilipsiva@pm.me |
5eb1d94205a5fa81a7e40a3960f87a2f47c7fd9e | 87f676da996db82348282d7bdd49d05fe5372356 | /test/unit/anchore_engine/subsys/auth/test_oauth.py | 5ad570b28d0235723239a0d20d800e2e167e51e1 | [
"Apache-2.0"
] | permissive | shrikant-rajappan/anchore | abad5baca5258c665d5f3fdc471ab75b86b71163 | e9838894f666161e84ecce408922e48ca045eaf6 | refs/heads/master | 2023-01-06T04:47:14.516052 | 2019-08-26T20:35:39 | 2019-08-26T20:35:39 | 204,663,580 | 0 | 1 | Apache-2.0 | 2022-12-21T15:42:54 | 2019-08-27T09:05:05 | Python | UTF-8 | Python | false | false | 3,035 | py | import pytest
from anchore_engine.subsys import logger
from anchore_engine.auth.oauth import load_keys, TokenVerifier, TokenIssuer, JwtTokenManager
from anchore_engine.utils import ensure_bytes, ensure_str
logger.enable_test_logging()
def test_load_keys():
config1 = {
'public_key_path': 'test/data/certs/... | [
"zach@anchore.com"
] | zach@anchore.com |
d6c2176cb6e43281e26785d32338fce868c0c6ab | fd8601dadcb9b0c3adf5fed7560e5078c7585f4c | /packages/i3blocks/settings.py | 6283fe5e75cbb643d85b6353124326c00c0d6368 | [
"MIT"
] | permissive | kalkins/system | 2364c1da1b6b5025f58312f33698f4e3d592aa20 | e1f7b4413d199d94758edfa516a1b7a6dbeb5da7 | refs/heads/master | 2023-05-13T10:54:33.018246 | 2023-05-08T09:42:54 | 2023-05-08T09:42:54 | 60,207,254 | 0 | 0 | null | 2019-02-20T15:21:30 | 2016-06-01T20:07:10 | Vim script | UTF-8 | Python | false | false | 190 | py | common_deps = {'i3blocks', 'upower'}
dependencies = {
'arch': common_deps.union(['sysstat', 'acpi', 'alsa-utils']),
'fedora': common_deps,
'ubuntu': common_deps,
}
make = True
| [
"sindre@sindrestephansen.com"
] | sindre@sindrestephansen.com |
ff5f6c2de5e8cdf407b7281bfa9e9decd90b7252 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-495.py | 7c8fa7177b43adb06d173c9699d1d3cdcda31576 | [] | 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 | 9,003 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f8c56c0d5ee2bb61d9dc9ae9ebe8475f02f0a080 | eec4e9956b360998e34e9a6efd23744b3b0cdf9c | /my_plugins/youcompleteme/python/ycm/client/completer_available_request.py | 7822876fce4cd1e9e6a1c4218c9c35cd61b5b690 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | dragon7-fc/vimrc | 7f89f8730090e81c8cb78cdc471437e35defd0c1 | d5968c222023bfdbd68b4f047f6e407e978cc82f | refs/heads/master | 2021-06-22T03:35:34.474482 | 2021-01-29T00:34:20 | 2021-01-29T00:34:20 | 182,471,836 | 0 | 0 | MIT | 2019-04-21T01:37:18 | 2019-04-21T01:37:17 | null | UTF-8 | Python | false | false | 1,464 | py | # Copyright (C) 2013 Google Inc.
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | [
"dragon7.fc@gmail.com"
] | dragon7.fc@gmail.com |
0bd8f3e0cc30331cfef979af97a85cb9c631a08d | 6a7d8b67aad59c51dafdfb8bcffd53864a3d65b0 | /LeetCode/constructTheRectangle.py | 6c498886d70239a3dd7e574285d04a3561937003 | [] | no_license | dicao425/algorithmExercise | 8bba36c1a08a232678e5085d24bac1dbee7e5364 | 36cb33af758b1d01da35982481a8bbfbee5c2810 | refs/heads/master | 2021-10-07T08:56:18.030583 | 2018-12-04T05:59:17 | 2018-12-04T05:59:17 | 103,611,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!/usr/bin/python
import sys
class Solution(object):
def constructRectangle(self, area):
"""
:type area: int
:rtype: List[int]
"""
w = int(math.sqrt(area))
while area%w != 0:
w -= 1
return [area/w, w]
def main():
aa = Solution()
print aa.... | [
"di.cao425@gmail.com"
] | di.cao425@gmail.com |
b337a0d62945a83a78314058879409d2876b147b | 437f553955193ea28288dae0a7788313bf25d1cd | /users/migrations/0037_delete_profile.py | f1e26f9f31079308553f3c714c2f2d4a74358182 | [] | no_license | sakows/backend | 4a5807e334d6ff821b7c3f49eac9bd815f0c0ef0 | 0361ac2e3281372cfd2253d251d511e0a421e7da | refs/heads/master | 2020-08-05T22:22:26.347366 | 2019-10-03T03:44:41 | 2019-10-03T03:44:41 | 212,733,181 | 0 | 0 | null | 2019-10-04T04:05:51 | 2019-10-04T04:05:51 | null | UTF-8 | Python | false | false | 291 | py | # Generated by Django 2.2 on 2019-09-16 20:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0036_auto_20190916_1253'),
]
operations = [
migrations.DeleteModel(
name='Profile',
),
]
| [
"sdemirci55@gmail.com"
] | sdemirci55@gmail.com |
aa823d982f38e2e85c3ad381081fcae1c9d767e3 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/g_tools/ops/curve_ops_backup.py | 63b8e93ffe401e1ded01ab3ae7ed122ef7c811a8 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | #importdefs
import bpy
from g_tools.bpy_itfc_funcs import curve_fs
from bpy_extras.io_utils import ImportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty, CollectionProperty
from bpy.types import Operator
#fdef
#opdef
class curve_to_armature_op(bpy.types.Operator):
"""NODESC"""
bl_idn... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0b6a1cefe5b0217a8b292600c2a639b82e2d0720 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/leveleditor/worldData/pvp_mayhemInterior1.py | 213e375443f333b294f4ba6555dac9f088611e22 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,178 | py | from pandac.PandaModules import Point3, VBase3, Vec4, Vec3
objectStruct = {
'LevelEnvironment': {
'BASE': {
'AmbientColor': Vec4(0.48999999999999999, 0.34000000000000002, 0.66000000000000003, 1),
'BackColor': Vec4(1.8600000000000001, 1.03, 0.47999999999999998, 1),
'Direct... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
0be73851528eb4dec345791cf77cdad23ce7bd2c | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/androguard/core/analysis/ganalysis.py | 00980d6a64229de944848a59017820555e12b8b2 | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 113,613 | py | # This file is part of Androguard.
#
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>
# All rights reserved.
#
# Androguard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"edisonlz@163.com"
] | edisonlz@163.com |
78d6dcfbee60a59f0a997910149936a99d09770b | 70ab3ee89cafa7f4882a6944e6ec335210875d30 | /run_Single_thread_scene_lemi.py | 9b2bc66a1da39e7bff8e93ffd61e43a8ce9db3bb | [] | no_license | SXL5519/caipiao1.0_1 | 3fa1fecd00576c36f37e6af21f0fe9b326289a6a | 2db4387c5bad536cce99417041fbd34a699aa2cc | refs/heads/master | 2021-10-10T07:39:45.127902 | 2019-01-08T09:32:47 | 2019-01-08T09:32:59 | 164,613,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | import unittest,time
from HTMLTestRunner_jpg import HTMLTestRunner
from modle.function import send_mail,screen_shot,logfile
case_dir = "./test_case/Lemi"
pattern="*single_thread_*.py"
discover = unittest.defaultTestLoader.discover(case_dir,pattern)
logfile()
if __name__ =='__main__':
#日期格式化
times = time.strf... | [
"shaoxinlin5519@163.com"
] | shaoxinlin5519@163.com |
e73312ed24bfd1cf634db3e83af0c3b8afdd542e | f35bb12066639698a94847cba4b4628aede1da70 | /contests/python/abc205/c/main.py | e964fa4fb2ef25f67a7c74510a76156481e6880f | [] | no_license | fly1tkg/atcoder-python-note | 7e74382a8867b07bb7a926988ac854a3b84e020b | 6051b771c0a0399ce8caf1e24256a9909101b0e7 | refs/heads/main | 2023-08-26T23:52:14.766576 | 2021-10-30T11:58:38 | 2021-10-30T11:58:38 | 363,686,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | A, B, C = map(int, input().split())
if C == 0:
print('=')
exit()
plus = C > 0
if C % 2 == 0:
abs_a = abs(A)
abs_b = abs(B)
if abs_a > abs_b:
print('>') if plus else print('<')
elif abs_a < abs_b:
print('<') if plus else print('>')
else:
print('=')
else:
if A > B:
print('>') if plus e... | [
"fly1tkg@gmail.com"
] | fly1tkg@gmail.com |
c95eb81f2418d5e9566fd4d3c5db3eb62e749593 | 813b90d336f7681dabe9eb242f9c7f916cbc52b6 | /ytmdl/core.py | 64995e7be8a3576668b28cb6c284f84e0147eb5d | [
"MIT"
] | permissive | 4mitabh/ytmdl | 4ab452949190c0515f9dd372ef3aecd7afb4783d | d9763dcae6e7c5b6d997b0a1c87c8cc5cdf1e3fe | refs/heads/master | 2023-01-28T05:54:43.560706 | 2020-11-30T12:42:18 | 2020-11-30T12:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,053 | py | """Contain all the core functions for ytmdl"""
from typing import Union
from simber import Logger
from colorama import Fore, Style
from ytmdl import (
yt,
song,
stringutils,
defaults,
utility,
manual,
metadata
)
from ytmdl.exceptions import (
DownloadError, ConvertError, NoMetaError, M... | [
"deep.barman30@gmail.com"
] | deep.barman30@gmail.com |
79a94744eb308cb025877a8f016c81aeaeedbc48 | 3c9e26f68ce816c93a654232bdfa14ead0ffa836 | /Protool/errors.py | 6844661aad07febaf4f75a982561fad88f0c9149 | [] | no_license | tommycarstensen/sandbox | ea96fbcad927f0cad8fe14c1358cc31349257c66 | 9bef770251bf7bd2f22703fc01188bc78a71b69a | refs/heads/master | 2021-06-09T05:57:29.694528 | 2017-08-17T17:09:48 | 2017-08-17T17:09:48 | 6,844,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | #
# $Id: errors.py 3233 2008-02-06 15:25:33Z nielsen $
#
# This file is part of the Protool package
#
# (c) Jens Erik Nielsen, http://www.cmbi.kun.nl/gv/nielsen
##
# This file contains error messages and a few flags that control
# the overall behaviour of Protool
#
#
# Invalid atoms - f.ex. side chain atoms for a ph... | [
"tommy.carstensen@gmail.com"
] | tommy.carstensen@gmail.com |
809bdc255d4ef63a4602839b975f1c17b7048a40 | ae552c95e48f950b339751af7cf30fe03f9c3fd4 | /school_quiz_proj/wsgi.py | 11fd02488dd033e2d66c8824c9c32cae482fc3b4 | [] | no_license | tarunkarmakardev/school_quiz | 7b976d174b835296f48603a2983d42977e18f841 | 9ae47d1165ea0f2c985f8ce9a1967d7fd04280a8 | refs/heads/master | 2023-02-10T15:53:37.351123 | 2021-01-08T16:18:48 | 2021-01-08T16:18:48 | 327,334,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for school_quiz_proj 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"tarun.karmakar.dev@gmail.com"
] | tarun.karmakar.dev@gmail.com |
c2ad929006311ad2a220c0cfffedd592a5d567df | 6abb92d99ff4218866eafab64390653addbf0d64 | /AtCoder/abs/practice/9.py | 2ea0207f818b51d0ddfd8d8414f603be5eecdcba | [] | no_license | Johannyjm/c-pro | 38a7b81aff872b2246e5c63d6e49ef3dfb0789ae | 770f2ac419b31bb0d47c4ee93c717c0c98c1d97d | refs/heads/main | 2023-08-18T01:02:23.761499 | 2023-08-07T15:13:58 | 2023-08-07T15:13:58 | 217,938,272 | 0 | 0 | null | 2023-06-25T15:11:37 | 2019-10-28T00:51:09 | C++ | UTF-8 | Python | false | false | 335 | py | def main():
n, y = map(int, input().split())
for i in range(n+1):
for j in range(n+1):
k = n - i - j
if k < 0: continue
if 10000 * i + 5000 * j + 1000 * k == y:
print(i, j, k)
exit()
print(-1, -1, -1)
if __name__ == '__main... | [
"meetpastarts@gmail.com"
] | meetpastarts@gmail.com |
4664b782f30318db3a1cc5bf8e2bc1700d22c1a4 | 622183f2069a84508e87d0ceebfd203d0ec9332a | /exercises/Decorators.py | 48fd9a83dd0d43e7ec581f12310c6ab06cea6ba5 | [] | no_license | kasrasadeghi/cs373 | f4ff92fa8c472242fe9df10f6d5a022cba6fcdd9 | 7036f22db3e2830bf79395a3aef3c7bed4e58887 | refs/heads/master | 2021-01-01T18:23:57.473050 | 2017-07-25T15:58:55 | 2017-07-25T15:58:55 | 98,325,040 | 0 | 0 | null | 2017-07-25T15:59:32 | 2017-07-25T15:59:32 | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python3
# pylint: disable = bad-whitespace
# pylint: disable = invalid-name
# pylint: disable = missing-docstring
# pylint: disable = too-few-public-methods
# -------------
# Decorators.py
# ---- ---------
def make_iterable (c) :
class iterable :
def __init__ (self, *t, **d) :
... | [
"downing@cs.utexas.edu"
] | downing@cs.utexas.edu |
d0981efe09e97c36c2d3fe621091cd402d3d6ec8 | 49cd5b923560b3258bdc4bddf183a89d847bd3ff | /tools/config_validation/validate_fragment.py | d272f37fb006ca99df7576d37503b503f55a4ca3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy-wasm | 4b12c109387594122915dcc8de36bf5958eba95b | ab5d9381fdf92a1efa0b87cff80036b5b3e81198 | refs/heads/master | 2023-08-01T12:38:34.269641 | 2020-10-09T18:27:33 | 2020-10-09T18:27:33 | 185,880,979 | 223 | 96 | Apache-2.0 | 2020-12-15T18:56:39 | 2019-05-09T22:37:07 | C++ | UTF-8 | Python | false | false | 2,414 | py | # Validate a YAML fragment against an Envoy API proto3 type.
#
# Example usage:
#
# bazel run //tools/config_validation:validate_fragment -- \
# envoy.config.bootstrap.v3.Bootstrap $PWD/configs/google_com_proxy.v2.yaml
import json
import pathlib
import sys
import yaml
from google.protobuf import descriptor_pb2
fro... | [
"noreply@github.com"
] | envoyproxy.noreply@github.com |
e371b97715d986b6e58e493ae4e685afba617754 | 31738f25e365067d0c2477dc99de3112517e9469 | /setup.py | f4abad02aba073f0452a675177d7be6c29bdcd6b | [] | no_license | rfloriano/django-workdays | 57c5a8eda1bfc9214a9e53d70b60c0e922e25776 | 33b0e294b654d9c419463f0fc162e1a36df04be9 | refs/heads/master | 2021-01-22T04:40:57.430365 | 2015-07-30T18:18:52 | 2015-07-30T18:18:52 | 32,201,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is part of backstage-store.
# https://github.com/globoi/backstage-store
from setuptools import setup, find_packages
tests_require = [
'ipdb',
]
setup(
name='django-workdays',
version='0.0.1',
description='workdays is a django-app for manage workd... | [
"rflorianobr@gmail.com"
] | rflorianobr@gmail.com |
1e8f150da5ac9d636ff2ff9e98a2d9b2931f3ba8 | 5992bd392839340bfbaf3357cef5dbe8d09c4018 | /0x02-python_async_comprehension/0-async_generator.py | ac52cf6cb6e9140ddc793b31f6a3bade4dbed32d | [] | no_license | kimha1030/holbertonschool-web_back_end | 7baa9c8e00edaebe321a4d0b3b881067cef7e334 | b0d5da9dde09c2627435d2d57cbcbcaa5403cef8 | refs/heads/main | 2023-08-27T12:49:39.439678 | 2021-10-12T23:40:57 | 2021-10-12T23:40:57 | 347,981,093 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!/usr/bin/env python3
"""async_generator"""
import random
import typing
import asyncio
async def async_generator() -> typing.Generator[float, None, None]:
"""[The coroutine will loop 10 times, each time asynchronously wait 1
second, then yield a random number between 0 and 10. ]
Args: no args
Re... | [
"1478@holbertonschool.com"
] | 1478@holbertonschool.com |
03ad5abf078df2a679175cff9a76178aad85e08e | 8f5b54c49c1da2fd4cf6c9141c35924ccc255a16 | /category/migrations/0001_initial.py | 40fdbe9f6c0f7e1fe938b8086cec0795d019310c | [] | no_license | surajnai567/jshop | ee2ea14fe99fe3a36cd73263ce2b7dd190047bc6 | e11c7174e9abe095f8a6d221978c7d41e2b34e96 | refs/heads/master | 2022-12-15T10:34:16.840769 | 2020-09-19T21:53:01 | 2020-09-19T21:53:01 | 295,671,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # Generated by Django 3.1.1 on 2020-09-19 20:36
import cloudinary.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"surajnai567@gmail.com"
] | surajnai567@gmail.com |
a1096ba930c6c1e7098b7925c344e93a6eb2347b | 07b4dd9a88f3404c4851ea7cbb57c67035bc9a54 | /reg.py | dc269f8f4adefd95a62cf4ddbed598131a5d5c5c | [] | no_license | surajgholap/python-Misc | 9c9d02c42bb37b7378d7336343f8bef7cd802edf | 4a8ce4bfa5a959692d98663b7b5c0b67a165835f | refs/heads/master | 2021-06-17T19:19:25.021038 | 2021-01-27T20:54:03 | 2021-01-27T20:54:03 | 142,781,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import re
def main():
inp = input("Enter the input")
reg = re.compile('\d+.\d+.\d+.*\d*')
a = reg.search(inp)
print(a)
if __name__ == "__main__":
main()
| [
"surajgholap27@gmail.com"
] | surajgholap27@gmail.com |
5fd04f140f476608fcff1f2e420d78b077991248 | ad1043674d5c4a0045f8f982cd2bdc95b467a3b4 | /app/__init__.py | 558a468f80df9598a5edf1b3143804c14c6679c9 | [] | no_license | microrepar/les12019-sgfbh | ab85370942e5e153a44f32914c43603b451c41df | 5d695e7141e8380b2201c78a263312be15fc2474 | refs/heads/master | 2020-05-28T02:37:25.760103 | 2019-05-27T14:18:41 | 2019-05-27T14:18:41 | 188,856,721 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
# codigo de teste do Blueprint ########################################
db = SQLAlchemy(session_options={"autoflush": False})
migrate = Migrate()
login = Lo... | [
"microrepar@gmail.com"
] | microrepar@gmail.com |
ae64d7cdab924de0729e6c3ca54c2f3d64422ef0 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_arm/source/sklearn/cluster/_spectral.py | e9a5d7a7b4302952cff09566c9f4266b446f79ee | [
"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 | 23,655 | py | # -*- coding: utf-8 -*-
"""Algorithms for spectral clustering"""
# Author: Gael Varoquaux gael.varoquaux@normalesup.org
# Brian Cheung
# Wei LI <kuantkid@gmail.com>
# License: BSD 3 clause
import warnings
import numpy as np
from ..base import BaseEstimator, ClusterMixin
from ..utils import check_rand... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
2717320cba675030d015ef835440b7c564322e59 | 67e1083b9d2a44395710027641909c61607262bc | /azure-mgmt-media/azure/mgmt/media/models/image_py3.py | 974dd6c2d213119548aea42c058529fb4b4ff6ae | [
"MIT"
] | permissive | JonathanGailliez/azure-sdk-for-python | 56a0efb56bd01c9b970705b32fdd9956491840a9 | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | refs/heads/master | 2020-04-27T13:12:15.311711 | 2019-03-07T15:13:41 | 2019-03-07T15:13:41 | 174,361,054 | 0 | 0 | MIT | 2019-03-07T14:32:20 | 2019-03-07T14:32:19 | null | UTF-8 | Python | false | false | 3,689 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.