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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0d8a8fb2dcb378f63e1168821dbac2059c37e96 | 930309163b930559929323647b8d82238724f392 | /dp_b.py | 574f94d3f786fc45d2d25c12a7b162d0c6140fbe | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 244 | py |
N,K = map(int, input().split())
*C,=map(int,input().split())
dp = [float("inf")]*(N+10)
dp[0] = 0
for i in range(N):
for k in range(K+1):
if i+k < N:
dp[i+k] = min(dp[i+k], dp[i]+abs(C[i+k]-C[i]))
print(dp[N-1])
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
dc5a4a95918a4b0fc3f63c865fdb46927e0bc44e | a08225934c425be313a12975c9563a72ded58be6 | /EDU105/45.py | b1095d784edeebeec5958904b3976b46f8ad450a | [] | no_license | marcus-aurelianus/codeforce | 27c966554dee9986f23fb2925bd53e6cceb8b9e9 | 4764df151ade7806e32b6c88283a2de946f99e16 | refs/heads/master | 2023-03-18T09:30:55.042594 | 2021-03-12T18:14:08 | 2021-03-12T18:14:08 | 231,387,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def jump(nums):
n, start, end, step = len(nums), 0, 0, 0
while end < n - 1:
step += 1
maxend = end + 1
for i in range(start, end + 1):
if i + nums[i] >= n - 1:
return step
maxend = max(maxend, i + nums[i])
start, end = end + 1, maxend
r... | [
"37787424+marcus-aurelianus@users.noreply.github.com"
] | 37787424+marcus-aurelianus@users.noreply.github.com |
9623de913778ac810ee55514abd5777510296aef | 009628e385aca8552dad5c1c5cba018ca6e5954d | /scripts/drawcurvature | 245a84fb58ff9543d068294490983a068708b04d | [] | no_license | csrocha/python-mtk | 565ebcfeb668a6409d48135bf081321d8121b263 | c3ba520f55c2e204feb6b98251abcb046e51c6cd | refs/heads/main | 2023-01-12T02:46:44.457520 | 2020-11-17T20:20:59 | 2020-11-17T20:20:59 | 313,939,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,957 | #!/usr/bin/python
"""
An example showing the norm and phase of an atomic orbital: isosurfaces of
the norm, with colors displaying the phase.
This example shows how you can apply a filter on one data set, and dislay
a second data set on the output of the filter. Here we use the contour
filter to extract isosurfaces o... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop | |
29eb97a2658069096f4798568142abee03c21992 | f58b8dd35674b396abe606d1890770f60bfeb655 | /utils/generate_coarse_patches.py | d97c878528522548f4e357329f2b49ceb7b09cdf | [] | no_license | Mancarl/BBR-Net | fbd6d1653b65a28de1267a2319c7aeb90d72c112 | a52adf186601f4c773ae9ad660f3069313dc0f29 | refs/heads/master | 2023-03-15T16:04:44.343846 | 2020-09-21T21:35:14 | 2020-09-21T21:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import os
import csv
import random
import cv2 as cv
from tqdm import tqdm
annotation_file = '/path/to/full/image/annotation/csv/file'
img_save_path = '/folder/to/save/simulated/coarse/annotations/patches'
csv_save_path = '/path/to/save/patches/annotation'
if not os.path.exists(img_save_path):
os.mkdir(img_save_p... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5ec27c40bff669672db5985ca6a7ea318d2a6968 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/intersectingDiscs_20200810184632.py | f3f37471c13443b0e75a79f07eb074f1d8d7f42e | [] | 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 | 150 | py | def discs(A):
start = [i-j for i,j in enumerate(A)]
start.sort()
pairs = 0
for i in range(lena))
discs([1,5,2,1,4,0]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
28c666be09e2102aa172bcd2c21c4db7396ed048 | 7b51b0e8ba88b8f3c57f5e210ff9847d0364b805 | /ircd/main.py | 7ecb7b0168e64d663ee65c4e0cf4df306f04dd02 | [] | no_license | marcuswanner/nameless-ircd | cd9324528ac890cb416b1b2b1207c4a2315bf12f | 9517b94fe622056f8ea0557403647f9f4ba1d717 | refs/heads/master | 2020-06-07T11:47:44.632012 | 2013-02-14T00:58:44 | 2013-02-14T00:58:44 | 8,111,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | #!/usr/bin/env python
import server
import user
import signal, traceback, asyncore
def hup(sig,frame):
print 'reload'
try:
reload(server.user)
reload(server.services)
reload(server)
except:
print 'Error reloading'
print traceback.format_exc()
else:
print ... | [
"ampernand@gmail.com"
] | ampernand@gmail.com |
d32d132b39d4dc9285e3107a855567bbacd7d460 | 17ec70a0387905f84f7fc1e3ee7f3428dd4e7874 | /Atcoder/abc121/b.py | 257111dde25af5efa0a73b912864825fe92a899e | [] | no_license | onikazu/ProgramingCompetitionPractice | da348e984b6bcb79f96f461d9df15a33730169b2 | 5a682943976bcac8646176feef9b70a6784abd8a | refs/heads/master | 2021-02-09T06:27:54.994621 | 2020-03-14T02:28:50 | 2020-03-14T02:28:50 | 244,252,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | n, m, c = list(map(int, input().split()))
b = list(map(int, input().split()))
a = [list(map(int, input().split())) for _ in range(n)]
ans = 0
for i in range(n):
code_num = 0
for j in range(m):
code_num += b[j] * a[i][j]
code_num += c
if code_num > 0:
ans += 1
print(ans)
| [
"programingmanagement@gmail.com"
] | programingmanagement@gmail.com |
454c1da25058863d752a9dcc89d5a2578166fa1d | 91fb65972d69ca25ddd892b9d5373919ee518ee7 | /pibm-training/sample-programs/multi_line_strings.py | 374fc51a28e3552ca4a41b12bda9efed67c2dbd2 | [] | no_license | zeppertrek/my-python-sandpit | c36b78e7b3118133c215468e0a387a987d2e62a9 | c04177b276e6f784f94d4db0481fcd2ee0048265 | refs/heads/master | 2022-12-12T00:27:37.338001 | 2020-11-08T08:56:33 | 2020-11-08T08:56:33 | 141,911,099 | 0 | 0 | null | 2022-12-08T04:09:28 | 2018-07-22T16:12:55 | Python | UTF-8 | Python | false | false | 101 | py | #multi_line_strings.py
mlstring = ''' x
y
z
w '''
print (mlstring) | [
"zeppertrek@gmail.com"
] | zeppertrek@gmail.com |
a30ee6100bf54d36acfa6dcbfb8ac2e84c954f05 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /starrez_client/models/meal_plan_dining_hall_item.py | 985270758cc56bd1c0f628e53c6adb80e28f2a26 | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
42d50dc13fc694a4eae2e3ec7fd1000c7ea32dfb | 20e7350dc776897330884271c54998cfdfe680e8 | /MetaData/python/samples_utils.py | 3656399c9566dca92ccd58f0f01e391be3c52781 | [] | no_license | ResonantHbbHgg/flashgg | d6f8128e42202c24dee00529a8b33f1c55542bff | cbbf47066a8648c9b54dce788ddf5d7c7cd33e96 | refs/heads/master | 2021-01-21T07:34:15.824797 | 2015-04-07T18:42:28 | 2015-04-07T18:42:28 | 33,238,679 | 0 | 0 | null | 2015-04-01T09:28:44 | 2015-04-01T09:28:43 | null | UTF-8 | Python | false | false | 17,234 | py | from optpars_utils import *
from das_cli import get_data as das_query
from pprint import pprint
import os,json,fcntl,sys
from parallel import Parallel
from threading import Semaphore
# -------------------------------------------------------------------------------
def shell_expand(string):
if string:
r... | [
"pasquale.musella@cern.ch"
] | pasquale.musella@cern.ch |
9bbc4c87238f15869cb43208feda58e15b29152a | 15bfc2b3ba52420d95ed769a332aaa52f402bbd2 | /api/v2010/machine_to_machine/read-default/read-default.6.x.py | 1533bdd640a1fb7f14859f937a8dff30ef979f23 | [] | no_license | synackme/sample-code | 013b8f0a6a33bfd327133b09835ee88940d3b1f2 | 5b7981442f63df7cf2d17733b455270cd3fabf78 | refs/heads/master | 2020-03-17T04:53:07.337506 | 2018-05-07T16:47:48 | 2018-05-07T16:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = '"ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
machine_to_machine = clie... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
93d56532e0faa529e1b82d52cf1c017f43ef8373 | f8c3c677ba536fbf5a37ac4343c1f3f3acd4d9b6 | /ICA_SDK/test/test_workflow_argument.py | 5c2a2e694a0af944ba4e5004cce281d75ef38efc | [] | no_license | jsialar/integrated_IAP_SDK | 5e6999b0a9beabe4dfc4f2b6c8b0f45b1b2f33eb | c9ff7685ef0a27dc4af512adcff914f55ead0edd | refs/heads/main | 2023-08-25T04:16:27.219027 | 2021-10-26T16:06:09 | 2021-10-26T16:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # coding: utf-8
"""
IAP Services
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
"""
from __future__ import absolute_import
import unittest
... | [
"siajunren@gmail.com"
] | siajunren@gmail.com |
9f2149acf5b8359da35b2d3288a10d45048d9ecd | 06b5d50d92af07dc7c2d9cc24922a2a906f7b88c | /church/main/migrations/0013_auto_20190722_2132.py | 70d6e4e83fbf8eb6f3b68d3a67eb09a0f8d5f5d4 | [] | no_license | ShehanHD/Django | 4fe6d841e38450b028765cc84bbe7b99e65b9387 | bc855c16acad5d8f1f5a24dc68438749704935fd | refs/heads/master | 2021-05-20T12:57:36.980701 | 2020-04-25T13:03:43 | 2020-04-25T13:03:43 | 252,305,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # Generated by Django 2.2.3 on 2019-07-22 19:32
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0012_auto_20190722_2131'),
]
operations = [
migrations.AlterField(
model_name='services',
na... | [
"51677228+ShehanHD@users.noreply.github.com"
] | 51677228+ShehanHD@users.noreply.github.com |
bdc06f47018170b03fee10a372fb6e96f09cad56 | 9f2b07eb0e9467e17448de413162a14f8207e5d0 | /pylith/bc/DirichletTimeDependent.py | 767b2424dec16a77a004dc1158d2c1f6de9772b2 | [
"MIT"
] | permissive | fjiaqi/pylith | 2aa3f7fdbd18f1205a5023f8c6c4182ff533c195 | 67bfe2e75e0a20bb55c93eb98bef7a9b3694523a | refs/heads/main | 2023-09-04T19:24:51.783273 | 2021-10-19T17:01:41 | 2021-10-19T17:01:41 | 373,739,198 | 0 | 0 | MIT | 2021-06-04T06:12:08 | 2021-06-04T06:12:07 | null | UTF-8 | Python | false | false | 5,081 | py | # ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University at Buffalo
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copy... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
92c43f49b8885961160c4f1e4bb9c1ddb79dc162 | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /examples/research_projects/luke/luke_utils.py | aec4133f21b36eee313a5c6371ff48537ccf613c | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 5,106 | py | import unicodedata
from dataclasses import dataclass
from typing import Optional, Union
import numpy as np
from transformers.data.data_collator import DataCollatorMixin
from transformers.file_utils import PaddingStrategy
from transformers.tokenization_utils_base import PreTrainedTokenizerBase
def padding_tensor(seq... | [
"noreply@github.com"
] | huggingface.noreply@github.com |
214892b437bd6d59b56ffbcabe40e76edd0ab6b3 | 2b0f4f3590f5407da83d179db8103803f7c75e8f | /app/views/HomeView.py | b7fcbc6df3e89b79e9e2829c11df2860ae9ee937 | [] | no_license | caiomarinhodev/ciacimento | 6c783f169ac912ed599bcfaa6a208d5be5c7942e | cf7a6951196bc36655fe0b303e3131932ec254cf | refs/heads/master | 2023-07-07T00:25:16.101307 | 2023-02-28T00:46:12 | 2023-02-28T00:46:12 | 117,120,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.views.generic import TemplateView
from app.mixins.CustomContextMixin import CustomContextMixin
"""HomeView.py: Especifica a pagina inicial da aplicacao."""
__author__ = "Caio Marinho"
__copyright__ = "Copyright 2017"
class HomeView(TemplateView, CustomConte... | [
"caiomarinho8@gmail.com"
] | caiomarinho8@gmail.com |
4cdd78b8851f5c509944a233f59931e35429a318 | 9c1fa66bc9fffc800890622d66c8cf50a3384c52 | /coresys/models/payment.py | 6b4819e7f1b141e857831886aff4d6ff9fa82547 | [] | no_license | fhydralisk/walibackend | 97a5f7ba0a02a36673ec57e1c42fd372afe42736 | dac474f3d418ac3711b1c51d00bd7d246d2bc1bd | refs/heads/master | 2020-03-15T15:26:45.625860 | 2018-09-04T12:23:52 | 2018-09-04T12:23:52 | 132,212,261 | 1 | 4 | null | 2018-11-18T15:00:53 | 2018-05-05T03:45:57 | Python | UTF-8 | Python | false | false | 568 | py | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from django.core.validators import MinValueValidator, MaxValueValidator
from django.db import models
class CorePaymentMethod(models.Model):
ord = models.IntegerField(_("Order Number"))
deposit_scale = models.Float... | [
"fhy14@mails.tsinghua.edu.cn"
] | fhy14@mails.tsinghua.edu.cn |
36ad831f3772f2152d78a9892f032d218d3f976e | 50e3fcca6e2a9a73ed52d231a739f70c28ed108f | /Math/twoSum.py | 29d1fcf1fab8fb3d069b8fb3146aae35b69ed916 | [] | no_license | thomasyu929/Leetcode | efa99deaa2f6473325de516d280da6911c2cc4ab | 780271875c5b50177653fd7fe175d96dd10e84e2 | refs/heads/master | 2022-03-29T00:11:01.554523 | 2020-01-03T00:28:22 | 2020-01-03T00:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | class Solution:
# brute force
'''
def twoSum(self, nums, target):
for i in range(len(nums)):
for j in range(len(nums))[i+1:]: # not use the same element twice
if nums[i] + nums[j] == target:
return i,j
'''
# hash map
... | [
"yby4301955@gmail.com"
] | yby4301955@gmail.com |
c636180bd9979b8ec50d6a3e1f125465333ae932 | 8364e4d23191ee535c163debffafa8418d705843 | /aiokubernetes/models/v1_preconditions.py | a3878eb6ae0455ed5a39a95bb79bd48a6180ed09 | [
"Apache-2.0"
] | permissive | olitheolix/aiokubernetes | 2bb6499030e2e6e9b7ca0db63c4441293d70a09b | 266718b210dff2a9b2212183261ea89adf89115e | refs/heads/master | 2020-03-21T23:02:30.484410 | 2018-10-20T19:33:01 | 2018-10-22T05:52:42 | 139,162,905 | 28 | 3 | Apache-2.0 | 2018-10-22T05:52:51 | 2018-06-29T15:02:59 | Python | UTF-8 | Python | false | false | 2,978 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
class V... | [
"olitheolix@gmail.com"
] | olitheolix@gmail.com |
345f793f94a52707da927018192182025510c0d0 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_ddos_custom_policies_operations.py | 29137d1ba254f43a54a7c02525a48e5f2cedcbb8 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 23,799 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
b1fbece0ddc4874190e66ca6b25eededa45727e2 | 6d7678e3d79c97ddea2e2d65f2c2ef03b17f88f6 | /venv/lib/python3.6/site-packages/pysnmp/carrier/asyncore/dgram/udp6.py | 900ef3c7d6986b1c921fbb7e443ee60ff27e6c6c | [
"MIT"
] | permissive | PitCoder/NetworkMonitor | b47d481323f26f89be120c27f614f2a17dc9c483 | 36420ae48d2b04d2cc3f13d60d82f179ae7454f3 | refs/heads/master | 2020-04-25T11:48:08.718862 | 2019-03-19T06:19:40 | 2019-03-19T06:19:40 | 172,757,390 | 2 | 0 | MIT | 2019-03-15T06:07:27 | 2019-02-26T17:26:06 | Python | UTF-8 | Python | false | false | 1,386 | py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.carrier import sockfix
from pysnmp.carrier.base import AbstractTransportAddress
from pysnmp.carrier.asyncore.dgram.base import DgramSocketTransport
imp... | [
"overlord.lae@gmail.com"
] | overlord.lae@gmail.com |
7ce5cee9ad8c27af756fd514f892f81a4ef5cb27 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/EBackend/FileCacheClass.py | 16d4a89c629531f79435bf2213bf53b2f5267bf0 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,627 | py | # encoding: utf-8
# module gi.repository.EBackend
# from /usr/lib64/girepository-1.0/EBackend-1.2.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
33b0303c5f17e64009b0c754863eb58633a2c980 | 9a0092226c40bc6c9c4eaadb670601234fadd739 | /grad-cam/scale/data/FF-PP/create_dataset.py | 7c40e2b741eb169fa115118c9dd62b5f6c1d4dfc | [] | no_license | ajioka-fumito/keras | 45005f214ae0b66fc6e88ca8f421ab9f44d52ec4 | 824691f4e243dd447ab91146a0e5336b416d0f83 | refs/heads/master | 2020-07-22T16:45:10.042977 | 2019-09-22T08:04:51 | 2019-09-22T08:04:51 | 204,160,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import glob
from PIL import Image
import random
import shutil
import os
paths = glob.glob("./F_crop/*")
random.shuffle(paths)
for i,path in enumerate(paths):
name = os.path.basename(path)
if 0<=i<=49:
shutil.copyfile(path,"./train/{}".format(name))
else:
shutil.copyfile(path,"./test/{}".for... | [
"ajioka.ds@gmail.com"
] | ajioka.ds@gmail.com |
72e633a77883d9597e05ad3c85b9ee1045459b61 | ce32e0e1b9568c710a3168abc3c638d6f9f6c31b | /vnpy/app/algo_trading/ui/__init__.py | 9ac801bbd955dcc9e362b813186a5416c4b42944 | [
"MIT"
] | permissive | msincenselee/vnpy | 55ae76ca32cae47369a66bd2d6589c13d7a0bdd4 | 7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7 | refs/heads/vnpy2 | 2022-05-19T10:06:55.504408 | 2022-03-19T15:26:01 | 2022-03-19T15:26:01 | 38,525,806 | 359 | 158 | MIT | 2020-09-09T00:09:12 | 2015-07-04T07:27:46 | C++ | UTF-8 | Python | false | false | 32 | py | from .widget import AlgoManager
| [
"xiaoyou.chen@foxmail.com"
] | xiaoyou.chen@foxmail.com |
fb1cfdd12519ff10dc927a3ec165345521142654 | 8b86f7809b18de55fddd55800f932a20725132ea | /data_structures/binary_search_tree/bst.py | 0434af27e11cb927df539cbd99f26927e65710bd | [
"MIT"
] | permissive | vinozy/data-structures-and-algorithms | 75f0358167a2c6566a3a196aa9cafd33d2a95b16 | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | refs/heads/master | 2022-02-17T14:21:06.412047 | 2019-08-17T04:23:09 | 2019-08-17T04:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | class Node:
"""create a Node"""
def __init__(self, val):
self.val = val
self.left = None
self.right = None
def __repr__(self): # pragma: no cover
return 'Node Val: {}'.format(self.val)
def __str__(self): # pragma: no cover
return self.val
class BST:
"""c... | [
"beverly.pham@gmail.com"
] | beverly.pham@gmail.com |
7e81544fbf791344dc1031d79843c5d25105605b | 75616acbd19956182868b9c84ecc5805394b6ead | /src/mcdp_user_db/userdb.py | 79d421dbc2edbdeeb5837c10da951a442c0e04fb | [] | no_license | fgolemo/mcdp | 16c245665d91af7f91bba8a24d4272001ce90746 | 46eb25ca85660f4d6c2f1f6d026f7e97c7977ac3 | refs/heads/master | 2021-01-21T22:14:52.599881 | 2017-09-01T18:00:55 | 2017-09-01T18:00:55 | 102,139,393 | 5 | 2 | null | 2017-09-01T17:58:36 | 2017-09-01T17:58:36 | null | UTF-8 | Python | false | false | 6,117 | py | from datetime import datetime
from contracts import contract
from mcdp.logs import logger
from .user import UserInfo
from mcdp_utils_misc.my_yaml import yaml_load
__all__ = ['UserDB']
class UserDB(object):
# def __init__(self, userdir):
# self.users = {}
# us = load_users(userdir)
# ... | [
"acensi@ethz.ch"
] | acensi@ethz.ch |
f742007d91e3d77ee008bb7e42b02145f4bbf4a6 | 79debba8bb967d38dd06ba9a241864d7559303f3 | /bose/python/elements_of_interview/fp_transform.py | 999233e3bcfa6f73fd7cea27d506ede6d1a555ee | [] | no_license | hghimanshu/CodeForces-problems | 0c03813cdcdabbff56e2f56e93757e3116b9a038 | 205e1f7e269df1f710e8cd1fd5e5b34066fd4796 | refs/heads/master | 2023-07-23T13:32:19.563965 | 2021-04-06T19:29:59 | 2021-04-06T19:29:59 | 228,555,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | def transform(init,mapping,combination,seq):
if not seq:
return init
else:
return combination(mapping(seq[0]),transform(init,mapping,combination,seq[1:]))
def product_with_transform(seq):
return transform(1,lambda x:x,lambda a,b:a*b,seq)
def sum_with_transform(seq):
return transform(0,... | [
"abose550@gmail.com"
] | abose550@gmail.com |
d875413f77e7f819f2d679a8877403ac27383aab | ad5dd929e2a02e7cc545cf2bec37a319d009bab8 | /sentence_iter.py | fdbd7fee1216df2c5d184bc3937d4cab27bab635 | [] | no_license | liuwei881/fluency_python | 1dcadf3113ecd6cda6c2c9676fc4a5f0529fe098 | 2ae0d8959d57ed1094cf5df3d2d8ca0df1f8d201 | refs/heads/master | 2021-09-03T21:01:51.465228 | 2018-01-12T00:33:24 | 2018-01-12T00:33:24 | 109,910,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | #coding=utf-8
import re
import reprlib
RE_WORD = re.compile('\w+')
class Sentence:
def __init__(self, text):
self.text = text
self.words = RE_WORD.findall(text)
def __repr__(self):
return 'Sentence(%s)' % reprlib.repr(self.text)
def __iter__(self): # 1
return Sente... | [
"liuwei@polex.com.cn"
] | liuwei@polex.com.cn |
21282651510d53f48e89791d8d48142d7040384b | 3c3484769274a741308eb13d91caf960eae0c5b4 | /src/logging/util.py | 870f62c780197a5ac54545869cb12b21e3693a54 | [
"CC-BY-4.0",
"LicenseRef-scancode-public-domain"
] | permissive | shwina/still-magic | 7f7ad11a05346fc08f4331234740d69ad57ceefa | 1d651840497d66d44ff43528f6e1f38e698ce168 | refs/heads/master | 2020-06-09T06:10:41.367616 | 2019-04-16T20:00:41 | 2019-04-16T20:00:41 | 193,387,841 | 0 | 0 | NOASSERTION | 2019-06-23T19:32:46 | 2019-06-23T19:32:46 | null | UTF-8 | Python | false | false | 536 | py | import logging
MESSAGE_FORMAT = '%(asctime)s,%(name)s,%(levelname)s,%(message)s'
DATE_FORMAT = '%Y-%m-%dT%H:%M:%S'
def create_logger(name, level, filename):
# Create logger.
logger = logging.getLogger(name)
logger.setLevel(level)
# Send messages to standard output.
handler = logging.FileHandler(... | [
"gvwilson@third-bit.com"
] | gvwilson@third-bit.com |
5ff9e070f2ea8bbc5d73c47120f0659f9bffb7fe | 11f54a9d392cdfc3b4cca689c0b5abdbf10625ff | /kangaroo.py | 0852875515d575bd15b1881f1a8ac881af163dc7 | [] | no_license | stheartsachu/Miscellinuous | aa0de96115bea73d49bed50f80e263f31cf9d9ad | 3063233669f7513166b2987e911d662a0fbad361 | refs/heads/master | 2021-01-05T03:51:15.168301 | 2020-02-16T10:13:42 | 2020-02-16T10:13:42 | 240,869,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | x1 = 0
v1 = 3
x2 = 4
v2 = 2
# def fun(f_kan,s_kan):
# if f_kan == s_kan:
# return True
# print(fun(f_kan,s_kan))
# while fun(f_kan,s_kan) == True:
#
# f_kan = f_kan+v1
# print(f_kan)
f_kan = x1
s_kan = x2
while(f_kan <= 10000 and s_kan <= 10000 ):
f_kan += v1
s_kan += v2
# try:
if ... | [
"seartsachu@gmail.com"
] | seartsachu@gmail.com |
43ff798c9d35108f04af4aa813c9e27cd1f69c88 | af7df9d77a2545b54d8cd03e7f4633dce6125f4a | /ch07/gui7c.py | 6f34a331505440579910e5fe3bafa70c62f2964b | [] | no_license | socrates77-sh/PP4E | 71e6522ea2e7cfd0c68c1e06ceb4d0716cc0f0bd | c92e69aea50262bfd63e95467ae4baf7cdc2f22f | refs/heads/master | 2020-05-29T08:46:47.380002 | 2018-11-16T10:38:44 | 2018-11-16T10:38:44 | 69,466,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import gui7
from tkinter import *
class HelloPackage(gui7.HelloPackage):
def __getattr__(self, name):
# pass off to a real widget
return getattr(self.top, name)
if __name__ == '__main__':
HelloPackage().mainloop() # invokes __getattr__
| [
"zhwenrong@sina.com"
] | zhwenrong@sina.com |
1a520fe98f7f8f7872637d486cf3c11c8cfdfd6e | a15200778946f6f181e23373525b02b65c44ce6e | /Algoritmi/2019-06-25/all-CMS-submissions/2019-06-25.10:50:45.629190.VR434403.biancaneve.py | d19254ac4d915d04f644a65152214d4681199a73 | [] | no_license | alberto-uni/portafoglioVoti_public | db518f4d4e750d25dcb61e41aa3f9ea69aaaf275 | 40c00ab74f641f83b23e06806bfa29c833badef9 | refs/heads/master | 2023-08-29T03:33:06.477640 | 2021-10-08T17:12:31 | 2021-10-08T17:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | """
* user: VR434403
* fname: CROSARA
* lname: MARCO
* task: biancaneve
* score: 12.0
* date: 2019-06-25 10:50:45.629190
"""
n, m = map(int, raw_input().split())
perm = map(int, raw_input().split())
for l in range(m):
row = map(int, raw_input().split())
#print row
if row[0] == 1:
perm[row[1]-1],... | [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
6d40723471e9a7e9b314bf27d54b384edd18e847 | d98bfd59d27db330c970ed7dbf156e4e27be4cbc | /week10/Project1/Proj1/login/views.py | bd1b27a2a32fc9c7c33fa88fa0feaff1bbdf1c8f | [] | no_license | Aktoty00/webdev2019 | 3784324f090851ccf2cc5318f7297340a716ad7d | 44e4bb2905232da53053a334346340a905863d1e | refs/heads/master | 2020-04-18T21:57:19.434168 | 2019-04-29T22:07:51 | 2019-04-29T22:07:51 | 167,220,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.shortcuts import render
from django.http import HttpResponse
def signup(request):
return HttpResponse('<input type = "text" name = "emailOrNumber" class = "emailOrNumber" placeholder = "Моб. телефон или эл. адрес"><br>'
'<input type = "text" name = "name" placeholder= "Имя и фамили... | [
"aktoty.rysdaulet@gmail.com"
] | aktoty.rysdaulet@gmail.com |
4e124d9d992edb2065ee6bd68581458013863276 | a3530aef1481451641daff69570d5ecd4ef069cf | /models/account/year.py | b12d37c21bc8e1bcb377d9742dadf10466e323c5 | [] | no_license | Trilokan/nagini | 757e576aad2482c4f7cb68043e3bf481aa918a30 | d936a965c2f4ea547de24e25d1fbc42649fb4b43 | refs/heads/master | 2020-04-03T09:02:45.484397 | 2019-01-02T12:45:42 | 2019-01-02T12:45:42 | 155,152,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | # -*- coding: utf-8 -GPK*-
from odoo import models, fields, api
from calendar import monthrange
from datetime import datetime, timedelta
PROGRESS_INFO = [("draft", "Draft"), ("confirmed", "Confirmed")]
class Year(models.Model):
_name = "year.year"
_rec_name = "name"
name = fields.Char(string="Year", re... | [
"rameshkumar@ajaxmediatech.com"
] | rameshkumar@ajaxmediatech.com |
e608e87eb6a45b67f54560ba8bfdf8aa39509c4f | b366806c99ac30e77789f80417978902e25628da | /boto3_exceptions/importexport.py | e76b14e4ca77bc73aaba4ac69ba3abc50a10a1c3 | [
"MIT"
] | permissive | siteshen/boto3_exceptions | 9027b38c238030859572afec7f96323171596eb7 | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | refs/heads/master | 2020-04-19T03:15:02.525468 | 2019-10-23T07:37:36 | 2019-10-23T07:37:36 | 167,928,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | import boto3
exceptions = boto3.client('importexport').exceptions
BucketPermissionException = exceptions.BucketPermissionException
CanceledJobIdException = exceptions.CanceledJobIdException
CreateJobQuotaExceededException = exceptions.CreateJobQuotaExceededException
ExpiredJobIdException = exceptions.ExpiredJobIdExce... | [
"xiaojiang@actwill.com.cn"
] | xiaojiang@actwill.com.cn |
936b43bfd4885419120e1afe90faef8ebccc7a26 | be0e0488a46b57bf6aff46c687d2a3080053e52d | /python/programmers/level3/외벽점검.py | e173eb88a500981e940d6aee7f4e16c5a99e1e29 | [] | no_license | syo0e/Algorithm | b3f8a0df0029e4d6c9cbf19dcfcb312ba25ea939 | 1ae754d5bb37d02f28cf1d50463a494896d5026f | refs/heads/master | 2023-06-09T11:31:54.266900 | 2021-06-30T17:04:38 | 2021-06-30T17:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # dist가 최대 8이기 때문에 brute force를 통해 탐색이 가능하다.
from itertools import permutations
def solution(n, weak, dist):
weakLen = len(weak)
for i in range(weakLen):
weak.append(weak[i] + n)
# print(weak)
answer = len(dist) + 1
for i in range(weakLen):
start = [weak[j] for j in range(i, i +... | [
"kyun2dot@gmail.com"
] | kyun2dot@gmail.com |
8bd1277a439d2db671284eb40192c4e5b069f8ff | 77ae39a4e38dc53ed50e3943a0049fc4c72af735 | /Leetcode/Triangle.py | 6e49a3f82c0624bd8e60a6792df0901614de84a8 | [
"MIT"
] | permissive | harrifeng/Python-Study | 41ab870a31213d414f08c5753d22e8463bb3f102 | d8158e33392a322830244594405cae7e9d7f6fb4 | refs/heads/master | 2021-01-18T10:48:23.215569 | 2016-02-04T02:06:22 | 2016-02-04T02:06:22 | 51,045,556 | 1 | 0 | null | 2016-02-04T02:05:39 | 2016-02-04T02:05:38 | null | UTF-8 | Python | false | false | 1,807 | py | """
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11).
Note:
Bonus point if you... | [
"cyandterry@hotmail.com"
] | cyandterry@hotmail.com |
ad75b303a973c7c021baa80e550cb88a59ab7fa5 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mwGt38m3Q3KcsSaPY_0.py | 13a9949717c99e6d0eaa2eb24ebe169ca765f62e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py |
def increment_items(lst):
return [i+1 for i in lst]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
dd0916097167cb5d677ecb3fcf9c3a7a4546be4c | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/offlinearize.py | 642230032148b0163c1dd2ffe22831780bec7e19 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py |
import sys
from urlparse import urlparse, urljoin
from os.path import dirname, join as joinpath
from os import makedirs
from urllib import urlopen
from simplejson import loads
try:
base_url = sys.argv[1]
url = urlparse(base_url)
except:
print sys.argv[1]
print "Syntax: %s <url>" % sys.argv[0]
s... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
12841b3819ac2e828f695f322d21313affe8148c | f15d8305d1c97482b7a3391036742eaaaccc8238 | /TestTurtle/frctal_tree_2.0.py | a4b7f7d25a925a7ea9a19601fdb47308c521bb78 | [] | no_license | yuansuixin/learn_python__xiaoxiang | cdeec72a615c28de15334b6d61de87a4df4b25cd | 3b90cab535a052ed101ea6838cf86529cf570ec6 | refs/heads/master | 2021-04-03T06:15:41.841685 | 2018-03-11T10:18:43 | 2018-03-11T10:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py |
## 绘制分型树
import turtle
def draw_brach(brach_length):
if brach_length > 5:
# 绘制右侧的树枝
turtle.forward(brach_length)
print('向前',brach_length)
turtle.right(20)
print('右转20')
draw_brach(brach_length-15)
# 绘制左侧的树枝
turtle.left(40)
print('左转40')
... | [
"cyss428@163.com"
] | cyss428@163.com |
32bd6af443d509ff9a722650c33ac8c9fda2b766 | 901b554d55e661e1f2af4493e0fd446b8dd31e3f | /20090126-sws7-sb/parseChaco.py | 791a5b6e2c53ed54414f4a192c11d24ae3fac415 | [] | no_license | dsoto/swData | dec5542f0fa2af9554e946b5cd3c248201042c36 | 19dc7d9cd3e23e282c80166c359c995548525e63 | refs/heads/master | 2020-12-24T17:54:57.486775 | 2010-06-16T15:07:02 | 2010-06-16T15:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,518 | py | #!/usr/bin/env python
from enthought.chaco.api import (OverlayPlotContainer,
VPlotContainer, Plot, ArrayPlotData)
from enthought.chaco.tools.api import (PanTool, LineInspector)
from enthought.traits.api import (HasTraits, Instance, Array... | [
"danielrsoto@gmail.com"
] | danielrsoto@gmail.com |
97f71acb578518c20028682674b1d9b0be86ddb1 | 29416ed280fff073ea325ed7dc0d573cb7145d47 | /stagesepx/classifier/svm.py | d2f9d17c112c863bfcd77074772925fcfedf4f63 | [
"MIT"
] | permissive | lshvisual/stagesepx | 64507f3cf2db65c3cfe7129cecb357237f3a8db7 | 98aebb4195e87b631c736878fbcef210f19b22cc | refs/heads/master | 2020-07-16T14:57:48.688554 | 2019-09-02T04:18:20 | 2019-09-02T04:18:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,449 | py | from loguru import logger
import cv2
import os
import pickle
import typing
import numpy as np
from sklearn.svm import LinearSVC
from stagesepx.classifier.base import BaseClassifier
from stagesepx import toolbox
class SVMClassifier(BaseClassifier):
FEATURE_DICT = {
'hog': toolbox.turn_hog_desc,
'l... | [
"178894043@qq.com"
] | 178894043@qq.com |
48f895d6d0a9b8dfa8df8e2750cdb4c53e168f84 | 2a2ce1246252ef6f59e84dfea3888c5a98503eb8 | /examples/tutorials/09_flip.py | 9c8409019a6c692430f2e24ac884f78b28cd478d | [
"BSD-3-Clause"
] | permissive | royqh1979/PyEasyGraphics | c7f57c1fb5a829287e9c462418998dcc0463a772 | 842121e461be3273f845866cf1aa40c312112af3 | refs/heads/master | 2021-06-11T10:34:03.001842 | 2021-04-04T10:47:52 | 2021-04-04T10:47:52 | 161,438,503 | 8 | 4 | BSD-3-Clause | 2021-04-04T10:47:53 | 2018-12-12T05:43:31 | Python | UTF-8 | Python | false | false | 376 | py | """
Draw a bus without transformations
"""
from easygraphics import *
import draw_bus
def main():
init_graph(500, 300)
draw_bus.draw_bus()
set_color("gray")
set_line_style(LineStyle.DASH_LINE)
line(0, 300, 500, 0)
set_line_style(LineStyle.SOLID_LINE)
reflect(0, 300, 500, 0)
draw_bus.... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
e687132d147ed7ba43628a5af04b87969ca6ed6a | ed114d6111f9f75bdf74de9687f1ec6145ddcae2 | /25_file_IO.py | c1e548d18301d51ec1b2960066b36dee4f3a4281 | [] | no_license | tayyabmalik4/Python-With-Tayyab | 495b6074c7a75bcb5eced34bdec3053b2103c78c | 5f566e4036bfe17f2a7879a7a7a5d70f259ec6d0 | refs/heads/main | 2023-06-29T01:25:57.827350 | 2021-08-02T15:27:52 | 2021-08-02T15:27:52 | 387,209,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # File IO Basics
"""
"r" => open file for reading----this is a default
"w" => open a file for writing
"x" => Creates a file if not exits
"a" => add more content to a file
"t" => text mode -----this is a defaut
"b" => binary mode
"r+" => read and write
"""
| [
"mtayyabmalik99@gmail.com"
] | mtayyabmalik99@gmail.com |
e90a761365c11c6ac9cab953da8b10fbd1b4b195 | 8a51e947e11d37fc2937a81cc02e9901e06b4291 | /envfh/bin/chardetect | 16d09ac1b0de412a80954ca6956a7e69b839da7d | [] | no_license | Deepakchawla/flask_mysql_heroku | 107fa4ad1074901cd5cdd4a762e8bc960b7b90ee | 5ff5186291a461f9eaedd6a009f4a5e1a08f3a62 | refs/heads/main | 2022-12-26T01:34:41.957981 | 2020-10-05T15:41:57 | 2020-10-05T15:41:57 | 301,443,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/home/deepakchawala/PycharmProjects/flask_heroku/envfh/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"deepakchawla35@gmail.com"
] | deepakchawla35@gmail.com | |
9bcb3781b5e49ae5f845098c5dd06f91187d1435 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-elb/setup.py | 78a2480f61627fbccd1b215889f9405423ab312f | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # coding: utf-8
from os import path
from setuptools import setup, find_packages
NAME = "huaweicloudsdkelb"
VERSION = "3.0.52"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
DESCRIPTION = "ELB"
this_directory = path.abspath(path.dirna... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8fc4b9be4d5be7229044d9a004d39710886fc693 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit58.py | be45e1e64e6e2f380c154fe1c6637b6004f64340 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,324 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
63feb400bba4f58c6678073156ad61cd583474db | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/defusedxml-0.5.0/other/python_genshi.py | 183d1fec94405e9cea10ac4388123eb295e70391 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 172 | py | #!/usr/bin/python
import sys
from pprint import pprint
from genshi.input import XMLParser
with open(sys.argv[1]) as f:
parser = XMLParser(f)
pprint(list(parser))
| [
"yingchen@cloudera.com"
] | yingchen@cloudera.com |
267f6e8d8777be378029593fbbaa43b7117edfb9 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/990.verifying-an-alien-dictionary/990.verifying-an-alien-dictionary.py | 14b6ba9f83d6ebf0cbaa4e0b377b09982bcb1a90 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | class Solution:
def isAlienSorted(self, words: List[str], order: str) -> bool:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
a0fb9bec08517382b82887234d38d017db71fc27 | 3b6cc22708e02e056cbd3175f63e08fc330836c6 | /server.py | 797b7d51a61de3a5e1a67b968e8a2e3e8ad3a160 | [] | no_license | janinemartinez/rpg-web-app | 4884a27f50bc06169d2f52d1ee99087801049bad | 01cba5999634194e02971bf57ed6258253b3f2ed | refs/heads/master | 2021-07-11T07:42:37.292396 | 2020-03-18T08:56:08 | 2020-03-18T08:56:08 | 239,904,803 | 0 | 0 | null | 2021-03-20T02:54:06 | 2020-02-12T01:51:29 | HTML | UTF-8 | Python | false | false | 28,331 | py | """Movie Ratings."""
from jinja2 import StrictUndefined
import json
from flask import (Flask, render_template, redirect, request, flash, session, jsonify)
from flask_debugtoolbar import DebugToolbarExtension
from model import (
User,
Character,
Attribute,
Skill,
Template,
Spell,
Char_spell... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
a2d0655c2ac073270dcb83ddf25f82ba36e77b75 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/mrafayaleem/test_constraints.py | 7e1fc758c05afc8ac61c487f1d1ed22cae0f23a3 | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,411 | py | # Copyright (c) 2010-2012 OpenStack, 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 agreed to ... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
578dd5df4eda97c5cd637742a9711502dace842e | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/share/AthenaPoolExample_WMetaJobOptions.py | 3af9e8794b0385996c0820cd6b3c8079ce383f32 | [] | 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 | 3,236 | py | ## @file AthenaPoolExample_WriteJobOptions.py
## @brief Example job options file to illustrate how to write event data to Pool.
## @author Peter van Gemmeren <gemmeren@anl.gov>
## $Id: AthenaPoolExample_WMetaJobOptions.py,v 1.8 2008-03-25 22:38:54 gemmeren Exp $
#########################################################... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
5b52f7f306a5a2aaec29752ff685f73d5f23ce39 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/glnrus002/boxes.py | e4fe66cfc48ac2de962374281b9b70b12248e4d0 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | #boxes.p
#glnrus002
def print_square ():
print("*"*5)
for i in range (3):
print("*"," ","*" )
print("*"*5)
def print_rectangle (width, height):
print("*"*width)
for i in range(height-2):
print("*"," "*(width-2),"*",sep="")
print("*"*width)
de... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
230653d44e2ef94bab9b0d8fe6e66616e3e15c15 | 370c40babd60df6ef84b339a31fb7365ebe2400f | /toolkit/crashreporter/google-breakpad/src/tools/windows/dump_syms/moz.build | 6220ae3cf6b64ac4db3561aa3ca94cafa06230bd | [
"BSD-3-Clause",
"LicenseRef-scancode-unicode-mappings",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | roytam1/gecko-kaios | b676a1c9ae1c1412274a2327419660803f214ab9 | 2c1b5fe198e12edc4cb17a34ecbcceedc642c78e | refs/heads/master | 2023-05-10T16:50:43.590202 | 2019-01-11T07:55:14 | 2019-10-17T09:15:16 | 215,687,205 | 5 | 0 | NOASSERTION | 2023-05-07T02:37:27 | 2019-10-17T02:34:23 | null | UTF-8 | Python | false | false | 752 | build | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
HostProgram(... | [
"roytam@gmail.com"
] | roytam@gmail.com |
2cccf78706623f5fbda15d33d057348aedad483f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_12801.py | 234f131a3965b2e8605641bd7146db4924dc7a1d | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # how to add up the data with variable numbers in MySQL with Python?
SELECT id, name, users_count+1 as users_count FROM data;
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
5a49851c993afa4acec0a0a96ccb39f922f00904 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_hazed.py | d38bc8abb99b6e274b895bcfa1cd01cd638c6422 | [
"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 | 224 | py |
from xai.brain.wordbase.verbs._haze import _HAZE
#calss header
class _HAZED(_HAZE, ):
def __init__(self,):
_HAZE.__init__(self)
self.name = "HAZED"
self.specie = 'verbs'
self.basic = "haze"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8ac6d3cdb82c433b8d428c5e8a2d3cada473a505 | e982c42888da91e957aef4a67e339135918d25ec | /venv/Lib/site-packages/jinja2/testsuite/__init__.py | db816dfe9054cf235a1bc8af3306fa9a761cedb0 | [] | no_license | nikhil9856/kisan | c88f890d88e96dd718bd9cfaef41f3d40eb7b72d | 556e57427a2b9a91fcc4a44ca25706c49e790d73 | refs/heads/master | 2020-03-15T01:59:09.825264 | 2018-05-03T18:08:02 | 2018-05-03T18:08:02 | 131,904,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,797 | py | # -*- coding: utf-8 -*-
"""
jinja2.testsuite
~~~~~~~~~~~~~~~~
All the unittests of Jinja2. These tests can be executed by
either running run-tests.py using multiple Python versions at
the same time.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more deta... | [
"kumar.nikhil110@gmail.com"
] | kumar.nikhil110@gmail.com |
36f6b770385698e68c30bc1c36d2fb9bf80814a6 | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-11-27-Parametersearch_again/MOOSEModel.py | 028bd96d9a3b9c8f7b6929e864f3aac0a67af60a | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,307 | py | #exec(open('MOOSEModel.py').read())
#Has been modified heavily to be used in Parametersearch_again folder. Do not use as an api
import moose
import rdesigneur as rd
import numpy as np
import matplotlib.pyplot as plt
import xmltodict
def parameterfile_parser(Parameterfile):
"""
Parses Parameterfile and returns... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
80dd01870ac9e112e4604f30ffbae9f5908ff053 | 0b9622c6d67ddcb252a7a4dd9b38d493dfc9a25f | /HackerRank/30daysChallenge/Day17.py | 8901c15a41dedb01041ed65199ea7db65b6992e5 | [] | no_license | d80b2t/python | eff2b19a69b55d73c4734fb9bc115be1d2193e2d | 73603b90996221e0bcd239f9b9f0458b99c6dc44 | refs/heads/master | 2020-05-21T20:43:54.501991 | 2017-12-24T12:55:59 | 2017-12-24T12:55:59 | 61,330,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | """
Objective: Yesterday's challenge taught you to manage exceptional situations by using try and catch blocks. In today's challenge, you're going to practice throwing and propagating an exception. Check out the Tutorial tab for learning materials and an instructional video!
Task: Write a Calculator class with a singl... | [
"npross@lbl.gov"
] | npross@lbl.gov |
00fa5669f3518c900044e1e8337d4c59875d531f | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part008087.py | 760f0f0fb7dcdf93745f9ceafbd5db722a6e9fff | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,219 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
7a5991c57222dafdfee32c8d59345b334061e4ce | 423f5eb4cf319ea11701ad2c84c045eeeb4e261c | /class-29/demo/custom_user/users/views.py | 643b390ee821ab3200991c48ec7ea530854d7bea | [] | no_license | MsDiala/amman-python-401d2 | 4031899d0a8d70f1ecd509e491b2cb0c63c23a06 | bb9d102da172f51f6df7371d2208146bbbee72fb | refs/heads/master | 2023-06-14T18:46:04.192199 | 2021-07-12T12:48:44 | 2021-07-12T12:48:44 | 315,765,421 | 1 | 0 | null | 2020-11-24T22:16:10 | 2020-11-24T22:16:09 | null | UTF-8 | Python | false | false | 350 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic.edit import CreateView
from .forms import CustomUserCreationForm
# Create your views here.
class SignUpView(CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy('login')
template_name... | [
"ahmad.alawad.sf@gmail.com"
] | ahmad.alawad.sf@gmail.com |
1f81c51bf9b448533ea259031e5a3032efc5929b | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2009.1/kernel/default/drivers/module-alsa-driver/actions.py | fad2a69a934d6867aa230a8c09e48cc680620014 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shellto... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
dfcf294e0b1aa993aa455bf04d608367573ead1d | 9dea14a0818dfd318b238b6c98c0e753d162896d | /venv/Scripts/pip-script.py | 8bf9870477e1fde5d687039f19bd2a794435a9c4 | [] | no_license | CatchTheDog/data_visualization | a665094ef2e64502992d0de65ddd09859afb756b | 326ecd421a7945e9566bec17bd4db18b86a6e5a4 | refs/heads/master | 2020-03-31T08:08:22.544009 | 2018-10-09T05:36:02 | 2018-10-09T05:36:02 | 152,047,286 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 438 | py | #!C:\马俊强\软件安装\pycharm\workspace\data_visualization\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"1924528451@qq.com"
] | 1924528451@qq.com |
4e8bf5c534c923a03e4af6dd7d56b15d1dc3a6cb | 6710c52d04e17facbc9fb35a7df313f7a2a7bd53 | /0137. Single Number II.py | b870ddfce211866e34fd0523d542c8aa1ff14c5a | [] | no_license | pwang867/LeetCode-Solutions-Python | 535088fbe747a453360457728cc22cf336020bd2 | 188befbfb7080ba1053ee1f7187b177b64cf42d2 | refs/heads/master | 2022-11-13T16:20:28.211707 | 2020-06-28T06:01:14 | 2020-06-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # https://leetcode.com/problems/single-number-ii/discuss/43295
# /Detailed-explanation-and-generalization-of-the-bitwise-operation-method-for-single-numbers
class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
x1, x2 = 0, 0
m... | [
"wzhou007@ucr.edu"
] | wzhou007@ucr.edu |
d9dcba660bcd03f1948e39ddf267d4040d3cd0c9 | 0eeeb14c1f5952a9d9c7b3bc13e708d2bf2a17f9 | /algos/make_graph.py | 5a5e1869f8eb8d02385257c0dcb4982bf31b0611 | [] | no_license | mbhushan/pydev | 6cc90140e1103c5d5e52e55287d02ed79d1a5c36 | bdf84710da87f58253cfec408c728f6a9134a2ea | refs/heads/master | 2020-04-25T07:22:03.281719 | 2015-12-22T16:28:42 | 2015-12-22T16:28:42 | 26,382,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py |
def make_link(graph, n1, n2):
if n1 not in graph:
graph[n1] = {}
(graph[n1])[n2] = 1
if n2 not in graph:
graph[n2] = {}
(graph[n2])[n1] = 1
return graph
def main():
aring = {}
n = 5
for i in range(n):
make_link(aring, i, (i+1) % n)
print len(aring)
prin... | [
"manibhushan.cs@gmail.com"
] | manibhushan.cs@gmail.com |
67af6746f4006cdd0dbaf50e42e3b97229cf2e3d | f016dd6fd77bb2b135636f904748dbbab117d78b | /day9/异常处理.py | c6560f0dae933a2be1434adeda9c293a01f7fbb5 | [
"Apache-2.0"
] | permissive | w7374520/Coursepy | b3eddfbeeb475ce213b6f627d24547a1d36909d8 | ac13f8c87b4c503135da51ad84c35c745345df20 | refs/heads/master | 2020-04-26T23:57:42.882813 | 2018-05-24T07:54:13 | 2018-05-24T07:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | #!/usr/bin/python
# -*- coding utf8 -*-
try:
int('xx')
except ValueError as e:
print(e)
except NameError:
print('NameError')
#万能异常
except Exception as e:
print(e)
else:
print('木有异常')
finally:
print('有无异常都会执行,finally通常用于回收资源')
'''
'''
| [
"windfishing5@gmail.com"
] | windfishing5@gmail.com |
f4e017906f223cb2f03aaf41d50c5683a986308a | 48832d27da16256ee62c364add45f21b968ee669 | /res_bw/scripts/common/lib/encodings/undefined.py | 033836eb5d544ca83ab1beb3ac718d1751bd755f | [] | 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 | 1,550 | py | # 2016.08.04 19:59:24 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/encodings/undefined.py
""" Python 'undefined' Codec
This codec will always raise a ValueError exception when being
used. It is intended for use by the site.py file to switch off
automatic string to Unicode coercion.
... | [
"info@webium.sk"
] | info@webium.sk |
5ded482fc4add564cdac998bf4060c588c0ea0d7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3087.py | 960b9779450a1b71cea4865ee75db3be32fd7930 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,347 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
62564c3fc592a5f84af5bf01c6625f58d819f220 | 153c943de6095aaf5803b8f452af362c4a9c66e8 | /blogger-business/business/migrations/0002_business_image.py | 2ed7550f54199dd1a44e6e2e81c8d315fb5b8d5d | [] | no_license | 3asyPe/blogger-business | 428427a0832f77c45914e737d6408d9051b57b42 | 6b9b1edefd2700b554a5a26d29dfe5158ca4861b | refs/heads/master | 2023-03-03T11:09:39.813603 | 2021-01-29T11:29:45 | 2021-01-29T11:29:45 | 304,942,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Generated by Django 3.1 on 2020-10-18 15:03
import business.utils
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('business', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='business',
name='i... | [
"alex.kvasha228@gmail.com"
] | alex.kvasha228@gmail.com |
6d0e67e73ed90c5669a471a8ac43e88ab9540de0 | f3a1c2ab0935902a2ca1f97e0979676ff1636cc8 | /generator_images.py | 07debe829e2c07bd982006fe125d84410b83fc09 | [] | no_license | kerzhao/pySpark-Hive-sql | ddcdf85d61cd6d992a74548330b6798bbefbf2a8 | da0d73d6e8ad3ac3ca23e90d287c0e730df99696 | refs/heads/master | 2020-07-15T07:48:47.106065 | 2017-06-28T02:48:26 | 2017-06-28T02:48:26 | 94,305,331 | 0 | 0 | null | 2017-06-14T08:01:23 | 2017-06-14T08:01:23 | null | UTF-8 | Python | false | false | 9,090 | py | #coding:utf-8
import random
import os
from itertools import product
from PIL import Image, ImageDraw, ImageFont
import cv2
import numpy as np
"""
基本:
1 图片size
2 字符个数
3 字符区域(重叠、等分)
4 字符位置(固定、随机)
5 字符size(所占区域大小的百分比)
6 字符fonts
7 字符 type (数字、字母、汉字、数学符号)
8 字符颜色
9 背景颜色
高级:
10 字符旋转
11 字符扭曲
12 噪音(点、线段、圈)
"""
chars = "012345... | [
"kerzhao@163.com"
] | kerzhao@163.com |
79ef43737c6204f12ad8e05708929563a5c2dca0 | cb6b1aa2d61b80cba29490dfe8755d02c7b9a79f | /sakura/scripting/mathops.py | 34da3e965be7c239e56fd4fa19d2a3961dbc79dc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | piotrmaslanka/Ninja-Tower | c127a64888bc3306046e4b400ce3a8c6764b5481 | 7eca86e23513a8805dd42c3c542b7fae0499576b | refs/heads/master | 2021-12-06T07:56:13.796922 | 2015-10-15T08:10:35 | 2015-10-15T08:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from __future__ import division
from math import hypot
def vector_towards(sx, sy, tx, ty, ln):
vdif = tx - sx, ty - sy
vlen = hypot(*vdif)
if vlen == 0: return # Cannot accelerate nowhere!
return vdif[0]*ln/vlen, vdif[1]*ln/vlen
| [
"piotr.maslanka@henrietta.com.pl"
] | piotr.maslanka@henrietta.com.pl |
29f06f178db222814e1a5e134ac9f3129211a536 | 8683aed87d25177f9a0a026c5c48fb412745ff89 | /ledger/payments/bpoint/models.py | ad000b68b8caecf613dc23fca0b703ea2b22e7b5 | [
"Apache-2.0"
] | permissive | gaiaresources/ledger | 2b1e9bfee14abbfbc993c5c62f60589a6eaf0a86 | b87c4bf4226e3e2b2f0bc24303f5d107f94f134e | refs/heads/master | 2020-04-05T20:50:06.727970 | 2017-07-18T02:16:33 | 2017-07-18T02:16:33 | 51,276,638 | 2 | 0 | null | 2017-07-13T07:09:15 | 2016-02-08T02:51:55 | Python | UTF-8 | Python | false | false | 4,127 | py | from __future__ import unicode_literals
import datetime
from django.db import models
from ledger.payments.bpoint import settings as bpoint_settings
from django.utils.encoding import python_2_unicode_compatible
from oscar.apps.order.models import Order
from ledger.accounts.models import EmailUser
class BpointTransactio... | [
"ndwigabrian@gmail.com"
] | ndwigabrian@gmail.com |
620633147ca9c1b734abc81c4bb02677d7ee96b3 | 6ef4df3f0ecdfd4b880c49e0fc057a98931f9b2e | /marketsim/gen/_out/observable/Cumulative/_StdDev.py | 95ae75ca2166e6b0d23dd434bec57674b4d5975e | [] | no_license | Courvoisier13/marketsimulator | b8be5e25613d8c4f3ede1c47276cb6ad94637ca8 | 3ab938e2b3c980eaba8fc0dba58a141041125291 | refs/heads/master | 2021-01-18T02:17:54.153078 | 2013-12-19T15:09:32 | 2013-12-19T15:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from marketsim import registry
from marketsim.ops._function import Function
from marketsim import IObservable
from marketsim.gen._out.mathops._Sqrt import Sqrt
from marketsim.gen._out.observable.Cumulative._Var import Var
from marketsim import context
@registry.expose(["Statistics", "StdDev"])
class StdDev(Function[flo... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
89bbdcd7dd4f1ba5699d55df1f50ae760994fedd | 45c3624f0fd45167357c37aaf3912d77e83aaffc | /baseApp/migrations/0007_auto_20200112_1937.py | 2f97576659fbd3cffc1de19653ec90f8106d4d61 | [] | no_license | kaustubh619/AllianceDjango | c15b959d3362b4f2e7fec7bb68b09e86d7fc9e1f | 61d33e8b8ee8a8245d1a9227d5f8ff8d39507450 | refs/heads/master | 2020-12-10T14:58:50.785990 | 2020-01-13T17:27:17 | 2020-01-13T17:27:17 | 233,626,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.2.4 on 2020-01-12 14:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('baseApp', '0006_packagequery'),
]
operations = [
migrations.AlterField(
model_name='packagequer... | [
"kaustubhkrishna9031@gmail.com"
] | kaustubhkrishna9031@gmail.com |
eae4f825aadcfc2d20c7253b128ee2ce99d0841b | 37e66cf57cdf67d4d910d58e949f35422ddd52bc | /trimesh/scene/scene.py | 80f73067f155538985c7aeeb5d66c8a6f1fb6528 | [
"MIT"
] | permissive | heidtn/trimesh | f62f626c9d10c9f041b9ad1b509427e652a5f485 | 7bb5eb823366155bc6949258e5b6caf734c79fed | refs/heads/master | 2021-09-06T00:42:32.030504 | 2018-02-01T01:27:47 | 2018-02-01T01:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,660 | py | import numpy as np
import collections
import copy
from .. import util
from .. import units
from .. import convex
from .. import grouping
from .. import transformations
from .. import bounds as bounds_module
from ..io import gltf
from .transforms import TransformForest
class Scene:
'''
A simple scene graph ... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
9bbca24acbdb33b693c0cfe366ca75c6eda5c2cb | ecd2aa3d12a5375498c88cfaf540e6e601b613b3 | /Facebook/Pro102. Binary Tree Level Order Traversal.py | f3281376de4d813a8b2c1a50aaab5967a6e63165 | [] | no_license | YoyinZyc/Leetcode_Python | abd5d90f874af5cd05dbed87f76885a1ca480173 | 9eb44afa4233fdedc2e5c72be0fdf54b25d1c45c | refs/heads/master | 2021-09-05T17:08:31.937689 | 2018-01-29T21:57:44 | 2018-01-29T21:57:44 | 103,157,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from collections import deque
class Solution(object):
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[L... | [
"yoyinzyc@gmail.com"
] | yoyinzyc@gmail.com |
a5664b4f4645595f91b6599c4663995f72bf40e4 | 553b34a101c54090e68f540d96369ac7d5774d95 | /python/python_koans/python2/koans/about_class_attributes.py | 7764eabd335da8b297a8638233b84f4d0ea2f652 | [
"MIT"
] | permissive | topliceanu/learn | fd124e1885b5c0bfea8587510b5eab79da629099 | 1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3 | refs/heads/master | 2022-07-16T19:50:40.939933 | 2022-06-12T15:40:20 | 2022-06-12T15:40:20 | 21,684,180 | 26 | 12 | MIT | 2020-03-26T20:51:35 | 2014-07-10T07:22:17 | JavaScript | UTF-8 | Python | false | false | 5,195 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Based on AboutClassMethods in the Ruby Koans
#
from runner.koan import *
class AboutClassAttributes(Koan):
class Dog(object):
pass
def test_new_style_class_objects_are_objects(self):
# Note: Old style class instances are not objects but they... | [
"alexandru.topliceanu@gmail.com"
] | alexandru.topliceanu@gmail.com |
82c9712218f271eea11ef452affd3917de8e6229 | 52a32a93942b7923b7c0c6ca5a4d5930bbba384b | /unittests/tools/test_mobsfscan_parser.py | 76e805852a9ecf97e3cb18161944979530a92095 | [
"MIT-open-group",
"GCC-exception-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-3.0-or-later",
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"PSF-2.0",
"LicenseRef-scancode-python-cwi... | permissive | DefectDojo/django-DefectDojo | 43bfb1c728451335661dadc741be732a50cd2a12 | b98093dcb966ffe972f8719337de2209bf3989ec | refs/heads/master | 2023-08-21T13:42:07.238370 | 2023-08-14T18:00:34 | 2023-08-14T18:00:34 | 31,028,375 | 2,719 | 1,666 | BSD-3-Clause | 2023-09-14T19:46:49 | 2015-02-19T17:53:47 | HTML | UTF-8 | Python | false | false | 6,947 | py | from ..dojo_test_case import DojoTestCase
from dojo.tools.mobsfscan.parser import MobsfscanParser
from dojo.models import Test
class TestMobsfscanParser(DojoTestCase):
def test_parse_no_findings(self):
testfile = open("unittests/scans/mobsfscan/no_findings.json")
parser = MobsfscanParser()
... | [
"noreply@github.com"
] | DefectDojo.noreply@github.com |
a7b04ac6451fd8e623987f821b95ad4564fed2a5 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/booking_end_req_session_activity.py | ed703010be55ccae9fe7bcbab08770bacac0b6cd | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 238 | py | from __future__ import annotations
from enum import Enum
__NAMESPACE__ = "http://www.travelport.com/schema/sharedBooking_v52_0"
class BookingEndReqSessionActivity(Enum):
END = "End"
END_QUEUE = "EndQueue"
IGNORE = "Ignore"
| [
"chris@komposta.net"
] | chris@komposta.net |
66940ed8359ce0693b72954371aec6f4d8f3b6d7 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn9 - minobot/M-17105-1054.py | ba11db24d90c1085ae689b63e7fddc49161b02db | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,785 | py | def premik(ukaz, x, y, smer):
smeri = "NESW"
premiki = [(0, -1), (1, 0), (0, 1), (-1, 0)]
ismer = smeri.index(smer)
if ukaz == "R":
smer = smeri[(ismer + 1) % 4]
elif ukaz == "L":
smer = smeri[(ismer - 1) % 4]
else:
dx, dy = premiki[ismer]
x += dx * ukaz... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
39bf297a2b22b2f1e698994ab979b7182ee0c3ef | 965fc2f0e22f0d0a14ac2b65fb7ae1a94371c9d1 | /harvester/tests/integration/test_molecularmatch_trials_convert.py | b6c4f52ad36535fea889a4722dc066bbf2686458 | [] | no_license | ohsu-comp-bio/g2p-aggregator | 9a2ca19612905f7d7aca950aa81cb7a1d83dd56c | 2a0d57c31bdad67b759322407b2c9c91a59c615b | refs/heads/v0.12 | 2022-12-11T14:07:34.994534 | 2019-06-25T21:13:27 | 2019-06-25T21:13:27 | 88,804,628 | 46 | 16 | null | 2022-08-23T17:12:16 | 2017-04-20T00:51:34 | HTML | UTF-8 | Python | false | false | 36,958 | py | import molecularmatch_trials
import json
from collections import namedtuple
import evidence_label as el
EVIDENCE = json.loads("""
{"status": "Recruiting", "startDate": "June 2016", "title": "Hyperpolarized Xenon-129 Functional Magnetic Resonance Imaging of Healthy Volunteers and Participants With Alzheimer's Disease"... | [
"brian@bwalsh.com"
] | brian@bwalsh.com |
868d9325e4d3169cb0219450aed0e49a34dc2b90 | 851f7fde684774ca0388a28cb7035aa1e95f5de0 | /Ercess/settings.py | 57b1e7e01b4a74cf330b883c7aad6860f19d7c65 | [] | no_license | aditya2222/django-tickets | 01451a724cf97c8f2f338ba85a704e85ae57b008 | 3c2ecd252479fc5821873823cdbbb4641268a2d2 | refs/heads/master | 2022-12-16T17:17:07.821446 | 2019-05-12T02:58:05 | 2019-05-12T02:58:05 | 186,204,071 | 0 | 0 | null | 2022-11-22T03:22:25 | 2019-05-12T02:55:47 | JavaScript | UTF-8 | Python | false | false | 6,147 | py | """
Django settings for Ercess project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
i... | [
"adityasingh222247@gmail.com"
] | adityasingh222247@gmail.com |
0e2200d7cc05f631a298302b7d0012d4fc312b33 | 7e9bfbcd31faa30cdad64dff947e80cfe3f3a526 | /Backend/apps/users/adminx.py | 3aa920ca8f60c5eaeb3da689a605c911d57a03f2 | [
"Apache-2.0"
] | permissive | skyroot/Dailyfresh-B2C | 6c02578b5b39b8746c4bf9ebb2288775ffeabf33 | 7c94e9a4428e5116c91bf27cf696e6eee430748a | refs/heads/master | 2023-01-04T09:47:26.834763 | 2019-02-25T02:38:37 | 2019-02-25T02:38:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # encoding: utf-8
import xadmin
from xadmin import views
from .models import VerifyCode
class BaseSetting(object):
enable_themes = True
use_bootswatch = True
class GlobalSettings(object):
site_title = "天天生鲜"
site_footer = "github.com/BeanWei"
# menu_style = "accordion"
class VerifyCodeAdmin(o... | [
"157318439@qq.com"
] | 157318439@qq.com |
0b2a2046c0731579d937a1254246088e4dca3a45 | 94d70c1c19cf115aa415a04cd85ff687a17f5eca | /exp_classif.py | 4f8a6d76d95e2f51fec470bb4570b20bb22a9af1 | [
"MIT"
] | permissive | RandallBalestriero/PMASO | 50ca98b2ea918f38fed4cc442562a6322c80409f | 780b06f8d8496000f3ecda04a49c8eda72393b5d | refs/heads/master | 2021-04-15T12:20:19.250244 | 2019-01-28T21:16:33 | 2019-01-28T21:16:33 | 126,507,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | from pylab import *
import tensorflow as tf
from sklearn.datasets import make_moons
from sklearn.datasets import load_digits
import tensorflow as tf
from layers import *
from utils import *
import cPickle
DATASET = 'MNIST'
neuronsss=10
sigmass=sys.argv[-2]
nonlinearity = int(sys.argv[-1])
print nonlinearity
x_tra... | [
"randallbalestriero@gmail.com"
] | randallbalestriero@gmail.com |
62b067d9e926d110db5569bf37336152e61ec68f | 9867cb1c684aa1087f6320ad28b4e718b2879a70 | /examples/basics/location.py | 24066f16dd61b7b576f3e0b01007bc856f289836 | [
"MIT"
] | permissive | mcauser/Python_MQTT | 0c90a2264e523129ea1db15904dd2b66c85aaa28 | c5795d64f12c576433a3d59b528351f02aa84036 | refs/heads/master | 2023-01-22T03:14:49.070321 | 2018-07-15T19:58:00 | 2018-07-15T19:58:00 | 319,333,029 | 0 | 0 | NOASSERTION | 2020-12-07T13:45:36 | 2020-12-07T13:45:36 | null | UTF-8 | Python | false | false | 1,930 | py | """
'location.py'
====================================
Example of sending GPS data points
to an Adafruit IO Feed using the API
Author(s): Brent Rubell, Todd Treece
"""
# Import standard python modules
import time
# Import Adafruit IO REST client.
from Adafruit_IO import Client, Feed, RequestError
# Set to your Adafr... | [
"robots199@me.com"
] | robots199@me.com |
43167f9749dfd64a1b65c4c7780c913464dc1586 | f211cc8b7129523fb466c67af7e5d06c60d5eb1c | /python/algorithms/warmup/a very big sum.py | 6dd91cf25d9da0e1a0dca886602330bb1c60c2f8 | [] | no_license | JayWelborn/HackerRank-problems | ebef5fe4c78eba12fa21ff6ff99be7d11b4345b4 | f9386ca970055a52824304aa55a7fd6e392efe26 | refs/heads/master | 2021-06-16T20:06:13.118415 | 2018-10-03T12:51:04 | 2018-10-03T12:51:04 | 96,048,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | n = int(input().strip())
ar = list(map(int, input().strip().split(' ')))
print(sum(ar))
| [
"jesse.welborn@gmail.com"
] | jesse.welborn@gmail.com |
afca54c190d92048b7f0dc6a287b5d5f3d152993 | c47d0e1a9e256a7cade218ccf4173c82183f67b4 | /codedining/urls.py | 8b35f409571998b5bec9e4657e0754f8a5e2def0 | [] | no_license | nagyistge/FoodDuk | 9e85c3e077a24ad8daa3e2f587bf40913d4eebcc | 2c89b2e99e3ec1d8833f422a4a9f1c372a350b5e | refs/heads/master | 2021-01-20T11:30:03.271597 | 2014-09-30T14:44:50 | 2014-09-30T14:44:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'codedining.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^', include('core.urls', namespace='core')),
url(r'^ad... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
d4dd0cc6c611da8ad78ddfa152f67b1c6c957144 | 7434ef0a0840da62c449b73a3810d11bcf300644 | /fms/migrations/0005_auto_20171019_1201.py | af961ed9df24aca650ddd579956428bce93c07ec | [] | no_license | webmalc/maxibooking-billing-django | 40f497dc794e0b29868a01b482b5865764b35fd3 | d5ca86c3701b86e359b0648a5b76b0b71faa7810 | refs/heads/master | 2022-12-17T21:50:42.210125 | 2019-08-14T09:33:02 | 2019-08-14T09:33:02 | 202,347,569 | 2 | 0 | null | 2022-12-09T22:25:58 | 2019-08-14T12:36:22 | Python | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-10-19 12:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fms', '0004_auto_20171019_1145'),
]
operations = [
migrations.AlterField(
... | [
"m@webmalc.pw"
] | m@webmalc.pw |
27b07d65edf49577d7ee69214610b12ac1107ae3 | dd1fa9020beb9b0205a5d05e0026ccae1556d14b | /gongmo/smote.py | b9cce4e206cdacd3f801b0f1984e2c4bf7a26b53 | [] | no_license | kimjieun6307/itwill | 5a10250b6c13e6be41290e37320b15681af9ad9a | 71e427bccd82af9f19a2a032f3a08ff3e1f5911d | refs/heads/master | 2022-11-13T11:55:12.502959 | 2020-07-15T08:14:21 | 2020-07-15T08:14:21 | 267,373,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,817 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 28 18:01:47 2020
@author: user
"""
# -*- coding: utf-8 -*-
"""
Created on Wed May 27 11:23:29 2020
@author: user
"""
#################
## plant_a_df.csv
#################
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model... | [
"kofj2000@gmail.com"
] | kofj2000@gmail.com |
e4a7ea7735a2385fa442e00ebb8e4cf93689e97b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_212/ch50_2020_04_12_18_47_48_906877.py | ced60abc8d98108d8be1a72830cb9967001ff5bf | [] | 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 | 177 | py | def junta_nome_sobrenome (a,b):
nomes=[]
i=0
while i< len(a):
junto=[a[i], b[i]]
nomes.append(junto)
i += 1
return nomes
| [
"you@example.com"
] | you@example.com |
f8551e4ac31de6d0d2cc5bd77cce8f2222ffd7f3 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_configuration.py | 3d2b5f478c605e719aca28c70de7f710418b88c2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 3,692 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
6ba35c246673106ae94ae50591a6cd0547b333af | 0178e6a705ee8aa6bb0b0a8512bf5184a9d00ded | /Sungjin/Math/n17626/17626.py | ce114cdc116413798b61bd317e01f0b80f045652 | [] | no_license | comojin1994/Algorithm_Study | 0379d513abf30e3f55d6a013e90329bfdfa5adcc | 965c97a9b858565c68ac029f852a1c2218369e0b | refs/heads/master | 2021-08-08T14:55:15.220412 | 2021-07-06T11:54:33 | 2021-07-06T11:54:33 | 206,978,984 | 0 | 1 | null | 2020-05-14T14:06:46 | 2019-09-07T14:23:31 | Python | UTF-8 | Python | false | false | 590 | py | import sys
input = sys.stdin.readline
if __name__ == '__main__':
n = int(input())
min_ = 4
for i in range(int(n**0.5), int((n//4)**0.5), -1):
if i*i ==n: min_ = 1; break
else:
temp = n - i*i
for j in range(int(temp**0.5), int((temp//3)**0.5), -1):
if ... | [
"comojin1994@gmail.com"
] | comojin1994@gmail.com |
a723e981b85752bf424cb2f10500a05148ebd07f | 76e931912629c37beedf7c9b112b53e7de5babd7 | /1-mouth01/day06/exe03.py | 2edcd5342b7f4bc8001dc0ad5d233dcae9b416ca | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | """在终端中打印香港的现有人数
在终端中打印上海的新增和现有人数
新疆新增人数增加 1
"""
hkinfo={"region":"hk","new":15,"now have":39,"total":4801,\
"cured":4320,"死亡":88}
shinfo={"region":"hk","new":6,"now have":61,"total":903,\
"cured":835,"死亡":7}
xjinfo={"region":"hk","new":0,"now have":49,"total":902,\
"cured":850,"死亡":... | [
"673248932@qq.com"
] | 673248932@qq.com |
2fa9bde1a5bb7a7c232b3647aeecd183a2c840f8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_299/ch39_2020_04_19_01_30_42_281299.py | 02bfb76937bd86b9878c58fa8cf5282fe1d1fcc3 | [] | 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 | 437 | py | m = 2
termomax = 1
numrespon = 1
termos_n_p_m = {}
while m<1001:
n = m
while n != 1:
termos = 1
if n%2 == 0:
n = n/2
termos += 1
else:
n = 3*n + 1
termos += 1
termos_n_p_m[m] = termos
m += 1
for num,termos in termos_n_p_m.items():
... | [
"you@example.com"
] | you@example.com |
6060e0d04713e19612bcae4d6aefb8ec0cc87fd5 | 0aa0f7c36cab7580a33383ff07a1f1434811ea96 | /gzbj/optimus_2.1/optimus/backend/myBluePrint/ericic_v2/base_dao/cpu_layout_dao.py | b2ee6d955f879b4e41400b5a7e03ef4d36c1ebbc | [] | no_license | yanliangchen/ware_house | a1146b23e76bce39be67e9d65a240270e0f08c10 | 44780726924f9a398fb6197645b04cdcfb0305e7 | refs/heads/main | 2023-06-15T13:52:45.890814 | 2021-07-20T10:09:22 | 2021-07-20T10:09:22 | 387,731,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : cpu_layout_dao.py
# @Author: gaofzhan
# @Email: gaofeng.a.zhang@ericssoin.com
# @Date : 2020/12/21 11:04
# @Desc :
from sqlalchemy import and_
from backend.Model.connection import SESSION
from backend.myBluePrint.ericic_v2.model.nova_service_table import NovaS... | [
"yanliang.li@ericsson.com"
] | yanliang.li@ericsson.com |
a2b0931d4d13460355caaeefdee16c122ece5713 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/scaleform/daapi/view/metaretraincrewwindowmeta.py | 6fbc9747b2f0ba83a498c613a60f73314c7e2603 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/RetrainCrewWindowMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class RetrainCrewWindowMeta(AbstractWindowView):
"""
DO NOT MODIFY!
Generated with yaml.
__author__ = 'yaml_processor'
... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
b0586cf5ec5ec204813d6e8f17ba8d4d356447cc | 314d628f165973451977f31e3860d015af00b4de | /dictionary/BaseSearcher.py | b1384d90228eae3dd638e19df05ad6f53ef08ef5 | [] | no_license | michaelliu03/py-seg | c76a2788ea1dbbf415825bb094cc0776d1873ea4 | 0230e32f0c066ad329a7e972166a61a7a7979569 | refs/heads/master | 2020-06-20T01:45:53.060309 | 2019-08-29T00:14:03 | 2019-08-29T00:14:03 | 196,948,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
# @File:Segment.py
# @Author: Michael.liu
# @Date:2019/2/12
# @Desc: NLP Segmentation ToolKit - Hanlp Python Version
from abc import ABCMeta,abstractmethod
class BaseSearcher(object):
def __init__(self):
# 待分词文本的char
self.c = []
# 指向当前处理字串的开始位置(前... | [
"liuyu5@liepin.com"
] | liuyu5@liepin.com |
a167fe9589155c1ba39e2ee2c0e267543a62272a | 5d4f50e3b2e4043af8e625d5eb68c318612b0e1e | /79. Word Search.py | 01acb65b957fecb1c952176897c925d49edd02e5 | [] | no_license | Iansdfg/Leetcode2ndTime | 86b77204915286c66a3e2d95036f2577f1c85665 | 483ef12002a5b12bd5df6586a2133ed2bb7ae7e8 | refs/heads/master | 2020-06-04T17:39:57.137246 | 2019-08-01T04:44:52 | 2019-08-01T04:44:52 | 192,127,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | class Solution(object):
def exist(self, board, word):
"""
:type board: List[List[str]]
:type word: str
:rtype: bool
"""
for i in range(len(board)):
for j in range(len(board[0])):
if self.findNext(i,j, board, word):return True
return... | [
"noreply@github.com"
] | Iansdfg.noreply@github.com |
9d7f2e04641bfbd7f08ff5845fc6ef11252821f2 | bf25182c7288ed020d323635619d801f6544a196 | /GreatestExampleusingelif.py | a7ef9658c068c1775f0e151f1f063eb417528e5f | [] | no_license | shivaconceptsolution/pythononlineclass | d84c19f9730e29738f788099a72c1b0bdf0f2f30 | 03b6b729140450c0ea5f6849b2882334b1f8546b | refs/heads/master | 2020-05-23T22:21:44.122672 | 2019-06-01T07:38:26 | 2019-06-01T07:38:26 | 186,972,067 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | a= int(input("enter first number")) #5
b= int(input("enter second number")) #7
c= int(input("enter third number")) #19
d = int(input("enter fourth number")) #45
if a>b and a>c and a>d:
print("a")
elif b>c and b>d:
print("b")
elif c>d:
print("c")
else:
print("d")
| [
"noreply@github.com"
] | shivaconceptsolution.noreply@github.com |
e7988e0c5bd222216752a575b4d3569b990cdd64 | 4e926970702605867b6c57635de09944d1edd7ef | /settings.py | dc8d4e7809aa0b6d435393fc69d2fd80244c6c47 | [] | no_license | kod3r/djangopatterns.com | 79bc4eb7892926e225a73639797c676eb5fd3918 | e05e47668ec15aeb2e3781598f86dd27714af5af | refs/heads/master | 2021-01-24T04:29:31.637764 | 2011-08-13T00:46:22 | 2011-08-13T00:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,203 | py | # Django settings for project project.
import calloway
import os
import sys
CALLOWAY_ROOT = os.path.abspath(os.path.dirname(calloway.__file__))
sys.path.insert(0, os.path.join(CALLOWAY_ROOT, 'apps'))
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(PROJECT_ROOT, 'apps'))
sys.p... | [
"coordt@washingtontimes.com"
] | coordt@washingtontimes.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.