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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0c82c12388765452f1cf2aab6bd56e2b66ed9de6 | f9f4a41b8274e64a07eef099d937f60715f35d83 | /4_matrix/vec.py | 5ec3ec510e269b32c21f76b614ecad11c157a927 | [] | no_license | tsh/linear-algebra-coding-the-matrix | ae178f177650e56e623c8a6c7f8dda6c972e276d | d9f33165161009d1417c15eccce8ad1196c3248b | refs/heads/master | 2021-01-21T13:04:41.687831 | 2018-02-25T17:53:50 | 2018-02-25T17:53:50 | 55,892,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,040 | py | # version code 24ea27739109+
coursera = 1
# Please fill out this stencil and submit using the provided submission script.
# Copyright 2013 Philip N. Klein
def getitem(v,k):
"""
Return the value of entry k in v.
Be sure getitem(v,k) returns 0 if k is not represented in v.f.
>>> v = Vec({'a','b','c', '... | [
"dr.tallin@gmail.com"
] | dr.tallin@gmail.com |
2db35a9389103e8fc0a087681249cddef6e0d20b | a893d00bae0c0fa7db1d42cd14c368033e1c3d3f | /9-5/练习9-14/die.py | 1f6c887e08f14484099ec666f0ad6ae9a2a306ba | [] | no_license | taozhenting/python_introductory | 71ac4b5fe4aa45a9008c9510c77e34e31226f849 | f88afa0b4232e7ba79b42c370f2266fde85e7462 | refs/heads/master | 2020-04-27T06:02:20.169314 | 2019-05-22T09:17:40 | 2019-05-22T09:17:40 | 174,096,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from random import randint
class Die():
def __init__(self,sides=6):
self.sides = sides
self.one = 1
def roll_die(self):
x = randint(self.one,self.sides)
print(x)
def read_die(self,sides2):
self.sides = sides2
self.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
159812a4b18ec101b40c8c31eb36200bb142dfce | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/landing/migrations/0056_auto_20190413_2004.py | a41e9da7e50da70d6a58ef7449d21c6cbc0ecd64 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 777 | py | # Generated by Django 2.1.7 on 2019-04-13 18:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('landing', '0055_auto_20190413_2003'),
]
operations = [
migrations.AlterField(
model_name='featu... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
820bec30ea20c4419a39ee8f3192743c7b3f1c6d | 59fbeea017110472a788218db3c6459e9130c7fe | /n-ary-tree-postorder-traversal/n-ary-tree-postorder-traversal.py | 923780e9e3d8cd5c4ae09ec7bf45b6b7b5e60d78 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class Solution(object):
def postorder(self, root):
"""
:type root: Node
:rtype: List[int]
"""
res = []
self.dfs(root, res)
return res
def dfs(self, node, res):
if not node:
return
for child in node.children:
... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
6051807f71b0884aa6953e4016a2b4be5a0ece68 | 5dde149d7577425387940d22b6df3919a5b73061 | /Realestate3/Tagent3/models.py | 3808e3f2e33693e673056756ecf1e11ea76a3e0f | [] | no_license | Jagadishbommareddy/agent | cbed666381b1c017c679a4b1b30a838abb17739d | 925659ca1fb4d0138d367f2a4c5675b1473193cd | refs/heads/master | 2021-01-22T00:51:31.824816 | 2017-09-02T12:27:38 | 2017-09-02T12:27:38 | 102,194,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | from django.db import models
from .validators import*
class ContactInfo(models.Model):
mobile_number = models.CharField(max_length=15,validators=[validate_mobile_no])
phone_number = models.CharField(max_length=15,validators=[validate_phone_no])
email_id = models.EmailField()
class Address(models.Model... | [
"noreply@github.com"
] | Jagadishbommareddy.noreply@github.com |
178278173909f8e03f01544245087820b88c205d | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/datastruct/CaseInsensitiveDuplicateStringComparator.pyi | 5394dd55f716c89f9810c9391ef745871fb4bc39 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,755 | pyi | import java.lang
import java.util
import java.util.function
class CaseInsensitiveDuplicateStringComparator(object, java.util.Comparator):
"""
Comparator for sorting Strings in a case insensitive way except that case insensitive duplicates
are then sub-sorted by reverse case so that lower case is before u... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
959e579dcc1e44ee49159768722886931a44293a | 67e0e33535229f4e9e520baa9d4ca4db8ce88c10 | /BioClients/ncbo/Client.py | a0abd282522771a9c035503a34ac40c3d8cf6a6e | [
"CC0-1.0"
] | permissive | Huan-Yang/BioClients | 70a89d2067cbc9ab89b241f94c72a90a313927e4 | 7acae54548cf4d14f0a64a8503308934362da1a8 | refs/heads/master | 2023-07-01T18:09:03.993919 | 2021-08-06T00:00:49 | 2021-08-06T00:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | #!/usr/bin/env python3
"""
http://data.bioontology.org/documentation
The National Center for Biomedical Ontology was founded as one of the
National Centers for Biomedical Computing, supported by the NHGRI, the
NHLBI, and the NIH Common Fund.
"""
###
import sys,os,argparse,re,yaml,logging,time
#
from .. import ncbo
from... | [
"jeremyjyang@gmail.com"
] | jeremyjyang@gmail.com |
551afdc0012bf5f07a787a239f3d84d0892497e0 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v7/services/services/ad_group_ad_label_service/client.py | bdc81225942b4da7c8bda023e9f56fc213b4ef58 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 23,852 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
768a70e5d98d7ea01062017fca6b41623f1ddfca | b72f9d9f0769265cdea2b8caff145af9c532ea09 | /practice/abc010_2.py | 941eb576e2cb058f0028912c7e422106356bcf07 | [] | no_license | ritzcr/AtCoder | 3335fefa8fb1989a0f9da80fe6d0902b46aa2d1f | 15097b0c2568ace653e5080d789047531e50edde | refs/heads/master | 2021-02-12T19:16:41.757421 | 2020-07-05T06:30:57 | 2020-07-05T06:30:57 | 244,620,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | n = int(input())
a = map(int, input().split())
count = 0
for x in a:
for y in range(x, 0, -1):
if y % 2 == 0 or y % 3 == 2:
count += 1
else:
break
print(count) | [
"ritz@freex.ltd"
] | ritz@freex.ltd |
b70ea34a3cade2aad1421876bad3c8c94dd4c5b0 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/graphics/JiveXML/share/DataTypes_InDet.py | a52fa76f6acd3aeae378a0d3c2e49aa522527249 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # This file is provided for backwards compatibility only
# In new jobOptions please use the files included below directly
include ("InDetJiveXML/InDetJiveXML_DataTypes.py")
include ("TrkJiveXML/TrkJiveXML_DataTypes.py")
| [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b0db655fc20d73b8a745c3ee207872f9fb565c98 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/policy/v4_0/models/policy_evaluation_record.py | 86735338fb6201019813c2f3de4b493e5990f4e2 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
ca3dbf886ee950a14cdf1fa530bd80155925842b | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/objects/components/statistic_types.py | da8b914809370b45c665574304eedc7d87479741 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from sims4.tuning.tunable import Tunable
class StatisticComponentGlobalTuning:
DEFAULT_RADIUS_TO_CONSIDER_OFF_LOT_OBJECTS = Tunable(description='\n The radius from the Sim that an off-lot object must be for a Sim to consider it.\n If the object is not on the active lot and outside of this radius, t... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
5b4517a18505e30de5e8fe4c8792bac9f216c850 | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /openapi-generator/python/test/test_vehicle_maintenance_passenger.py | a16b589746a17dd0378039efeaa695f04e7eccfd | [] | no_license | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,544 | py | # coding: utf-8
"""
Samsara API
# Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud AP... | [
"greg@samsara.com"
] | greg@samsara.com |
4ae7f729d5904e4bbc7551d4ed5d9c0ed00c7574 | 1362bc36e86f8216d405b547f5f45874ac332b1e | /Uber/flowingWater.py | 301c6cff2eec1ddfeab6791a1667001183bbebac | [] | no_license | zhuolikevin/Algorithm-Practices-Python | ed5ca06758e35d910ffbea011b414b3c57fd6c7a | 1df8d93a8ecb8627899aadddb5dd5c5d0b144cdf | refs/heads/master | 2021-01-22T01:04:31.536327 | 2016-01-15T13:31:07 | 2016-01-15T13:31:07 | 32,602,632 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | class Solution:
def search(self, i, j, visited):
stack = [(i, j)]
while stack:
x, y = stack.pop()
if x < 0 or x >= self.m or y < 0 or y >= self.n or self.mat[x][y] in visited:
continue
visited.add((x, y))
direc = [(1, 0), (-1, 0), (0, 1... | [
"lizhuogo@gmail.com"
] | lizhuogo@gmail.com |
bdd9de3bd55fd46686b5c58557b70e1fc8644139 | 0fb0dba210ff0f63515c464d7acc95ae32d7603c | /Application/Automate the Process of Reporting the Install Date for ESET/automate-the-process-of-reporting-the-install-date-for-eset.py | 50234b12a83b445eea115ed4e289aae23e4e4005 | [] | no_license | slad99/pythonscripts | 7cbe6b8bb27c8c06e140c46e7c8cf286cbc56d8e | 4e0ebb023899a602cb041ef6f153fd3b7ab032e9 | refs/heads/master | 2022-01-04T21:49:10.486758 | 2019-06-28T14:29:28 | 2019-06-28T14:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | import os,socket,_winreg,getpass
b=[]
print "USER NAME: "+getpass.getuser()
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
print "IP-ADDRESS : "+(s.getsockname()[0])
from time import gmtime, strftime
time=strftime("%Y-%m-%d %H:%M:%S", gmtime())
port=587
def computername():
... | [
"noreply@github.com"
] | slad99.noreply@github.com |
1fde1ff80637cb7b41a81eeb7a470f9c3f319014 | dde4fefc427b36e72952babfabeb3db69e8f6e7b | /range fuc.py | c547300cefd66c86b02247e6942ee587665f103f | [] | no_license | ANKITPODDER2000/Python-Lab-2nd-Year | 6fb6e6eca91cde0eff98e724dc6499b26097d109 | 567b73e66a6c493aac8aede01b1837c83f4609a8 | refs/heads/master | 2020-09-17T06:46:22.186618 | 2019-11-25T19:25:30 | 2019-11-25T19:25:30 | 224,024,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | for i in range(0,15):
print(i) | [
"ankitpodder0211@gmail.com"
] | ankitpodder0211@gmail.com |
9bf830b879b67b8bd3cde7fbd237f059e00381a7 | b1d941be5cd577ce34475339b021784aa9af6395 | /libcloudforensics/logging_utils.py | 747470010f535c75cd9b624fe30eda4db675d793 | [
"Apache-2.0"
] | permissive | google/cloud-forensics-utils | ef21ac682e040b5b977aa897aaf75b3b8ec1ed6d | 38926ef5d075696b2b0f6714f3758be1e6ea1658 | refs/heads/main | 2023-09-04T11:05:42.136161 | 2023-08-28T03:25:22 | 2023-08-28T03:25:22 | 238,205,900 | 418 | 95 | Apache-2.0 | 2023-09-14T05:55:03 | 2020-02-04T12:54:51 | Python | UTF-8 | Python | false | false | 4,407 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"noreply@github.com"
] | google.noreply@github.com |
6557dcc3b585514a79943390d6b8f3ae2e3c9ff6 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/zodiac/test_config_flow.py | 18a512e0b455d0198ea9328ba4555bfa0d4e60d1 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 2,119 | py | """Tests for the Zodiac config flow."""
from unittest.mock import patch
import pytest
from homeassistant.components.zodiac.const import DOMAIN
from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
from... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
8062d69ba2538832e60059ddae623206f877de02 | 81b3efefa7ec376eacfc5c28e4e0b2b8e8fa8a80 | /net/sftpipe | e0ac8722d2cf03fe0b5d181a4bd033cc7974d499 | [
"MIT"
] | permissive | akhuettel/code | 833be8af9615ce3a5519bb803813b30db1f4a230 | 0cc56df9bcef93d19090e82fa7d12b4212123d8e | refs/heads/master | 2023-08-31T06:00:18.154407 | 2021-10-22T05:07:11 | 2021-10-22T05:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | #!/usr/bin/env python3
# Copy data from stdin to a remote file over SFTP. To be used if the target
# server doesn't have a POSIX-like shell interface and cannot reliably use 'cat
# > quoted_path'.
import argparse
import paramiko
import re
import sys
import subprocess
def parse_dest(arg):
if arg.startswith("sftp:/... | [
"grawity@gmail.com"
] | grawity@gmail.com | |
7ea5445efa8cf1a6312bc7893484486984cce932 | 33b83b22d1e93b5e32800e3d521f8c1b25491941 | /Day06/03.切片.py | ec3ad03d25fec6f5c4a36785e096d8d4bf2e16e5 | [] | no_license | codeBeefFly/bxg_python_basic | 4ea9c2fb7a81176c501619192e1d89b2034614a9 | 685fdf9e4b763ef74abeab8b55eb365615c3b376 | refs/heads/master | 2022-12-20T06:41:57.297101 | 2020-10-11T08:51:52 | 2020-10-11T08:51:52 | 298,194,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | boxes = ['酸奶','可乐','积木','矿泉水','纸盒子','脉动']
# 获取箱子中前三个商品
| [
"lijin890119@163.com"
] | lijin890119@163.com |
e26bdebcd83983ccb783fed8805b0f9edecf0197 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /ime/models/ime.py | 8177d1191a99cb35486a0f2c2514b6bb0add90c5 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 17,352 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5a8e7108bea6fe1d2aa93e4c7a45b33778200cb6 | 998ced39bbacf743a445ae3f258d9a7215f10794 | /backend/menu/migrations/0001_initial.py | 1846814f922b9a90d09a1e8b8fc3c6674aacd07b | [] | no_license | crowdbotics-apps/test-19340 | d5483e2bbd889e187c3a0b145e40dafedef66af2 | ed7f208217b30631235fcbe61c33b06b189745a2 | refs/heads/master | 2023-07-06T02:51:14.025283 | 2020-08-03T17:19:10 | 2020-08-03T17:19:10 | 284,756,281 | 0 | 0 | null | 2021-08-03T20:03:13 | 2020-08-03T16:54:02 | JavaScript | UTF-8 | Python | false | false | 3,144 | py | # Generated by Django 2.2.15 on 2020-08-03 16:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('delivery_user_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7cfb6733bf31310a349f2f1a6edc22f9c96b53f6 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /tools/grit/grit/tool/update_resource_ids/__init__.py | 3006fbffabefe5e72994d6313129bdbffb1a7347 | [
"Zlib",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"APSL-2.0",
"MIT",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 9,646 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Package grit.tool.update_resource_ids
Updates GRID resource_ids from linked GRD files, while preserving structure.
A resource_ids file is a JSON dict (wi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7f6e079c0a48ee76d3298878b56e133898d647cb | e77eda0d87beb6a38b55f1d6d3a28f5090cb4fe3 | /lose/utils/ui/keys.py | 34a75d2d046b7031c40225ecc36857833eadbcaf | [
"Apache-2.0"
] | permissive | brianbruggeman/lose-7drl | 5dde91fd214e4355bffa5a8d1f3e9b07c5b9ecdf | 8921b464e82c8c7e6bf7cfebd4e8a3a5e290ac38 | refs/heads/master | 2021-03-24T12:20:44.802970 | 2017-03-12T04:21:55 | 2017-03-12T04:21:55 | 83,945,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,890 | py | # -*- coding: utf-8 -*-
import sys
import operator
from random import choice, random, randint
import tcod
from ..logger import get_logger
logger = get_logger(__name__)
key_mapping = {
getattr(tcod, d): d.lower().replace('key_', '')
for d in dir(tcod)
if d.startswith('KEY_')
}
def get_input_info(inpu... | [
"Brian.M.Bruggeman@gmail.com"
] | Brian.M.Bruggeman@gmail.com |
0ff01722968ac8fe843ee54eaf63d28016723414 | ba2a05f20454bda428f140634bc602699f164fc4 | /00.SSAFY/1.first-semester/algorithm/APS_Basic/20190314/3750_digit_sum.py | 60bcca7f7a6d32798917a92f187b00ea604e7c9a | [] | no_license | snowink1137/TIL | 734da402e99afa52f1af4ef996a6b274b1bcce0b | 9e9c78eb0c892affc88e2d46e143cef98af743fb | refs/heads/master | 2023-01-08T18:26:34.311579 | 2021-11-14T11:04:22 | 2021-11-14T11:04:22 | 162,255,934 | 0 | 0 | null | 2023-01-07T11:09:09 | 2018-12-18T08:32:44 | Jupyter Notebook | UTF-8 | Python | false | false | 496 | py | import sys
sys.stdin = open('3750.txt', 'r')
T = int(input())
result_list = []
for test_case in range(1, T+1):
n = int(input())
while not 1 <= n <= 9:
result = 0
remain = n
while True:
if remain == 0 and n == 0:
break
remain = n % 10
... | [
"snowink1137@gmail.com"
] | snowink1137@gmail.com |
be689ebb3657eb8867e6013a1be7eb5f5882edb9 | 3b1229c458aa232bfcf11cd6da5f1275e9bb3a8f | /python/Python基础/截图和代码/Python基础/PaxHeader/14-print一次输出多个变量.py | 97fa2a4739a01fb79033d136eca2687248c5823b | [] | no_license | sunjianbo/learning | 4fee3ddc5e3d4040a49f2ef3e6f239fd6a67b393 | 384cb4e73cc67e390ee2f4be0da9fe0319d93644 | refs/heads/master | 2021-02-17T16:32:22.557614 | 2020-03-09T05:29:51 | 2020-03-09T05:29:51 | 245,111,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | 86 path=Python基础/截图和代码/Python基础/14-print一次输出多个变量.py
26 mtime=1490959062.01127
| [
"sunjianbo"
] | sunjianbo |
1639f0c947e83bfcbfa272ebc46b8629e060cbd7 | 2049bda43e392d5f5981fbfdb70090ba226e4ef8 | /apps/catalogue/migrations/0056_auto__chg_field_productspecialrequests_repackaging_done__chg_field_pro.py | c6b963c2946816baff57cd580f5379cdbb5cb71f | [] | no_license | embedded1/django-package-forwarding | 2ef84a1fde5ba6817d42d89f983512bdc3d77bc3 | 8c3286e9a7da8f4ae0401a81c8037585b3bb7ba6 | refs/heads/master | 2020-06-22T17:05:36.637695 | 2019-07-26T09:34:40 | 2019-07-26T09:34:40 | 197,738,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,510 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'ProductSpecialRequests.repackaging_done'
db.alter_column('catalogue_productspecialrequest... | [
"asili@usendhome.com"
] | asili@usendhome.com |
0be8fc99f29dfc8368be3b1a5f8c74fa377e33e5 | 9506059c37515ba00c2b9e804188f5bed896f7bd | /olfactorybulb/neuronunit/tests/__init__.py | e430ba4f9d83993ad61edf2184cd0f9f962605d5 | [
"MIT"
] | permissive | russelljjarvis/OlfactoryBulb | 241b41fcd642b7e91f8a5a087afd23df2103698a | af27b14f5c19c2b60845065b7f2d7da2c16f811d | refs/heads/master | 2022-07-21T22:42:03.058163 | 2020-05-15T00:01:22 | 2020-05-15T00:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,764 | py | # MOCKS for autodoc
import quantities as pq
if pq.mV.__class__.__module__ == 'sphinx.ext.autodoc.importer':
pq.mV = pq.ms = pq.Hz = pq.nA = 1.0
# END MOCKS
from abc import abstractmethod
from neuronunit import capabilities as ncap
from neuronunit.tests.base import VmTest
from olfactorybulb.neuronunit.te... | [
"jbirgio@gmail.com"
] | jbirgio@gmail.com |
31ee4365ba660e46efea90ad50e7e7dd715b39c8 | f2cece9e5f2af8482c12fc7ad8b3a7e63e6de052 | /tbot/api/admin/__init__.py | 87d22b20d424ea6d10aa8c1f5924ddd379bedce8 | [] | no_license | nikifkon-old/questionnaire_bot | beadc716ca0a7cbfa6a4c47039c00123e8892eb4 | 3cbf889c7edf4ba438ce7e46c5f9b67efe5d7e72 | refs/heads/master | 2023-04-24T07:12:28.227259 | 2020-08-03T09:14:35 | 2020-08-03T09:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import flask_login as login
from tbot.models import Account
from tbot.utils import session_scope
# Initialize flask-login
def init_login(app):
with session_scope() as session:
login_manager = login.LoginManager()
login_manager.init_app(app)
# Create user loader function
@login_ma... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
c1507c1d668bf1ddc7979e99591b0ffae9c5d485 | db1b327c4913c453b2fdd9dda661938c4abc5c0e | /abc/94/D.py | e575890eacecafabd215188b428f103f2588b08a | [] | no_license | oamam/atcoder | 0c129aab72e3c7090c9799fdf52f6e8119ef5238 | 658054b69b7586eed896484535dcfa1fef498e43 | refs/heads/master | 2021-06-26T09:01:12.389266 | 2020-10-30T02:01:11 | 2020-10-30T02:01:11 | 165,225,322 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def main():
n = int(input())
a = list(map(int, input().split()))
if n == 2:
print(max(a), min(a))
else:
ma = max(a)
sa = sorted([(i, abs(ma // 2 - a[i]))
for i in range(n)], key=lambda x: x[1])
print(ma, a[sa[0][0]])
main()
| [
"chapa0106@gmail.com"
] | chapa0106@gmail.com |
36f6573767ca8a136f8eaa40ce2f6a7af7735a99 | fbf73800e27f66960f677a284c2771e66708973b | /talk_lib/talk.py | 2282b1a9ff25df18016a1301fa7ef17cad68f73e | [
"MIT"
] | permissive | allankellynet/mimas | 94140a341693d4729b3cdf5ea94ef2f7e550aad6 | 10025d43bba9e84f502a266760786842e7158a05 | refs/heads/master | 2022-05-30T21:35:06.083902 | 2020-02-27T14:04:27 | 2020-02-27T14:04:27 | 235,146,506 | 0 | 0 | MIT | 2022-05-25T04:56:13 | 2020-01-20T16:30:39 | Python | UTF-8 | Python | false | false | 1,904 | py | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
# system imports
# framework imports
from google.appengin... | [
"allan@allankelly.net"
] | allan@allankelly.net |
f9ec77c6200fa013ae8c88352879593415f7e4ca | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/numpy/distutils/tests/test_fcompiler.py | c4dcda04c74e299d14a04befd238f39969ec0ee4 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/98/95/de/cd35c351b76e842c151807c0047a440115a19e3f212d6f44394deb9fce | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
f920eae915049d1f03531e51cf0c975bd03f7079 | 20f3b4ee874e8b3e565f9ce60d4de8cab48d7d20 | /tests/basic-structs/test_memories.py | 9f0c3f45935af0fddd49af2d15ff8cdb1436a680 | [
"MIT"
] | permissive | pshchelo/kopf | ec968e6f11432f3728efb385bf18762676f7a5be | ab53ace82e62a6fa709bf5a580007eac1273ac34 | refs/heads/main | 2022-04-26T11:39:01.565811 | 2022-04-02T14:05:26 | 2022-04-02T14:05:26 | 221,041,880 | 0 | 0 | MIT | 2019-11-11T18:14:59 | 2019-11-11T18:14:58 | null | UTF-8 | Python | false | false | 1,599 | py | from unittest.mock import Mock
from kopf._cogs.structs.bodies import Body
from kopf._cogs.structs.ephemera import Memo
from kopf._core.reactor.inventory import ResourceMemories, ResourceMemory
BODY: Body = {
'metadata': {
'uid': 'uid1',
}
}
def test_creation_with_defaults():
ResourceMemory()
a... | [
"nolar@nolar.info"
] | nolar@nolar.info |
db9d1c13b7d436ab858207a924264786e3498ed2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_infiltrates.py | 6ebdab4177a42ddd28fbae76e331e02785165b79 | [
"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 | 238 | py |
#calss header
class _INFILTRATES():
def __init__(self,):
self.name = "INFILTRATES"
self.definitions = infiltrate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['infiltrate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a4544faf8314eea6d6429d0c18c980fb8b91b2f5 | 0fcc6353edee4eed7a1ea4b1c89a00bfcf03e851 | /TryExcept/Finally.py | fc91ea5fe2e2768f5d5e8f587dd996b7f49dc433 | [] | no_license | GANESH0080/Python-Practice-Again | 81d8048c23d338a99bb17fa86a9f87b3057bfe52 | 6565911d14a22d0f33a41b417026c31a0a066be5 | refs/heads/master | 2020-09-20T03:40:45.462869 | 2019-11-27T07:19:24 | 2019-11-27T07:19:24 | 224,368,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | #The try block will raise an error when trying to write to a read-only file:
try:
f = open("demofile.txt")
f.write("Lorum Ipsum")
except:
print("Something went wrong when writing to the file")
finally:
f.close()
#The program can continue, without leaving the file object open
| [
"ganusalunkhe@gmail.com"
] | ganusalunkhe@gmail.com |
73d4574f53efb7fc7035fb83bd09771334884d54 | 7e86f933cd477b08258dde4f52ecb2f45949d665 | /libdeepfry/emoji.py | b07ab177ca7fc98932ddfcf93773956e11d61f82 | [
"MIT"
] | permissive | MineRobber9000/deepfry | 25b41035c3f20d99ab1b40ffccde0ab24b8e5d9e | 383b7da439932dfc03fcae3fc52aa6538af20871 | refs/heads/master | 2020-04-13T13:45:30.294013 | 2018-12-27T09:46:38 | 2018-12-27T09:46:38 | 163,241,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import json, os.path
BASEDIR = os.path.dirname(os.path.abspath(__file__))
EMOJIS = os.path.join(BASEDIR,"emojis")
with open(BASEDIR+"/emoji.json") as f: d = json.load(f)
def listEmoji():
return list(d.keys())
def getImage(name):
return os.path.join(EMOJIS,d[name])
| [
"khuxkm@ttm.sh"
] | khuxkm@ttm.sh |
d70e924db0d9df85ee854247487a4ad1b3f3a949 | 919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2 | /conans/test/integration/generators/markdown_test.py | 12d065d26ee68671ab6c0d48c0837bc62058442d | [
"MIT"
] | permissive | thorsten-klein/conan | 1801b021a66a89fc7d83e32100a6a44e98d4e567 | 7cf8f384b00ba5842886e39b2039963fc939b00e | refs/heads/develop | 2023-09-01T12:04:28.975538 | 2023-07-26T10:55:02 | 2023-07-26T10:55:02 | 150,574,910 | 0 | 0 | MIT | 2023-08-22T14:45:06 | 2018-09-27T11:16:48 | Python | UTF-8 | Python | false | false | 7,453 | py | import textwrap
import unittest
from conans.test.utils.tools import TestClient
class MarkDownGeneratorTest(unittest.TestCase):
def test_cmake_find_filename(self):
conanfile = textwrap.dedent("""
from conans import ConanFile
class HelloConan(ConanFile):
... | [
"noreply@github.com"
] | thorsten-klein.noreply@github.com |
25c5552949f5b7481246f07942206d1094100615 | 2fdfc31a487a69c5d32fbebecb0f862ed376e01b | /demo/libs/plugins.py | 86e52dcbd65d691d0b7251e3cb34018e0eb5f770 | [
"MIT"
] | permissive | hwsyy/passport | 94f9e3f211e22828644494bcad79028e2fd65979 | 279ac5a87dd0aaa96f97c44a95765487ad71bdf5 | refs/heads/master | 2020-04-17T17:22:49.697451 | 2019-01-21T03:32:44 | 2019-01-21T03:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,891 | py | # -*- coding: utf-8 -*-
"""
demo.libs.plugins
~~~~~~~~~~~~~~
Plugins Manager: load and run plugins.
:copyright: (c) 2017 by staugur.
:license: MIT, see LICENSE for more details.
"""
import os
from utils.tool import plugin_logger
class PluginManager(object):
"""
定义插件基类, 遵循格式如下:
插件为目录... | [
"staugur@vip.qq.com"
] | staugur@vip.qq.com |
5e1e458ba6c95125f1af4dffd2a3244e8f04e4fe | f647c6fb984b6e93977bb56a9a4533b8d47e6644 | /lib/dbsqlite.py | d78d5b670510243b004e03e42afa47e3c0487173 | [] | no_license | vdsmirnov52/wt000 | 7a88fcf29e5f786b8f2b0956b4a10ae68c0e32a6 | 0dd8ead0a73ed0f3f7f2f8c5302dff0071392570 | refs/heads/master | 2021-04-26T05:50:59.554131 | 2020-08-06T10:14:02 | 2020-08-06T10:14:02 | 79,928,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,670 | py | #!/usr/bin/python -u
# -*- coding: utf-8 -*-
import sys
import sqlite3
class dbsqlite:
r""" Работа с SQLite
Warning('You can only execute one statement at a time.',) ... только одно заявление за раз
Функции:
execute (query, [vals]) - Исполняет SQL запрос. Возвращает: {True|False}
get_row (query, [vals]) - Читае... | [
"vdsmitnov52@gmail.com"
] | vdsmitnov52@gmail.com |
83e25dcf1a96fdde2966714124d86f0a571a3d92 | a37bf3343be428c453e480c7a411a91b125ab1d1 | /deb/openmediavault/usr/share/openmediavault/firstaid/modules.d/40restore_config_backup.py | a8e215ee7b7b78ea5a740be8e451314d7aa2d4c1 | [] | no_license | zys1310992814/openmediavault | 8e73ccd66fefaddd03385834137887614726812c | 337f37729783d9bf3a08866c0dbc8b25c53b9ca3 | refs/heads/master | 2020-04-20T14:18:57.505953 | 2019-02-02T15:18:07 | 2019-02-02T15:18:07 | 168,894,447 | 1 | 0 | null | 2019-02-03T00:41:55 | 2019-02-03T00:41:55 | null | UTF-8 | Python | false | false | 4,021 | py | #!/usr/bin/env python3
#
# This file is part of OpenMediaVault.
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2009-2018 Volker Theile
#
# OpenMediaVault is free software: you can redistribute it and/or modify
# ... | [
"votdev@gmx.de"
] | votdev@gmx.de |
57fa47b2bde6a7e5a76d63e2b71fb76e98dbc5ea | 9c54d20ea935e3e96af2c81349e2e8e93f9e3abd | /main.py | 21a6aa4d5294a59744103c164ecb227296938ad1 | [] | no_license | folkol/python-tag-cloud | e0bfb0e9bd7b61ba4532407cd6380020bc75f8cc | fce689f7960983dc6f7e3ffe0de6020ad875f969 | refs/heads/master | 2023-02-23T14:37:27.327243 | 2022-02-11T07:20:58 | 2022-02-11T07:20:58 | 177,873,883 | 0 | 0 | null | 2023-02-16T23:39:47 | 2019-03-26T21:49:58 | Python | UTF-8 | Python | false | false | 1,339 | py | """Generates a tag cloud from words found in the given projects python files."""
import builtins
import keyword
import os
import sys
import tokenize
from collections import Counter
import matplotlib.pyplot as plt
from wordcloud import WordCloud
DIR_BLACKLIST = ['.git', 'venv', 'tests']
TOKEN_BLACKLIST = ['self', *key... | [
"mattias4@kth.se"
] | mattias4@kth.se |
338c9058e62cd3557cce13438c3687d06f08be89 | 365c85a280596d88082c1f150436453f96e18c15 | /Python/Sort/插入排序.py | 904ec4fc487bcb85b850ba614f3a7fe9dc05223f | [] | no_license | Crisescode/leetcode | 0177c1ebd47b0a63476706562bcf898f35f1c4f2 | c3a60010e016995f06ad4145e174ae19668e15af | refs/heads/master | 2023-06-01T06:29:41.992368 | 2023-05-16T12:32:10 | 2023-05-16T12:32:10 | 243,040,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
插入排序:
它的工作原理是每一次从待排序的数据元素中选出最小(或最大)的一个元素,
存放在序列的起始位置,所以称为:选择排序。
时间复杂度: O(n^2)
空间复杂度: O(1)
"""
from Utils.timer_decorater import timer
from typing import List
class Solution:
@timer
def insertion_sort(self, l: List) -> List:
if len(l) <= 1:
... | [
"zhaopanp2018@outlook.com"
] | zhaopanp2018@outlook.com |
1ca1c50f395e5d78d3d7df0362c1b89a800546a8 | 320280bfce76713436b76ffc3125ccf37e65a324 | /AnalyzeMiniPlusSubstructure/test/ttbar/ttbar_306.py | aebec186733d709d873615f93abaaaf8346d123d | [] | no_license | skhalil/MiniValidation | 75ea5c0d7cde17bf99c7d31501f8384560ee7b99 | 1a7fb8377e29172483ea6d3c7b3e427ff87e7e37 | refs/heads/master | 2016-09-05T10:31:38.562365 | 2015-01-29T05:30:32 | 2015-01-29T05:30:32 | 29,898,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | py | import FWCore.ParameterSet.Config as cms
###############################################
useMiniAOD = True
# AOD
pfcandidates = 'particleFlow'
chsstring = 'pfNoPileUpJME'
genjetparticles = 'genParticles'
importantgenparticles = 'genParticles'
tracks = 'generalTracks'
vertices... | [
"skhalil@fnal.gov"
] | skhalil@fnal.gov |
77cbfc57fc62ce75fd6dbe60b403562ca9184ab9 | 8104e1745a3a4ce41530b0353a2dd502eb3c6541 | /nova/nova/network/neutronv2/api.py | aad9cfbc0c25640d6ca993ca2c4c3075a45666de | [
"Apache-2.0"
] | permissive | eepalms/SoD | cc9d5ef59efd65656aaf790b47971a0b6bf36080 | 97613fb0324f65c8e43111e9216d3a2131fa4ef7 | refs/heads/master | 2021-01-12T00:57:30.654487 | 2017-01-08T05:16:27 | 2017-01-08T05:16:27 | 78,322,865 | 2 | 1 | null | 2020-07-24T02:00:16 | 2017-01-08T05:12:13 | Python | UTF-8 | Python | false | false | 86,072 | py | # Copyright 2012 OpenStack Foundation
# All Rights Reserved
# Copyright (c) 2012 NEC Corporation
#
# 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/lic... | [
"tianweiz@princeton.edu"
] | tianweiz@princeton.edu |
76f0aba3cd468d0ec66404e8b7947d7b7333aafa | 3a642fa1fc158d3289358b53770cdb39e5893711 | /src/xlsxwriter/test/comparison/test_format01.py | 4c50643ba2bfbb06d966fe651528ff22ebe50e1b | [] | no_license | andbar-ru/traceyourself.appspot.com | d461277a3e6f8c27a651a1435f3206d7b9307d9f | 5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c | refs/heads/master | 2020-07-23T14:58:21.511328 | 2016-12-26T22:03:01 | 2016-12-26T22:03:01 | 73,806,841 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.TestC... | [
"andrey@voktd-andbar.int.kronshtadt.ru"
] | andrey@voktd-andbar.int.kronshtadt.ru |
26c7774f14779d1cd3315d78272da86bbefcef4d | d9aa4291a4978b932bef84b8d26aa4b911ca2add | /day04正则re模块/03 re模块正则表达式.py | a5c42f5fb0a7f43dad3f6996b9c6b9feadeed74b | [] | no_license | SelfShadows/my_git | 9a32d3713efb1b055d04c813b319eb2196fdcf53 | b10a4c838e1146b3f6ce297480840de9a8e89206 | refs/heads/master | 2020-12-15T22:33:49.273814 | 2020-02-14T16:33:46 | 2020-02-14T16:33:46 | 235,274,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import re
#ret=re.split('ab','abcd')
#print(ret)
# ret=re.search('[\d|\w](?P<name>\w.*?s)','sdfdf 3dd3fds2 13f')
# print(ret)
# print(ret.group('name'))
#命名
# ret=re.search('<(?P<flag_name>\w+)>\w+</(?P=flag_name)>','<tl>hello</tl>')
# print(ret.group())
#匹配整数
ret=re.findall('\d+\.\d+|(\d+)','8+4-2*5.21-5+10-(50... | [
"870670791@qq.com"
] | 870670791@qq.com |
62df615bb39689d2921aede204a4472f282f1fa7 | ae85cd400fa71296867c9e55297affa2d3679b5d | /algorithms/pattern_matching/rabin-karp.py2.py | 6cce3fe2ac69b7fa1deb148357b646ccaffca4c0 | [] | no_license | Psycadelik/sifu | a1e751aa4e97cd56431cdf8704304b82943db37c | 72965f694f7a44aa8711d11934b216d5ccf9d280 | refs/heads/master | 2023-04-12T17:07:00.677702 | 2021-05-07T07:30:14 | 2021-05-07T07:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | '''
28. Implement strStr()
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Clarification:
What should we return when needle is an empty string? This is a great question to ask during an interview.
For the purpose of this problem, we will return 0 when needle is ... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
2d6e2ed0883d161c1401bb9fb640a3ab787fb618 | 664c3ced94ab0e9a5bac547028db59a3ca1f2074 | /16. Python games with Pygame/EG16-05 background sprite/EG16-05 background sprite.py | 22797007a32d97adb2843f167fe7fe7d0a565b7e | [
"MIT"
] | permissive | nikcbg/Begin-to-Code-with-Python | 2b1283a7818e26d3471677b51d1832cde52c4ddc | a72fdf18ca15f564be895c6394a91afc75fc3e2c | refs/heads/master | 2021-06-23T23:09:36.009442 | 2021-06-23T11:17:24 | 2021-06-23T11:17:24 | 209,285,197 | 0 | 0 | MIT | 2021-03-17T07:48:09 | 2019-09-18T10:50:51 | Python | UTF-8 | Python | false | false | 2,148 | py | # EG16-05 background sprite
import pygame
class Sprite:
'''
A sprite in the game. Can be sub-classed
to create sprites with particular behaviours
'''
def __init__(self, image, game):
'''
Initialize a sprite
image is the image to use to draw the sprite
default positi... | [
"nkcbg@yahoo.com"
] | nkcbg@yahoo.com |
48dda0032940d6cc8a1faecdbe87f99ff551ae62 | bba2bd15307d94707825057fe2790a72c707a363 | /allennlpx/modules/token_embedders/embedding.py | dcab25dbe87317171a6a1e8769f6d4cc8fd80498 | [] | no_license | Xalp/dne | c78e8ef2f730b129623ed3eaa27f93d2cf85d6f6 | afa519eea9ccd29332c477d89b4691fc2520813b | refs/heads/master | 2023-02-16T14:27:48.089160 | 2021-01-15T12:30:44 | 2021-01-15T12:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,568 | py | import logging
import warnings
import numpy
import torch
from allennlp.nn import util
from overrides import overrides
from allennlp.common import Tqdm
from allennlp.common.checks import ConfigurationError
from allennlp.data import Vocabulary
with warnings.catch_warnings():
warnings.filterwarnings("ignore", categ... | [
"dugu9sword@163.com"
] | dugu9sword@163.com |
3241bf7425397cb464d443fdc964822f93d76157 | e9f4f2f48f96f8eef84851fb1191c5f5ae7ca882 | /odps/config.py | 1b9afca23b4335d61c3c7ace6f55d59a65aa5d7c | [
"Apache-2.0"
] | permissive | bleachyin/aliyun-odps-python-sdk | 18d156b794de530090bc04e1cba918e08b0f77bc | 6a99db643076b3957f0e6c774c482e81881dbe25 | refs/heads/master | 2021-01-16T22:44:11.875016 | 2016-02-05T02:17:25 | 2016-02-05T02:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,873 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
36f275751e1301d42602f769a222608e3f3ea75d | 448fd7b58f53b6b8394a2a4a8f6325c3b731afa8 | /EXE_RP/modules custom setups/pyforms/setup.py | 461f21c3b99588eeb172ee6e1cd8b30916b711b1 | [
"MIT"
] | permissive | webclinic017/TraderSoftwareRP | 7c4a5833226f54c84d941830adc26263e984f957 | 3996bb4b1add72901530079d0a2b7aa6a7b33680 | refs/heads/master | 2022-04-17T13:29:03.724522 | 2020-04-12T07:48:00 | 2020-04-12T07:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Ricardo Ribeiro"
__credits__ = ["Ricardo Ribeiro"]
__license__ = "MIT"
__version__ = "0.1"
__maintainer__ = "Ricardo Ribeiro"
__email__ = "ricardojvr@gmail.com"
__status__ = "Production"
from setuptools import setup
setup(
name ... | [
"reprior123@gmail.com"
] | reprior123@gmail.com |
669b7d9bcd7b3ebfd57a1310141c672bc89c7dec | e32bb97b6b18dfd48760ed28553a564055878d48 | /source_py2/test_python_toolbox/test_nifty_collections/test_lazy_tuple/test_frozen_dict.py | 6a5067df2c9b2f5f39bfd4f4bdc6892857a6111c | [
"MIT"
] | permissive | rfdiazpr/python_toolbox | 26cb37dd42342c478931699b00d9061aedcd924a | 430dd842ed48bccdb3a3166e91f76bd2aae75a88 | refs/heads/master | 2020-12-31T04:15:53.977935 | 2014-04-30T23:54:58 | 2014-04-30T23:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | # Copyright 2009-2014 Ram Rachum.
# This program is distributed under the MIT license.
'''Testing module for `python_toolbox.nifty_collections.LazyTuple`.'''
import uuid
import itertools
import collections
from python_toolbox import cute_iter_tools
from python_toolbox import sequence_tools
from python_toolbox import... | [
"ram@rachum.com"
] | ram@rachum.com |
f11e82d29c20ff0e44d26b7febaefe0bfff58a0a | 30f15cac2567373380d288e4be7a8e7aed73519c | /examples/gabcpmc_sumnorm_useaux.py | 1d05365786c5bd244fcc8f535b8a9e255f6a65c7 | [] | no_license | HajimeKawahara/abcfast | c208570111c23145ae95421e7471cc5f69335127 | 951d7998578a245da2dabb6f97c70a2392ea5d43 | refs/heads/master | 2020-04-21T21:04:15.619478 | 2020-03-20T03:56:07 | 2020-03-20T03:56:07 | 169,866,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | from abcfast.gabcpmc import *
from abcfast.utils import statutils
if __name__ == "__main__":
import numpy as np
import matplotlib.pyplot as plt
from numpy import random
from scipy.stats import gamma as gammafunc
from scipy.stats import norm as normfunc
import time
import sys
... | [
"divrot@gmail.com"
] | divrot@gmail.com |
d8b647cce8583803aa21188fc6af6a53879bbcc8 | 5c661f53aa00dbaf595d0e8a565a749c4c55c5cf | /commando/django/core/management/sqlflush.py | ffc719348003842cbde0b2f1f1479c431d769673 | [
"MIT"
] | permissive | skibblenybbles/django-commando | 894f34c80d16fe60555c3f34439e45af124dba32 | dd1dd6969fc0dd8231fc115fee3eeb690809585b | refs/heads/master | 2021-01-22T06:54:28.874271 | 2014-01-16T15:38:07 | 2014-01-16T15:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | from commando import management
BaseSQLFlushCommand = management.get_command_class(
"sqlflush", exclude_packages=("commando",))
if BaseSQLFlushCommand is not None:
base = BaseSQLFlushCommand()
class SQLFlushCommandOptions(management.CommandOptions):
"""
SQLFlush command options.... | [
"mkibbel@gmail.com"
] | mkibbel@gmail.com |
6a88be3e9bcc912b2a54083082b83a3e47393144 | d91b7761d556d320e897eddceb378a53a99fb1a6 | /library/CAMB_library.py | c860083a5735c3e64a9648f1ae34b49e7ae5b841 | [] | no_license | franciscovillaescusa/Pylians3_old | d945760e4ccce91d943276db1a456c76861e5f22 | aa9ca5904b818c3f4ca431642332986fc8932772 | refs/heads/master | 2020-06-19T14:37:01.421069 | 2019-09-08T16:29:47 | 2019-09-08T16:29:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,413 | py | import numpy as np
import camb
import sys,os
# This routine computes the linear power spectra using CAMB given the input
# cosmological parameters. To do the rescaling with s8 we always need to generate
# the z=0 linear matter Pk, i.e. in redshifts there always should be 0
# PkL.z -------> redshifts [0, 0.5, 1, 2 ...]... | [
"villaescusa.francisco@gmail.com"
] | villaescusa.francisco@gmail.com |
892c7ac75a0e494f8780281d4139c8602ba5f045 | 171781c9b8ac1cb1bd0562db53788d2c570d4aa4 | /myapp/apps.py | ec02046654421fb4a91100b3f227104a665ba0e9 | [] | no_license | johnbangla/showcasesecond | 4949c492ffc38306320325ea5bacb40b72ba7e21 | 84877579a7204d289a64e1db57ada4ff0e792b95 | refs/heads/master | 2023-01-12T07:12:56.754055 | 2020-10-29T07:20:22 | 2020-10-29T07:20:22 | 275,085,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.apps import AppConfig
class MyappConfig(AppConfig):
name = 'myapp'
def ready(self):
import myapp.signals | [
"johnbangla@gmail.com"
] | johnbangla@gmail.com |
1233414a1856f946a67a85615938cf7566b3e2d4 | f6d2d1c3e5525dc955a47da39d78481cda105699 | /django/pitches/api/serializers.py | 2da08e797f0fb7c1929b6bc208d809a9811e9ec4 | [] | no_license | KyleLawson16/pitch-yak | 340458833debe4ccf5e3774fb714491624035297 | c98505c5c4a8de369fd749d56a91028373109e50 | refs/heads/master | 2021-01-23T18:31:36.105954 | 2017-09-11T22:21:49 | 2017-09-11T22:21:49 | 102,796,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | from rest_framework.serializers import (
ModelSerializer,
HyperlinkedIdentityField,
SerializerMethodField
)
from pitches.models import Pitch
pitches_detail_url = HyperlinkedIdentityField(
view_name='api:detail',
lookup_field='unique_id'
)
class PitchListSerializer(ModelSerializer):
url = pitc... | [
"Kyle.Lawson7@yahoo.com"
] | Kyle.Lawson7@yahoo.com |
d06d05cbff3f00b938366a8b1ec2a636bbbfca52 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/3070/453003070.py | 91a536502088f709e87f6454abc6630e2e0603aa | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 837 | py | from bots.botsconfig import *
from records003070 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'ST',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'SSC', MIN: 1, MAX: 1},
{ID: 'DTP', MIN: 1, MAX: 2},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
49d16d047bd4ea4ff578997b297de8bd7f86c743 | 8feecb692bacdb10340af1b40878da4f24f5f2dd | /ammarit/it/migrations/0002_auto_20160718_1343.py | 5b5c18bf81fab9a5096915a2faa964e1bf36cb8f | [
"Apache-2.0"
] | permissive | aammar/IT-Storage-Ticket-System | 2bbf4cf240eef59557bc0faf728379dadf522cce | 6b8fb7a915cdd10e7a003301a35477a718129643 | refs/heads/master | 2021-01-11T18:18:45.272913 | 2016-08-25T19:23:33 | 2016-08-25T19:23:33 | 71,046,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('it', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='item',
old_name='Category... | [
"hasan.aljawaheri@gmail.com"
] | hasan.aljawaheri@gmail.com |
bc06edcede98909e1064f09cc79a7c965352f912 | d0151e3cc292a1d3e2472515741c24ac99ef89c5 | /lcamatrix/product_flow.py | ffde7890434ec03686092acd85b1da8f9bfa665e | [] | no_license | bkuczenski/lca-matrix | 73123fbc0bf238697aed316577287b148318b2aa | 78962e3f9ce94c351754667df07b6ed0e61d1fa7 | refs/heads/master | 2021-01-19T19:59:06.480947 | 2017-06-16T19:45:25 | 2017-06-16T19:45:25 | 78,722,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | class ProductFlow(object):
"""
Class for storing foreground-relevant information about a single matched row-and-column in the interior matrix.
"""
def __init__(self, index, flow, process):
"""
Initialize a row+column in the technology matrix. Each row corresponds to a reference exchang... | [
"brandon.kuczenski@301south.net"
] | brandon.kuczenski@301south.net |
3c79559ef9bdf98549d064edf7d6923df2b5dfab | 895ce933b8103b739f9b46b1a3f4c1c4f12061f3 | /tests/charts/test_worker.py | 1c495e4f313a0340068e79469f10c01fc9e7ff02 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | antonymayi/airflow | 1e80968339a32f47c641f0feec421fe724d978f6 | eb47c42d6ba3ca33cf4223ac6c2a4904cf1f388e | refs/heads/main | 2022-11-05T02:50:14.252178 | 2022-11-03T08:15:20 | 2022-11-03T08:15:20 | 204,968,973 | 0 | 0 | Apache-2.0 | 2019-08-28T17:50:48 | 2019-08-28T15:50:48 | null | UTF-8 | Python | false | false | 28,522 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | antonymayi.noreply@github.com |
fe662e47d1a55bc77cd5d40a5e665d68cbbdfdc9 | 047c1101cb73daaff08d879dbfe4b6880324a554 | /tests/test_surface.py | cc0322cadda50b56ec943ab9db6aa17d652d9283 | [
"Apache-2.0"
] | permissive | matekatona/bezier | ff259320c1c26ff3f9470047a2a812aec5277b34 | 3afc6e549f016cc6dcf7a53b17da0c68fd622756 | refs/heads/master | 2021-01-25T01:21:21.989712 | 2017-06-08T04:24:36 | 2017-06-08T04:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,614 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
ee667b910b500ba5afa77f5fb347aa8a5094ab98 | 40f4908483b98fc4f370ff4f2d520e1284d045b3 | /immortals_repo/shared/tools/brass_api/translator/preprocess.py | 66bdc5df406a7b802fee3c8356a7ed5a65c0d91c | [] | no_license | TF-185/bbn-immortals | 7f70610bdbbcbf649f3d9021f087baaa76f0d8ca | e298540f7b5f201779213850291337a8bded66c7 | refs/heads/master | 2023-05-31T00:16:42.522840 | 2019-10-24T21:45:07 | 2019-10-24T21:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,063 | py | import shutil
import os
from brass_api.common.exception_class import BrassException
def create_preprocessor(xml_file):
'''
Returns a MDLPreprocessor or a VICTORYPreprocessor.
:param xml_file:
:return:
'''
if os.path.exists(xml_file):
infile = open(xml_file, 'r')
first_line = ... | [
"austin.wellman@raytheon.com"
] | austin.wellman@raytheon.com |
92c8823b00b04d9fc44af80494f25691189c9ac9 | e874aed81b6ae75467262423cf5fc4c6e4a31c64 | /dsn_brand/models/product.py | 5c89834b32d725eec4daaf28e432bcf1c7359c5c | [] | no_license | disna-sistemas/odoomrp-wip | 9dc14704e4aad00f95313d5465802fca13809b1a | 96958f442ae0e5274c8d7ebb8f2d1b636a16d48a | refs/heads/master | 2020-12-06T23:27:22.321202 | 2015-11-20T09:57:24 | 2015-11-20T09:57:24 | 26,594,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi, Guewen Baconnier
# Copyright 2012-2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publi... | [
"sistemas@disna.com"
] | sistemas@disna.com |
fc1b9caaa29a6d3d45e8e7ae156ad413c812ad6b | 4fe0ed5e592641b272aa2167ae591155a9cad416 | /modelisation/bode.py | b35acf103938b896adcc4aefd7e07feb4b7045cf | [] | no_license | AlexandreMarcotte/test_code | cf715caee730cfdafa7cf97bd011ac15443872f3 | 07e115055befd55d4598dd8a4b33bbdd00ba6f5a | refs/heads/master | 2021-06-07T05:06:12.085390 | 2019-05-06T23:45:38 | 2019-05-06T23:45:38 | 137,810,297 | 0 | 0 | null | 2021-06-01T23:44:40 | 2018-06-18T21:50:39 | Python | UTF-8 | Python | false | false | 248 | py | from scipy import signal
import matplotlib.pyplot as plt
# K / (s + 1)
s1 = signal.lti([1], [1, 1])
w, mag, phase = signal.bode(s1)
plt.semilogx(w, mag) # Bode magnitude plot
plt.figure()
plt.semilogx(w, phase) # Bode phase plot
plt.show()
| [
"alexandre.marcotte.1094@gmail.com"
] | alexandre.marcotte.1094@gmail.com |
3988de9b05bb4de8c6283873e59d050a739f9944 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/swagger_client/apis/blockchain_tools_api.py | 680c114f7dc670ecf7bd4cee1e4a6111af9c9d0b | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 11,683 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
320fa0b8e1cd361fb2c02a73d04ab4d0162b7774 | 3b76f9f2317e1eb2cd9553cab0b4dd01ce216ad5 | /Alphabet rangoli3.py | 090099b26486b72357847a57c59364e9d98edbc9 | [] | no_license | KaziMotiour/Hackerrank-problem-solve-with-python | f12ea978c5274a90745545d3d2c9fb6a4f9b5230 | 798ce2a6c2b63ea24dc28a923bfee4b528fb2b5e | refs/heads/master | 2022-05-26T19:45:44.808451 | 2020-05-05T09:44:40 | 2020-05-05T09:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import string
size=int(input())
width=4*size-3
idth = 4 * size - 3
alpha = string.ascii_lowercase
for i in list(range(size))[::-1] + list(range(1, size)):
print('-'.join(alpha[size-1:i:-1] + alpha[i:size]).center(width, '-')) | [
"kmatiour30@gmail.com"
] | kmatiour30@gmail.com |
8a1329049224ec9c3a0acf0f983281006c36463b | 5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63 | /baekjoon/g_10026(적록색약).py | 5a69233805d812eb26ed8b940a6dc7e424887b84 | [] | no_license | juyi212/Algorithm_study | f5d263c5329c994a457bbe897e5e1405d2b1d67a | f225cc593a50b74686111f654f7133707a1d1310 | refs/heads/master | 2023-03-21T20:02:36.138688 | 2021-03-16T14:16:40 | 2021-03-16T14:16:40 | 325,008,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | import sys
from collections import deque
def bfs(ch, r, c, what):
q = deque()
q.append((r, c))
while q:
r, c = q.popleft()
if r - 1 > -1 and (what == ch[r-1][c]):
q.append((r-1, c))
ch[r-1][c] = 0
if r + 1 < n and (what == ch[r+1][c]):
q.append((... | [
"dea8307@naver.com"
] | dea8307@naver.com |
8a7a5b1f37c6e4c6f4a183e669093eed73020be6 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/codingbat/codingbat-python-master/Warmup-1/missing_char.py | 1657233e06d51e88f8838d6d6cbeac4873329ee1 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 460 | py | # Given a non-empty string and an int n,
# return a new string where the char at index n has been removed.
# The value of n will be a valid index of a char in the original string
# (i.e. n will be in the range 0..len(str)-1 inclusive).
# missing_char('kitten', 1) → 'ktten'
# missing_char('kitten', 0) → 'itten'
# m... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
87d219594395c1111f8271801f083877da440e94 | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /ave_SR/PS_101_3_curvo/results_losSup/verifications/verifRsl_normStrsULS.py | 34d37e62711c0bb619151fb422cb0a033c903b72 | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 523,273 | py | preprocessor.getElementHandler.getElement(4189).setProp("ULS_normalStressesResistanceSect1",BiaxialBendingControlVars(idSection= "losSupV2RCSects1", combName= "ELU722", CF=0.398895647305,N= 28.6216417834,My= -18.1789544892,Mz= 0.0))
preprocessor.getElementHandler.getElement(4189).setProp("ULS_normalStressesResistanceSe... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
1b2301b1d3e5f15ec3c78755f8a9237d2fba6ac2 | 1aefa304f794c1ed9e06ce71248206098c756cf3 | /python_revision/HackerRank/AppleandOrangeCount.py | c67bcaa3f07d4515796cc4838677a511de3ea16f | [] | no_license | dilipksahu/django_class | 333233bbced5491d886687b5990c8836dac2f145 | a044c4a079c61a6a6de05674103e8a9ba2b4d28c | refs/heads/master | 2023-01-10T07:40:44.713361 | 2020-11-10T15:26:33 | 2020-11-10T15:26:33 | 282,398,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | '''
Sam's house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where is the start point, and is the endpoint. The apple tree is to the left of his house, and the orange tree is to its right. You can assume the trees are located on a singl... | [
"sahud048@gmail.com"
] | sahud048@gmail.com |
c261968c4713645bebe1431723357f1000599bbc | abf0e45334bc083aecf9c536eb953b1abf015956 | /main9.py | 33f2a27c455d29b54d4d5354d299e42511546d44 | [
"Apache-2.0"
] | permissive | LinXueyuanStdio/MyTransE | bb0426a3bce521d961cdd4eaead394af60aed0af | 971901757aba6af22fc2791b5bb32028390b9625 | refs/heads/master | 2023-01-18T20:46:27.491531 | 2020-11-28T09:47:17 | 2020-11-28T09:47:17 | 292,465,215 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 61,381 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import _thread
import sys
import os
import time
import random
from math import exp
from typing import List, Tuple, Set, Dict
from scipy import spatial
import numpy as np
import torch
from torch import nn
from ... | [
"761516186@qq.com"
] | 761516186@qq.com |
fadaa39924de9fd8053b3139295c5e44f5f79a3f | 6b1cac18b81a4704c310fb30a30e2906c6137511 | /onepanman_api/serializers/friend.py | c9c6f60d7876d8dad9d8710e52d799e3753be593 | [
"MIT"
] | permissive | Capstone-onepanman/api-server | 973c73a4472637e5863d65ae90ec53db83aeedf7 | 1a5174fbc441d2718f3963863590f634ba2014e1 | refs/heads/master | 2022-12-09T22:43:23.720837 | 2020-03-20T00:43:21 | 2020-03-20T00:43:21 | 234,227,137 | 0 | 0 | MIT | 2022-12-08T02:37:19 | 2020-01-16T03:29:36 | Python | UTF-8 | Python | false | false | 218 | py | from rest_framework import serializers
from .. import models
class FriendSerializer(serializers.ModelSerializer):
class Meta:
model = models.Friend
fields = ['user1', 'user2', 'isAccept', 'date'] | [
"dngusdnd@gmail.com"
] | dngusdnd@gmail.com |
10ad7f5891f874270b74d82037e7c856ba6df352 | e0c9d5633a39e3f0e4f4aa0269e56fd8d2d8a61c | /datalad/ui/base.py | c768681a0d1b16b71e778584901a4725c352dd02 | [
"MIT"
] | permissive | glalteva/datalad | 551b9cc07059c68991961e2eddacdc76968519ac | 7a42c7205f4b70021d6162d82fa767a44861d52c | refs/heads/master | 2021-01-15T14:28:19.152653 | 2016-05-24T20:25:13 | 2016-05-24T20:25:13 | 59,442,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ##... | [
"debian@onerussian.com"
] | debian@onerussian.com |
82894fe462610408932dd9dfd2b97669b981169d | e6344882c2341dd1552401bce04e77567b8f1388 | /src/utils/__init__.py | 12e5ba3010f7aaadf48767012bd5a93486280166 | [
"MIT"
] | permissive | ebreton/pybootstrap | 4ab172aac86d7774f1fce238449b4d261e02191a | 5c4d42e75b1139d296bf39e0cc00ba7c6e3caebf | refs/heads/master | 2022-12-13T00:37:04.444648 | 2018-11-11T19:57:27 | 2018-11-11T19:57:27 | 119,203,576 | 2 | 0 | MIT | 2022-12-08T02:51:08 | 2018-01-27T21:21:45 | Python | UTF-8 | Python | false | false | 738 | py | from .env import get_mandatory_env, get_optional_env
from .logging import set_logging_config
from .runner import import_class_from_string, run_command
from .maintenance import deprecated
from .csv import csv_filepath_to_dict, csv_string_to_dict
from .yaml import yaml_file_to_dict
from .dates import parse_date, build_ti... | [
"email"
] | email |
986fd2b31c4051fabb4c0648000ea4a0e0e497ea | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/qosp/classrule.py | 62b400c40933b0aa8497e2012469251d2c43509b | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 7,834 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
05adfc2be582d0461468602b4e3a53ec33eb5006 | e1e031e7f1e786216964db742098cb17068c18eb | /2. Add Two Numbers.py | 2608020f5b9ebdd5145881602f57debe017904be | [] | no_license | FightingForJobs/Wei | 1091a10e7c626aa093e42f6f262f95c2b740fe3b | b075a5047e89929a4ee5e735ed1841caf9138fc8 | refs/heads/master | 2020-09-23T21:27:47.479637 | 2016-11-15T04:52:43 | 2016-11-15T04:52:43 | 73,511,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
last ... | [
"wfu@ncsu.edu"
] | wfu@ncsu.edu |
68ee203fb66a4204c28602727dd350464d5870a1 | ae10b60cb92a69146bfb05ef5dde735a0aa45d4b | /examples/Extended Application/matplotlib/examples/images_contours_and_fields/trigradient_demo.py | d2fa3b6a012f5752e1f1b40d2be9394e421255b3 | [
"MIT"
] | permissive | kantel/nodebox-pyobjc | 471cea4c5d7f1c239c490323186458a74edcc214 | 068ba64c87d607522a240ab60c3ba14f869f6222 | refs/heads/master | 2021-08-14T18:32:57.995445 | 2017-11-16T13:42:23 | 2017-11-16T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,008 | py | """
================
Trigradient Demo
================
Demonstrates computation of gradient with matplotlib.tri.CubicTriInterpolator.
"""
from matplotlib.tri import (
Triangulation, UniformTriRefiner, CubicTriInterpolator)
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
# nodebox sec... | [
"karstenwo@web.de"
] | karstenwo@web.de |
2e94867e67ec1d03d2b01b8c06b06023abc8af16 | 83771ee063c7dba66c934455a9be3b64448c2852 | /h2co_modeling/turbulent_pdfs.py | f7774def6b59197bac212a87187e3e279f026433 | [] | no_license | keflavich/h2co_modeling | 802eea43313be07d712a836a3b2aecba039e48c6 | b20bd60b4dfb53a924bf2822bd0942f4288d3bf9 | refs/heads/master | 2021-01-15T15:47:49.812310 | 2019-07-30T20:12:17 | 2019-07-30T20:12:17 | 16,702,988 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,348 | py | from scipy.special import iv
import numpy as np
# Bessel function 1st-order
iv1 = lambda x: iv(1,x)
# for rescaling log_e -> log_10
ln10 = np.log(10)
def hightail_distr(dens, meandens,sigma,alpha=1,offset=1, rescale=True):
pind = np.argmin(abs(dens-(meandens+offset/ln10)))
distr = np.exp(-((dens-meandens)*ln... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
a6e82d0a78bfbb1ed45805828e7fc24a30f3ae20 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2368/60677/251068.py | 9396e9b97de97b03a66defddce37ba369f5403bb | [] | 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 | 730 | py | times=int(input())
def upgrade(num,grade,numlenth):
if grade==numlenth:
return num
else:
answer=list(num)
addone=answer[numlenth-1]
for i in range(numlenth,grade):
answer.append(addone)
return "".join(answer)
for i in range(times):
n=int(input())
nums... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4d2844277d27e9a1c953cfab7d7885074c52e3c6 | 08414da53974cd6a4931d94ff33108c1081bac2b | /.venv/lib/python3.8/site-packages/google/resumable_media/requests/__init__.py | 47099469dbedc6c6ed8da429b500aeb810dd6815 | [
"MIT"
] | permissive | osamhack2021/APP_IOT_MealScan_FOODFIGHTERS | ce3c70e61937a8d2dbce967ec4067118e940118b | 8b412a4aab0406469201f9330f350049bb368890 | refs/heads/master | 2023-08-23T03:05:28.478106 | 2021-10-20T14:59:42 | 2021-10-20T14:59:42 | 409,421,591 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,414 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | osamhack2021.noreply@github.com |
2805648cf3c4881c987e5e9850dbfd072aabc682 | a9023ac103a9191fdf41980515f570ba3d5b865c | /3rdParty/PythonMarketsharp/openapi_client/models/inquiry_resource_model.py | df8a908937c3ebc370503e1918a4f348f568a471 | [] | no_license | AdamManuel-dev/JSON-Schema-CLI | 1470e5f7eb82ec4dd9b92365cc0200a014f7bed8 | e01e24d5a347fdc50cae7fdae4792ed8bfc89704 | refs/heads/main | 2023-01-27T20:52:41.012404 | 2020-12-01T03:30:44 | 2020-12-01T03:30:44 | 317,414,476 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,839 | py | # coding: utf-8
"""
MarketSharp CRM API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six... | [
"adam@augmenteddestiny.com"
] | adam@augmenteddestiny.com |
e00e5df4509aed4a09477bb1bc2ad7c0e5f5fff5 | 2eff2b24d5b6f5dffc42c9cbde6102ec9317502f | /src/T9Spelling.py | 04997355d835a2b5a70d0d166c4eac25c5102a5c | [] | no_license | JakobKallestad/Python-Kattis | 599a14e71a8d5c52aae779b8db3d35f0e4d01e88 | 51656964e79cc861e53f574785aacb213ef10b46 | refs/heads/master | 2022-10-24T23:12:45.599813 | 2021-12-08T12:31:54 | 2021-12-08T12:31:54 | 156,881,692 | 2 | 1 | null | 2022-10-02T12:36:57 | 2018-11-09T15:34:09 | Python | UTF-8 | Python | false | false | 672 | py | n = int(input())
char_to_press = {'a': 2, 'b': 22, 'c': 222, 'd': 3, 'e': 33, 'f': 333, 'g': 4, 'h': 44, 'i': 444, 'j': 5, 'k': 55,
'l': 555, 'm': 6, 'n': 66, 'o': 666, 'p': 7, 'q': 77, 'r': 777, 's': 7777, 't': 8, 'u': 88, 'v': 888,
'w': 9, 'x': 99, 'y': 999, 'z': 9999, ' ': 0}
for ... | [
"Jakob.Kallestad@student.uib.no"
] | Jakob.Kallestad@student.uib.no |
e3a65c62c48f14dde0121fa8f6f27e317cbc37ab | 325b5bec55a4128d9f41a5b41a835e792089ed18 | /server/data_models/stock_exchange.py | d764531482f21d49a061b697e6b4f25b72f71da3 | [] | no_license | webclinic017/stock-portfolio | ffe02e63146bec89fce2d32959a89fb6de7395aa | 96f75839a265b9c5d74bbc060791dc7a3f8b0608 | refs/heads/master | 2022-12-12T07:08:53.687145 | 2020-08-25T19:21:28 | 2020-08-25T19:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import String
from server.database import Base
class StockExchange(Base):
"""The exchange table tracks the various stock exchanges supported by our
web application
"""
__tablename__ = "stock_exchange"
__table_args__ = {"... | [
"gauravkeswani92@gmail.com"
] | gauravkeswani92@gmail.com |
07f68ec9ebd11d67b6a6784f71c6831ffa42760a | e0ff1a73d0285abd0d877e1ce818b944f69f1c9b | /lassonet/utils.py | e3647dcf816e9b708bf6514177d6d18ecaf1898b | [
"MIT"
] | permissive | madwsa/lassonet | a8213a0967ad5887cd21adc80f734223d1982334 | cf7d5ef97acfc0d6fc05c50a257702203b0f5938 | refs/heads/master | 2023-05-06T19:38:54.355922 | 2021-05-25T15:40:40 | 2021-05-25T15:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import matplotlib.pyplot as plt
def plot_path(model, path, X_test, y_test):
"""
Plot the evolution of the model on the path, namely:
- lambda
- number of selected variables
- score
Parameters
==========
model : LassoNetClassifier or LassoNetRegressor
path
output of model.... | [
"louis.abraham@yahoo.fr"
] | louis.abraham@yahoo.fr |
7ed45c2a5ffe2470674a5325595dae4022564101 | 1bbc16d711c11a8136517e6479ea880c33ac3275 | /kubernetes/client/models/v1beta1_priority_level_configuration_status.py | 34dadf019c30bc0de5967459946d08d555cab40d | [
"Apache-2.0"
] | permissive | brendandburns/python | 79b20dd47f8670012dce45946760f7135ac76ff8 | c9ad88301ed53733589adc6ade90ffc6e977e668 | refs/heads/master | 2022-12-25T14:47:42.970145 | 2022-06-16T22:09:26 | 2022-06-17T15:11:26 | 140,949,818 | 2 | 2 | Apache-2.0 | 2022-12-14T03:09:05 | 2018-07-14T13:51:16 | Python | UTF-8 | Python | false | false | 3,901 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.24
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | [
"yliao@google.com"
] | yliao@google.com |
52e9e84e4a9014b1e748f667e3d6955b5759b620 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/Cascade_RCNN/detectron2/structures/instances.py | 68c2831891d55d8f49d78d6ebaa7627184f7d453 | [
"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 | 6,625 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# 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.... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
9cfcaaf57fb3d11308ffd137823efeb12281b4f3 | 466a8fdc272ed82336d8d40bb07d33385fb43ab7 | /data_science_helpers/data_engineering_helpers.py | c7782db0c72980507970c5fbca160fb3d092eb65 | [
"MIT"
] | permissive | ChristopherHaydenTodd/ctodd-python-lib-data-science | 7e1b0e58fb2331dfff4740b2c9a118e5fbc5e038 | 04b0e4ed5e1a91902f3452503603edc8aea65d47 | refs/heads/master | 2020-04-22T19:00:31.401954 | 2019-04-19T21:27:03 | 2019-04-19T21:27:03 | 170,594,924 | 1 | 0 | MIT | 2019-04-19T21:27:04 | 2019-02-13T23:24:23 | Python | UTF-8 | Python | false | false | 13,356 | py | #!/usr/bin/env python3
"""
Library for Dealing with redundant Data Engineering Tasks. This will include
functions for tranforming dictionaries and PANDAS Dataframes
"""
# Python Library Imports
import sys
import os
import logging
import pandas as pd
import numpy as np
from sklearn.preprocessing import LabelEn... | [
"Christopher.Hayden.Todd@gmail.com"
] | Christopher.Hayden.Todd@gmail.com |
149bba10ef877643b5125d628bc9f27647a3945c | 94ca446c0f17d640f45941fa7c83530ef2fbc099 | /wrs-remote-clients-2.0.2/python-wrs-system-client-1.0/cgtsclient/v1/iservice.py | 3a44aa0d534a269c6d9706b8ece049717533c36c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | rmoorewrs/tic-windows-remote-clients | c1c2b8924e90ffd2951571bc098ec9873ffd3988 | ae16ee78a720852304d79f8b86dfe44e920cc72d | refs/heads/master | 2023-05-25T13:55:55.603100 | 2019-05-31T20:59:28 | 2019-05-31T20:59:28 | 189,649,925 | 0 | 0 | NOASSERTION | 2023-05-22T20:43:59 | 2019-05-31T19:46:28 | Python | UTF-8 | Python | false | false | 2,010 | py | # -*- encoding: utf-8 -*-
#
# Copyright © 2013 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"rmoorewrs@gmail.com"
] | rmoorewrs@gmail.com |
024c0b4bf0e431f5612f530f7e1a88864284d832 | f2171e2f2c78d616a381b3308d13a600d687587f | /x.Machine Learning Foundation/NumPy and Pandas Part 1/pandas_index.py | c495a31d9915de424a1067945f3520e48cc19834 | [] | no_license | vinkrish/ml-jupyter-notebook | bda01343118869bd2bfb44f3c3122853834d314a | ef5d05512b8387d7a3e494f024416f6ca7336827 | refs/heads/master | 2021-06-09T00:53:51.638551 | 2021-05-08T15:13:51 | 2021-05-08T15:13:51 | 168,104,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import pandas as pd
countries = [
'Afghanistan', 'Albania', 'Algeria', 'Angola',
'Argentina', 'Armenia', 'Australia', 'Austria',
'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh',
'Barbados', 'Belarus', 'Belgium', 'Belize',
'Benin', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina',
]
employment_values... | [
"vinaykrishna1989@gmail.com"
] | vinaykrishna1989@gmail.com |
00cea05c1d14496ebe6e97a56322cde77265e561 | e286d9d5c11ee7615b634f06a9e76803863b84ac | /078.py | 802e0fa0daacd550ab6f826375bb5a80078bde94 | [] | no_license | DanMayhem/project_euler | 93defbdf789e61fbb87b52b27a0ae9d0bd06588b | a75f107815b1152cc1a8864281a3fe91831c02f1 | refs/heads/master | 2021-01-25T12:19:29.252904 | 2015-05-20T17:16:44 | 2015-05-20T17:16:44 | 33,380,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | #!python
"""
Let p(n) represent the number of different ways in which n coins can be separated into piles. For example, five coins can be separated into piles in exactly seven different ways, so p(5)=7.
OOOOO
OOOO O
OOO OO
OOO O O
OO OO O
OO O O O
O O O O O
Find the least value of n for which... | [
"danmay@gmail.com"
] | danmay@gmail.com |
976159c307c27ab50a8b0ffa5fdf554a6564cb29 | 95777f5257f00aa982d94812f46658ace2e92bd2 | /gluon/cityscapes_seg_dataset.py | 5896e66c56e5da1738fcf7e60f11cc5e300f7533 | [
"MIT"
] | permissive | yangkang779/imgclsmob | ea2c1f9223a3419375e8339c7e941daba69a56a7 | 9d189eae8195d045dfb4b25bec2501b2c42a154a | refs/heads/master | 2020-05-07T08:16:23.658714 | 2019-04-08T16:20:33 | 2019-04-08T16:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,155 | py | import os
import numpy as np
import mxnet as mx
from PIL import Image
from .seg_dataset import SegDataset
class CityscapesSegDataset(SegDataset):
"""
Cityscapes semantic segmentation dataset.
Parameters
----------
root : string
Path to a folder with `leftImg8bit` and `gtFine` subfolders.
... | [
"osemery@gmail.com"
] | osemery@gmail.com |
e344b960e2333887f922a30b9d47ef27e852e512 | cadb790b863a58c5a238fa6c6fa4970dccce3806 | /NewsReco/data.py | 232be8e5ef24063052342fa77057be6010a2e6b2 | [] | no_license | YUFEIFUT/RecoSys | faae62d3a049055857c7c5eb6e2f59b4cf08f039 | fd547489deacca6e9feb52197ddc25404f1e09cb | refs/heads/main | 2023-04-04T01:51:37.936992 | 2021-04-02T10:59:08 | 2021-04-02T10:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | import argparse
import os
import random
from random import sample
import pandas as pd
from tqdm import tqdm
from utils import Logger
random.seed(2020)
# 命令行参数
parser = argparse.ArgumentParser(description='数据处理')
parser.add_argument('--mode', default='valid')
parser.add_argument('--logfile', default='test.log')
arg... | [
"yearing1017@126.com"
] | yearing1017@126.com |
a6b930da8b5c0ca6044ef06321c2affa169a44d7 | ca4644e188f0115fcf68050b7665013fa56d6e4b | /caw/widgets/memory.py | 63512f9c84eedafb05f4ac181244c58e576b780c | [] | no_license | tomkooij/caw | 6ab2673ef5644b720eb42174e98d41ef05bc074c | 795e6d7208f25d8be9aa76fb679c04c1f4e72b0c | refs/heads/master | 2021-01-20T15:30:47.097225 | 2015-04-22T20:02:42 | 2015-04-22T20:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import caw.widget
import time
import re
class Memory(caw.widget.Widget):
""" Display memory usage using /proc/meminfo"""
def __init__(self, fg=None, **kwargs):
super(Memory, self).__init__(**kwargs)
self.fg = fg
def init(self, parent):
super(Memory, self).init(parent)
self.... | [
"arovit.kv@gmail.com"
] | arovit.kv@gmail.com |
e4ea607857e3d3c1a5b4248a00b50a7b7b12706d | 02dc35be5f88c3cf8043a894010d975b803484cf | /birthdays/tests/test_extend.py | 1864ed61eb5e67966f9a8501699f93f3fa6f5635 | [] | no_license | fako/birthdays | c5a4644760b7fc607c47d1911d79482d13ce60a9 | 7483500846a559e27781282f1e08a4ea0f6871af | refs/heads/master | 2021-01-10T18:34:11.752957 | 2016-01-24T14:08:46 | 2016-01-24T14:08:46 | 37,944,053 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | from __future__ import unicode_literals, absolute_import, print_function, division
from django.test import TestCase
from django.db.models import Count
from birthdays.management.commands.extend_source import Command as ExtendCommand
from birthdays.models import Person, PersonSourceMockOne, PersonSourceMockTwo
class ... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
0788249ff69a1e26d6ab13867b37c5fc784b3cda | 276e60f69b51de7c50a333ce12212c823aeef71a | /lm-surprisal-eval-2.py | 56dbb617a2c5df77284e5e815b76de87dd2892b7 | [] | no_license | m-hahn/probing-char-lms | e6ea3b00f82326140e28656290447d6c998278d6 | 5ab45883cefb1f69788e441b60d56d886833b3e4 | refs/heads/master | 2020-03-21T20:50:58.949446 | 2019-04-29T03:06:26 | 2019-04-29T03:06:26 | 139,032,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,245 | py | from paths import MODELS_HOME
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--load-from", dest="load_from", type=str)
parser.add_argument("--save-to", dest="save_to", type=str)
args=parser.parse_args()
print(args)
import random
with open("/private/home/mhahn/data/UD_English-EWT/en_ewt-ud-tr... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
a70a9cc5741b414ae63f53c403b8c5febb37f92d | 777b5c266360b29b6d4af916726abd5d364b74a1 | /mypy_stubs/django/conf/locale/nb/__init__.pyi | 688b3d943d9b9de3a707888a858cf6cb49d37088 | [] | no_license | uryyyyyyy/django-graphql | 44d08afc3e44514270d1d5c183caa9d1c1cf3f88 | f3d6513d2325a8e675e47500cc71d8ef56c01537 | refs/heads/master | 2021-06-10T11:11:45.110271 | 2019-02-28T07:39:54 | 2019-02-28T07:39:54 | 172,325,424 | 0 | 0 | null | 2021-04-20T17:56:57 | 2019-02-24T10:44:31 | Python | UTF-8 | Python | false | false | 124 | pyi | # Stubs for django.conf.locale.nb (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
| [
"koki@anymindgroup.com"
] | koki@anymindgroup.com |
6f807ca14881ee9a488248956a35c6336deb3abc | 4c61c7a8bcf0aa9836129dd754cb5c1dd2220117 | /lib/genomonsv/realignmentFunction.py | a23043bdd13a84805fc68eb2fad0f0a0acbbddc3 | [] | no_license | alenzhao/GenomonSV | e9ef774397e44c353dca705baf19c2bc1bf33ba4 | 94075a7d7780dd825d17177b3401ad1cb9f1f8b2 | refs/heads/master | 2021-01-12T08:14:08.105734 | 2016-10-11T08:07:40 | 2016-10-11T08:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,446 | py | #!/usr/bin/env python
import sys, pysam
import utils
def extractSVReadPairs(bamFilePath, outputFilePath, juncChr1, juncPos1, juncDir1, juncChr2, juncPos2, juncDir2, max_depth, search_length, search_margin):
"""
read pairs containing break points are extracted. (yshira 2015/04/23)
The exact condit... | [
"friend1ws@gmail.com"
] | friend1ws@gmail.com |
0e7865b0c9f1808ed678ee5a3bf249981acd6802 | 77d834eb125fdc56c96af31cf74db5b741c8e94e | /api/urls.py | cae969065eed895e664e8a23c4ef1c7f1ffdd113 | [] | no_license | zhouf00/learn_rest_framework | 7c17124fcb08ce48f54f94201f2da29e41e9d867 | a292e38ee9ff475e43ce4612fbb6c074b4073f84 | refs/heads/master | 2022-10-12T12:05:07.618651 | 2020-06-11T02:40:45 | 2020-06-11T02:40:45 | 268,827,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^books/$', views.Book.as_view()),
url(r'^books/(?P<pk>.*)/$', views.Book.as_view()),
url(r'^test/', views.Test.as_view()),
url(r'^test2/', views.Test2.as_view()),
] | [
"49618748+zhouf00@users.noreply.github.com"
] | 49618748+zhouf00@users.noreply.github.com |
2fc01026a955c327745cbfb6ddfc0b738eefe62a | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /Python OOP 2020/OOP_2020_exam_prep/Exam_16.08.2020/re[enie/project/software/light_software.py | f2c765caf7d15b19e3c4052d5c7ec0ecdc509662 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from project.software.software import Software
class LightSoftware(Software):
def __init__(self, name: str, capacity_consumption: int, memory_consumption: int):
super().__init__(name, 'Light', capacity_consumption, memory_consumption)
self.capacity_consumption = int(1.5 * self.capacity_consumptio... | [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.