blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34942505baad8947f6dd2873e760312844885d8c | 84290c584128de3e872e66dc99b5b407a7a4612f | /Supervised Learning with scikit-learn/Preprocessing and pipelines/Exploring categorical features.py | 73f5ca0f33fd8160140de5928e35ad2942a6c0c6 | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # Import pandas
import pandas as pd
# Read 'gapminder.csv' into a DataFrame: df
df = pd.read_csv('gapminder.csv')
# Create a boxplot of life expectancy per region
df.boxplot('life', 'Region', rot=60)
# Show the plot
plt.show() | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
8e35173529c3d1f4ee7752944ed888e452e26d55 | 4e0f2938b003f5d68a57f213e652fbffb2f72ba2 | /FishStat.py | 945c3dceaecd179cbe1f6495d874201ca021136c | [] | no_license | adcGG/Lianxi | e4b1ce0d3cfc76e625e1e1caca0a58f25ba5d692 | 3659c3ca11a13b4ad54dbd2e669949701bae10b5 | refs/heads/master | 2022-12-13T05:45:41.312292 | 2019-08-14T07:38:19 | 2019-08-14T07:38:19 | 201,189,540 | 0 | 1 | null | 2022-04-22T22:08:16 | 2019-08-08T06:07:53 | Python | UTF-8 | Python | false | false | 753 | py | from FishStat_M import *
d_data1 = {'鲫鱼':[17,10.5],'鲤鱼':[8,6.2],'鲢鱼':[7,4.7]}
d_data2 = {'草鱼':[2,7.2],'鲫鱼':[3,12],'黑鱼':[6,15]}
d_data3 = {'乌龟':[1,78.10],'鲫鱼':[1,10.78],'草鱼':[5,7.92]}
fish_records = {'1月1日':d_data1,'1月2日':d_data2,'1月3日':d_data3}
print('===========鱼 每日统计==================')
for day,day_record in fish_re... | [
"979818137@11.com"
] | 979818137@11.com |
f9cd0e480d488bc9f2e2f08cc197f11eda96d4f9 | d2189145e7be2c836017bea0d09a473bf1bc5a63 | /RepoEderGLEZ/maximo.py | d48ef60f686d63a65000e6f759da20825ef23e6a | [] | no_license | emilianoNM/Tecnicas3 | 12d10ce8d78803c8d2cd6a721786a68f7ee2809d | 6ad7f0427ab9e23643a28ac16889bca8791421d0 | refs/heads/master | 2020-03-25T18:06:34.126165 | 2018-11-24T04:42:14 | 2018-11-24T04:42:14 | 144,013,045 | 3 | 5 | null | 2018-09-14T10:47:26 | 2018-08-08T12:49:57 | Python | UTF-8 | Python | false | false | 237 | py |
# coding: utf-8
# In[ ]:
def max_de_tres (n1, n2, n3):
if n1 > n2 and n1 > n3:
print n1
elif n2 > n1 and n2 > n3:
print n2
elif n3 > n1 and n3 > n2:
print n3
else:
print "Son iguales"
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
e73cc48b16a92a0d292352ee82a9998151df53e9 | afc677459e46635ceffccf60d1daf50e62694557 | /ACME/layer/G_ResNet.py | 18d85afe4ac09bcdd701740c2fa52ed493735efb | [
"MIT"
] | permissive | mauriziokovacic/ACME | 056b06da4bf66d89087fcfcbe0fd0a2e255d09f3 | 2615b66dd4addfd5c03d9d91a24c7da414294308 | refs/heads/master | 2020-05-23T23:40:06.667416 | 2020-01-10T14:42:01 | 2020-01-10T14:42:01 | 186,997,977 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,959 | py | import torch
from ..utility.isdict import *
from ..utility.isfunction import *
from ..utility.islist import *
from ..utility.isstring import *
from ..utility.strrep import *
from .HookLayer import GResidualLayer
class G_ResNet(torch.nn.Module):
"""
A class representing a G-ResNet.
... | [
"maurizio.kovacic@gmail.com"
] | maurizio.kovacic@gmail.com |
097a7f98935800db1d4fad46f07caa7fbb20b50e | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /suning/api/custom/SyncinventoryModifyRequest.py | 96c1ee3cbf2bef8db068f90da32d642d69df7653 | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
'''
Created on 2017-4-24
@author: suning
'''
from suning.api.abstract import AbstractApi
class SyncinventoryModifyRequest(AbstractApi):
'''
'''
def __init__(self):
AbstractApi.__init__(self)
self.invCode = None
self.invQty = None
self.invT... | [
"945090896@qq.com"
] | 945090896@qq.com |
adecf678b708a3b02c4d1124df95c1d94ff22331 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/fabric/FabricVlanReq.py | 4a947939928c0fb69f95111d16b61d5c71b11c77 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | """This module contains the general information for FabricVlanReq ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class FabricVlanReqConsts():
TYPE_LAN = "lan"
TYPE_SAN = "san"
class FabricV... | [
"test@cisco.com"
] | test@cisco.com |
82ad6c501349fa8ec836cd93757f07ebc8d5b408 | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_closedset_braccent/config_SVM_256_fold3.py | 1deac4bcdc4a8fe44d51e352f22a0698fc5b5b3f | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/closedset_braccent/SVM/256/fold_3/temp/'
result_directory = './r... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
ceca3ab28687fe7d034618675876a1af33a3f80e | 88c1f9ccb62e91d6b0574bcde1043921bdeb0126 | /gmn/src/d1_gmn/app/management/commands/get-object.py | d7f231afcce712abccbba6d51c6c74e801e515bb | [
"Apache-2.0"
] | permissive | jevans97utk/d1_python | 83b8de8780287c655779844f367b9189413da074 | 3ac4d4f3ca052d3e8641a6a329cab526c8ddcb0d | refs/heads/master | 2020-05-21T01:16:50.677816 | 2019-04-22T16:09:44 | 2019-04-22T16:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,558 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
48772cc08b45cd115a6c77064b19a3a88b18974f | 5b34c5b1741d98a6ecd7bb016748e97ef70f4399 | /pq_factorization/performance.py | dbb4afe1699be1bb95d44f1436d2378028f24007 | [] | no_license | N8Brooks/schrute_farms_algos | d6e1235ae805beba20fa1da4c3fa90a9ae438bd3 | dea6db1ee4224238a05d4ec8fe52dce5abb383d1 | refs/heads/master | 2021-07-01T02:14:38.253423 | 2021-01-16T17:32:18 | 2021-01-16T17:32:18 | 214,240,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | # -*- coding: utf-8 -*-
from imath import ilog
from sympy import isprime
from time import time
import pandas as pd
from tqdm import trange
from random import randrange
from trial_division import trial_division
from pollard_pm1 import pollard_pm1, pollard_pm2
from william_pp1 import william_pp1
from fermat import ferm... | [
"natebrooks004@gmail.com"
] | natebrooks004@gmail.com |
c7985db68b7bd751fad9576a9015db2380efbad7 | 122b3dad5ccb68232a88401efb5391756edcf107 | /accounts/urls.py | e17cd9e0993189fc9b291d2960ad4537056c3e08 | [] | no_license | Max907-dev/blog-app | 84a51ce743eec8cf734efae13e7b09a5febbe0dd | bb9647b3548a4717fd8e2de7fd43273af5611c7b | refs/heads/main | 2023-09-02T08:13:08.153675 | 2021-10-30T21:04:10 | 2021-10-30T21:04:10 | 420,802,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.urls import path
from . import views
urlpatterns = [
path('signup/', views.SignUpView.as_view(), name = 'signup'),
] | [
"you@example.com"
] | you@example.com |
728c14a4a16bdaa3332847731d36a0860b7b6486 | 120b5dd29db40974b4cae7b60570facdae649d87 | /900/leetcode933/ans.py | 5a416dc19ba959f47ba327826100aafd872dafa2 | [] | no_license | mashpolo/leetcode_ans | 592b269119d3d0eba21f29d47fcd1242f3ecf39b | 3ef4c69ad51e6c1c50c374a2c276514b9ee2629c | refs/heads/master | 2021-06-16T22:38:54.713064 | 2019-08-21T15:00:44 | 2019-08-21T15:00:44 | 142,158,866 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!/usr/bin/env python
# coding=utf-8
"""
@desc:
@author: Luo.lu
@date: 2019-03-11
"""
class RecentCounter(object):
def __init__(self):
self.pinglist=[]
self.minindex=0
def ping(self, t):
"""
:type t: int
:rtype: int
"""
self.pinglist.append(t)
... | [
"luluo.polo1@gmail.com"
] | luluo.polo1@gmail.com |
714149c2b890579f3653cb1000f77868951a9dde | 897802abf4ee5c7267de3eb5e321cc931898e2f6 | /python/python/eric/part2_project/project01_game_aliens/button.py | 6e88d0f51ff5c1b1509c255eeec6570313995b96 | [] | no_license | aojie654/codes_store | 0527c7a7729b472e8fd2fd67af462cf857970633 | ed71b6266b2d2b5ddefadcb958f17695fb9db6cf | refs/heads/master | 2021-07-15T17:04:33.591673 | 2021-07-03T14:42:30 | 2021-07-03T14:42:30 | 132,343,733 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # coding=utf-8
# @File : button
# @Author: aojie654
# @Date : 18-6-11 上午10:13
# @Desc : Button
import pygame as pg
class Button():
def __init__(self, ai_settings, screen, msg):
"""initialize attributes of button"""
self.screen = screen
self.screen_rect = screen.get_rect()
# Se... | [
"aojie654@live.cn"
] | aojie654@live.cn |
1545c7c4c9497d94741a96a1beb12c2836d877a0 | d5eb2fe5d49b581562ae2bc660d08ca80a03d331 | /PythonSandbox/src/leetcode/lc209_min_size_subarray_sum.py | fe5c0567696da129bf06461466730b1fe958f6af | [] | no_license | mcxu/code-sandbox | fd5aa2e593057901d281a0e74db8957777b06cf3 | a785231582bda8578f79982e2dcddd2f2ab559b4 | refs/heads/master | 2023-07-10T02:07:24.180947 | 2023-07-08T03:31:48 | 2023-07-08T03:31:48 | 130,493,607 | 4 | 2 | null | 2023-01-15T22:53:29 | 2018-04-21T16:49:40 | Python | UTF-8 | Python | false | false | 1,914 | py | # https://leetcode.com/problems/minimum-size-subarray-sum/
class Solution:
def minSubArrayLen(self, target: int, nums: [int]) -> int:
subarrayLen = float('inf')
runSum = 0
loIdx = 0
for i,n in enumerate(nums):
runSum += n
while runSum >= target:
... | [
"michaelxu79@gmail.com"
] | michaelxu79@gmail.com |
d92ca61e7c28c18f2f1dc2ad6836f67a2ae8cae8 | 30b1ad6305b2f6898d4a5216cd50a947661bbfd3 | /test/test_functions/test_cosine8.py | bb88dee28f6a86027ba4b7744e73557f16a0345e | [
"MIT"
] | permissive | arnabtarwani/botorch | f67ff2f0771f65bff0c7829c4260fcae76e160fc | 18a3fc62baecc27fca1aef279740d5335ef8f59d | refs/heads/master | 2020-05-30T16:18:35.948810 | 2019-06-01T00:06:34 | 2019-06-01T00:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | #! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
import torch
from botorch.test_functions.cosine8 import GLOBAL_MAXIMIZER, GLOBAL_MAXIMUM, cosine8
DIMENSION = 8
class TestCosine8(unittest.TestCase):
def test_single_eval_cosine8(self, cuda=False):
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3e022500c984ecc8d42f5041b9cc843167ee46dd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch158_2020_04_29_17_55_26_036113.py | 4ec71671b4c3d889d53960531538ba3c4bd1770e | [] | 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 | 205 | py | with open('texto.txt', 'r') as arquivo:
conteudo = arquivo.read()
palavras = conteudo.split()
conta_palavras = 0
for palavras in conteudo:
conta_palavras += 1
print(conta_palavras) | [
"you@example.com"
] | you@example.com |
7ec9f680b5e520564f1c5965893b965c7238381d | c22da67f4b1ac5e7fc28a9f81bf9fccefb33308e | /companies/拼多多/拼多多2019秋招部分编程题合集/回合制游戏.py | 7d9167926eba5618ba0f9d64c76df294eb04cb29 | [] | no_license | iamkissg/nowcoder | 3b9d7ffffaba2c1ee43647595ae86619e2efb504 | 9b7e590d8f2e200d1ac98672d10f3ae9216a13e1 | refs/heads/master | 2020-05-04T10:35:55.606425 | 2020-04-28T12:49:52 | 2020-04-28T12:49:52 | 179,091,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import sys
# 100% passed
class Solution:
def attack(self, hp, normal_attack, buffed_atttack):
if normal_attack * 2 >= buffed_atttack:
result, rest = divmod(hp, normal_attack)
return result + (1 if rest else 0)
else:
result, rest = divmod(hp, buffed_atttack)
... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
17c40d60457404ada6079006b570fccf3822ae60 | fd61eb5dec053682ffd3d4887cbab1b56c564365 | /test/avro/all_tests.py | 1ee609affc5b9f7ae571f2d54ea5d215154a10f2 | [
"Apache-2.0"
] | permissive | crs4/pydoop | f6a0cc5687891a893fc806e4c5405d238aa6e286 | c7233b3a9feceb6055ea4b23213f273daed65e58 | refs/heads/develop | 2023-08-20T22:35:11.500338 | 2022-01-20T16:25:51 | 2022-01-20T16:25:51 | 10,475,304 | 214 | 64 | Apache-2.0 | 2022-01-20T16:19:10 | 2013-06-04T09:37:11 | Python | UTF-8 | Python | false | false | 1,028 | py | # BEGIN_COPYRIGHT
#
# Copyright 2009-2022 CRS4.
#
# 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 ... | [
"simleo@crs4.it"
] | simleo@crs4.it |
2452730f77870bbdd19c9cf8b241deb8bf9cf681 | 587dbdf730b6cc3e693efc5dca5d83d1dd35ee1a | /leetcode/msjd/02-08.py | 6072f53995c3093565cf2cfe04194ea8ad61093e | [] | no_license | Rivarrl/leetcode_python | 8db2a15646d68e4d84ab263d8c3b6e38d8e3ea99 | dbe8eb449e5b112a71bc1cd4eabfd138304de4a3 | refs/heads/master | 2021-06-17T15:21:28.321280 | 2021-03-11T07:28:19 | 2021-03-11T07:28:19 | 179,452,345 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
# ======================================
# @File : 02-08.py
# @Time : 2020/12/12 20:12
# @Author : Rivarrl
# ======================================
from algorithm_utils import *
class Solution:
"""
[面试题 02.08. 环路检测](https://leetcode-cn.com/problems/linked-list-cycle-lcci/)
""... | [
"1049793871@qq.com"
] | 1049793871@qq.com |
f597375eeecc7347e906ef79600d26901ea0e49e | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1209/17940.py | 4d2e6f410833a1c61892a8e3108da0d42f82dc08 | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from heapq import heappop,heappush
def go(start = 0):
q = [[0,0,0]] # 환승 횟수, 비용, 노드
vis = [0]*n
vis[0] = 1
cst = [9999999999999]*n
while q:
hwan, cost, node = heappop(q)
vis[node] = 1
if node == m:
print(hwan, cost)
return
for i in range(len(b... | [
"nan308@naver.com"
] | nan308@naver.com |
01b4bec1c631d225059d80a7bee0c551bd3b7a20 | 7174b27cd79cad398ffa1add9b59da6e9adbeae4 | /python_algorithm/02_sort_algorithm_second/05_merge_sort.py | 96813bd4844ad951d092ac77f50c272df237477e | [] | no_license | UULIN/py | ddf037021afce04e46d51c133bfa06257ef7200a | a5d32597fc91fbd5ec41f54fb942c82300766299 | refs/heads/master | 2021-07-18T08:20:49.342072 | 2020-10-21T14:41:42 | 2020-10-21T14:41:42 | 222,977,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # 归并排序
"""
采用递归思想和二分思想,首先将列表拆分为不可再分的单元,然后将单元进行merge操作,将较小的值放入临时列表,剩余的值进行追加
"""
# 首先我们来写一个分的操作,采用提柜发
def merge_sort(list):
# 二分法,定义序列的长度
length = len(list)
# 设定退出的条件,如果length <= 1,则表示列表为不可分割的最小单元,返回list即可
if length <= 1:
return list
# 确定中位数,进行左右分割
mid = length // 2
# 采用递归的方式进行数据分割... | [
"1036190402@qq.com"
] | 1036190402@qq.com |
a3c3238bc26cf4e997d404f139f391346d5036a9 | f4d2d5dfdfd20197e28abf83dee3c86a465ab695 | /roster/teacher/migrations/0003_auto_20171102_0715.py | f01f62a314bbd10375d811be36594b4d863f83c8 | [] | no_license | Divakersoni/Roster-Beta- | c5bf6c343749a38a165f80e1d0ecb17ccfb42b86 | cb30e4ec9d1295b98753d7343e1d382c8d840c7f | refs/heads/master | 2021-05-11T07:17:37.907691 | 2018-01-18T17:24:21 | 2018-01-18T17:24:21 | 118,014,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-02 07:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teacher', '0002_auto_20171030_1252'),
]
operations = [
migrations.RemoveFie... | [
"YOUR@EMAIL.com"
] | YOUR@EMAIL.com |
767734ebdb6e5a3a1d9106fdf9effb9052b62ab0 | 6dd95cd7eb378dac86a0b8c025687bb12a34f361 | /myscript/rakuten/node_modules/easy-livereload/node_modules/livereload-server/node_modules/websocket.io/node_modules/ws/build/config.gypi | 103980ba84e81b5cd99577933fc46aeb656fc58e | [
"MIT"
] | permissive | starcharles/SocialKenchin | 4965b55a409b44a214cdfd46b327e0ce55988991 | 84bdd4fd1000b7974f5ea3df915283ef1561aafc | refs/heads/master | 2021-01-10T21:52:25.847328 | 2015-07-06T01:50:30 | 2015-07-06T01:50:30 | 38,529,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_small": "false",
"node_install_npm... | [
"you@example.com"
] | you@example.com |
47529c926b45a560ffc4edad7aa747e56ee5efcf | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /LUPY/xmlNode.py | 88006747587a3927619bbb3d83fe3f01fe831a04 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 4,422 | py | # <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
"""
Wrapper for xml parsers (Etree, DOM, etc), in case we need to support multiple parsers. For now only supporting
python's ... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
14507231eff3a1eb908ce1ead8228be6de6ec886 | 3384cb4b0f70e12a74e7f425461f926877616c98 | /FinalHT.py | 6500cc33d2de59ea3e52b2d55c51dd62a0ef478f | [] | no_license | brynmathias/RA1TriggerEffs | 847914e7bd0b7b7670777d14eeb5752c788ffb6d | 8d663f42609666ce69154abd05e973aee6aad3b1 | refs/heads/master | 2020-05-30T11:12:13.278477 | 2013-01-07T11:53:26 | 2013-01-07T11:53:26 | 2,630,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,143 | py | #!/usr/bin/env python
# encoding: utf-8
"""
FinalHT.py
Created by Bryn Mathias on 2011-11-25.
Copyright (c) 2011 Imperial College. All rights reserved.
"""
import sys
import os
from plottingUtils import *
from finalDict import *
def main():
outfile = open("./Effs.txt",'w')
c1 = Print("FinalPlotsFromHT.pdf")
t... | [
"brynmathias@gmail.com"
] | brynmathias@gmail.com |
c9126befa81b5248e0fcd8bef1c9fd24cbd126c6 | 74cfd622a8c8cddde8a078c07090c35a3e8b88df | /ipycanvas/utils.py | ddf20ed1137c5e0795ffcf3e25e49bfadf3c47f6 | [
"BSD-3-Clause"
] | permissive | JeremiasE/ipycanvas | c74de8fa14cdf9ecec65e374443a130819ddbcae | 8df6a970194454f577236ea16101e9b0cf78fc19 | refs/heads/master | 2020-11-27T17:10:23.058929 | 2019-11-06T12:38:41 | 2019-11-06T12:38:41 | 229,540,571 | 0 | 0 | BSD-3-Clause | 2019-12-22T08:43:18 | 2019-12-22T08:43:17 | null | UTF-8 | Python | false | false | 2,063 | py | """Binary module."""
from io import BytesIO
from PIL import Image as PILImage
import numpy as np
def image_bytes_to_array(im_bytes):
"""Turn raw image bytes into a NumPy array."""
im_file = BytesIO(im_bytes)
im = PILImage.open(im_file)
return np.array(im)
def binary_image(ar):
"""Turn a NumP... | [
"martin.renou@gmail.com"
] | martin.renou@gmail.com |
97b3bf542f9035afec0b03ac69f6019794d76a8e | 21b0b4c27193898207751c91b8b2ed168a1b1638 | /py/py_0569_prime_mountain_range.py | b8a146c60f72b89376c1c2ede1a7de588614e5ed | [
"MIT"
] | permissive | lcsm29/project-euler | 67560a4e66968f1671a3d7ecf2dda6c956893dca | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | refs/heads/main | 2023-07-04T11:45:24.374841 | 2021-08-07T08:20:41 | 2021-08-07T08:20:41 | 371,808,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Solution of;
# Project Euler Problem 569: Prime Mountain Range
# https://projecteuler.net/problem=569
#
# A mountain range consists of a line of mountains with slopes of exactly 45°,
# and heights governed by the prime numbers, pn. The up-slope of the kth
# mountain is of height p2k−1, and the downslope is p2k. Th... | [
"lcsm29@outlook.com"
] | lcsm29@outlook.com |
3f2f853f51db5ddb5c4c8c25e821baf545bab7ec | 90afc972b2259054e7cc9b63ec19bf11c3153e48 | /problems/A/Candies.py | 1797b5c762d6cf460395e633448e2c4bcd74587d | [
"MIT"
] | permissive | Ahsanhabib1080/CodeForces | 88ca768ceefa409b0c10cac500148bfaf19e3c7e | 707b374f03012ec68054841f791d48b33ae4ef1b | refs/heads/master | 2023-05-26T20:58:23.180369 | 2021-06-19T02:40:15 | 2021-06-19T02:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/problemset/problem/1343/A
Solution: If calculate the sum of the wrappers, it forms a GP:
2^0 * x + 2^1 * x + ...... 2^(k-1) * x = n
Applying the GP sum we get:
x * ((2^k - 1) / (2 - 1)) = n
x * (2^k - 1) = n
x = n / (2^k - 1)
Hence n should be completely ... | [
"devesh.bajpai19@gmail.com"
] | devesh.bajpai19@gmail.com |
6be2f5586b67506eb2e4755c86daec06f384eb19 | eeee5415490822b06d4d75061f30b46b0ea7086d | /some-basic/api/type.py | b41ba3852cbb27e789e5e8db771cf3dbe78b5222 | [] | no_license | nearxu/python-exercise | 891784380abfc0af16555f1a8f8bc3efc60be5e9 | 8d11a25cfbbd271e593846c18265aaaafead62fe | refs/heads/master | 2020-03-28T10:42:38.878811 | 2019-05-07T08:20:49 | 2019-05-07T08:20:49 | 148,136,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
# number int float complex
# str
s = 'python-中文'
print(s)
b = s.encode('utf-8')
print(b)
print(b.decode('utf-8'))
## asic ord and chr
print(ord('a'))
print(chr(98))
# list 有序的集合
classmates = ['Michael', 'Bob', 'Tracy']
print(classmates)
print(classmate... | [
"2448895924@qq.com"
] | 2448895924@qq.com |
996c03e813e91e3b630ac0c85bcdab89f5e15bc9 | 7fa3038e6870a2e77bc9ce2c6a6b1326bf0d1659 | /wakacmsplugin/templatetags/wakacms_tags.py | 779d45eaeeee8cc1653bca393921dfc52e12064d | [
"Apache-2.0"
] | permissive | snswa/swsites | 63c54415c26e5bcdba2b8ac9b0dbac66d9e444ac | 4eaf79de924efd257d68fbea88df20546a711c02 | refs/heads/master | 2020-06-01T14:09:00.153618 | 2011-05-03T23:10:32 | 2011-05-03T23:10:32 | 1,056,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | from django import template
from teams.models import Team
from wakawaka.models import WikiPage
from wakacmsplugin.api import latest_rev_id, snippet_content
from wakacmsplugin.models import WikiPageSnippet
from wakacmsplugin.settings import TEAM_SLUG
register = template.Library()
@register.inclusion_tag('wakacmsp... | [
"gldnspud@gmail.com"
] | gldnspud@gmail.com |
9ce4df5eb428c741efda9a8ca4c54f40f64707ee | c6da82c0657283cf1cd4ea9a747103047cfc6cfd | /diffmerge/differ.py | b24bb49aa176a62819c4b026488a9f3206c6d2c7 | [
"MIT"
] | permissive | biicode/common | 0d79479ae0200536748ad6db53db7f270b7339ac | 45e9ca902be7bbbdd73dafe3ab8957bc4a006020 | refs/heads/develop | 2021-01-25T08:54:45.225315 | 2015-07-13T00:38:53 | 2015-07-13T00:38:53 | 33,537,019 | 17 | 22 | MIT | 2018-09-24T10:52:59 | 2015-04-07T10:34:03 | C++ | UTF-8 | Python | false | false | 1,863 | py | import difflib
from biicode.common.diffmerge.compare import Changes
def similarity(text1, text2):
""" more coarse estimation of similarity, but fast, not as slow as a full
diff
"""
text1 = text1.splitlines()
text2 = text2.splitlines()
changed = 0.0
for t1 in text1:
if t1 not in tex... | [
"lasote@gmail.com"
] | lasote@gmail.com |
5812a9a92bfa103b9a58e31b7a02d18e2ef07e67 | b4d0b4e7c0857d2cd959477b658c3beda1b7377b | /tests/test_utils.py | daf3e48b91bcb3e637a59410b7f1eda8e71c873b | [
"BSD-3-Clause"
] | permissive | quis/pyexcel | 917e500fcc79afc0336d633db211eb6125d9895c | e02f5ff871ba69184d3fb85fa8960da4e883ebdc | refs/heads/master | 2020-04-09T08:02:59.274252 | 2018-08-30T22:11:43 | 2018-08-30T22:11:43 | 160,180,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import os
from unittest import TestCase
import pyexcel as pe
from nose.tools import raises, eq_
class TestToRecord(TestCase):
def setUp(self):
"""
Make a test csv file as:
1,2,3,4
5,6,7,8
9,10,11,12
"""
self.testfile = "test.xls"
self.content = {"X"... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
ec61cc4773796c7f8a6e484f3798f5245736a1c4 | 18b1e6c442929c36f9151ac8c27259f586d43150 | /socialz_20476/settings.py | 31ee02f19a0d9e374a9af6ea3db6369aae931747 | [] | no_license | crowdbotics-apps/socialz-20476 | 779999345cf89014b8dcec624cd4718b53d15baf | 95c0643f92b654e6ef7f3a3fe6dd5aa759fe77ee | refs/heads/master | 2022-12-17T13:16:51.645448 | 2020-09-20T14:25:01 | 2020-09-20T14:25:01 | 297,059,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,621 | py | """
Django settings for socialz_20476 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
caf2c947921e78831ea9b9336c20cac60a999cd1 | 00108079e0c673220b070655632251c33df10226 | /django_app/member/forms/user.py | 4e3b843b8f896115eb08e497d80a2a756aa1d9ab | [] | no_license | YunhoJung/instagram | 470a7eff8361addecbb40ec8a4ed8e0f3017bd00 | 50546c7002ceb820ff8d1ce43a7f452594d70609 | refs/heads/master | 2022-12-14T03:27:21.387754 | 2017-06-27T07:10:00 | 2017-06-27T07:10:00 | 94,095,905 | 0 | 0 | null | 2022-12-07T23:58:40 | 2017-06-12T12:52:50 | Python | UTF-8 | Python | false | false | 207 | py | from django import forms
from ..models import User
class UserEditForm(forms.ModelForm):
class Meta:
model = User
fields = [
'nickname',
'img_profile',
] | [
"saijdu2198@gmail.com"
] | saijdu2198@gmail.com |
e8793ea52fbbd005130a3939e73421345d296e98 | 8ca8a43f35b3302099c00ce4d80fab66abe03769 | /blog_app/migrations/0008_auto_20200317_1032.py | 69687abb2a8792afd63bb728f8bf27dfb2a8808f | [] | no_license | Najafova/blog_project | 1818e032b1b967633874e8bab44cdac45fbe82a9 | 32b12a85e54fdc919c67cd69f2b5eb783aa437f6 | refs/heads/master | 2022-12-13T01:15:33.808876 | 2020-03-19T14:18:24 | 2020-03-19T14:18:24 | 248,287,044 | 0 | 0 | null | 2022-12-05T14:07:01 | 2020-03-18T16:39:03 | HTML | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.1.4 on 2020-03-17 10:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog_app', '0007_auto_20200317_1031'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image',
... | [
"gulnarnecefova1996@gmail.com"
] | gulnarnecefova1996@gmail.com |
ce7cd9c7b4280283ba405eb7f4fe8c8af47dda89 | 929f00c386b8686e1c802aa622875c62d295e216 | /mountaintools/mtlogging/mtlogging.py | 278e9a1fbe28f8be6616f8f8e003d7727e12e97f | [
"Apache-2.0"
] | permissive | mhhennig/spikeforest | e0d6cbb47d15131e683545c1978abc6f99c51dc5 | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | refs/heads/master | 2020-05-31T11:03:58.438693 | 2019-06-04T18:06:37 | 2019-06-04T18:06:37 | 190,254,208 | 0 | 0 | Apache-2.0 | 2019-06-04T18:05:28 | 2019-06-04T18:05:28 | null | UTF-8 | Python | false | false | 4,490 | py | import functools
import logging
import time
import json
from copy import deepcopy
_global = dict(
current_node=None
)
def log(*, name=None, root=False):
def decorator(function):
@functools.wraps(function)
def wrapper(*args, **kwargs):
parent_node = _global['current_node']
... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
98c397701c0efa14682f9819f9dcd437ca565764 | e912af291e1457c61606642f1c7700e678c77a27 | /python/1047_remove_all_adjacent_duplicates_in_string.py | f9801c237947ebc266edd21c044a736d7ad1cb5c | [] | no_license | MakrisHuang/LeetCode | 325be680f8f67b0f34527914c6bd0a5a9e62e9c9 | 7609fbd164e3dbedc11308fdc24b57b5097ade81 | refs/heads/master | 2022-08-13T12:13:35.003830 | 2022-07-31T23:03:03 | 2022-07-31T23:03:03 | 128,767,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | class Solution:
def removeDuplicates(self, S: str) -> str:
st = []
for c in S:
if st and st[-1] == c:
st.pop()
else:
st.append(c)
return "".join(st)
| [
"vallwesture@gmail.com"
] | vallwesture@gmail.com |
b9ccb5caa4363f6dbca428fe6c6b45d99ed32b76 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /data/userfiles.py | 1803c94efefdc3cb30eb176739ac4ef300c19baf | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 5,755 | py | import os
import logging
import urlparse
from uuid import uuid4
from _pyio import BufferedReader
import magic
from flask import url_for, request, send_file, make_response, abort
from flask.views import View
from util import get_app_url
logger = logging.getLogger(__name__)
class UserfilesHandlers(View):
methods... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
f42552c52bda8ff228d09be7d21cceaa05b31f46 | cc1d44cf04e5b2b15bb296a434aad4ae4bcfc4be | /python3/pandas/driving_data.py | be8497974e707266290d84649f16da9a704db417 | [] | no_license | ericosur/ericosur-snippet | dda2200546b13fb9b84632d115a0f4ca5e3d5c47 | 0309eeb614612f9a35843e2f45f4080ae03eaa81 | refs/heads/main | 2023-08-08T04:54:05.907435 | 2023-07-25T06:04:01 | 2023-07-25T06:04:01 | 23,057,196 | 2 | 1 | null | 2022-08-31T09:55:19 | 2014-08-18T03:18:52 | Perl | UTF-8 | Python | false | false | 8,170 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pylint: disable=import-error
# pylint: disable=wrong-import-position
'''
read driving data table (at google drive) and calculate stastics
(or read it from csv file offline)
'''
import argparse
import os
import sys
from math import floor
from datetime import date
impo... | [
"ericosur@gmail.com"
] | ericosur@gmail.com |
334f7fb4532e4353a6e87369408710ce97b64644 | e5ccaf3b74b79811ba9851989000d97218582145 | /digani/rule_generator.py | 38d9996031bd1ce18c8739ae52dc845dba63ae44 | [
"Apache-2.0"
] | permissive | ZwEin27/dig-attribute-name-identification | 2fbaf1a002d461dd0f37c46a6aff4c6ce6168bed | 669c2d4f66560e4085884a5d0c259390214ef69f | refs/heads/master | 2021-01-20T20:36:50.997173 | 2016-07-28T14:11:00 | 2016-07-28T14:11:00 | 62,833,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | # -*- coding: utf-8 -*-
# @Author: ZwEin
# @Date: 2016-07-09 14:35:51
# @Last Modified by: ZwEin
# @Last Modified time: 2016-07-12 21:59:34
import os
import codecs
import json
from digani.attr_func import IGNORED_ATTRIBUTE_NAMES, ATTRIBUTE_NAMES_JUNK
FILIENAME_RULES_STEP01 = 'step01_rules.json'
FILIENAME_RULES_ST... | [
"zwein27@gmail.com"
] | zwein27@gmail.com |
0073011057037663df3590f18db1a4609e82267a | d8c900c7aa148049b708ccfa66910c9c3ed115b3 | /projects/faceid/facebaseline/casia_webface.py | 57b918fefa5fc6a17bf343038d09141a8a2ccc68 | [
"Apache-2.0"
] | permissive | SZLSP/reid2020NAIC | c656cbc3cc8502c1989f178850a7934331cc8016 | d0eaee768e0be606417a27ce5ea2b3071b5a9bc2 | refs/heads/master | 2023-01-23T09:44:18.671204 | 2020-11-27T06:47:02 | 2020-11-27T06:47:02 | 291,238,419 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | # encoding: utf-8
"""
@author: xingyu liao
@contact: liaoxingyu5@jd.com
"""
import os
from fastreid.data.datasets import DATASET_REGISTRY
@DATASET_REGISTRY.register()
class CASIAWebFace(object):
dataset_dir = 'CASIA-WebFace'
dataset_name = "casia_webface"
def __init__(self, root='datasets', **kwargs):... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
fc117738a30cafd149b274f8f307434d03ba5a00 | 4f9d0759a1a494618f89b48ca1bc78acd13e2789 | /slackers/routing.py | 92e8e3fd0c4e927cae61711f4e4ec4de5572e7c7 | [
"MIT"
] | permissive | djangobot/djangobot-example | 2eb94f2a98181108b0e1063e8a4fb6dc5baffc3b | 697c74dd8220b88c1b44a5ca97fa40357a710331 | refs/heads/master | 2020-12-31T05:24:55.184757 | 2016-04-11T12:57:02 | 2016-04-11T12:57:02 | 55,971,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | channel_routing = {
'websocket.receive': 'chat.consumers.ws_message',
'websocket.connect': 'chat.consumers.ws_add',
'websocket.disconnect': 'chat.consumers.ws_disconnect',
'slack.message': 'chat.consumers.slack_message',
}
| [
"scott.s.burns@gmail.com"
] | scott.s.burns@gmail.com |
3f9ee86a50c5c2bc213395fb2df42a2ea573f34e | 5dd03b877c067454469e3451ad9820dadd689ff5 | /2020-2021/DEV1/Chapter 5/BA31.py | 4c748e91328cc4357ab368cdcaaa5a1a8dd6c2d1 | [] | no_license | YifanC86/hrinf-development | 449d6fb656c76726d2d1c01a3737e99e468f8e3d | dd2aa561678899a63f68379482b805ea5430e035 | refs/heads/main | 2023-02-05T07:59:19.914766 | 2020-12-28T13:02:52 | 2020-12-28T13:02:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | number = 100
print()
wellOrdered = True
if number < 10:
pass
else:
numberAsString = str(number)
num = 1
while num < len(numberAsString) and wellOrdered:
if int(numberAsString[num - 1]) >= int(numberAsString[num]):
wellOrdered = False
num = num + 1
print()
| [
"stijn@kolkies.dev"
] | stijn@kolkies.dev |
8737b51bac3d30b4eb28764fa27468a2cb989b94 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/new_20200709211450.py | e6e992e3536d58c59209e09afb0317b71730ae72 | [] | 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 | 736 | py | # [3,4] [1,2,7,7,0]
# --> new set {1,2,7,7}
# 4-3 = 1
# [5,9] [1,2,6,7]
# smaller = 5
#
# ---> 3
# left = {1:4,2:5,7:10,0:3}
# ---> 4
# right = {1:5,2:6,7:11,0:4}
#
# newArr = sorted(min[[1,0],[2,1]])
# newArr =[2,6]
# if newArr[0] == 0:
#
# 2,6
# "not possible"
# 13,4 - [1,2,3,6,14]
'''
smaller = 4
ans... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
e4fcce9392ff519ec31dcbb3351a4ece6ebf028f | 5c6c222eb68cfb625891b7a7f702fe2b55d98ff2 | /apps/cargo/models.py | de2d679fe779ac9551b75168a84588f91132655b | [] | no_license | chrisstianandres/ferreteria | b85bab87c5ad41024af4b6fd566d1e51746aa621 | 8459b4461b615c99e6d2418c21b0b6dd59ce85df | refs/heads/master | 2023-05-31T01:52:19.948355 | 2021-06-13T14:44:45 | 2021-06-13T14:44:45 | 328,787,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from django.db import models
from django.forms import model_to_dict
# Create your models here.
class cargo(models.Model):
nombre = models.CharField(max_length=50)
sueldo = models.DecimalField(default=0.000, max_digits=9, decimal_places=2, null=True, blank=True)
def __str__(self):
return '%s' % (s... | [
"chrisstianandres@gmail.com"
] | chrisstianandres@gmail.com |
9144c0738108b1d5c37f7830ce0f13a3670cbc99 | b027502c2e35f7885a9f7cd79ed6e1e1b8485c2f | /Binary Search Trees/216.Find Min and Max in BST.py | 08276fb2e6679c52b1b6a23afb8715372496b127 | [] | no_license | DDR7707/Final-450-with-Python | eb1cd0ee890b64224e8996158d67f9820276d94a | b64717af405fe256bcd791a619cb9fb4ca9178cb | refs/heads/main | 2023-09-05T14:39:39.369036 | 2021-11-16T13:16:32 | 2021-11-16T13:16:32 | 403,002,363 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | def minValue(root):
##Your code here
cur = root
while cur.left:
cur = cur.left
mini = cur.data
cur = root
while cur.right:
cur = cur.right
maxi = cur.data
return mini , maxi
| [
"noreply@github.com"
] | DDR7707.noreply@github.com |
878c9e01faddddc2892baf8debb6dc4c758bc533 | dcbef06d5a00f07756339b9e62c684dec2fee425 | /tests/benchmarks/constructs/CallCompiledObjectMethodPosArgsDefaults.py | 370d47060255d7d4b5a03fc97b48de2f5db5e021 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nuitka/Nuitka | f9543d8d95bfa0b81d4e60af0dfad99fb72893a4 | d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2 | refs/heads/develop | 2023-08-28T14:00:32.861328 | 2023-08-27T09:16:45 | 2023-08-27T09:16:45 | 9,626,741 | 8,573 | 599 | Apache-2.0 | 2023-09-13T02:49:41 | 2013-04-23T15:40:33 | Python | UTF-8 | Python | false | false | 1,447 | py | # Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
a20f77182d0f5a5acbd4993e861414d4fc19c013 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /performance_tests/test_checkov_performance.py | fd2aef3621014473c5e6d7d023b0dac3410f192d | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 3,950 | py | import os
import platform
import pytest
import time
from checkov.cloudformation.runner import Runner as cfn_runner
from checkov.common.runners.runner_registry import RunnerRegistry
from checkov.common.util.banner import banner
from checkov.kubernetes.runner import Runner as k8_runner
from checkov.runner_filter import... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
6074a2b198b75de6288fb6ef55968c741e5af5ec | c6389f9b11fd40ee9295f4e88a14a8057e294e4f | /components/micro-ecc/micro-ecc/scripts/mult_avr_extra.py | 25bf034aea4f5e981c87ae7f2120c818db26f88b | [
"MIT",
"BSD-2-Clause"
] | permissive | ghsecuritylab/N14 | 987ebb27cfbd7ebf84deadeb09a480aa51be34c7 | 76bc595e3face0903436e48165f31724e4d4532a | refs/heads/master | 2021-02-28T19:46:09.834253 | 2019-11-19T14:36:58 | 2019-11-19T14:36:58 | 245,728,464 | 0 | 0 | MIT | 2020-03-08T00:40:31 | 2020-03-08T00:40:30 | null | UTF-8 | Python | false | false | 3,468 | py | #!/usr/bin/env python
import sys
if len(sys.argv) < 2:
print "Provide the integer size in bytes"
sys.exit(1)
size = int(sys.argv[1])
def lhi(i):
return i + 2
def rhi(i):
return i + 6
left_lo = [10, 11, 12, 13]
right_lo = [14, 15, 16, 17]
def llo(i):
return left_lo[i]
de... | [
"qitas@qitas.cn"
] | qitas@qitas.cn |
b6c6736dcab54b72f02c34a9c6c1eca7d7cd29ab | 7ef2308e51d1d5700fbd092177ee15e2a03ebdd8 | /Typhoon/Typhoon3.0/allTyphoonCrawler.py | cc800a2308f2907cfe9489fa431cbd925faba70c | [] | no_license | STAWZW/STAWZW1.0 | 741002eb35c2883e5739fee8d14ff430e9622c01 | a835ac27aba17f968116e321bd201b26c9fb3578 | refs/heads/master | 2020-07-21T20:21:59.753992 | 2019-09-26T09:21:28 | 2019-09-26T09:21:28 | 206,965,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 15 09:08:22 2019
@author: 86183
"""
from urllib.parse import urlencode
import urllib.request
import ssl
from postgres import PostgreCommand
import re
import json
import datetime
from threading import Timer
def get_url(taskFlag):
urlheader = "http://123.234.129.238:... | [
"1223868042@qq.com"
] | 1223868042@qq.com |
790ecc905f98ed730019f21b766a2211d5bdc191 | 413967b8602a2e31980efc9deebd35d99914802e | /ch07/static-method.py | 8b0d59bae554fd8e0010fa66a05ad41c88d2a32a | [] | no_license | uni51/understand_python | 009dbeabbdf6a336e87f68f97fab729cee09b59d | ecd2408725ad29df11db7304dff6604a790ea763 | refs/heads/master | 2020-05-25T02:09:27.111155 | 2019-05-24T02:50:05 | 2019-05-24T02:50:05 | 187,572,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # モジュールを取り込む
import json
import urllib.request
# 為替情報を得るクラス
class Kawase:
# 為替情報の取得元
API = "http://api.aoikujira.com/kawase/json/usd"
# 非公開のメソッド
def __get_api(self):
''' APIから今日のレート情報を得る '''
res = urllib.request.urlopen(Kawase.API)
return res.read().decode('utf8')
def __a... | [
"uni51@users.noreply.github.com"
] | uni51@users.noreply.github.com |
a12fafa823461861012bb095aaf1682fd71423ee | 5da6b63331783b2728bc6b908c75c17864d1abe4 | /11.17 allCellsDistOrder.py | 2633b56575e58592d4854e6cceee0cf644314a6f | [] | no_license | ANh0r/LeetCode-Daily | 1c34baca46263da67e5a2b1b184dd441b90ef583 | a9ad5b5bc912a4ce5613000fbc47905510cde5ea | refs/heads/master | 2023-08-24T20:38:40.885292 | 2021-09-13T04:17:09 | 2021-09-13T04:17:09 | 283,934,963 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | class Solution:
def allCellsDistOrder(self, R: int, C: int, r0: int, c0: int) -> List[List[int]]:
return sorted([[i, j] for i in range(R) for j in range(C)], key=lambda x: abs(x[0] - r0) + abs(x[1] - c0))
"""
返回曼哈顿距离排序后的所有坐标
给定:RC为R行C列
r0 c0是曼哈顿距离计算的基准点""" | [
"819702016@qq.com"
] | 819702016@qq.com |
13e5e6402ac7a3ecb242aac6b089600b91597bc6 | 2412ab2a7fdefe1d165a6ec63292fdbe965c5131 | /summaryMatrix.py | da864af25e234dd3152a0fc3af4224742c5c26c4 | [] | no_license | cfc424/NGS | e7651d9cbd1309821f5251c3ab3c9c7ba9e19352 | a7fd0631adc7365d358e49f407e2ebe796163443 | refs/heads/master | 2023-03-21T14:36:05.877307 | 2019-11-13T01:09:13 | 2019-11-13T01:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,336 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#from __future__ import unicode_literals
from __future__ import division, with_statement
'''
Copyright 2015, 陈同 (chentong_biology@163.com).
===========================================================
'''
__author__ = 'chentong & ct586[9]'
__author_email__ = 'chentong_biol... | [
"chentong_biology@163.com"
] | chentong_biology@163.com |
48b3c1bab9788edb0b59e2e967163d477dfbb89f | 4319bc4d113112435037d79f3b494c2b550a70ce | /examples/fashion_mnist/fashion_mnist_cnn.py | 4a1aaa0f42233f5efaba7274accf31d6053e2dc7 | [
"MIT"
] | permissive | KimaruThagna/zeta-learn | 0dd106d06950d74da65988f76ef667bad0e96d89 | eb6e8f76e8a52de6db21fdd4235411f456e43553 | refs/heads/master | 2020-04-17T11:08:44.568372 | 2019-01-16T00:02:19 | 2019-01-16T00:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | # -*- coding: utf-8 -*-
from ztlearn.utils import *
from ztlearn.dl.models import Sequential
from ztlearn.optimizers import register_opt
from ztlearn.datasets.fashion import fetch_fashion_mnist
from ztlearn.dl.layers import BatchNormalization, Conv2D
from ztlearn.dl.layers import Dropout, Dense, Flatten, MaxPooling2D
... | [
"jefkine@gmail.com"
] | jefkine@gmail.com |
df956b5bddb3f7be49ca42516a462f39513f3fd9 | d8463cb822a33af30239fbe4b61682611fe96e6a | /bert_ner/model.py | f6b25ca60880bff9ea6cead475dd2ab02f3a3a14 | [
"Apache-2.0"
] | permissive | bupt-nlp/name-entity-recongnition-tensorflow2 | 0cb6bc5671d1357c808a847cf5fe77a6d92e5680 | 98f7939a04ef9a45f4c53afe1c7b7721b7def85c | refs/heads/master | 2023-01-19T14:10:27.109720 | 2020-11-05T06:22:49 | 2020-11-05T06:22:49 | 308,898,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | import os
import tensorflow as tf
from transformers import BertConfig, TFBertModel
class BertNer(tf.keras.Model):
def __init__(self, bert_model: str, float_type, num_labels: int, max_seq_length: int, final_layer_initializer = None):
super().__init__()
# 1. define the inputs of the model
i... | [
"1435130236@qq.com"
] | 1435130236@qq.com |
f846548dacf52807e00ce0f6db5219273a9e878e | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-core/PyObjCTest/test_filepointer.py | 4e0f1d205ab0a3ffa9619b4a648c212ec330e9d8 | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | """
Tests for dealing with 'FILE*' argument.
"""
import objc
from PyObjCTest.filepointer import OC_TestFilePointer
from PyObjCTools.TestSupport import TestCase
fp = objc.FILE("/etc/passwd", "r")
gFirstPasswdLine = fp.readline()
fp.close()
class TestFilePointer(TestCase):
def testOpenInPython(self):
fp = ... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
54cd07850b8ec7dd33597cc46aec9d6aaf886d4f | f0e1e9f89741854a35ed6b1757f273607d974e0a | /python/GafferArnoldTest/ArnoldBackgroundTest.py | 348aac119dddd7384b8a9347e048d97e6385a637 | [
"BSD-3-Clause"
] | permissive | brendanholt/gaffer | f656a4a32a2939192ee9936a628e8c9c10fecd28 | 921cc4c924fbfb4d0e09ae2a0640376728d68429 | refs/heads/master | 2020-04-07T09:56:39.129955 | 2018-11-16T17:53:35 | 2018-11-16T17:53:35 | 158,270,161 | 0 | 0 | NOASSERTION | 2018-11-19T18:12:07 | 2018-11-19T18:12:06 | null | UTF-8 | Python | false | false | 2,928 | py | ##########################################################################
#
# Copyright (c) 2018, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
29b8d5de8709e9d7872f5730f069cab45fba5afa | 1ba58b17f33122abf4236e9e430a51d375e0eb53 | /km73/Kravets_Daniil/4/task2.py | c9f9f1dffe21abe8310eb0547a74023f3bf8fe69 | [] | no_license | igortereshchenko/amis_python | c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42 | c6f0f2a70c82d5f269b3078eb296f82271b5bb10 | refs/heads/master | 2021-10-22T16:21:19.990650 | 2017-11-01T07:26:54 | 2017-11-01T07:26:54 | 104,785,028 | 0 | 139 | null | 2020-04-21T21:27:09 | 2017-09-25T18:11:42 | Python | UTF-8 | Python | false | false | 142 | py | print ("Enter x")
x=float(input())
if x>0:
print("sign(x)=1")
elif x<0:
print("sign(x)=-1")
elif x==0:
print("sign(x)=0")
| [
"noreply@github.com"
] | igortereshchenko.noreply@github.com |
0859e150b5ac5bff9c39b28ea652cd5a4d1321f1 | 4c4785ed8f5fed43891872f69d01fa3bc1192136 | /06_Introduction_to_Data_Visualization_with_Python/04_Working_with_Images.py | ed49ba2b3163a9aa6930597acb59f1f9cfd98fdd | [] | no_license | CodeInDna/Data_Scientist_With_Python | 6ed04534948fe692169b56c72b4021b32eb35751 | 9820f4ae232317cec4d13a3eb26e3a59ba98c31b | refs/heads/master | 2020-09-23T14:19:37.426778 | 2019-12-23T15:39:15 | 2019-12-23T15:39:15 | 225,519,493 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,001 | py | # Images
# Grayscale images:rectangular 2D arrays
# Color images: typically three 2D arrays(channels)
# RGB (RED-GREEN-BLUE)
# Channel Values:
# 0 to 1 (Floating Point Numbers)
# 0 to 255
# Loading, examining images
# Color images such as photographs contain the intensity of the red, green and blue... | [
"ykarelia323@gmail.com"
] | ykarelia323@gmail.com |
15ae6c178d69f4060a011135e0120f2230e563b4 | a193de6250c53a8d5f3d196367fc6b6a605d33d5 | /needle/plugin.py | e6ceec312df38970b04d7ae55439f84200d95184 | [
"BSD-3-Clause"
] | permissive | vokkim/needle | 445df24fabbd358226e8ca768de01dfa2270f330 | 4ffb4eb102e70aa805e24cde6953f35adc18f202 | refs/heads/master | 2021-01-17T14:12:16.881503 | 2014-03-09T16:32:31 | 2014-03-09T16:32:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from nose.plugins import Plugin
class NeedleCapturePlugin(Plugin):
"""
A nose plugin which causes all calls to
``NeedleTestCase.assertScreenshot`` to capture a screenshot to disk.
"""
name = 'needle-capture'
def wantClass(self, cls):
# Only gather classes which are a needle test case
... | [
"ben@firshman.co.uk"
] | ben@firshman.co.uk |
1a8052b8b2d5406cf6fa8feaa2f91a6b4133c943 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2452/58586/236423.py | 3788ddd347d806c06675d358d7d633fb9df08726 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | lines=int(input())
matrix=[]
for i in range(lines):
row=list(map(int,input().split(",")))
matrix.append(row)
start=0
end=len(matrix)*len(matrix[0])-1
width=len(matrix[0])
target=int(input())
while start<end:
mid=(start+end)//2
if matrix[mid//width][mid%width]==target:
break
elif matrix[mid/... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5fbbf0b5b46c76ac4785206f849ca00fa575b312 | c7df37a07752e99dfbc94f6a3f16cfb7f9cc24ea | /kanxargelich/migrations/0001_initial.py | 7263e694720685410eebe9c6a27de9e8bea9ab79 | [] | no_license | llleiron/razrazmakan_3 | e58ffad0fd9198cb7e76f58b502615061c196a56 | dd5327644f0388f3e17c7d4a7b09bc935a3c9995 | refs/heads/master | 2022-05-24T03:10:04.870229 | 2020-04-29T16:18:26 | 2020-04-29T16:18:26 | 259,977,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | # Generated by Django 2.0.12 on 2020-04-14 08:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Grancum', '0008_auto_20200409_1514'),
]
operations = [
migrations.CreateModel(
... | [
"sickboy23@mail.ru"
] | sickboy23@mail.ru |
ac008f8c1141970c535a6c92027b14a3e9abaf2a | 32459a58f1bcbb277bc5ec3aeef7b763b1157f05 | /task分发程序.py | 68e6a0ede5bdbfcdba8693458184be1f3e57d36c | [] | no_license | liwei123o0/utils | f292c83aaa9c10eb2037cb4227d8169362e407fe | 8f4d03a76d20271fb1917bf18f584283b389fa07 | refs/heads/master | 2020-05-19T08:45:02.310693 | 2015-04-30T09:49:48 | 2015-04-30T09:49:48 | 33,168,782 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- coding: utf-8 -*-
#! /usr/bin/env python
import urllib2
from lxml import etree
import random
import os
req =urllib2.Request("http://10.6.2.121/conf/")
html = urllib2.urlopen(req).read()
dom = etree.HTML(html.decode("utf8"))
body = dom.xpath("//tr[@class='odd']/td/a/text()")
for conf in body:
ips = ["124","1... | [
"877129310@qq.com"
] | 877129310@qq.com |
806db8dd0a828772af4073fd35db6e7853b2ca0a | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/python/autograph/utils/misc.pyi | 7d6bc84c2455a7a586eecc6f5fc984e8f39fc6f3 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | pyi | # Stubs for tensorflow.python.autograph.utils.misc (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.framework import ops as ops
from tensorflow.python.ops import array_ops as array_ops
from typing import Any as Any
def alias_tensors(*args: Any): ...
| [
"matangover@gmail.com"
] | matangover@gmail.com |
e831ee978fa4841edd0099c34ac481c08c1e4d54 | 7e7391830f8232f046364d160784a3c537f0e194 | /airflow/dags/etl/pull_prices.py | 47b4c1c598daf1d2987b32a76409352a42e9c081 | [] | no_license | Sahanduiuc/short_interest_effect | bc9d689f1a6e8a0695d0e784f9a52dc0a914e4ab | 5962496596c9223fcfc4d6d8b23abd03959bb967 | refs/heads/master | 2021-01-02T12:43:21.731900 | 2020-02-04T17:27:15 | 2020-02-04T17:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | START_DAY = START_DATE.split('-')[2]
# In QuoteMedia, months start from 0, so we adjust this variable.
START_MONTH = int(START_DATE.split('-')[1]) - 1
START_YEAR = START_DATE.split('-')[0]
YST_DAY = YESTERDAY_DATE.split('-')[2]
# In QuoteMedia, months start from 0, so we adjust this variable.
YST_MONTH = int(YESTERDAY... | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
2f433912880958b49bc68ff51362c34c2586e11f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/19/usersdata/148/7318/submittedfiles/jogoDaVelha.py | 25ea94e4125aaa39ed97cf551765f8291c1333fc | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
x1 = input('Digite x1: ')
x2 = input('Digite x2: ')
x3 = input('Digite x3: ')
x4 = input('Digite x4: ')
x5 = input('Digite x5: ')
x6 = input('Digite x6: ')
x7 = input('Digite x7: ')
x8 = input('Digite x8: ')
x9 = input('Digite x9: ')
#PROCESSAMENTO
i... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d1497f9f504ea240afb6950f628b215d8ed8e1b6 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-redis/azure/mgmt/redis/models/redis_resource_with_access_key.py | 795920d33a393222b58073ec89f27a223b73e53e | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,358 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
fc1cf30199ea8d046d37c34422806899363f8995 | 3a05bb0d4a598d18e9c90c0a35bd44556fcd94d3 | /ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_knowledge_information.py | 54409dd55fae742a18097ad56bbd88829e426278 | [
"Apache-2.0"
] | permissive | alexa/alexa-apis-for-python | 2e21330c7e35b76e4f360aa72a9e789906f3bca1 | 751e6dbbb829ceb34dd7405eb77235c06b19c612 | refs/heads/master | 2023-08-28T12:50:05.522913 | 2023-08-21T16:04:58 | 2023-08-21T16:04:58 | 145,045,841 | 119 | 34 | Apache-2.0 | 2022-07-19T16:40:29 | 2018-08-16T22:40:28 | Python | UTF-8 | Python | false | false | 3,787 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
7e654c24d16809321aab630f6b27e6e40e1cf7a1 | 0c70dcec22a090e70b1f20613ea6e0a64fd9a037 | /GPS卫星位置的计算/venv/Lib/site-packages/pandas/tests/series/methods/test_reset_index.py | 10bbc8f31478446341929cec57e3e6666487b729 | [
"MIT"
] | permissive | payiz-asj/Gis | 82c1096d830878f62c7a0d5dfb6630d4e4744764 | 3d315fed93e2ab850b836ddfd7a67f5618969d10 | refs/heads/main | 2023-06-27T15:25:17.301154 | 2021-08-03T10:02:58 | 2021-08-03T10:02:58 | 392,269,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | py | import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, RangeIndex, Series
import pandas._testing as tm
class TestResetIndex:
def test_reset_index(self):
df = tm.makeDataFrame()[:5]
ser = df.stack()
ser.index.names = ["hash", "cate... | [
"1778029840@qq.com"
] | 1778029840@qq.com |
359d07f644efe96f1538d3fcaace26930aec1f66 | 3d849aa1003ca4f8f3b7b1a8ccbc0a1cccf7878c | /data_africa/climate/models.py | d0908693d82469a03b4273db4fc5c3f454cc58fa | [] | no_license | data-africa/data-africa-api | 30beda5731ed1d3a3d888611456693796663f223 | 65e8694183d3ab7d66ac7598b759c1ed92515743 | refs/heads/master | 2021-07-06T13:11:18.577152 | 2017-09-28T12:49:32 | 2017-09-28T12:49:32 | 76,993,231 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from data_africa.database import db
from data_africa.core.models import BaseModel
from data_africa.attrs.consts import ALL, ADM0, ADM1, LATEST_BY_GEO
from sqlalchemy import or_
class BaseClimate(db.Model, BaseModel):
__abstract__ = True
__table_args__ = {"schema": "climate", "extend_existing": True}
sourc... | [
"jspeis@gmail.com"
] | jspeis@gmail.com |
9157cbf50bbf7a65c2c25dbb09ccafacc3e2dc11 | f7ea41fc9d1b23fa5da8cfa52d6767df8d914128 | /tests/grammar/field/special/test_iswc.py | cf12ddfca0f46c0880dfab359ae1944e8a296b9d | [
"MIT"
] | permissive | gitter-badger/CWR-DataApi | f0d903558e688f10aba996b624f5f860c2d12f3c | ba2011bccd2a5046d9d200c2377daf003cf4b9bc | refs/heads/master | 2020-12-11T07:59:13.882298 | 2015-06-01T10:16:21 | 2015-06-01T10:16:21 | 37,245,502 | 0 | 0 | null | 2015-06-11T07:16:04 | 2015-06-11T07:16:04 | null | UTF-8 | Python | false | false | 3,386 | py | # -*- coding: utf-8 -*-
import unittest
from pyparsing import ParseException
from cwr.grammar.field import special
"""
Tests for ISWC fields.
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
__status__ = 'Development'
class TestISWCResultName(unittest.TestCase):
"""
Tests that the IPI Base... | [
"programming@wandrell.com"
] | programming@wandrell.com |
f8ee0dd512c048e7a634f01004b91bdee869f17b | 66c7b0da6ee27ddce0943945503cdecf199f77a2 | /rllib/algorithms/q_learning.py | e6b7350d9e99db3f47bef575c286fb38af954eb1 | [
"MIT"
] | permissive | tzahishimkin/extended-hucrl | 07609f9e9f9436121bcc64ff3190c966183a2cd9 | c144aeecba5f35ccfb4ec943d29d7092c0fa20e3 | refs/heads/master | 2023-07-09T22:57:28.682494 | 2021-08-24T08:50:16 | 2021-08-24T08:50:16 | 383,819,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | """Q Learning Algorithm."""
import torch
from .abstract_algorithm import AbstractAlgorithm
class QLearning(AbstractAlgorithm):
r"""Implementation of Q-Learning algorithm.
Q-Learning is an off-policy model-free control algorithm.
The Q-Learning algorithm attempts to find the fixed point of:
.. math... | [
"shi.tzahi@gmail.com"
] | shi.tzahi@gmail.com |
43bd15821e3d0e583c30616db78f7c0b11e91842 | c93b0f008d0977e0b9327ad8b930489f5cccae97 | /platfrom/logicmodule/TodayP2PRate.py | 9b3ea903f817392ab05687ae547d98121bdefaaa | [] | no_license | ParkPan/ATCasePackage | 15caa664bd94c014ccbd1780353bfc5fcc0caa87 | edad6c1d5a343c740e251821fee0c29336f3d435 | refs/heads/master | 2020-06-16T02:44:06.323352 | 2016-12-01T03:46:44 | 2016-12-01T03:46:44 | 75,251,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | import sys
import os
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..'))
from commonfunc import get_timestamp_by_time
import constvars
import testdata.datavars as datavars
def makeexpecteddata(hour=-1):
resultfile = open(os.path.abspath(os.path.dirname(__file__)) + '/../testdata/DownloadFlow... | [
"panpan@cloutropy.com"
] | panpan@cloutropy.com |
2a606e0f15f750c8f28a1072eb5c054d477c971d | 72d6069b83c3f89ce313a01c46712b45ed19b848 | /lib/pintype.py | a8a91ccdf3a2a7315e3b92ba4619c124b72e275a | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | bopopescu/ros | dad6231d85b07c16970e7498b53d1280f8592485 | 5dc6e23a280e1283de7b38f35116332a79ca33d2 | refs/heads/master | 2022-11-17T16:25:43.392021 | 2020-07-16T10:34:56 | 2020-07-16T10:34:56 | 280,947,153 | 0 | 0 | MIT | 2020-07-19T20:43:19 | 2020-07-19T20:43:19 | null | UTF-8 | Python | false | false | 2,254 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 by Murray Altheim. All rights reserved. This file is part
# of the pimaster2ardslave project and is released under the MIT Licence;
# please see the LICENSE file included as part of this package.
#
# author: Murray Altheim
# created: 2020-06-13
# modi... | [
"ichiro.furusato@gmail.com"
] | ichiro.furusato@gmail.com |
f5166df3987712c589b34338bec3d36b1013daf9 | bee11501e1b3b956df70686bfaf04730cfc5c987 | /Basic Python/recursion/palindrome.py | c1205f9c3d026f8d5592f2bfc1ec28b42bea7dd3 | [] | no_license | manojparmar968/learn-python | 572c8577e1fdad109df41c4ed7c02cdfaf8b4276 | 886a563c925631ee97ffa00af6b30c0147791a91 | refs/heads/master | 2023-09-03T03:16:09.166683 | 2021-11-09T16:18:00 | 2021-11-09T16:18:00 | 366,415,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | """
Write a Python program that checks if a string is a palindrome or not (if it's read the same backwards and forwards).
The program should be case-insensitive. Therefore, "A" should be considered equivalent to "a".
Print True if the string is a palindrome. Else, print False.
If the string is empty, print True.
"""... | [
"manojparmar968@gmail.com"
] | manojparmar968@gmail.com |
4d4310bff46c0e27cb43864dca2228b7dc34a08c | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day02/whileloop.py | 7b951cb6d33502a47a4991572bf5a38e4e6ec1f5 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python
# coding:utf8
# __author__ = "willian"
import time
start1 = time.time()
count = 0
while True:
if count == 10000000:
break
count += 1
print("start1:", time.time() - start1)
count = 0
start2 = time.time()
while count < 10000000:
count += 1
print("start2", time.time() - start2) | [
"284607860@qq.com"
] | 284607860@qq.com |
62da92ae63bf8a52bf72d0265f9ecf99d72c18ac | f5b0f3856444d7bcb07aa36ef069859802ca0aa3 | /cardinal_pythonlib/sqlalchemy/dialect.py | 1c68eb4a22a1f4960bc14c33a4d751b801118b60 | [
"Apache-2.0"
] | permissive | bopopescu/pythonlib | 12a28f00d9d10fff3247d0af10adc6d91abb550c | 9c2187d6092ba133342ca3374eb7c86f9d296c30 | refs/heads/master | 2022-11-21T00:45:30.000788 | 2020-07-21T13:47:33 | 2020-07-21T13:47:33 | 282,107,878 | 0 | 0 | Apache-2.0 | 2020-07-24T02:55:42 | 2020-07-24T02:55:42 | null | UTF-8 | Python | false | false | 4,069 | py | #!/usr/bin/env python
# cardinal_pythonlib/sqlalchemy/dialect.py
"""
===============================================================================
Original code copyright (C) 2009-2020 Rudolf Cardinal (rudolf@pobox.com).
This file is part of cardinal_pythonlib.
Licensed under the Apache License, Versi... | [
"rudolf@pobox.com"
] | rudolf@pobox.com |
5180105a7491e4ac228854b54794b08924427b6a | a72614b303f198ee4d717c6425c66ea508357b18 | /Eric_Matthes/chapter_1/8/8-7_make_album.py | 94be57df5bff91a2eebae16252ae1d23640d8655 | [] | no_license | rvdmtr/python | d70e8b65685e9967c8b261a085e5fa36ea8a3f8e | 355d117ae48f78d331ef2cfc2f92551dc857cb58 | refs/heads/master | 2020-08-19T20:44:42.557121 | 2019-10-18T08:32:52 | 2019-10-18T08:32:52 | 215,952,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | ######Exercise 8-7
def make_album(artist,album,tracks=''):
# if tracks:
# dict = {'artist':artist.title(),'album':album.title(),'tracks':tracks}
# return dict
# else:
# dict = {'artist':artist.title(),'album':album.title()}
# return dict
# ИЛИ ТАК, меньше кода, более элегантно
dict = {'artist':artist.title(),'a... | [
"noreply@github.com"
] | rvdmtr.noreply@github.com |
a22fb9c416cfc0a3e2af795fcad30d6954f944ab | d69f7a082b6a886109ff7c47fedf7a2839a7213c | /app/registration/views.py | 06348d311395c1ceaa27c1fa3b8379b58f50fe67 | [] | no_license | manuelborowski/register-computer | fbb1cb2ec3e65c4701c87cdeee1c03a8f3d9905d | 72e32cf38960b5f64aa284432efb3e0e8f5c22b3 | refs/heads/master | 2022-12-24T15:59:53.774534 | 2019-03-01T10:00:49 | 2019-03-01T10:00:49 | 145,862,416 | 0 | 0 | null | 2022-09-23T22:20:02 | 2018-08-23T14:08:00 | Python | UTF-8 | Python | false | false | 6,421 | py | # -*- coding: utf-8 -*-
# app/asset/views.py
from flask import render_template, redirect, url_for, request, flash, send_file, session
from flask_login import login_required, current_user
from .. import db, log
from . import registration
from ..models import Registration
from ..base import build_filter, get_ajax_tab... | [
"emmanuel.borowski@gmail.com"
] | emmanuel.borowski@gmail.com |
d80c2d26343c9dbb7fac28d104b61ed6a29c1e8e | a0547a2cdba67631822b395c6c0a2facf41f1c80 | /backend/home/migrations/0002_load_initial_data.py | e8d85eb251c243d8ded400be4ea0dac18168df57 | [] | no_license | crowdbotics-apps/firstreactnativeapp-24212 | 3dcdf743dc9a76106b4dea5af4a725d7f7421b61 | 108cf1da96de04ddb47bf65480f4f0e1b68647cf | refs/heads/master | 2023-02-24T15:30:10.690237 | 2021-02-02T18:54:03 | 2021-02-02T18:54:03 | 335,391,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "FirstReactNativeApp"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "Home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d0fe9c55222fe2c97df80fd69759f229f1b39c71 | 2d58f8634a26d46b6a8b4cb967698c5629ab7a02 | /cluster_label_suite.py | be15b15d6e7a60c32d30df613ec94f4b38005083 | [] | no_license | mcandocia/website_keywords | 3bcb36e7efe135426c2e6c9377d380273b0d9360 | cd231c5fc668c505c54df96075b455ff0cf82f39 | refs/heads/master | 2021-01-10T07:28:58.888625 | 2016-09-19T02:49:03 | 2016-09-19T02:49:03 | 51,411,024 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import os
import re
import csv
BASE_DIRECTORY = '/home/max/workspace/webclass/clustering_training/'
driver = webdriver.Firefox()
os.chdir(BASE_DIRECTORY)
files = [f for f in os.listdir(os.getcwd()) if re.match('.*html$',f) <> None]
pri... | [
"mscandocia@gmail.com"
] | mscandocia@gmail.com |
6040bdd229f5dc10fafe0c1d4247bf0ad5eea8d5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_1/Python/dut200901102/main.py | f146f3aa9b4c48c45d2ed9caeabfd2283882d947 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | t = input()
cas = 1
for i in xrange(t):
print "Case #%d:" % cas,
cas += 1
s, p = map(int, raw_input().split())
def ok(x):
if (2 * s + 2 * x - 1) * x <= p: return True
return False
l = 0
r = 10 ** 19
while r >= l:
mid = (l + r) / 2
if ok(mid): l = mid + 1
else: r = mid - 1
print r
| [
"eewestman@gmail.com"
] | eewestman@gmail.com |
1faf81588c440f1d198f545e6da6fd175c1ee67a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/numbers/_eight.py | f57142011ecac48d746dad6069f5f36355ee7a3f | [
"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 | 294 | py |
#calss header
class _EIGHT():
def __init__(self,):
self.name = "EIGHT"
self.definitions = [u'the number 8: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'numbers'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3dccb61c2f21ac855a680fdac690a93e697584c4 | 8fbf698f5cf67c8252a12e957ee902a4771d256a | /leonardo_form_pegastudio/migrations/0024_auto_20180212_2047.py | 4c7d41bae7751ec8b696dc7c5d196b6aa1a7dbff | [
"BSD-2-Clause"
] | permissive | dresl/leonardo-form-pegastudio | 4f2ba9ea93fd26309f4d3f9965384ce31e148e2e | 915d6328a8ceef2217c896e3c3f0257092f08a16 | refs/heads/master | 2021-05-09T04:40:23.300990 | 2018-02-16T08:14:11 | 2018-02-16T08:14:11 | 119,282,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leonardo_form_pegastudio', '0023_auto_20180212_1937'),
]
operations = [
migrations.RemoveField(
model_name='docu... | [
"nikicresl@gmail.com"
] | nikicresl@gmail.com |
45767af492ed4688a1e9dc11c60cfb3126242bda | 4d20fac35f3a328a74adb1af0a1c0604bd4714d1 | /contrib/tlslite/tlslite/sessioncache.py | de6d7024bcc943f6020080c81ff859f6b32e1fda | [
"Apache-2.0"
] | permissive | splunk/splunk-webframework | b92632ab2426441e00b3ae6eb145a8819067e9f6 | 11334e5ef54ef38cc9f0a9e72d09ee3e21dc4e98 | refs/heads/master | 2022-06-01T03:19:46.774035 | 2022-05-03T18:00:30 | 2022-05-03T18:00:30 | 7,966,251 | 33 | 9 | null | 2013-10-08T22:35:54 | 2013-02-01T20:59:03 | JavaScript | UTF-8 | Python | false | false | 3,568 | py | # Author: Trevor Perrin
# See the LICENSE file for legal information regarding use of this file.
"""Class for caching TLS sessions."""
import thread
import time
class SessionCache:
"""This class is used by the server to cache TLS sessions.
Caching sessions allows the client to use TLS session resumption
... | [
"itay@neeman.net"
] | itay@neeman.net |
4c3a18c79f25e7ee52dd95979d2357c452be2175 | 1799fe1d9dfcf5f9619a87a11f3fa6170e1864fc | /00543/diameter_of_binary_tree.py | f16bbe9f58a4f68d5eaaa26ee1c0b23282e6cc95 | [] | no_license | SinCatGit/leetcode | 5e52b49324d16a96de1ba4804e3d17569377e804 | 399e40e15cd64781a3cea295bf29467d2284d2ae | refs/heads/master | 2021-07-05T18:51:46.018138 | 2020-04-25T04:06:48 | 2020-04-25T04:06:48 | 234,226,791 | 1 | 1 | null | 2021-04-20T19:17:43 | 2020-01-16T03:27:08 | Python | UTF-8 | Python | false | false | 1,373 | py |
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def __init__(self):
self.diameter = 0
def diameterOfBinaryTree(self, root: TreeNode) -> int:
"""
https://leetcode.com/problems/diameter-of-binary-tree/
... | [
"sincat@126.com"
] | sincat@126.com |
852d919a7ae94d8a845a75196f0c9c696d106b14 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/gui/HUD2/HUDStatesEffectsController.py | 2594f5fa22b40753df33e46ce21bd1d3c054aa2c | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | # Embedded file name: scripts/client/gui/HUD2/HUDStatesEffectsController.py
class HUDStatesEffectsController(object):
def __init__(self, effectsMap, effectManager):
"""
@param effectsMap: effectName -> integer key with combined key (see test_HUDStatesEffectsController)
@type effectsMap: d... | [
"55k@outlook.com"
] | 55k@outlook.com |
1dcdb509812e0684c89ff85d8599efd8ddb475db | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/Django-1.11/tests/flatpages_tests/test_sitemaps.py | 5be4fe518a2b4d08d72271a39ab57277aca7c4af | [
"BSD-3-Clause",
"Python-2.0",
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 1,326 | py | from __future__ import unicode_literals
from django.apps import apps
from django.contrib.sites.models import Site
from django.test import TestCase
from django.test.utils import modify_settings, override_settings
@override_settings(
ROOT_URLCONF='flatpages_tests.urls',
SITE_ID=1,
)
@modify_settings(
INSTA... | [
"ranade@cloudera.com"
] | ranade@cloudera.com |
94f276f91777f97372fe00fbe90e06cc2f9e4747 | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/tierras_20200220114841.py | 07e6e1c039faf0c40b5776f21658d67077a861db | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | import os
import pylab as pl
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
os.system("clear")
fig = pl.figure()
axx = Axes3D(fig)
raiz=np.sqrt
ln=np.log
X = np.arange(-2, 12, 0.1)
Y = np.arange(-2, 12, 0.1)
Z = np.arange(600,2000,100)
X, Y = np.meshgrid(X, Y)
print(Y)
ax, ay = 0.5, 0.5
bx, by = 4.5, 0.4... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
cbd86b61f6a5549650d4584e3a44cbff6254488f | b8af146da526fce8ad4755962ccf323a9240a4bc | /data_structure_helpers/tests/test_linked_list_node.py | cfc3c27de6dfab8fdc7695aa7f57d6ccad77979d | [
"MIT"
] | permissive | ChristopherHaydenTodd/ctodd-python-lib-data-structures | 2a5327c866ee847c4613778b8feebdbb433fb29b | 4d9ad3ce7a066993cdff337fd0d3ca0faed75bbc | refs/heads/master | 2020-04-22T18:19:49.285214 | 2019-04-21T14:38:28 | 2019-04-21T14:38:28 | 170,573,819 | 1 | 0 | MIT | 2019-04-21T14:38:29 | 2019-02-13T20:21:51 | Python | UTF-8 | Python | false | false | 449 | py | #!/usr/bin/env python3
"""
Purpose:
Test File for linked_list_node.py
"""
# Python Library Imports
import os
import sys
import pytest
from unittest import mock
# Import File to Test
from data_structure_helpers import linked_list_node
###
# Fixtures
###
# None at the Moment (Empty Test Suite)
###
# M... | [
"Christopher.Hayden.Todd@gmail.com"
] | Christopher.Hayden.Todd@gmail.com |
d9040215d4ed819c374442cddc9fa6c84202cb6d | 70bb287a47b6df063ff4e9d371d034f8cdef88bd | /03_neural_networks_tutorial/pyimagesearch/preprocessing/__init__.py | aedf8a96b97d1c63817aa8b8a3a9027e830745e2 | [] | no_license | lmquan1609/Pytorch_Tutorial | 1116823521b09af595178010196f30428803c44a | 2f1a95bf2a711f24ab8e74fa561246c8b04e0962 | refs/heads/master | 2020-09-03T04:55:23.000985 | 2019-11-04T01:19:57 | 2019-11-04T01:19:57 | 219,391,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # import the necessary packages
from .simplepreprocessor import SimplePreprocessor
from .imagetoarraypreprocessor import ImageToArrayPreprocessor
from .aspectawarepreprocessor import AspectAwarePreprocessor
from .meanpreprocessor import MeanPreprocessor
from .patchpreprocessor import PatchPreprocessor
from .cropp... | [
"ITITIU15033@student.hcmiu.edu.vn"
] | ITITIU15033@student.hcmiu.edu.vn |
60d58a79e887c7d247fe90e8257c4773f72c5f9a | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/meta/profiletabnavigatormeta.py | 9d633f15c8eebad500a25fc22618c0be81f2219e | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 854 | py | # 2016.08.04 19:51:44 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ProfileTabNavigatorMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class ProfileTabNavigatorMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generated w... | [
"info@webium.sk"
] | info@webium.sk |
f551da29c9a7f16f223157a71ba343cb21e43851 | 4960e3e005ba04ec0a8b0defc6642dff5e71f5ae | /knowledge/cron/API_user_portrait/redis_user2portrait.py | 99a7cb10d7fbfbba203dae90d8d436ed2a8e8d6d | [] | no_license | jianjian0dandan/knowledge_revised | aa7d772ba9efcaa579907b0418e145d6b440a9c9 | ffc80dcca932c977755128c80c17dca603ee8a8b | refs/heads/master | 2021-01-24T18:27:41.117166 | 2017-04-25T14:55:42 | 2017-04-25T14:55:42 | 84,448,466 | 1 | 0 | null | 2017-06-15T07:32:31 | 2017-03-09T14:02:46 | HTML | UTF-8 | Python | false | false | 7,222 | py | # -*- coding: utf-8 -*-
import sys
import time
import json
from weibo_api import read_flow_text, read_flow_text_sentiment
from cron_text_attribute import test_cron_text_attribute_v2
reload(sys)
sys.path.append('../../')
from global_utils import R_RECOMMENTATION as r
from global_utils import r_user_hash_name
from time_u... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
c181e7fbe3737ef3d3f9bf8ed2575171305cab9b | e6fe41981c50c673dcb6e88f7caa55710b7fb973 | /setup.py | 0cb0978b718272a009442f78328a0d4d82c60515 | [
"MIT"
] | permissive | dmoebius/gmusicapi-wrapper | fe47492fd08164b55d42075d1522dc0ff524734d | 8708683cd33955def1378fc28319ef37805b851d | refs/heads/master | 2020-04-22T17:59:40.115087 | 2018-10-20T00:40:46 | 2018-10-20T00:42:01 | 170,561,263 | 0 | 0 | MIT | 2019-02-13T18:54:11 | 2019-02-13T18:54:11 | null | UTF-8 | Python | false | false | 1,215 | py | #!/usr/bin/env python3
# coding=utf-8
import re
import sys
from setuptools import find_packages, setup
if sys.version_info[:3] < (3, 4):
sys.exit("gmusicapi-wrapper does not support this version of Python.")
# From http://stackoverflow.com/a/7071358/1231454
version_file = "gmusicapi_wrapper/__init__.py"
version_re... | [
"mail@thebigmunch.me"
] | mail@thebigmunch.me |
b53d0bf6c4765629d666124a781a9527d23ad0a1 | 0a1f8957a798006deaa53d10d09f733fab1e6b05 | /bin/Python27/Lib/site-packages/sympy/solvers/pde.py | 6babd5c1350c8f6ff042420d8d0cdcff7b419527 | [
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/meta-core | a89504ccb1ed2f97cc6e792ba52e3a6df349efef | bc7a05e04c7901f477fe553c59e478a837116d92 | refs/heads/master | 2023-03-07T02:52:57.262506 | 2023-03-01T18:49:49 | 2023-03-01T18:49:49 | 40,361,476 | 25 | 15 | NOASSERTION | 2023-01-13T16:54:30 | 2015-08-07T13:21:24 | Python | UTF-8 | Python | false | false | 6,333 | py | """
Analytical methods for solving Partial Differential Equations
Currently implemented methods:
- separation of variables - pde_separate
"""
from sympy import Eq, Equality
from sympy.simplify import simplify
from sympy.core.compatibility import reduce
from sympy.utilities.iterables import has_dups
import operat... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
e758fd40fc78fd9040d7ed3224ad5ec2a8ac746b | 5b04b47b9498890ef95fa6e78fe7135c570a3f43 | /puf_compare_national.py | bc2c3c8fdf9d3d543b096d8881a2764f4a8365f2 | [] | no_license | donboyd5/puf_analysis_frozen | 8ca3ea7e899a7db60fe7b3ed681cbd80ef0f59e8 | 3aa2b1cb680aad16987ed776bcfdc878418e7a64 | refs/heads/main | 2023-04-12T12:55:48.495699 | 2020-12-16T09:48:39 | 2020-12-16T09:48:39 | 361,897,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,870 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 24 04:19:27 2020
@author: donbo
"""
# %% imports
import pandas as pd
import numpy as np
import puf_constants as pc
from datetime import date
import json
import puf_utilities as pu
# %% locations and file names
DATADIR = r'C:\programs_python\puf_analysis\data/'
RESULTD... | [
"donboyd5@gmail.com"
] | donboyd5@gmail.com |
b347d3ef1fddcc7324783c33265336b0d818da01 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/MMseg-swin/configs/pspnet/pspnet_r50-d8_4x4_512x512_80k_potsdam.py | d74d51abf356c8164432af04e9bf799cd817f3d2 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,644 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
1297c17a690d8b875ff8a3f5d326c713c18dd549 | e62a8943ea2cc45b660b17ab10e238e7cb4642dc | /TTGPU.py | 797836420209123974b815a014d29f94bf554d85 | [] | no_license | mkjubran/HMS | 6229fd36e7f01b93be6f572e59e26a42a1058257 | 2402380d4e68c9b924303a8e1efac6af434d3a57 | refs/heads/master | 2021-04-09T15:18:07.334487 | 2020-11-10T19:49:30 | 2020-11-10T19:49:30 | 125,491,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
tf.debugging.set_log_device_placement(True)
# Create some tensors
a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
b = t... | [
"mjubran@birzeit.edu"
] | mjubran@birzeit.edu |
2fff55dc4924705fa5778157588858f488adb324 | ed90fcbfd1112545fa742e07131159bb3a68246a | /server-auth/ls/google-cloud-sdk/lib/googlecloudsdk/deployment_manager/commands/deployments/cancel.py | c55d48c7403860a3c286255432ef084203672d72 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wemanuel/smry | 2588f2a2a7b7639ebb6f60b9dc2833f1b4dee563 | b7f676ab7bd494d71dbb5bda1d6a9094dfaedc0a | refs/heads/master | 2021-01-10T21:56:55.226753 | 2015-08-01T13:37:06 | 2015-08-01T13:37:06 | 40,047,329 | 0 | 1 | Apache-2.0 | 2020-07-24T18:32:40 | 2015-08-01T13:26:17 | Python | UTF-8 | Python | false | false | 5,854 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""deployments cancel command."""
from googlecloudapis.apitools.base import py as apitools_base
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.core import log
from googlecloudsdk.core import properties
from ... | [
"wemanuel@symon.eightwoods.private.prv"
] | wemanuel@symon.eightwoods.private.prv |
188740819a2fee528590237fcbb61ac23440953c | 6e158a54409937515b14676730adfadfd457d4ae | /shared/seqseqprod.py | 489ec5c1383a82bb0b22d88ffaa6f5d8c946564c | [] | no_license | Tjstretchalot/machinelearning | e2b277efd99f6e45005cb92a0cc17e90bf7d37e4 | 5a3b17c49211a63f71cdf40ca35e00a3af4b198a | refs/heads/master | 2020-05-02T09:25:25.032430 | 2019-07-25T14:37:43 | 2019-07-25T14:37:43 | 177,871,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | """Describes something that is capable of generating sequence to sequence problems to
present to a (recurrent) neural network"""
import pytypeutils as tus
import typing
from shared.perf_stats import PerfStats, NoopPerfStats
class Sequence(typing.NamedTuple):
"""Describes an arbitrary sequence of collectio... | [
"mtimothy984@gmail.com"
] | mtimothy984@gmail.com |
fd5fb1b848c80ca52845f9edcf6f92fb830ef13d | ac9c1bdd2663f478c54f3f7ac84068fc536c347c | /tests/test_searchable.py | 3c4d676ceaaf8b1419d64e578579c11f8cd6da1d | [] | no_license | gonz/sqlalchemy-searchable | bfda374bdcfbbf6a5b424b7ed430b6ef773eb179 | 72ced30d9b4729a13bfef439ac18cb02478e6bf8 | refs/heads/master | 2021-01-15T19:34:51.842565 | 2013-08-16T18:16:29 | 2013-08-16T18:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,971 | py | # -*- coding: utf-8 -*-
from sqlalchemy_searchable import search_filter, search
from tests import TestCase, TextItem, TextItemQuery, Article, Order
class TestSearchQueryMixin(TestCase):
def setup_method(self, method):
TestCase.setup_method(self, method)
self.session.add(TextItem(name=u'index', con... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.