blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
0d70597a3e1e5aa9ede7e9ed20bf4a097cdb0533
d31d744f62c09cb298022f42bcaf9de03ad9791c
/agents/tf_agents/bandits/agents/examples/v2/trainer_test_utils.py
31543bd77092f257969f05ada71dd3eff5af5235
[]
no_license
yuhuofei/TensorFlow-1
b2085cb5c061aefe97e2e8f324b01d7d8e3f04a0
36eb6994d36674604973a06159e73187087f51c6
refs/heads/master
2023-02-22T13:57:28.886086
2021-01-26T14:18:18
2021-01-26T14:18:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,478
py
# coding=utf-8 # Copyright 2018 The TF-Agents 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 applicable law...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
a794fb21c5c9e64d1f6111c9be47e0a8c47e3ad3
18aee5d93a63eab684fe69e3aa0abd1372dd5d08
/python/paddle/nn/initializer/orthogonal.py
65a496f2b10696ddcff15618c5b9cb41269e72e8
[ "Apache-2.0" ]
permissive
Shixiaowei02/Paddle
8d049f4f29e281de2fb1ffcd143997c88078eadb
3d4d995f26c48f7792b325806ec3d110fc59f6fc
refs/heads/develop
2023-06-26T06:25:48.074273
2023-06-14T06:40:21
2023-06-14T06:40:21
174,320,213
2
1
Apache-2.0
2022-12-28T05:14:30
2019-03-07T10:09:34
C++
UTF-8
Python
false
false
7,555
py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
Shixiaowei02.noreply@github.com
53f421f446df6d264b937dfa143ff83256f7c320
be134c181703b95aca1e48b6a31bcfdb7bcfcc76
/site/thicc/core/custom_social_pipelines.py
49989fcc8505e603b0db0c2d9141abf5af8e5cb2
[]
permissive
aldenjenkins/ThiccGaming
0245955a797394bcfeedb2cfb385f633653ba55d
4790d2568b019438d1569d0fe4e9f9aba008b737
refs/heads/master
2022-12-16T02:43:36.532981
2021-11-17T04:15:21
2021-11-17T04:15:21
154,858,818
0
0
BSD-3-Clause
2022-12-08T02:58:44
2018-10-26T15:52:39
Python
UTF-8
Python
false
false
7,919
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.contrib import messages from django.utils.translation import ugettext as _ from social_django.utils import psa, load_strategy from django.shortcuts import render from social_core.pipeline.partial import partial ...
[ "alden@aldenjenkins.com" ]
alden@aldenjenkins.com
59be1e723cfa4268e42630e68cc655965421cfd1
5b28005b6ee600e6eeca2fc7c57c346e23da285f
/nomadic_recording_lib/web/django_apps/ticket_tracker/email_backends/base.py
6cd66440a3d8db2aa1aecd5bc996db5e48145ebf
[]
no_license
nocarryr/wowza_logparse
c31d2db7ad854c6b0d13495a0ede5f406c2fce3f
d6daa5bf58bae1db48ac30031a845bf975c7d5cc
refs/heads/master
2021-01-17T07:19:00.347206
2017-06-24T16:57:32
2017-06-24T16:57:32
25,835,704
1
0
null
null
null
null
UTF-8
Python
false
false
3,920
py
import email import datetime import pytz class EmailMessage(object): attr_list = ['message_id', 'thread_id', 'sender', 'recipients', 'subject', 'body', 'datetime_utc'] def __init__(self, **kwargs): self.backend = kwargs.get('backend') self._message = kwargs.get('_message') ...
[ "matt@nomadic-recording.com" ]
matt@nomadic-recording.com
9cbffdbf9fa733ac72bbed9e379081096ffdb5ec
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/common/Lib/UserList.py
81b89bc27f05872dcb53adf082584096124afbfc
[]
no_license
webiumsk/WOT-0.9.17.1-CT
736666d53cbd0da6745b970e90a8bac6ea80813d
d7c3cf340ae40318933e7205bf9a17c7e53bac52
refs/heads/master
2021-01-09T06:00:33.898009
2017-02-03T21:40:17
2017-02-03T21:40:17
80,870,824
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,136
py
# 2017.02.03 21:57:10 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/UserList.py """A more or less complete user-defined wrapper around list objects.""" import collections class UserList(collections.MutableSequence): def __init__(self, initlist = None): self.data = [] if initl...
[ "info@webium.sk" ]
info@webium.sk
c66de86836884031fabb9c8c8131cd6b42853e7d
ec67377e074920baceefd750866ff288f58b6ffe
/day14/except2.py
478dae9387de843d4b663df753416dbc3fccef0f
[]
no_license
karl-tao-zhang/pbase
27beb82f060edbbda7cbfc30f35d9d4a75be3fc0
7e0c719591768cb197d3fe72f706f0beba390fad
refs/heads/master
2020-04-13T02:07:57.909554
2018-12-23T14:29:28
2018-12-23T14:29:28
162,894,231
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
def f1(): print("开始盖房子打地基...") raise ValueError("挖出文物") print("地基完工") def f2(): print("开始盖房子地面以上的部分") raise ZeroDivisionError("要建高压线") print("房子完工") def f3(): """第二承包商找人干活""" f1() f2() def build_house(): f3() try: build_house() except ValueError as err: print("房子没盖成,...
[ "noreply@github.com" ]
karl-tao-zhang.noreply@github.com
836ca507999baa3ca17f2f34981fde32a39f25a0
4a3734e902d7367260baa9e2cf2f944da6f655d1
/ch04/ex4-27.py
96a9112e6cc79ad0395aefd55f859e43e2e7280d
[]
no_license
freebz/Learning-Spark
651bd114ad48da6964deac2e3f0dcf24fbb0a31d
758ece443c922618804d882584b9f59ac8cfba8c
refs/heads/master
2020-12-13T13:10:02.412038
2020-01-16T22:49:27
2020-01-16T22:49:27
234,427,059
1
0
null
null
null
null
UTF-8
Python
false
false
204
py
# 예제 4-27 파이썬 사용자 지정 파티셔너 import urlparse def hash_domain(url): return hash(urlparse.urlparse(url).netloc) rdd.partitionBy(20, hash_domain) # 파티션을 20개 만든다
[ "freebz@hananet.net" ]
freebz@hananet.net
4e2b13a239c9c3d7f4b94a4ba0f63cef8689ed18
afafaa82a058a3ac1d3721039a11e587278bc80b
/findSurf.py
efd15da1a8d57e275dd662ed608e970515497183
[ "BSD-3-Clause" ]
permissive
tonymcdaniel/sfepy
24ec0b84bd0ee94ac3935ce01a25db5e6574110a
b7a70547515c6b0faf642dcc127841b782a51200
refs/heads/master
2021-01-15T20:13:28.735206
2012-07-23T14:33:32
2012-07-23T15:17:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,830
py
#!/usr/bin/env python # 05.10.2005, c """ Given a mesh file, this script extracts its surface and prints it to stdout in form of a list where each row is [group, element, face, component]. A component corresponds to a contiguous surface region - for example, a cubical mesh with a spherical hole has two surface componen...
[ "cimrman3@ntc.zcu.cz" ]
cimrman3@ntc.zcu.cz
1f17853b379a037d8e07471b4700779526c74d92
e317d5b27ed2ab8a846da76d2b8ae3809169d1a8
/tests/test_escapers.py
ec6c34f986b3ef90e00a7225abaf4874a5c2d84f
[ "MIT" ]
permissive
Bystroushaak/pyDHTMLParser
6dd104a471a178f781c44357686bcf2d9b575714
b4538fa3f652fc61147b5d8ee16593a7c04ea0d7
refs/heads/master
2022-11-06T14:33:39.913728
2022-10-21T17:29:02
2022-10-21T17:29:02
3,611,754
4
2
MIT
2020-04-12T21:05:49
2012-03-03T16:10:35
Python
UTF-8
Python
false
false
842
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== from dhtmlparser.quoter import escape, unescape # Functions & objects ========================================================= def test_unescape(): ...
[ "bystrousak@kitakitsune.org" ]
bystrousak@kitakitsune.org
7a5073aaade21e8cc06261aa723e45d2f85dedf0
5f004b8a3f31ed75c9128dce65d49c5cf3a4be6a
/___backup_umasopasta/head_split_up_line.py
35178fc676d13959e041abad80de52df4eb1d24c
[]
no_license
JohnWRRC/BioDIM_separated_functions
7debc2ea29727680fff8686a9ee08b6d5a06e730
6b14616d5261672f3e207038ce8134bc6afa8695
refs/heads/master
2021-01-10T16:36:49.652913
2016-03-23T17:42:44
2016-03-23T17:42:44
51,796,616
1
0
null
2016-02-16T20:47:28
2016-02-16T00:46:28
Python
UTF-8
Python
false
false
138
py
def head_split_up_line(line): line = line.split(' ') clean_line={} clean_line[line[0]]=line[len(line)-1] return clean_line
[ "jw.ribeiro.rc@gmail.com" ]
jw.ribeiro.rc@gmail.com
b83fcfd86a9cdf3d22dd11c5c927e3fd03fdbcfe
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/tutorial/control/chains/context.py
e355ad42ee2e6ff1743992c424a5504b9037e9ea
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
496
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/tutorial/control/chains/context.py from tutorial.control import context, game_vars from tutorial.control.lobby.context import LobbyBonusesRequester class ChainsStartReqs(context.StartReqs): def prepare(self, ctx): ctx....
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
33a9c8e82388e8ea233b0790378cdb2407829dd9
2d67afd40a0425c843aa8643df9f7d5653ad0369
/python/leetcode/1272_Remove_Interval.py
67d0fd5731335afe0fbef450c91840f07bd862cb
[]
no_license
bobcaoge/my-code
2f4ff5e276bb6e657f5a63108407ebfbb11fbf64
70bdd75b6af2e1811c1beab22050c01d28d7373e
refs/heads/master
2022-12-23T22:38:10.003058
2020-07-02T03:52:43
2020-07-02T03:52:43
248,733,053
0
0
null
2022-12-10T05:41:57
2020-03-20T10:55:55
Python
UTF-8
Python
false
false
1,125
py
# /usr/bin/python3.6 # -*- coding:utf-8 -*- class Solution(object): def removeInterval(self, intervals, toBeRemoved): """ :type intervals: List[List[int]] :type toBeRemoved: List[int] :rtype: List[List[int]] """ ret = [] x, y = toBeRemoved for interv...
[ "378082326@qq.com" ]
378082326@qq.com
bee3e64f87389a51aa177143f26b30f56a5a654c
fff26da96c4b324cdbc0315c3fdf1fe2ccbf6bf0
/.history/test_celegans_weighted_20210615143336.py
21de8234523f5f5185bbaa6fe57159527724119d
[]
no_license
izzortsi/spreading-activation-networks
ebcd38477a4d4c6139a82b0dd7da3d79a0e3f741
f2cf0bf519af746f148fa7a4ea4d78d16ba6af87
refs/heads/dev
2023-06-28T03:49:34.265268
2021-06-15T18:07:51
2021-06-15T18:07:51
376,718,907
0
0
null
2021-06-15T18:07:51
2021-06-14T06:01:52
Python
UTF-8
Python
false
false
4,160
py
# %% import graph_tool.all as gt import numpy as np import numpy.random as npr # import matplotlib.colors as mplc from matplotlib import cm import matplotlib.colors as mplc import os, sys from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib from plot_functions import * """ TODO The sinks (non-isolated vertices...
[ "istrozzi@matematica.ufrj.br" ]
istrozzi@matematica.ufrj.br
7d743b486220272c6ef8798b94bc5b4dd2bca8f5
34745a8d54fa7e3d9e4237415eb52e507508ad79
/Python_Advanced/01_Lists_as_Stacks_and_Queues/Exercise/05_truck_tour.py
76c4d1f67687b9792ff2f494bdbde6cefcbc77ae
[]
no_license
DilyanTsenkov/SoftUni-Software-Engineering
50476af0dc88b267d72c56fa87eeb88d841164b2
fe446e3a50a00bb2e48d71ab8f783e0a4a406094
refs/heads/main
2023-08-12T18:18:42.144210
2021-09-25T11:10:38
2021-09-25T11:10:38
317,235,419
1
2
null
null
null
null
UTF-8
Python
false
false
1,103
py
from collections import deque stations = int(input()) petrol_queue = deque() distance_queue = deque() for _ in range(stations): petrol, distance = (int(x) for x in input().split()) petrol_queue.append(petrol) distance_queue.append(distance) counter_one = 0 counter_two = 0 while counter_t...
[ "noreply@github.com" ]
DilyanTsenkov.noreply@github.com
f5adf9d6bc345d846089ad3f4c2e2437bfbb76c5
fd3c67a0eb7b525c82176298c17f612b3d690934
/control/tests/test_response_file_upload.py
8dd44237b1e552e68b9206997370b221f1bac20d
[ "MIT" ]
permissive
betagouv/e-controle
1dc1af01437c9b8d31535b4f589c58f52c1bb353
f35012aa266459b708f7a88032041d45c251a04a
refs/heads/develop
2023-01-13T01:10:52.153777
2021-11-04T10:37:45
2021-11-04T10:37:45
157,193,082
9
10
MIT
2023-01-03T19:33:28
2018-11-12T10:03:43
CSS
UTF-8
Python
false
false
7,325
py
from pytest import mark from django.shortcuts import reverse from django.test import override_settings from control.models import ResponseFile from tests import factories, utils from user_profiles.models import UserProfile pytestmark = mark.django_db def test_audited_can_upload_question_file(client): audited ...
[ "sylvain@lazybird.co" ]
sylvain@lazybird.co
b9ff6a9fe9d11679969be63e05c8b1893ac24dfd
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/kusto/v20200614/get_cluster_principal_assignment.py
18bd94028e64a226b2367a7c8212345fda8699fc
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
7,042
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
[ "noreply@github.com" ]
morrell.noreply@github.com
769cf4783e9071102ec62800b98718005da51502
36d2aad0f0d3eab0d7e10c0c260b48fbd9e211ac
/pyndlsearch/client.py
32bc06ca5951b277c20e7af0ae93b57218651949
[ "Python-2.0", "MIT" ]
permissive
shinchu/pyndlsearch
11bf9d879ad38933a6612e6d32aab8330b3686aa
e8730de01fd939e8113b37458202e92e01584df2
refs/heads/master
2022-03-19T12:33:39.852364
2019-12-14T21:17:47
2019-12-14T21:17:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
# -*- coding: utf-8 -*- """ Main NDL Search client. """ from abc import abstractmethod from abc import ABCMeta from .api.sru import SRUApi class AbstractClient(metaclass=ABCMeta): @abstractmethod def __init__(self, query): self.api = None self.query = query @abstractmethod def get_r...
[ "noconoco.lib@gmail.com" ]
noconoco.lib@gmail.com
d32f454909724b968b79289f2da1a77c013c87ce
317e68dc7045390f41b10b8aa35d593f93c507d5
/facerecognition_client/api/__init__.py
86e51089b7bc396cd578e8e5a6919c660ac84bcf
[]
no_license
daletcoreil/facerecognition-client-python-sdk
e3302b00c4309790db6aad6f111cc86f09152c4a
50934b0ec247a4005e84652e10f679d3a7652dfb
refs/heads/master
2021-04-23T08:45:44.475121
2020-07-22T12:57:56
2020-07-22T12:57:56
249,914,273
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
from __future__ import absolute_import # flake8: noqa # import apis into api package from facerecognition_client.api.auth_api import AuthApi from facerecognition_client.api.face_recognition_api import FaceRecognitionApi from facerecognition_client.api.job_types_api import JobTypesApi from facerecognition_client.api.j...
[ "daletcoreil@gmail.com" ]
daletcoreil@gmail.com
50f6d727316113ab203fee3e2d5ccbac78535833
2627881c5c58fb5f58c2a13ceb2600206bc7cf14
/TestSuite/Development/MainTests/Adds/DBAddUserTest.py
49c7eb3f60beceb3ca95043f32f1cf1767ba487b
[]
no_license
cnxtech/ProjectExchange
f430b613cc84144ae69f5a8c3e7b753bdab068ca
e2591bcdd834c708a0f585ab7ef48c4ac67c68a9
refs/heads/master
2023-08-03T16:31:13.343854
2016-12-21T21:36:48
2016-12-21T21:36:48
185,272,433
0
0
null
2023-08-28T17:18:10
2019-05-06T21:10:09
CSS
UTF-8
Python
false
false
1,318
py
#------------------------------------------------------------------------------- # Name: DBAddUserTest # Version: 2.0 # Purpose: Load and Remote Testing for DBAddUser # # Author: Matthew # # Created: 07/16/2014 # Copyright: (c) Matthew 2014 # Licence: <your licence> # Modified: 08/12/20...
[ "matthewrastovac@yahoo.com" ]
matthewrastovac@yahoo.com
d9c1940bb2ad30606a37ee166ad2767977255ffe
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/T/tilgovi/sf-social-services.py
22258e1e2a1e1c1751b6aceecba53e923dbb1b98
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,562
py
from itertools import count, imap from lxml import html from re import search from scraperwiki import scrape from scraperwiki.sqlite import save def cleanup(text): return ' '.join(text.split()) #cleanup nbsp or some junk class DistrictServices(object): BASE_URI = 'http://www.sanfrancisco.com/social-services/b...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
faa759a5b226b90a423c72cbdbe0070add46f41d
94aae96582e4d9c5971f150f1bf859608edefbe7
/lib/util/db_pool.py
559a41ca18230bad8bf896f864697a5118f8c13c
[]
no_license
dragonflylxp/cbweb
fa88c82ec23f22f6b2ba79b357414c6dbcc9e4a3
6e7c4dffae181e133b28b4c3f4e4bd403fbfac15
refs/heads/master
2022-12-09T21:56:27.686874
2020-06-19T02:13:14
2020-06-19T02:13:14
138,973,784
2
0
null
2022-12-08T00:58:46
2018-06-28T06:07:33
Python
UTF-8
Python
false
false
2,650
py
# coding: utf-8 import redis import memcache import ujson from pymongo import * from util.connection import PoolManager configs = {} config_cache = True def set_up(confs): """设置默认(连接)参数 """ configs.update(confs) global config_cache config_cache = True if confs.get("use_cache", 1) == 1 else False ...
[ "noreply@github.com" ]
dragonflylxp.noreply@github.com
2c2ac50d2a13b8662d4b62247244ae4de13c9bbf
6c174c0cbff5f3403d8034a13c2b8cefff2dd364
/dfttapptest/project_two/project_two/spiders/topnews.py
858a8acdefc674376bb274425b66de7eb0eb68eb
[]
no_license
xiaominwanglast/uiautomator
0416e217538527c02e544e559b2d996554b10b20
7ce47cda6ac03b7eb707929dd2e0428132ff255f
refs/heads/master
2021-09-12T12:37:54.286397
2018-04-16T10:03:57
2018-04-16T10:03:57
106,253,765
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
#coding:utf-8 from scrapy.http import Request import time from scrapy.spiders import CrawlSpider,Rule from scrapy.linkextractors import LinkExtractor class TopNews(CrawlSpider): name='topnews' allowed_domains=['163.com'] start_urls=['http://news.163.com/rank/'] now_time=time.strftime('%m%d',time.localti...
[ "2274052689@qq.com" ]
2274052689@qq.com
58021702e3ac1b4518c146345a6b0a2dcbd76f8d
783ec4d842cf7a9bc537783f02f74869458b1f26
/1-100/005_最长回文子串.py
c7a204ab58b7b268f7ce75f1e7607ea218bef5cb
[]
no_license
ZhiyuSun/leetcode-practice
ba676fec5b9906ee6e3e4c52883f36992c03544d
79d4e3946309f6e37e18c1958243d63faf99861c
refs/heads/master
2021-08-06T01:51:58.884707
2021-07-07T02:38:00
2021-07-07T02:38:00
220,183,174
6
0
null
null
null
null
UTF-8
Python
false
false
4,224
py
""" 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。 示例 1: 输入: "babad" 输出: "bab" 注意: "aba" 也是一个有效答案。 示例 2: 输入: "cbbd" 输出: "bb" """ class Solution: def longestPalindrome(self, s: str) -> str: n = len(s) dp = [[False] * n for _ in range(n)] ans = "" for l in range(n): for i...
[ "zcgyxlgy@sina.com" ]
zcgyxlgy@sina.com
a495a3cf99e6b579ca277649b562b70f89d47cf0
690a32e866f82ca27929b2462a15060d876ab53a
/finmarketpy/economics/quickchart.py
76f4537b10dc6b0b30de987242247f2e6c214044
[ "Apache-2.0" ]
permissive
scanfyu/finmarketpy
8d3408a3cfad63f57a3f49cf52ef42127a323ed5
47037a1fa71e88ae4c4cf3678503495dd7c18e95
refs/heads/master
2022-12-31T15:52:58.809014
2020-10-20T09:24:31
2020-10-20T09:24:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,906
py
__author__ = 'saeedamen' # Saeed Amen / saeed@thalesians.com # # Copyright 2020 Cuemacro # # 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 ...
[ "saeedamen@hotmail.com" ]
saeedamen@hotmail.com
1f8dad9a59c5494c7213cfa88a70982ce2695da0
5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8
/buildout-cache/eggs/plone.app.theming-1.1.7-py2.7.egg/plone/app/theming/browser/help.py
282cf7957f801642ff2b99b843f8e5ef74c8fc97
[]
no_license
renansfs/Plone_SP
27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a
8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5
refs/heads/master
2021-01-15T15:32:43.138965
2016-08-24T15:30:19
2016-08-24T15:30:19
65,313,812
0
3
null
null
null
null
UTF-8
Python
false
false
390
py
import pkg_resources from zope.publisher.browser import BrowserView import docutils.core class Help(BrowserView): def __call__(self): rstSource = pkg_resources.resource_string('plone.app.theming.browser', 'resources/userguide.rst') parts = docutils.core.publish_parts(source=rstSource, writer_name...
[ "renansfs@gmail.com" ]
renansfs@gmail.com
4c238310fef86624c32c990c33eb1ca0a83a7eaa
966ed873057586e98a93a371f7d6ebb45e55107f
/miscellaneous/zero-sum-subarray/main.py
0dd7d70d42f1c5bca7450d6b0855d0a062d825c0
[]
no_license
DaleLaw/AlgoDaily
03b2eec7cff7c6c0ff3b0abb96bca0b7c0a6b0ab
07f59e59c6ea1e4be093baa784a539f491de3d81
refs/heads/master
2020-04-30T10:41:54.893080
2019-03-20T16:12:28
2019-03-20T16:12:28
176,783,506
0
0
null
2019-03-20T17:24:05
2019-03-20T17:24:04
null
UTF-8
Python
false
false
1,751
py
""" Given an array, find the subarrays whose elements sum to zero """ class Solution(object): def subarraySum(self, nums, k): """ :type nums: List[int] :type k: int <- i made it generic that you to target any other numbers as well :rtype: [[]] https://www.youtube.com/w...
[ "chan9118kin@gmail.com" ]
chan9118kin@gmail.com
7cbb59be7e1a6670d66e5c7b8da150264fb1a09e
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations_async/_operations_async.py
2349bb89d67c59ec935dffd5a5259bd465eb38cd
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
4,471
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" ]
YijunXieMS.noreply@github.com
f8c9c6830ec593312075191a04e1078fcd08884b
4e3d42de8bfe8daac766e6ca6b1b2f787af7152f
/backbone/__init__.py
3c3a3fb1b2b25157b641932fc1c5b5dd6683c6bb
[]
no_license
bniss/yolov2-yolov3_PyTorch
87c4ebbe70398168b483fefe06dcdc22b7465b65
dd3e06c42a6ab7c45b357b0a470f06493e41c4c6
refs/heads/master
2023-04-21T02:44:25.079211
2021-05-08T06:48:58
2021-05-08T06:48:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
from .darknet import darknet19, darknet53, darknet_tiny, darknet_light from .cspdarknet import cspdarknet53 from .resnet import resnet18, resnet34, resnet50, resnet101, resnet152 from .resnext import resnext50_32x4d, resnext101_32x8d
[ "1394571815@qq.com" ]
1394571815@qq.com
8cf1b83ad5ac16975bd7777f37a445afd5df55ec
d4a4e71f2e4070317b89573aaa13692629c5e0b8
/testing/wait_for_deployment.py
b4dba8a44613d1df6fdad6776784997891f5333b
[ "Apache-2.0" ]
permissive
jinchihe/kubeflow
24acc4d0935ec724194a8f427a90dab86389802e
8706753b125516013a6300fabc5d5da5f35a0764
refs/heads/master
2021-07-08T00:53:00.467943
2019-01-09T06:59:11
2019-01-09T06:59:11
159,997,854
1
1
Apache-2.0
2019-01-09T06:59:12
2018-12-01T23:51:10
Python
UTF-8
Python
false
false
2,680
py
#!/usr/bin/env python # Copyright 2018 The Kubeflow Authors All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
c826aaaca2070e8989f462c4dba380b12d8e07e3
6f2d5600b65b062151bab88c592796b878de7465
/Week_3/Class_0226/Function_1_String.py
bcfddc118d3563d4e87f0a5b78dc1e6bbeddf39c
[]
no_license
zhouyanmeng/python_api_test
1e6549321c20ee9a71beffac2533c917b5ecc157
7303352c9b5baacba5296b088f89ba4c702fb485
refs/heads/master
2022-12-17T14:34:26.351566
2019-03-01T13:02:06
2019-03-01T13:02:06
185,185,856
0
0
null
2022-12-08T01:45:15
2019-05-06T11:45:55
Python
UTF-8
Python
false
false
1,084
py
####字符串的内置函数 s='pytHonyy' # s.lower()##小写 # s.maketrans()##翻译函数 # s.join('a') ####replace 替换 ###3个参数:第一个参数是目标字符串,第二个是替换的字符串,最后显示什么,第二个是替换次数,默认是全部替换 ###替换次数不限制,超过存在的字符就是全部替换,不报错 # res=s.replace('y','@') # print(res) # # res=s.replace('y','@',2)##替换次数 # print(res) ####split切割 返回一个列表,列表里面是字符串类型 #第一个参数,根据指定的字符串进行切割,第二个...
[ "2440269710@qq.com" ]
2440269710@qq.com
4c42861767a21a4e0548894cd9d8dd7775846ecb
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_112/ch35_2020_05_20_18_12_31_146893.py
c25a2616c1de358383f761ad4ea6399e5b60ee0c
[]
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
139
py
total = 0 n = int(input('número: ')) while n != 0: n = int(input('número: ')) total = total + n if n == 0: print(total)
[ "you@example.com" ]
you@example.com
abfdeaa8a7f34f81c15914b637ff3cfd40eae2b2
a1abe785fd14a2bbc2dfeb42a5e9f4ed0787d8a8
/unsupervised_learning/0x02-hmm/4-viterbi.py
95bd03ec1f63867c63845cd42fad3ba9346ec7da
[]
no_license
yasmineholb/holbertonschool-machine_learning
08da10c3bb09da0bb5e7382b1724f4e46481e86b
9dbf8221d4eb22dbc2487cb55e84a801a38aa5c8
refs/heads/master
2023-08-23T16:16:35.065411
2021-09-24T08:26:03
2021-09-24T08:26:03
279,395,597
0
3
null
null
null
null
UTF-8
Python
false
false
230
py
#!/usr/bin/env python3 """ viterbi """ import numpy as np def viterbi(Observation, Emission, Transition, Initial): """ Function that calculates the most likely sequence of hidden states for a hidden markov model """
[ "1055@holbertonschool.com" ]
1055@holbertonschool.com
76275c592196da8fce9704b73a8f487f1f55b707
c7451f8cbabb1a133b3ca47312e3dfbd4c5e0340
/hooks/random_from_directory.py
f8182e57f7f1dd4d56d1efe73d29191e38279a10
[ "MIT" ]
permissive
operatorequals/wormnest
34a1b7b97ab281f75e07f93140781611fb7e151c
2dfe96fc2570586ac487b399ac20d41b3c114861
refs/heads/master
2022-05-03T04:50:18.050759
2022-04-29T08:37:58
2022-04-29T08:37:58
151,498,466
23
8
MIT
2022-04-29T08:37:59
2018-10-04T00:26:54
Python
UTF-8
Python
false
false
742
py
""" This hook serves a random file in an existing directory. The 'path' when using the /add endpoint has to point to that directory. Useful when you don't want to spread the same malware, but generating on request is takes time. Just pre-generate a bunch of executables, HTAs, whatevers and put them in the folder """ ...
[ "john.torakis@gmail.com" ]
john.torakis@gmail.com
5d8b1391c413d7ec98adc64f2934605ad190114c
cb9e1a31a420194ae7466aa15690a449fcb6f90d
/setup.py
4344b81232a74fcc852fa528b460ef465572cc3b
[ "MIT" ]
permissive
QAlgebra/qalgebra
e9fea9c074241918fca8a04bfdf8be896f02f411
e7641ef77a2433caf2f587df27235800b894b631
refs/heads/master
2022-02-04T01:36:49.179221
2021-05-26T21:08:53
2021-05-26T21:23:03
238,749,849
2
0
MIT
2022-01-13T10:29:33
2020-02-06T17:54:13
Python
UTF-8
Python
false
false
2,759
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" import sys from setuptools import find_packages, setup def get_version(filename): """Extract the package version.""" with open(filename, encoding='utf8') as in_fh: for line in in_fh: if line.startswith('__version__'): ...
[ "goerz@stanford.edu" ]
goerz@stanford.edu
3f2695e621180d78f7f0e53d0982daa3125e1897
990e5bf04f809760534014a433ada23fa57f313a
/example02_templates/app.py
19757c666031133c0f56ebd584a8c1cd4d60d9fe
[]
no_license
dexter2206/flask-sda-classes2
f5546bb670810e90bcbff492f4204c065e5a3e0a
8b08062a25f248da5c21b6d2f6a5c07dbd58ada7
refs/heads/master
2021-01-01T00:10:36.627822
2020-02-08T08:17:29
2020-02-08T08:17:29
239,092,251
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
from flask import Flask, render_template app = Flask(__name__) class User: def __init__(self, name, email): self.name = name self.email = email @app.route("/hello") def hello(): return render_template("hello.html", title="My Awesome Page", username="Konrad") @app.route("/user") def user(...
[ "dexter2206@gmail.com" ]
dexter2206@gmail.com
6ce4ae4b772f6f3f3eae0db1bfe60827231fa742
1f74b8a427e01054db15c38d9dc4d2f7bf42e2c6
/common/BitUtils.py
a26eac33ed32beef74ae645f74a69664356b00c9
[]
no_license
AsteriskAmpersand/MHST2-MRL
d5fb289dc82c706b8d19a85e1942a28aa37ebb94
f9a0ec0005f787b2f1ee1cdd5c4cb6d4834a855c
refs/heads/main
2023-08-11T22:02:26.181325
2021-09-25T13:51:52
2021-09-25T13:51:52
398,756,808
0
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
# -*- coding: utf-8 -*- """ Created on Thu Jul 29 17:36:29 2021 @author: Stracker """ import struct def structread(io, format): return list(struct.unpack(format, io.read(struct.calcsize(format)))) class QuantizedVals: def __init__(self, array, bit_per_elem = 8): self.array = [int(x) for x in array] ...
[ "a20122661@pucp.pe" ]
a20122661@pucp.pe
cca5ebc3b634a2d6608c87179d10569ce9bb4b76
ab672d81d00e67546add42ea81e444a5b13bac52
/python_modules/image_files.py
35eb11ec19e41522f8b39ad339c8c9fee95e26b7
[]
no_license
davenquinn/little-ambergris
397f0bbb1a8e95ca4ad525a89133276ead9a1926
9141c5731459f93dedef77f7d3b17b817dfe5cfb
refs/heads/master
2021-07-13T15:42:08.371364
2017-07-05T19:55:04
2017-07-05T19:55:04
76,106,197
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
from pathlib import Path from os import getenv project = Path(getenv('PROJECT_DIR')) datadir = project/'remote-data' DEM = datadir/"drone-dem-07-Mar-2017/drone-dem/AmbergrisDEM_UTM19N.tif"
[ "dev@davenquinn.com" ]
dev@davenquinn.com
5f7252b8ad5eed9e7fefc7fb45efa6267e1ca710
096b5937cab04037afe484aa11282e7cd7854a2a
/components/ally-core-http/__setup__/ally_core_http/processor_error.py
e2b113c3d3e61eaca36e4a1dc21138437c70dd04
[]
no_license
bonomali/Ally-Py
375bd2fd95c461cdc12f093d83a406ee2ea6d228
a10cb774c8cbc5010950eed9342413846734fea7
refs/heads/master
2020-04-29T16:39:35.939971
2016-06-10T11:06:03
2016-06-10T11:06:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
''' Created on Feb 7, 2013 @package: ally core http @copyright: 2011 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the processors used in presenting REST errors. ''' from ..ally_core.processor import renderer from ..ally_http.processor import contentLengthEnco...
[ "gabriel.nistor@sourcefabric.org" ]
gabriel.nistor@sourcefabric.org
bb7780f8b1af9afa70a945e763a2090806f10189
a1352de184b2a60295b90ba5472579c6dc8abb29
/wip/MakePE/examples/packer/crypter.py
c80366a5f960d19ec50930d43a3e59b9e437112b
[]
no_license
gunmetalbackupgooglecode/corkami
2b5e99b1cfd94f716e35293e915d536e468aec75
1a52e71ec205f1cb7ce493789474209dd1b47911
refs/heads/master
2016-09-16T06:33:52.261541
2015-02-11T18:41:13
2015-02-11T18:41:13
32,167,637
25
11
null
null
null
null
UTF-8
Python
false
false
1,635
py
# Minimalist cryptor # crypts code section with fixed key import pefile, mypacklib pe, oep, ib, start, size = mypacklib.load() # make the code section writable section = pe.sections[mypacklib.getEPsection(pe)] section.Characteristics |= pefile.SECTION_CHARACTERISTICS["IMAGE_SCN_MEM_WRITE"] # let's genera...
[ "ange.albertini@gmail.com" ]
ange.albertini@gmail.com
cb0f52adc788db95980427b1ced82e5eb67059c8
08e052c0c2ee4ad0cd4980fbc8a692c407118659
/Ex. do Paca/Aula 12/P_12.10.py
7eca4f6fdfba7e51b288b8de8ede74b9e722c434
[]
no_license
miltonleal/MAC0110_Introduction_Computer_Science_IME_USP
6fad182f7fbb3e83403080800074bf57456cb0b5
b47936ce66e715dba79dff44779a750d795192a0
refs/heads/master
2023-03-04T11:06:48.092980
2021-02-17T14:47:46
2021-02-17T14:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
# Usando a função maior (x, y) definida no P11.3, escreva uma função maior3(x, y, z) # que devolve o maior entre os 3 valores. def main (): x = float(input("Digite o primeiro valor: ")) y = float(input("Digite o segundo valor: ")) z = float(input("Digite o terceiro valor: ")) print ("O maior número i...
[ "milton.leal@usp.br" ]
milton.leal@usp.br
5fd0642eb6969bbed71fab7b0b34a5907210d06e
57cf151fabd6cb55ffa8abeb999bfe6ba118a6f9
/day5/example2.py
45b952cea25d2ea463c2c7e3bec6d0228b19d465
[]
no_license
sunilkumarc/LearnPython
dc4e5d89eb188bf40ba6f76ec679a942e897f4a3
06be03ce1607bbc3db52dbd36e7413e6de949a98
refs/heads/master
2023-04-18T00:41:30.976319
2021-04-28T13:54:21
2021-04-28T13:54:21
315,962,493
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
# Create a function which takes first name and last name # and joins them and returns the full name # Eg: Sunil, Kumar -> Sunil Kumar def join_names(first_name, last_name): full_name = first_name + " " + last_name return full_name result = join_names("Sunil", "Kumar") print(result)
[ "sunilkumar.c682@gmail.com" ]
sunilkumar.c682@gmail.com
4ec5c6068736536a7dcfb8831a7f4d74fe5b222c
be652b0b1b255df320d244caf115e6fabb60c77d
/bhp2/ptyserv.py
5f73fcbb0a01cf68708c32006025d7e65d5178bb
[]
no_license
bpinkert/portfolio
4b505458bbdca3bada05039ea791c6cba3e58ffd
d8ff0582611f9dabaeee6d6ae94113fd17b98ccb
refs/heads/master
2022-12-05T08:25:10.105766
2019-06-24T22:25:59
2019-06-24T22:25:59
192,994,316
0
0
null
null
null
null
UTF-8
Python
false
false
1,294
py
# Copyright (c) Twisted Matrix Laboratories # See LICENSE for details """ A PTY server that spawns a shell upon connection. Run this example by typing in: > python ptyserv.py Telnet to the server once you start it by typing in: > telnet localhost 5823 """ from __future__ import print_function from twisted.internet...
[ "bpinkert@gmail.com" ]
bpinkert@gmail.com
d61ab027998f44aec181c318597e335c1e140820
d5214b1331c9dae59d95ba5b3aa3e9f449ad6695
/quintagroup.captcha.core/tags/0.3/quintagroup/captcha/core/tests/testConfiglet.py
d13f425330492f492c64d7082faa635658582bc8
[]
no_license
kroman0/products
1661ee25a224c4b5f172f98110944f56136c77cf
f359bb64db22f468db5d1e411638790e94d535a2
refs/heads/master
2021-01-10T07:58:04.579234
2014-06-11T12:05:56
2014-06-11T12:05:56
52,677,831
0
0
null
null
null
null
UTF-8
Python
false
false
5,328
py
import re import string from quintagroup.captcha.core.config import LAYER_STATIC_CAPTCHAS, \ PROPERTY_SHEET, LAYER_DYNAMIC_CAPTCHAS, PRODUCT_NAME from Products.PloneTestCase import PloneTestCase as ptc from Products.PloneTestCase.PloneTestCase import portal_owner from Products.PloneTestCase.PloneTestCase import de...
[ "chervol@users.noreply.github.com" ]
chervol@users.noreply.github.com
5d17ceb65efd38914d28725b6f77004c7e054764
333e8eb5eab6debbe86a36059bdb1db30cd0283c
/orchestrator/services/storage/factory.py
efec62f596a43163b1b20f2f89ed778e699ec552
[ "MIT" ]
permissive
totem/cluster-orchestrator
b15984a1ae6e4663e6ca6dd52e50e6f4e052aa8c
2f2d3eb28fd3eb00630e6b7de852988ec3a8efd4
refs/heads/develop
2022-09-16T17:47:24.347779
2017-06-30T22:29:27
2017-06-30T22:29:27
26,163,696
2
0
MIT
2022-09-13T21:44:22
2014-11-04T10:17:19
Python
UTF-8
Python
false
false
1,802
py
import copy import importlib import os from conf.appconfig import DEFAULT_STORE_NAME class AbstractStorageFactory: def not_supported(self): """ Raises NotImplementedError with a message :return: """ raise NotImplementedError( 'Factory: {} does not support this ...
[ "sukrit007@gmail.com" ]
sukrit007@gmail.com
fb94715c35201d2809956d1e25b17887d5540325
ce4157d00644e2f0b8bd6b4fe2ee48dab49eba7b
/bot/main.py
5a8e72e0144f7ea162d0dcc03274fd8baa15403f
[]
no_license
caiaffa/BotLoginFacebook
deccee9c5e95bc410dd7e706390ea843f6fdf22e
0ab94afcc125a00a31b0f674b57fe22ab0b57630
refs/heads/master
2021-01-25T04:20:57.927939
2017-06-05T17:06:54
2017-06-05T17:06:54
93,427,458
1
0
null
null
null
null
UTF-8
Python
false
false
476
py
# coding=utf-8 from selenium import webdriver from selenium.webdriver.common.keys import Keys import time browser = webdriver.Chrome("YOUR DIRECTORY CHROME DRIVE") browser.get("https://facebook.com") time.sleep(2) username = browser.find_element_by_id("email") password = browser.find_element_by_id("pass") usernam...
[ "lfa.luisfelipe@gmail.com" ]
lfa.luisfelipe@gmail.com
c241802503dc25f43f5a34ee304438114e53cdf0
9e020b570c0a9ce75e080bf57f80967ed297d1c5
/code/zipf.py
f096ea9641e57bc2feb69f839ef9dd816661e7b6
[]
no_license
ejmurray/ThinkPython2
21ff7fb2022309aca6fd148e260b3c6a45ba351e
cbc2a155e4553fd6cf909b4740f90e26c5959d9e
refs/heads/master
2021-01-22T13:07:44.995583
2015-07-03T19:04:20
2015-07-03T19:04:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,632
py
"""This module contains a code example related to Think Python, 2nd Edition by Allen Downey http://thinkpython2.com Copyright 2015 Allen Downey License: http://creativecommons.org/licenses/by/4.0/ """ from __future__ import print_function, division import sys import matplotlib.pyplot as plt from analyze_book1 im...
[ "downey@allendowney.com" ]
downey@allendowney.com
c98b71b503f1087f4e68653662e71cf1220471b0
eed805ae7f7cdb875ccdee9f4048e3d154378807
/chatbot_17459/wsgi.py
7bba84d37b57f40b95a5d1ef06da5c96a2434c9e
[]
no_license
crowdbotics-apps/chatbot-17459
477d32cec26acc0e8c521529648612acd2c1de4f
a085923f40cd82f48c39ba4d77e6a71bd9a21823
refs/heads/master
2023-06-03T07:45:59.971385
2020-05-27T15:37:29
2020-05-27T15:37:29
267,358,771
0
0
null
2021-06-11T07:21:05
2020-05-27T15:36:46
Python
UTF-8
Python
false
false
403
py
""" WSGI config for chatbot_17459 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
1e2ca726f8bbf466df85a3be33b2fc2397d57bd9
fa45fe7eaba7ef7c27ecf95db7c460ca189ce0d4
/everydays/InterviewExmas/VeryHard/Dynamic.py
a33c2a8e981a4ae128667ad153226b465b27add3
[]
no_license
jake20001/Hello
be1a2bb5331f2ad4c1d8f30c6a9a530aff79e605
08217871bb17152eb09e68cd154937ebe5d59d2c
refs/heads/master
2021-07-10T09:48:15.883716
2021-04-23T14:49:03
2021-04-23T14:49:03
56,282,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,959
py
# -*- coding:utf-8 -*- # ------------------------------- # ProjectName : autoDemo # Author : zhangjk # CreateTime : 2020/7/4 14:16 # FileName : Dynamic # Description : # # -------------------------------- def PrintAX2(): ax = [7,3,8,8,1,0,2,7,4,4,4,5,2,6,5] k = 0 ii = 0 for i in range(k+ii,len(ax)): ...
[ "jianke.zhang@beantechs.com" ]
jianke.zhang@beantechs.com
4ae8ad699d3c2b51dac8261498b73efe3a2978d3
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_1_1_neat/16_1_1_cptcarrot_proba.py
6a75e8e36effd94bc0fa5b5189bb7389a781f568
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
462
py
def get_best(s): res = s[0] for c in s[1:]: if c >= res[0]: res = c + res else: res = res + c return res def solve(): infile = open('A-large.in') outfile = open('A-large.out', 'w') T = int(infile.readline().strip()) for i in range(T): lin...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
4204c522f075674a49e75fa758c32b118cdda9af
2150bd301d95c00d13137f1b9bc70a48408c3dbd
/crm/urls.py
7d7116514650116f14290793df992bc5764d2de5
[]
no_license
boundshunter/SuCRM
2545e970a6976016c48a0cb0a554b4ca1751fdfb
7c0edfcc0e5b184b91591b7f5af6bf1f39dc1b90
refs/heads/master
2020-04-05T17:00:37.959316
2018-11-11T02:14:59
2018-11-11T02:14:59
157,039,698
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
from django.contrib import admin from django.urls import path, re_path from crm import views urlpatterns = [ re_path('^$', views.index, name="sales_index"), re_path('^customers/$', views.customer_list, name="customer_list"), ]
[ "76686094@qq.com" ]
76686094@qq.com
29d15c34734825b31f1c15dde96c9accdf56194c
adcded544eef1d8818f17a6c0bcf3808adffd2d5
/tests/apps/tethysapp-test_app/tethysapp/test_app/handoff.py
e39dd3ef4392be4aeaffee37209ff515bb490b96
[ "BSD-2-Clause" ]
permissive
sdc50/tethys
342d4570568eab3b2ba66773c49d5aac97d47fc2
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
refs/heads/upstream-master
2022-11-14T14:16:57.916307
2018-12-21T22:02:04
2018-12-21T22:02:04
82,718,965
1
1
BSD-2-Clause
2021-10-29T22:07:56
2017-02-21T19:33:37
Python
UTF-8
Python
false
false
709
py
# Define your handoff handlers here # for more information, see: # http://docs.tethysplatform.org/en/dev/tethys_sdk/handoff.html import os import requests def csv(request, csv_url): """ Handoff handler for csv files. """ # Get a filename in the current user's workspace user_workspace = request.wo...
[ "sdc50@byu.net" ]
sdc50@byu.net
6a14d1444aed7ad9175875e8075c52e48375b3ee
ad375579230bc9d18ab6dcf3d89990125db51d23
/tests/pipe_proc_tests/integ.py
70aa7473308f8d2b4b367632ed3a29f9c2a526cc
[]
permissive
jjhelmus/nmrglue
103777c34ae180b9558fa4a656df1568a8d814b1
4e959546f0e60e90e33fb198de9fd2f4e3f341f5
refs/heads/master
2023-08-31T19:22:22.826419
2023-08-25T13:17:35
2023-08-25T13:17:35
3,732,632
177
99
BSD-3-Clause
2023-09-08T12:18:14
2012-03-15T20:39:00
Python
UTF-8
Python
false
false
245
py
#! /usr/bin/env python """ Create files for integ unit test """ import nmrglue.fileio.pipe as pipe import nmrglue.process.pipe_proc as p d, a = pipe.read("time_complex.fid") d, a = p.integ(d, a) pipe.write("integ1.glue", d, a, overwrite=True)
[ "jjhelmus@gmail.com" ]
jjhelmus@gmail.com
02c7841221b245572d1057d739f9f77698807e4b
bccfab4d853f7417401a084be95de293e66ccd2a
/mySpider/spiders/Exhibition113.py
321166222eb1f6f19b3b68fdc8c9e6c3e4560b94
[]
no_license
CS1803-SE/The-First-Subsystem
a8af03ce04a9de72a6b78ece6411bac4c02ae170
4829ffd6a83133479c385d6afc3101339d279ed6
refs/heads/main
2023-05-06T02:32:08.751139
2021-05-24T06:09:37
2021-05-24T06:09:37
363,400,147
0
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/5/11 14:11 # @Author : 10711 # @File : Exhibition113.py # @Software: PyCharm from ..items import * from ..str_filter import * from ..auxiliary_files import Exhibition113_supporting class Exhibition113(scrapy.Spider): name = "Exhibition113" allo...
[ "1300978939@qq.com" ]
1300978939@qq.com
710dbb813cab99c2d46afa4dcaf3c480f4ecffd3
f32d1edb3cec2b10f493b200742f9a8f181abf1c
/scripts/pogoda.py
b3ccb69e6d8b49639d9c965818c6c70fbdba7fa0
[ "MIT" ]
permissive
rionmuerte/pogoda
91088cd8fab5cdd2a8e1d7485c21c945f37dbfe3
90185cd1533ac1ccb860b7cafbbdfc6012c1e9bc
refs/heads/master
2021-03-12T12:24:47.399752
2020-03-11T16:14:59
2020-03-11T16:18:56
246,620,545
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
import os,sys from urllib import request, parse import re if len(sys.argv) < 2: exit() d=parse.urlencode({'name':sys.argv[1]}).encode('utf-8') req = request.Request('http://www.meteo.pl/um/php/gpp/next.php',data=d,method='POST') r = request.urlopen(req).readlines() dat = b'' for row in r: dat += row x = r...
[ "you@example.com" ]
you@example.com
7fb58ce235aa71026e7de511e7d22deaead3b298
4091caecbc727e6d6ae0d827afce11c5979a84fd
/models/public/text-recognition-resnet-fc/model.py
7cf7e5ae3e8135f9ce9996b397efa2492858e6e2
[ "Apache-2.0" ]
permissive
openvinotoolkit/open_model_zoo
fdb03dd40bfccb854e4ed4f7b9beaa90596963cd
7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0
refs/heads/master
2023-08-18T18:03:47.254427
2023-08-18T10:54:31
2023-08-18T10:54:31
153,097,694
1,712
730
Apache-2.0
2023-09-11T11:31:20
2018-10-15T10:55:02
Python
UTF-8
Python
false
false
991
py
# Copyright (c) 2022-2023 Intel 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/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
[ "noreply@github.com" ]
openvinotoolkit.noreply@github.com
082e7f4fc83cfa00332e1eb19fd894a09ad27a59
ddd620a38684bff01bdd0d5675ca2fb6ace6ffaa
/article/api.py
589b291fe664886777d0f40637ca3726b6dc724e
[]
no_license
tkliuxing/dj-article
e06bc35ec2a2e8f564f0a390917585a7c24e4ccb
ddce09abc83125c68e45919b3eded63cead3356f
refs/heads/master
2023-02-11T15:48:27.863427
2020-12-28T10:01:49
2020-12-28T10:01:49
323,557,790
0
0
null
null
null
null
UTF-8
Python
false
false
2,315
py
from django.db.models import OuterRef, Subquery from rest_framework.viewsets import ModelViewSet from rest_framework.filters import SearchFilter from rest_framework.permissions import IsAuthenticatedOrReadOnly, AllowAny from django_filters.rest_framework import DjangoFilterBackend from . import serializers from . impor...
[ "ouyanghongyu@gmail.com" ]
ouyanghongyu@gmail.com
ac07fdad798c70ef2d9cfa16c8468c46e0495cc2
af5c9a3ee1ea7ee6007aade393fa51beb0d696c2
/server/models/datasets.py
347b4905c5f692f066a30e6cf4d793b0436200c2
[]
no_license
greentfrapp/aae-mnist-demo
6260268f59114b7d0d5feb75f297ca3aa5448d22
c54ad820e96c3dc89938bd6b6e82097a4abee238
refs/heads/master
2020-03-07T16:55:11.756675
2019-05-31T10:41:57
2019-05-31T10:41:57
127,597,266
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
# coding: utf-8 from __future__ import absolute_import from server.models.dataset import Dataset from .base_model_ import Model from datetime import date, datetime from typing import List, Dict from ..util import deserialize_model class Datasets(Model): """ NOTE: This class is auto generated by the swagger c...
[ "limsweekiat@gmail.com" ]
limsweekiat@gmail.com
39ab1b0167f528ca21ee5da8ff13c95903d1c4fa
208446b30b8c4a479ed414376453c4edbab5053b
/python_space/Page_Object/Web/testpage/login_page.py
655822d3adf020dd6810a749477f029d6120b8bd
[]
no_license
fengyu0712/myclone
6e0bcb0e4b4f5919c4cabb1eb1be49afa7e68ba2
d4e47adf81b3ced0f433d5e261989b0bbb457fa4
refs/heads/master
2023-02-10T06:50:43.349167
2021-01-05T08:38:35
2021-01-05T08:38:35
316,674,323
0
0
null
null
null
null
UTF-8
Python
false
false
2,012
py
from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By account_location = "//input[@name='phone']" password_location = "//input[@name='password']" login_button_location = "//button[text()='登录']" error_wron...
[ "121193252@qq.com" ]
121193252@qq.com
c094c5f49a30c153a5b339987b9dcf9f8a55e35d
d6d874fe9e1607a859e9484fdc5bce09b3f76472
/Pipeline/the_LATEST/latest_MAYA/maya_SCRIPTS/RfM_python/menger3d_city_generator.py
b1ed9b6b3fa6f0ab25bae1864c3fa7ed58406e85
[]
no_license
tws0002/pop2-project
c80095cc333195ebb9ffa2199e2c3a3446d0df0c
6886f05d54ec77b66d13b4eaafe8a66ac49f2f41
refs/heads/master
2021-01-11T20:53:19.982950
2016-03-10T10:31:29
2016-03-10T10:31:29
79,202,989
1
1
null
2017-01-17T07:56:09
2017-01-17T07:56:09
null
UTF-8
Python
false
false
5,923
py
#!/usr/bin/python # -*- coding: -*- """ Creates a basic city generator """ # IMPORT STANDARD LIBRARIES import random # IMPORT THIRD-PARTY LIBRARIES import pymel.core as pm import maya.OpenMaya as OM MASTER_GRP = "master_menger_grp" def round(num, divisor=90): return num - (num%divisor) # end round def rando...
[ "colinvfx@gmail.com" ]
colinvfx@gmail.com
3f1c142af25abe6ccaaf24f4042d8b151b822fd0
98cd5ddf45a73aea64bbfac0c0104829d7231b81
/T - Image Grid Slider-Trails/info.py
b50d417de359df106fb973ed2a2bbf2daf9b61b3
[]
no_license
atheis4/ETC_Modes_Extra
42508d523cfe632a3335e29f6e1e40af91df231b
d0ce221562105382a7a73cc6d280f4ad0eabf6f3
refs/heads/master
2022-04-04T11:15:07.335910
2020-01-03T20:27:32
2020-01-03T20:27:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
name = "T - Image Grid Slider-Trails" description = "Audio-Triggered Image Cycle in a 2x2 grid with history fade" knob1 = "Image Scale" knob2 = "Slide" knob3 = "Grid Offset" knob4 = "History Opacity" released = "September 7 2017"
[ "media@critterandguitari.com" ]
media@critterandguitari.com
798d47680cd99c3dae815b4bdcc7e8cde2309d00
d076c40c36685a985958c5ba7e14761a966cf333
/2019/two_pointer/minimum_size_subarray_sum_209.py
22181bd6e64b5f7dbde99919b5e18bdf28a52436
[]
no_license
yehongyu/acode
e65eb230210c657b8c5e4d5928cbe9437f77d717
176cc1db3291843fb068f06d0180766dd8c3122c
refs/heads/master
2023-04-20T14:27:45.123969
2021-05-08T04:36:39
2021-05-08T04:36:39
365,412,513
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
class Solution(object): def minSubArrayLen(self, s, nums): n = len(nums) if n <= 0: return 0 l = 0; h = 0; sum = 0;res = n+1 while l<n: if sum < s and h < n: sum += nums[h] h += 1 else: if sum >= s: ...
[ "aodandan@bytedance.com" ]
aodandan@bytedance.com
023dbc0c91f4a657f7e88045547b439465a2777c
b8ed71f3d1a36c119d846e97f1aa7d8ba6774f52
/692_top_k_frequent.py
d80ab91c8d9ea5826fb9c67333852adfdd0ae827
[]
no_license
imjaya/Leetcode_solved
0831c4114dd919864452430c4e46d3f69b4bd0cd
374eb0f23ae14d9638d20bbfe622209f71397ae0
refs/heads/master
2023-05-24T17:57:56.633611
2023-05-16T06:31:42
2023-05-16T06:31:42
284,203,426
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
#form a dictionary structure and then heapify the dict as a tuple with neagtive if count value and pop the k number of elements import heapq class Solution: def topKFrequent(self, words: List[str], k: int) -> List[str]: heap = [] # Space O(N) counter=collections.Counter(words) for word, cou...
[ "smjayasurya1997@gmail.com" ]
smjayasurya1997@gmail.com
3a1af24b80ce2778a8eb7c9d553f5932aa497532
61699048dc567cd3a814e5b987599dae175bed19
/Python/month01/day16/demo05.py
7f7fed0cdc74f6d0a5d1d9551d6131c22a11d819
[]
no_license
Courage-GL/FileCode
1d4769556a0fe0b9ed0bd02485bb4b5a89c9830b
2d0caf3a422472604f073325c5c716ddd5945845
refs/heads/main
2022-12-31T17:20:59.245753
2020-10-27T01:42:50
2020-10-27T01:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
""" MyRange 2.0 迭代器 -> yield """ class MyRange: def __init__(self, stop): self.__stop = stop def __iter__(self): number = 0 while number < self.__stop: yield number number += 1 m01 = MyRange(5) iterator = m01.__iter__() while True: try: item = ...
[ "1450030827@qq.com" ]
1450030827@qq.com
43ae2251052908c919a9c48e1b8e92ede5fdf096
80593bc3dd02e80381b801f96820b28e82d9641c
/ccd/views/domain_music_on_hold.py
a26cff5de6ba8f90155187a7ac850176b77729bf
[]
no_license
mccrorey48/mtaf_private
39045c1a4b5288b9b9340e29b419590c3beba6bf
0c65aaedca5189a377a78776f52773eac5645bfa
refs/heads/master
2023-04-11T08:22:47.455990
2018-04-30T18:20:14
2018-04-30T18:20:14
105,019,624
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
import lib.logging_esi as logging from ccd.views.domain import DomainView log = logging.get_logger('esi.domain_music_on_hold_view') class DomainMusicOnHoldView(DomainView): def __init__(self): super(DomainMusicOnHoldView, self).__init__() self.view_name = "domain_music_on_hold" self.pag...
[ "mmccrorey@esi-estech.com" ]
mmccrorey@esi-estech.com
e1c48a31bbf268169c3de49a3f423db51d471466
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_18554.py
24030425631685cdc9b5f586d7be691c4f551c4e
[]
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
137
py
# Passing control of console window to subprocess from subprocess import Popen Popen('gdb a.out', shell=True).communicate() print 'test'
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
752f2201b73c776a6db87294e10d1d34ff6803ee
1a2ca64839723ede3134a0781128b0dc0b5f6ab8
/ExtractFeatures/Data/govg/changelocalpassword.py
8703e853655f2b55738c4a3ab7d88ba8961406f9
[]
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
2,487
py
import getpass import os import random import string from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import DEFAULT_DB_ALIAS import settings from securesync.models import FacilityUser def generate_random_password(length=10, charset=(string.ascii_lett...
[ "vivekaxl@gmail.com" ]
vivekaxl@gmail.com
b096474473ab56f064dc72fd22ac3c77b412ef62
8b942cbd6a0da0a61f68c468956ba318c7f1603d
/dynamic_programming/fibonacci_numbers/house_robber.py
3814b440094524121113112073d93effd388b414
[ "MIT" ]
permissive
MartinMa28/Algorithms_review
080bd608b0e0c6f39c45f28402e5181791af4766
3f2297038c00f5a560941360ca702e6868530f34
refs/heads/master
2022-04-13T03:56:56.932788
2020-04-06T03:41:33
2020-04-06T03:41:33
203,349,402
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
def find_max_steal(wealth): dp = {} return _find_max_steal(tuple(wealth), dp) def _find_max_steal(wealth, dp): if wealth in dp: return dp[wealth] if wealth == []: return 0 elif len(wealth) == 1: dp[wealth] = wealth[0] return wealth[0] else: steal = _fin...
[ "1135485226@qq.com" ]
1135485226@qq.com
190a20f303694da68e3af85c64fc3910cc880229
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/26/usersdata/134/12484/submittedfiles/av1_3.py
0a22bab6a0bf6570ffcbf6d67d667c1a64bf7ddd
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
# -*- coding: utf-8 -*- from __future__ import division import math a = int(input('Digite o valor de a:')) cont = 0 while true : a==a//10 if a==0: print ('%d' %cont) break
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c544a042f2bce585697c121931f50cde622384f2
409773b8f5018ef61c615ec31b76c9756fdf8ad0
/gestionPedidos/models.py
d51e8f56940f0646239e7aabbf41c0c42ef8335e
[]
no_license
ahidalgoma/Tiendaonline
c2f4ba6febb6e2778f078f9788c4d593f697a56b
c6983f17b6b81ac7956ce0c575d31fa7d382d22a
refs/heads/main
2023-03-12T08:00:12.473541
2021-03-01T07:28:36
2021-03-01T07:28:36
342,819,480
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
from django.db import models # Create your models here. class Clientes(models.Model): nombre=models.CharField(max_length=30) direccion=models.CharField(max_length=50, verbose_name='La dirección') email=models.EmailField(blank=True, null=True) telefono=models.CharField(max_length=9, verbose_name='Teléf...
[ "angel.hidalgo.marin@hotmail.com" ]
angel.hidalgo.marin@hotmail.com
b68c2312efa5979ac2b76a32fbc3c71da5dd59d8
93fa46f87ff4616ce1125ea972a83684450ed213
/examples/python/atkinson_example.py
03ff49c8b41277a8dd0deb59262dc49a29df3f92
[ "MIT" ]
permissive
Calderwood2020/concentrationMetrics
5d17c771fb4f5ae3cbc149ef70b062fc43492a45
ac07f5f97e1d728b43de4d2e3e7ce38ce7219051
refs/heads/master
2022-04-13T02:40:43.705987
2020-04-07T11:59:27
2020-04-07T11:59:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
# encoding: utf-8 # (c) 2016-2020 Open Risk, all rights reserved # # ConcentrationMetrics is licensed under the MIT license a copy of which is included # in the source distribution of TransitionMatrix. This is notwithstanding any licenses of # third-party software included in this distribution. You may not use this fi...
[ "openrisk@outlook.com" ]
openrisk@outlook.com
ec5371ce7fc7845020cec954bb5b0110210b32bc
dc321a38516a519550ab62cfab5867b6a2193ff4
/python/PythonOptimisation/chapter2/min-function.py
acfb343664c720198e5d8a09df30042f77b917e2
[]
no_license
ukonline/CodeExamples
5fa1cf74e4a68f5ee5c479aca759eaedd4969e3f
56233d16ce7719feed96be3609c114ceeef5b9c6
refs/heads/master
2021-07-15T23:07:01.461009
2021-07-10T08:47:40
2021-07-10T08:47:40
40,869,711
0
1
null
2016-01-19T11:05:31
2015-08-17T06:23:50
Java
UTF-8
Python
false
false
526
py
# Find the minimal value from a list # Auteur : Sébastien Combéfis # Version : October 10, 2020 import timeit REPEATS = 100 def min_1(data): result = data[0] for d in data: if d < result: result = d return result def min_2(data): return min(data) def measure_time(name, params):...
[ "seb478@gmail.com" ]
seb478@gmail.com
ae2f66d73cb5b620db5da9f1c5a757a51cff5d0a
4de7ed8a7624bdac30a654c866b8dab876e98c70
/tests/test_product.py
2a7a0f733aa1c4b4fd870661d220faafa1a4ee14
[ "MIT" ]
permissive
z86961027/pycatia
25022d170ce0124e3fe18794ab7ed9d4dba7cb9f
5dd9b7eb5d21f2261198d6a2af489abafb2f5f32
refs/heads/master
2021-03-04T06:05:11.336629
2020-03-10T11:11:03
2020-03-10T11:11:03
246,012,652
0
0
MIT
2020-03-09T11:02:09
2020-03-09T11:02:08
null
UTF-8
Python
false
false
5,164
py
#! /usr/bin/python3.6 from pycatia import CATIADocHandler cat_part = r'tests/CF_catia_measurable_part.CATPart' cat_product = r'tests/CF_TopLevelAssy.CATProduct' def test_repr(): with CATIADocHandler(cat_part) as handler: part = handler.document.product() assert '(Product) part_number: CF_catia_...
[ "evereux@gmail.com" ]
evereux@gmail.com
87b0ef273948a601af58b6019b5bf467d71b824f
45243bc60434c19d5102303cfa3514d9a8b2cae3
/tools/SMS/sendRequest.py
5aa45553de73ec57f55a2f4eff7e57ca10a324d0
[]
no_license
dev2033/spam_bot
d562117ba337fcdda1aba0d8c9211b8a7196c2b4
30346da9040e0d355cf891b60b98e6581b45b889
refs/heads/main
2023-04-28T14:29:42.171181
2021-05-22T15:23:12
2021-05-22T15:23:12
354,657,672
0
0
null
null
null
null
UTF-8
Python
false
false
4,205
py
# Import modules import json import requests from colorama import Fore import tools.SMS.randomData as randomData # Read services file def getServices(file="tools/SMS/services.json"): with open(file, "r", encoding="utf-8", errors="ignore") as services: return json.load(services)["services"] ...
[ "dev.elop.02@mail.ru" ]
dev.elop.02@mail.ru
8e83db67d5b3598a45fe7bcd05219a837a73c038
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/157/usersdata/275/69923/submittedfiles/esferas.py
315836e4c94cfd21386624d9b63b308e3a1bc787
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
# -*- coding: utf-8 -*- a= float(input('Digite o valor de a:')) b= float(input('Digite o valor de b:')) c= float(input('Digite o valor de c:')) d= float(input('Digite o valor de d:')) if a==b+c+d: if d==b+c: if b==c: print('S') else: print('N')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9a53a723b2931a1299468384c0a5b0eceacc86d3
ab61b80b6213d975f66043cef2bfdf008d135656
/test_gantt.py
765d1a2a3db0278838ed4991a35ea80cd7a2bb13
[ "Apache-2.0" ]
permissive
Tesla2fox/MPDA_Preliminary
08b8cf204a2a1618e796bfe0fbdcff29ae4544da
5188931878213079cea608cc556b42f1cae225c1
refs/heads/master
2020-03-27T22:06:40.259545
2018-11-16T13:35:57
2018-11-16T13:35:57
147,205,133
1
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 20 20:59:23 2018 @author: robot """ import plotly.plotly as py import plotly.figure_factory as ff import plotly #plotly.figure_factory df = [dict(Task="Job A", Start='1', Finish='3'), dict(Task="Job B", Start='0', Finish='4'), dict(Task="Job C", Start='3',...
[ "stef_leon_gao@outlook.com" ]
stef_leon_gao@outlook.com
ae1a328ff9d64385d2edb859b72c899ac4d99985
befd896d301d3040fbd6ccda39aa217bf388a0a4
/tensorflow/contrib/tpu/profiler/pip_package/setup.py
d4ccb0f24679af830365037819d51529874f4fcc
[ "Apache-2.0" ]
permissive
mktshhr/tensorflow-theta
98369caf55f676c6ae9a5c82ab151bb53d395f36
fe378e1b690d97ed24bad144dee9efffce893c86
refs/heads/master
2020-03-26T14:29:34.200902
2018-10-21T13:39:56
2018-10-21T13:39:56
144,990,240
5
2
Apache-2.0
2018-10-21T13:39:57
2018-08-16T13:17:25
C++
UTF-8
Python
false
false
2,552
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
dba09273008ddc9d53a06e6739635460f6f6c4f2
19b38d8af625037889373fdd2ed306b76f7c9299
/Python/098.Validate_Binary_Search_Tree.py
fa17a5edcb123f7ca206333fc85270cdd8d63a58
[]
no_license
JonathanWu1120/leetcode_Algorithms
47c81a80d79876dc1e8755f5ee289e50dd1a8f49
a8007c2bf0a3a1953a7cbc158caff52c16e036cc
refs/heads/master
2021-01-19T04:38:39.887712
2017-09-05T20:28:50
2017-09-05T20:28:50
87,342,009
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def inorder(self,root,arr): if root.left: self.inorder(root.left,arr) arr.append(root.val) ...
[ "jwu166@binghamton.edu" ]
jwu166@binghamton.edu
a563dcc3ab2eab12b54b2ae573b69c7ccbfa6700
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/era5_scripts/02_preprocessing/lag82/195-tideGauge.py
99bfbc67e8b6c15b2b5f295787aa7d67d82b9128
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
3,984
py
# -*- coding: utf-8 -*- """ Created on Tue Mar 31 17:12:23 2020 **************************************************** Load predictors & predictands + predictor importance **************************************************** @author: Michael Tadesse """ #import packages import os import pandas as pd import datetime a...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
6aa006cb9ca7d1b3c785621ac03530797b845c1d
c18a63e2e37712025794bc7d0bb824ca3a8cde51
/remote/webssh/config.py
7536e9624ef6954f31cb5299c9f8d7a886ca8a4a
[ "MIT" ]
permissive
wuqiangchuan/Xproxxx
9202767573a3f0bfc1b00b6069eaf6ef9bc25907
6403bde2bc091faab55cca5ac9fff62b13d6a0cb
refs/heads/master
2021-01-01T17:48:55.335991
2017-07-20T10:00:52
2017-07-20T10:00:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
__author__ = 'xsank' from tornado.options import define def init_config(): define('port', default=9527, type=int, help='server listening port')
[ "root@localhost.localdomain" ]
root@localhost.localdomain
8fcdbb6b115fdf0b55b7bdccc36cd7df7e2c0a8f
b9f21bc90eed396dde950c30a1b482be0fb8ba30
/library/Tech/PuLP_p/Linear_Prog_test1_myself.py
6ca137c9c0971ed707c332558ad7fa90babf8c9d
[]
no_license
nanigasi-san/nanigasi
127a21db1b31759908fd74cebabe240e5abf8267
5e3c3e78344dd9558cafe439beb272b9a80d0f3a
refs/heads/master
2020-04-03T18:57:40.132489
2019-06-19T15:03:38
2019-06-19T15:03:38
155,504,101
1
0
null
2019-02-20T09:40:05
2018-10-31T05:33:11
Python
UTF-8
Python
false
false
423
py
import numpy as np import matplotlib.pyplot as plt def c(data): print(data) plt.axis([0,4.5,0,8.5]) x = np.arange(0,4.6,0.1) y1 = -(x/2)+5 plt.plot(x,y1,label="x1+2x2 <= 10") y2 = -(2*x)+8 plt.plot(x,y2,label="2x1+x2<=8") zeros_x = np.zeros_like(x) mini = np.minimum(y1,y2) plt.fill_between(x,zeros_x,mini,face...
[ "nanigasi.py@gmail.com" ]
nanigasi.py@gmail.com
2cae0a280039bb9a5189fb959b658df8a4042427
ee186f4166fd522bb1517ded5d7a34ffed8f4cfc
/c_example/test.py
a0dfb23a0523658ef4507fce6b1b5bb9c93197d3
[]
no_license
nyannko/swig-example
560b4d84a6caabce47c65fe66c0bfd696af7b6c4
840f9604fac5082d87167f2f86bc0a1d0a5fd288
refs/heads/master
2020-03-29T01:21:58.822399
2018-10-10T23:04:07
2018-10-10T23:04:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
import example print('My_varaiable: %s' % example.cvar.My_variable) print('fact(5): %s' % example.fact(5)) print('my_mod(7,3): %s' % example.my_mod(7,3)) print('get_time(): %s' % example.get_time())
[ "9638293+nyannko@users.noreply.github.com" ]
9638293+nyannko@users.noreply.github.com
73d2b1f73949e7a57ec29dc2de08a86d806e5af3
404572ed038537763781be183de5d3049bedeec2
/examples/service-notebook/managed/jupyterhub_config.py
5736d779d6bd1def0d88367784159baef61a182c
[ "BSD-3-Clause" ]
permissive
rmahiques/jupyterhub
b25b556bffb795b9089bdbd974e91a9655a6482a
c348411e345a7d6bb942feae784e278b9e88e43d
refs/heads/master
2020-04-23T02:14:39.808610
2019-02-15T09:42:06
2019-02-15T09:42:06
170,839,469
0
0
NOASSERTION
2019-02-15T09:38:54
2019-02-15T09:38:53
null
UTF-8
Python
false
false
615
py
# our user list c.Authenticator.whitelist = [ 'minrk', 'ellisonbg', 'willingc', ] # ellisonbg and willingc have access to a shared server: c.JupyterHub.load_groups = { 'shared': [ 'ellisonbg', 'willingc', ] } service_name = 'shared-notebook' service_port = 9999 group_name = 'share...
[ "benjaminrk@gmail.com" ]
benjaminrk@gmail.com
735f797831fd664867c6edf3280d80275d1cb18d
f2f7b8e819ebbcc0d4a207a15a877878deb3a28b
/inference/utility_functions.py
a269d54506a15cd3c786b8224baf6ce78850258e
[]
no_license
Activity00/narspy
a7ea99918ce1941603ecfeacc692cabe458bfa9f
2e5a82c806772527d6636d51aa3f6d4ee00d2714
refs/heads/master
2020-09-11T13:22:11.541413
2020-07-10T16:04:44
2020-07-10T16:04:44
222,078,227
0
0
null
2020-07-10T16:04:45
2019-11-16T09:48:27
null
UTF-8
Python
false
false
242
py
from functools import reduce def inference_or(*values): product = 1 for v in values: product *= (1-v) return 1 - product def inference_and(*values): product = 1 for v in values: product *= v return
[ "1032662429@qq.com" ]
1032662429@qq.com
5e2c29c686dd160090ca2a6d01afb65ac3708c8d
4157b23a74971f5378c523e05bcd554646f4cab6
/hrd_attendance/report/rekap_perorangan.py
c6c903bf33f134be45f6cea68737293fabce3ec3
[]
no_license
bambangbc/HRIS-TAG---ODOO8
755ed55a082da227dc77f712e406b4daa9f0cd6d
80b31362b688595fe21fd8dcc8075e2d4eeb09eb
refs/heads/main
2023-06-18T16:11:42.967975
2021-07-16T06:12:47
2021-07-16T06:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
import time from openerp.report import report_sxw class rekap_perorangan(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(rekap_perorangan, self).__init__(cr, uid, name, context) self.localcontext.update({ 'time': time, }) report_sxw.report_sxw('report.rekap_pe...
[ "87510026+bambangbc@users.noreply.github.com" ]
87510026+bambangbc@users.noreply.github.com
fbe9efa25f5489c21552b8943bdb1dd396e6ce51
63b0fed007d152fe5e96640b844081c07ca20a11
/ABC/ABC200~ABC299/ABC262/d.py
f85bb75d9fbeadc2ead8d6492a7e30aa8183f579
[]
no_license
Nikkuniku/AtcoderProgramming
8ff54541c8e65d0c93ce42f3a98aec061adf2f05
fbaf7b40084c52e35c803b6b03346f2a06fb5367
refs/heads/master
2023-08-21T10:20:43.520468
2023-08-12T09:53:07
2023-08-12T09:53:07
254,373,698
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
from collections import defaultdict from collections import Counter from operator import mul from functools import reduce def cmb(n, r): r = min(n-r, r) if r == 0: return 1 over = reduce(mul, range(n, n - r, -1)) under = reduce(mul, range(1, r + 1)) return over // under n = int(input()) ...
[ "ymdysk911@gmail.com" ]
ymdysk911@gmail.com
ffa21b85dcc7c222a09cb8f9bb7e25e68524c452
975bb46e48333f011ee0d08918f68b4797facffe
/test_project/test_project/settings.py
f732fc7107b33f521071c0518c9def3da8eec043
[]
no_license
barseghyanartur/django-rules-light
a79ec216745de2a25dcac3db4d8b363d62e49586
a21c8d82757a6f1b6b4e9ddfb882fa1f6a6e52d2
refs/heads/master
2021-01-19T23:08:41.153522
2013-12-11T20:52:18
2013-12-11T20:52:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,799
py
# Django settings for test_project project. import os.path import posixpath PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) FIXTURE_DIRS = [ os.path.join(PROJECT_ROOT, 'fixtures'), ] M...
[ "jamespic@gmail.com" ]
jamespic@gmail.com
8bf818ba5e7551019f9acfdcbd928d63c43a0b1f
1324b811a93567d09770a8d0a4e6f5bde4dce75e
/backend/tags/tests/test_tags_models.py
341481c459fb6a1c29113f098924d47f90978245
[]
no_license
lazidoca/react-django-blog
63256f38d4d4d75913d769ab3aaa5cfe24fc10ef
63d9518c1bac0ce6e56c7fd3364e571fedcc7aff
refs/heads/master
2021-05-19T06:51:52.279884
2020-03-30T23:12:17
2020-03-30T23:12:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,028
py
import copy import pytest from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from test_utils.users_fixtures import users from test_utils.tags_fixtures import tag_payload, tag_obj0, tag_obj1 from tags.models import Tags pytestmark = pytest.mark.django_db def ge...
[ "yuuki.umetsu@gmail.com" ]
yuuki.umetsu@gmail.com
8bc5a4cb278b1188f258ef1c4c3e927d8f0dec21
083b3f5b0d23c269c6a9ff1ea413e70fb799a497
/Leetcode Challenge/08_August_2020/Python/Week 5/2_Largest Component Size by Common Factor.py
e430eed9fa1c149bd909d51e8f6461d0877a1b79
[]
no_license
HectorIGH/Competitive-Programming
b2e02dff140d9ebb06c646f7be0b53ea0afe90c9
467058c63e8a7e76805feebe3020bac4d20516a6
refs/heads/master
2022-12-31T18:32:46.824626
2020-10-16T20:38:33
2020-10-16T20:38:33
279,733,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,551
py
#Given a non-empty array of unique positive integers A, consider the following graph: # #There are A.length nodes, labelled A[0] to A[A.length - 1]; #There is an edge between A[i] and A[j] if and only if A[i] and A[j] share a common factor greater than 1. #Return the size of the largest connected component in the graph...
[ "HectorIGH@users.noreply.github.com" ]
HectorIGH@users.noreply.github.com
372d8bf9d2199c39f3da16bc426487abaa8e61bf
59166105545cdd87626d15bf42e60a9ee1ef2413
/test/test_game_api.py
f903b2cd56839165d88258a246b7e267508c0412
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import dbpedia from dbpedia.api.game_api import GameApi # noqa: E5...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
3d29e92451449ac283c2345d3f69ee8a4e223214
4947b045d4a221d4e92ac363b22c1213e1c11c0b
/profile/lm_anova_full.py
4d01b2e6b25f024d9936cecd696e56608c76acb0
[ "BSD-3-Clause" ]
permissive
weilongzheng/Eelbrain
51db9396ba5184493ff59e0d481aac3aae64442c
feb9bdec2a99aca3077e44f318aef1c85a2e4730
refs/heads/master
2020-03-28T18:31:24.633084
2018-09-12T02:38:57
2018-09-13T20:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
import numpy as np from eelbrain import * import eelbrain from eelbrain._stats import opt ds = datasets.get_uts(True) y = ds['utsnd'].x n_cases = len(y) n_tests = np.product(y.shape[1:]) y = y.reshape((n_cases, n_tests)) m = ds.eval("A*B*rm") p = m._parametrize() fmap = np.empty((3, n_tests)) e_ms = eelbrain._stats.gl...
[ "christianmbrodbeck@gmail.com" ]
christianmbrodbeck@gmail.com
46deb2869427440b8a05c82c1e52ead9fcf3fd31
5cbf6cf8a9eb958391c371c6181c49155533b6ba
/leetcode_动态规划_不同路径.py
9b2f7e3c3d144859ac28ba43375f992fb6b4c26e
[]
no_license
cmychina/Leetcode
dec17e6e5eb25fad138a24deba1d2f087db416f7
18e6ac79573b3f535ca5e3eaa477eac0e60bf510
refs/heads/master
2022-12-20T16:09:46.709808
2020-09-28T04:04:54
2020-09-28T04:04:54
282,446,932
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
def uniquePathsWithObstacles(obstacleGrid): m=len(obstacleGrid) n=len(obstacleGrid[0]) #起点与终点的限制 if obstacleGrid[0][0] == 1: return 0 if obstacleGrid[m-1][n-1] == 1: return 0 #初始点无障碍,则初始化为1 obstacleGrid[0][0] = 1 #初始化行列 #对于每行的第一个点,只要当前为0且上一行的点为1则设置为1,表示可以走到,否则设置0。 ...
[ "noreply@github.com" ]
cmychina.noreply@github.com
033a330f3a9762ac21f326bcbb8e3bcc5aa229ba
1e2b5abe4ebf0055840da69ca25d7b188f8e6c00
/tf2rl/algos/vail.py
04cf992b230acb42ef79ccd96879967ff8ff12e2
[ "MIT" ]
permissive
eijoac/tf2rl
e9daa3c660f700a2bbb45238842af03c58f8d2f6
bf43aef6022c80d696dc6175d0f546333a6755f2
refs/heads/master
2020-11-26T01:16:01.176013
2019-12-14T15:51:11
2019-12-14T15:51:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,566
py
import numpy as np import tensorflow as tf from tensorflow.keras.layers import Dense from tf2rl.algos.gail import GAIL from tf2rl.algos.policy_base import IRLPolicy from tf2rl.networks.spectral_norm_dense import SNDense class Discriminator(tf.keras.Model): LOG_SIG_CAP_MAX = 2 # np.e**2 = 7.389 LOG_SIG_CAP_M...
[ "dev.ohtakei@gmail.com" ]
dev.ohtakei@gmail.com
c4e0b467b0beb3f525b8bafe87ee0784409bf6b1
8c0aa69b4a148f96bcdf4637329262d5227ddf08
/goetia/dbg.py
7d5440199e38028f519a37339e8488dcbae41389
[ "MIT" ]
permissive
camillescott/goetia
edd42c80451a13d4d0ced2f6ddb4ed9cb9ac7c80
db75dc0d87126c5ad20c35405699d89153f109a8
refs/heads/main
2023-04-12T15:30:48.253961
2022-03-25T00:23:39
2022-03-25T00:23:39
81,270,193
6
0
MIT
2022-04-01T21:40:58
2017-02-08T00:40:08
C++
UTF-8
Python
false
false
1,428
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) Camille Scott, 2019 # File : dbg.py # License: MIT # Author : Camille Scott <camille.scott.w@gmail.com> # Date : 14.10.2019 from goetia import libgoetia from goetia.hashing import typenames as hasher_types from goetia.storage import get_storage_args, process_sto...
[ "camille.scott.w@gmail.com" ]
camille.scott.w@gmail.com
a9c7138d9b03d901747a8194424ae2ebe812a473
aaa762ce46fa0347cdff67464f56678ea932066d
/AppServer/lib/django-1.5/tests/regressiontests/model_fields/models.py
1d20f44fae51bddd98f2ae12eeabbb0cb30a791f
[ "BSD-3-Clause", "LGPL-2.1-or-later", "Apache-2.0", "MIT", "GPL-2.0-or-later", "MPL-1.1" ]
permissive
obino/appscale
3c8a9d8b45a6c889f7f44ef307a627c9a79794f8
be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f
refs/heads/master
2022-10-01T05:23:00.836840
2019-10-15T18:19:38
2019-10-15T18:19:38
16,622,826
1
0
Apache-2.0
2022-09-23T22:56:17
2014-02-07T18:04:12
Python
UTF-8
Python
false
false
7,563
py
import os import tempfile # Try to import PIL in either of the two ways it can end up installed. # Checking for the existence of Image is enough for CPython, but for PyPy, # you need to check for the underlying modules. try: from PIL import Image, _imaging except ImportError: try: import Image, _imagi...
[ "root@lucid64.hsd1.ca.comcast.net" ]
root@lucid64.hsd1.ca.comcast.net
20d48f60a960c64c41c6e96c65ede12206761734
5e3ebc83bc3fe2f85c34563689b82b1fc8b93a04
/google/ads/googleads/v5/enums/types/advertising_channel_type.py
6f57c38e57fddca36057d38d477884a821bb2877
[ "Apache-2.0" ]
permissive
pdsing/google-ads-python
0ce70227cd6bb13a25cd13de0ca05c2636279ecd
ee2c059498d5679a0d1d9011f3795324439fad7c
refs/heads/master
2023-05-04T18:39:57.412453
2021-05-21T16:38:17
2021-05-21T16:38:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
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 o...
[ "noreply@github.com" ]
pdsing.noreply@github.com
baa466404e28e142d9884bd44a0a4cd5a0dcf895
a514a75a2cbbc8bbfa8528480d381d2287ba73c3
/Web/db/mappers/POI.py
b49e1337ef5110bc25f745bad257686068d2d78f
[ "MIT" ]
permissive
03051994/Hawki
7efabc3807d521e8103568ffe37afedeb00a2df3
e2fa7ff26e4f881564c103dc8c37b67dad99c090
refs/heads/master
2021-06-25T19:41:54.829084
2017-08-25T01:45:04
2017-08-25T01:45:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
from .. import Base from sqlalchemy import Column, Integer, String class POI(Base): __tablename__ = 'poi' id = Column(Integer, primary_key=True) building_id = Column(Integer) name = Column(String(256)) url = Column(String(512)) x = Column(Integer) y = Column(Integer) def __init__(self, building_id, name, url...
[ "smilup2244@gmail.com" ]
smilup2244@gmail.com
3c85bc65840a83103c1fd0f0f5f5b8d8c66d9303
7aa7900376462a67a022df34210e650cf1133ee7
/HW1/code/possible_filter_configs.py
5517acc18d8a1ecf3121ded1166f271dccbe8e13
[]
no_license
akshay-sharma1995/deep_learning
28f68197f465fa59cc60eea25e533acaea331621
79841b424192b2177d2129e00d6c83786a4a5fd6
refs/heads/master
2022-07-21T17:34:59.636381
2020-05-16T00:49:39
2020-05-16T00:49:39
264,313,908
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
import math import sys import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--input", type=int, help="input dimension (assume h==w)", required=True) parser.add_argument("--k", type=int, help="filter size (assume h==w)", default=3) parser.add_argument("--s-range",typ...
[ "akshay.iitkbkn@gmail.com" ]
akshay.iitkbkn@gmail.com
1b3778562130f696a40b1fe719b377958601c739
e6e53178e19a6496aabfd01a9d65dfe0a8358437
/1_quarter/Python_Algos_alexey_petrenko/Lesson_5/task_1.py
0d3321cf5fa9766f08fe040ddf42df95f848fe58
[]
no_license
ZakirovRail/GB_Python_Faculty
7fe7d47da7e8f3fb929acbbbbab9f13c29bddc26
f0bac036f700c87f9b402a65d5c2080fab439856
refs/heads/master
2023-02-25T22:41:22.874093
2021-01-28T19:59:02
2021-01-28T19:59:02
238,265,961
0
0
null
2020-08-29T20:03:13
2020-02-04T17:36:48
TSQL
UTF-8
Python
false
false
784
py
from collections import Counter a = Counter() b = Counter('abrakadabra') c = Counter({'cats': 10, 'dogs': 5}) print(a, b, c, sep='\n') print(b['z']) b['z'] = 3 # ************************************************** print('*'*50) print(b) # Counter({'a': 5, 'z': 3, 'b': 2, 'r': 2, 'k': 1, 'd': 1}) print(b.most_common...
[ "rjzakirov@gmail.com" ]
rjzakirov@gmail.com
43af27b78032d9764c2d6b3d3db77d9887d548e1
31741f4807f857675f9304088b689af9b043e7b1
/chp9/tests/main/testMainPageView.py
b1972d31217481553c7870509d922d89b9d214da
[]
no_license
ujrc/Realpython_book3
c487ff0569f90b0e21c2c51cf951d6aad4755541
aaff8db074b8dd33d6c7305ac0a94c2ef161c847
refs/heads/master
2021-01-10T02:02:11.247279
2016-01-11T17:06:59
2016-01-11T17:06:59
48,060,189
0
0
null
2015-12-31T16:48:52
2015-12-15T18:03:47
Python
UTF-8
Python
false
false
2,314
py
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase from django.test import RequestFactory from django.core.urlresolvers import resolve from main.views imp...
[ "uwjearc@yahoo.com" ]
uwjearc@yahoo.com
8e90b4b090a048c7371dbe8ca25c0888dd066195
bede13ba6e7f8c2750815df29bb2217228e91ca5
/sale_purchase_automated/__init__.py
a70d3ef5c40cca702edb677a0ab0b953e0185442
[]
no_license
CybroOdoo/CybroAddons
f44c1c43df1aad348409924603e538aa3abc7319
4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14
refs/heads/16.0
2023-09-01T17:52:04.418982
2023-09-01T11:43:47
2023-09-01T11:43:47
47,947,919
209
561
null
2023-09-14T01:47:59
2015-12-14T02:38:57
HTML
UTF-8
Python
false
false
929
py
# -*- coding: utf-8 -*- ############################################################################# # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Author: Nimisha Muralidhar (odoo@cybrosys.com) # # You can modify it under the terms of ...
[ "ajmal@cybrosys.in" ]
ajmal@cybrosys.in