blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af30001153143516bb60447c5a6baee10e8ce452 | 8d3713030d02e34eb37b149d0bc2a8fd25fec7f7 | /problem111.py | d028894946ae341863fed4e2ca6ad0ba8893cf7f | [] | no_license | GlenHaber/euler | cd3a34550a0c6189a17fbc26991393ee6a4ab8d6 | cb3259f375c1f21af7daf79ab19532518765bbc8 | refs/heads/master | 2021-01-19T13:06:52.579227 | 2017-06-09T21:07:33 | 2017-06-09T21:07:33 | 100,825,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | """
Primes with runs
Considering 4-digit primes containing repeated digits it is clear that they cannot all be the same: 1111 is divisible by
11, 2222 is divisible by 22, and so on. But there are nine 4-digit primes containing three ones:
1117, 1151, 1171, 1181, 1511, 1811, 2111, 4111, 8111
We shall say that M(n... | [
"GHaber@BehaviorMatrix.com"
] | GHaber@BehaviorMatrix.com |
ccadf51ea06ea13387ab2c4085caaed98e426aaf | 525f5ba86e1476d5f0dc396e225d544beb43cd3b | /nomenklatura/query/builder.py | 65e44f59be0c769551f83140ad62fed9b1e909cb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | he0x/nomenklatura | bb47cd9103b03893832b4bda4bd69cba80473976 | b2e0a989de7aa4a08a63e22982c4904b255dc04a | refs/heads/master | 2021-01-15T08:18:29.257815 | 2015-03-28T20:15:52 | 2015-03-28T20:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,177 | py | from sqlalchemy.orm import aliased
from nomenklatura.core import db, url_for
from nomenklatura.schema import attributes
from nomenklatura.model.statement import Statement
from nomenklatura.model.context import Context
# from nomenklatura.model.type import Type
class QueryBuilder(object):
def __init__(self, data... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
3f52c6c176cf4be0f4a9196e0800895d96945866 | d7ceddbc91ab9b614f885ed060057a4d599f6aef | /GuliStore/db_tools/category_insert.py | 409d0525ea119e4366bd0896252dfdb209130a95 | [] | no_license | SozzZZ/Store | e9f91dc78fe383e7f6ed1fef37bb8cda2278f882 | a452bc25034bc959451bf23ed4b705cd7039781e | refs/heads/master | 2020-04-16T12:24:15.014998 | 2019-01-15T13:04:17 | 2019-01-15T13:04:17 | 165,577,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import os,sys
file_path = os.path.abspath(__file__)
dir_path = os.path.dirname(file_path)
sys.path.append(dir_path)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "GuliStore.settings")
import django
django.setup()
from goods.models import GoodsCategory
from db_tools.data.category_data import row_data
for item1 in ro... | [
"zj32032@outlook.com"
] | zj32032@outlook.com |
d1ddd85cbc64448548a583fa32a3ab476f8b2d95 | 09d80d6cdb398d16cd3deb774a8a8d93ca7b9fad | /products.py | 503d8cea4378ea6e20993319b1fba55e02461bff | [] | no_license | willpennell/product_scheduler | 2da76c381d109350580bbbcca5cf6022803a4c0b | 9e23aa3d6dc9c81e0c63df58fca489adf9af76cf | refs/heads/main | 2023-03-31T07:38:47.133125 | 2021-03-28T21:03:28 | 2021-03-28T21:03:28 | 352,419,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | import openpyxl, os, shutil
from directory import FileLocations
class NewProduct:
""" class for product input """
def __init__(self):
""" Initailise new product object """
self.labels = { 'apollo sound': 'Apollo Sound', 'delectable records': 'Delectable Records', 'element one': 'Element One', 'g... | [
"will.phanta@gmail.com"
] | will.phanta@gmail.com |
95ffbe82ce5cc5381187d18bf59d6700598338b6 | 12582f27081adb60a36926d5a7a6522745d509ce | /leetcode/DFS/90_subsets_2.py | a9a3ae23790d65fbd7136075fb66322000200940 | [] | no_license | yzheng21/Leetcode | bfbfe89a0edb4adbe98b567e479791e9e22fc6bf | c5484a357f338e72a1fd8db76e9c7c8b4bde8b68 | refs/heads/master | 2020-03-09T04:17:40.147820 | 2018-06-26T20:23:43 | 2018-06-26T20:23:43 | 128,584,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | '''
Given a collection of integers that might contain duplicates, nums, return all possible subsets.
Note: The solution set must not contain duplicate subsets.
For example, If nums = [1,2,2], a solution is:
[ [2], [1], [1,2,2], [2,2], [1,2], [] ]
'''
def solution(nums):
def dfs(nums, index, path, ans):
... | [
"zhengyufan94@gmail.com"
] | zhengyufan94@gmail.com |
cb34e53104a8f4d1ac3db1d5794268000b408779 | 488dfcae589f6386d1ccc3544e31c127154cf140 | /puzzle_venv/bin/easy_install-3.9 | 9f2a05d2c3da4a2060da62ea701e0fed70c7ad4d | [
"CC-BY-2.5",
"MIT"
] | permissive | tlwilliams895/log_puzzle_py | fffc4fb199fed830ad88cf8e33313be37680eda3 | 6504c40bb92197c93d2a988abc9320e453439a8e | refs/heads/main | 2023-06-10T08:49:57.058489 | 2021-06-21T18:09:44 | 2021-06-21T18:09:44 | 365,044,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | 9 | #!/home/tlwilliams895/se_Q3_Nov2020_Kenzie/log-puzzle-tlwilliams895/puzzle_venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tlwilliams895@gmail.com"
] | tlwilliams895@gmail.com |
74985979f124e089a3a7012fbcfff832451e0a48 | 7b83dada42bfcea443415e6fa5faea77bd04fdad | /rfassistant/scanners_wrapper.py | 79bab1f4fda1ca5f322116503fe2dfa518fa5e6d | [
"MIT"
] | permissive | stephenfin/sublime-robot-framework-assistant | 7e5a156b93ebe0d19024242e5b906b6fc76365ff | afd97ce4849ab2e3651653c2823b50ea00d6cf6c | refs/heads/master | 2021-01-21T08:33:33.005323 | 2014-03-02T10:27:08 | 2014-03-02T10:27:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# No sublime imports here.
# This module should be used with system python interpreter (outside of Sublime's python interpreter).
# Python imports
import os
# Plugin imports
from mixins import is_python_file
def get_modules(dirname):
modules = set()
for f in os... | [
"ahrytskiv@gmail.com"
] | ahrytskiv@gmail.com |
5bfa209a4f79d662f43645f47a2ec0a39649e5cc | 446d36469025ad2365cbde18e511207b2eec9a4b | /maze/main.py | 7d04f6d8429d141387627e7206489d9d9bc22025 | [] | no_license | Synedh/genetical_exit | 3a52eeecb71803e7642662f0683e7309c0b8fd93 | 8ed09875ba354493260794a7f4e03e8ccb168fcd | refs/heads/master | 2021-01-18T22:29:37.379833 | 2017-04-05T15:26:23 | 2017-04-05T15:26:23 | 87,057,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from maze.map import Map
def main():
map = Map()
map.print_map()
print()
map.use_key("s")
map.print_map()
print()
map.use_key("p")
map.print_map()
print()
map.use_key("c")
map.print_map()
def test():
pass
if __name__ == "__main__":
main() | [
"ddekeyzer@aspaway.fr"
] | ddekeyzer@aspaway.fr |
103e50d4711bcf8d35aaa30ebfcba07010b15081 | dd8dacc128cc013c64f1bb204429fdfaf51d7b74 | /Chess/client/python/BaseAI.py | e03474568227fefaa725ce0f1c051f00bbe5b9a0 | [] | no_license | jamesthesnake/CS347-Rush-Hour-Project | a216ad47e0cc185c1fcb73fb2ccef592f9eac54d | c8e2f508ab9e796d1e442f7544f062f08cf7cb8d | refs/heads/master | 2020-12-25T16:03:04.567690 | 2011-11-12T18:27:35 | 2011-11-12T18:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | # -*- python -*-
from library import library
class BaseAI:
"""@brief A basic AI interface.
This class implements most the code an AI would need to interface with the lower-level game code.
AIs should extend this class to get a lot of builer-plate code out of the way
The provided AI class does just that.
""... | [
"admkbd@rc01xcs213.managed.mst.edu"
] | admkbd@rc01xcs213.managed.mst.edu |
ffc2db6a28f8f25eb29a73ea013b1675185c9ce6 | f7de4cf5fde0a673c410da8de33dffdb3825cd84 | /test_boggle.py | cf72b8b747ce16a4ab37444873acd18f6b59e5bb | [] | no_license | luigilangella/Boggle-Game | 6489431b04d5ca0568134975fd3fd5259cdc3920 | 3c2e94e0c2c0f8ab41358cccde8f41cfa68e33c5 | refs/heads/master | 2020-06-12T18:19:23.739898 | 2019-07-01T13:25:02 | 2019-07-01T13:25:02 | 194,385,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | import unittest
from string import ascii_uppercase
import boggle
class TestBoggle(unittest.TestCase):
"""
Our test suite for boggle solver
"""
def test_can_create_an_empty_grid(self):
"""
Test to see if we can create an empty grid
"""
grid = boggle.make_grid(0,0)
... | [
"luigi76langella@gmail.com"
] | luigi76langella@gmail.com |
cbb1fc6301940401b020a676152a2dd636acf9ef | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0074_auto_20210227_1830.py | 129e1c19b1364390a394fc2a8aa7265a96484ea8 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.7 on 2021-02-27 18:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0073_auto_20210227_1819'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
f03af2a7915d3835033777ee323af7c7ddf60627 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03049/s862641058.py | d26e8c01dc0350e1428c4fbcbbbc4791d8acc382 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | n,*s=open(0).read().split()
a=0;b=0;ba=0;ans=0
for s_i in s:
b+=(s_i[0]=='B')*(not s_i[-1]=='A')
a+=(not s_i[0]=='B')*(s_i[-1]=='A')
ba+=(s_i[0]=='B')*(s_i[-1]=='A')
ans+=s_i.count('AB')
print(ans+ba+min(a,b)-(ba>0)*(a+b==0)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7513925253a66cc70f5beecea3c0f10b4a6e8682 | b6a353d33362b9e13e2679ded55855b3a4b668da | /URI_1042.py | dc6678c81f3597270cd81670803302e0def76a62 | [] | no_license | dho619/URI | 988e5c2ae890ad9b0784a83aa0c750f6d3689d0c | 022a21bff7f9244f77155d98ba83e45cbd0cc9d2 | refs/heads/master | 2020-05-20T09:00:26.671919 | 2019-05-08T14:13:36 | 2019-05-08T14:13:36 | 185,489,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | lista = list(map(int,input().split()))
[print(x) for x in sorted(lista)]
print()
[print(x) for x in lista] | [
"geovanebarbosacc@users.noreply.github.com"
] | geovanebarbosacc@users.noreply.github.com |
d50e53baa68a0d97117c9b201777dc4fccbbb1a3 | d627a394ab3599d680eb9ee52c675653cfb62dc6 | /nexabots-master/src/envs/hexapod_trossen_terrain_all/assets/heightmap_generation.py | 733b52a5d409bf925a7634472053dd73f8d64651 | [] | no_license | i7CDrAlfAc/grewRL | e98b0b1cd189f04faf648688532448a19e5236fd | 387d8f205380b94a88c076f61aaae60c413b926d | refs/heads/master | 2023-01-02T05:31:33.672202 | 2020-10-26T09:46:46 | 2020-10-26T09:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,932 | py | #%%
# @author alessandro
# Original perlin noise library by:
# Copyright (c) 2008, Casey Duncan (casey dot duncan at gmail dot com)
# see LICENSE.txt for details
### Start of perlin noise library
"""Perlin noise -- pure python implementation"""
__version__ = '$Id: perlin.py 521 2008-12-15 03:03:52Z casey.duncan $'... | [
"69282697+junpilan@users.noreply.github.com"
] | 69282697+junpilan@users.noreply.github.com |
18f02fbb87e0b8fd189b96c2bfff0e71823e04a0 | 964389493dafe5ae0ba5fde55238dc6be6fec968 | /code/common/dynamo_manager.py | 2ce2c048b5eb4088a929307f081bfc716bed5849 | [
"MIT"
] | permissive | TrendingTechnology/hawking | e60a5f192f7c1dc24d0701f3dcfe3eb76c73bcd8 | 1496fedfd6c03c2f8eec7da3ad800549f2fdb989 | refs/heads/master | 2023-06-16T18:04:32.743668 | 2021-07-19T04:23:22 | 2021-07-19T04:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,869 | py | import os
import base64
import time
import logging
import uuid
import boto3
from boto3.dynamodb.conditions import Key
from common import utilities
## Config
CONFIG_OPTIONS = utilities.load_config()
## Logging
logger = utilities.initialize_logging(logging.getLogger(__name__))
class CommandItem:
def __init__(self... | [
"naschorr@gmail.com"
] | naschorr@gmail.com |
d9b09bb0cf291926c4a433f61951a20ee91f4542 | 0e88f8a182e8520d6322be082119eb0f111eb76e | /data_utils.py | 77494af3c1ecaac43b513db11530ed685c0736df | [] | no_license | srishti-56/seq2sql | 04daac3f1f4a62b12969214b98f08c9b2eda206d | ce2c08de8ff4aac3dcda48ae59ab63bd857d4810 | refs/heads/master | 2020-03-13T21:45:49.411112 | 2018-04-27T13:59:55 | 2018-04-27T13:59:55 | 131,303,349 | 0 | 0 | null | 2018-04-27T13:57:13 | 2018-04-27T13:57:12 | null | UTF-8 | Python | false | false | 17,316 | py | # Copyright 2015 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... | [
"persistingsun@gmail.com"
] | persistingsun@gmail.com |
e82dcd7e2c42de6224abe59e0b0800eb2ca85e3e | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/export_asset_response.py | 105871097c009b0aa7c5f4c4354c87308f05e410 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,344 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExportAssetResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the val... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ce75d1de0433ee47a4be62f4fc9e76ae2ca88c74 | 9410824be12c04d57273d89995892a2be878550d | /mm_dst/gpt2_dst/scripts/make_token_dict.py | 53e0d4264c373364d64db6bb7013a8f40d04965a | [
"MIT"
] | permissive | inkoon/simmc | 684287c262041e44b349d5fd06e43bb45fa1a791 | f5bc22e31e160eb4246176e8c5ff0ab8216c20c8 | refs/heads/master | 2023-01-10T16:31:54.638393 | 2020-11-12T12:29:58 | 2020-11-12T12:29:58 | 288,914,509 | 0 | 1 | MIT | 2020-10-12T18:19:43 | 2020-08-20T05:27:17 | Python | UTF-8 | Python | false | false | 2,682 | py | import json
import argparse
# Step1 : get tokenlist
parser = argparse.ArgumentParser()
parser.add_argument("--domain", type=str,
help="choose domain {furniture|fashion}")
args = parser.parse_args()
domain = args.domain
f = open(f"gpt2_dst/data/{domain}/special_tokens.json", 'r')
act_w = open(f"gpt2_dst/data... | [
"md98765@naver.com"
] | md98765@naver.com |
9ce4ded2a310fc3a1a48f757dc92d7958f20082e | d53d16a14a63e8351cae0abd7c344e54a807cdf4 | /mail/test_case/page_ui_object/login_page_ui.py | 77d8a0592380216e3c139e5e39120b8418026d47 | [
"MIT"
] | permissive | hekaiyou/po-sample-python | f8b65b80ffe8f5be2e6e02ece478ced54cdf6f11 | 49dc73a00f5ff601ad06a845d422b1f3821cecde | refs/heads/master | 2021-05-12T06:05:14.100674 | 2018-01-12T10:44:07 | 2018-01-12T10:44:07 | 117,209,579 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # -*- coding:utf-8 -*-
from base import Base
class LoginPageUI(Base):
"""
页面UI对象(PUO): 登录页面UI
"""
def username_input_loc(self):
"""
定位到登录用户名输入框
:return: WebDriver对象
"""
return self.selector({
'ios_by': 'xpath',
'ios_value': '//XCUIElemen... | [
"hekaiyou@qq.com"
] | hekaiyou@qq.com |
8358602e69b3372bacd7a45ddadd7849c1ccf792 | 650b3dd4cc74f32db78f7d99cef9907aec78a222 | /dialogs/Report/fPettyCashReport_data.py | d224b848def8260b8a4ae4863468aef52b0886ab | [] | no_license | mech4/PKTrx | 29b871ab587434e7c208175c248f48d9b6c80a17 | cf01bc5be8837d632974786d2419c58b94a0381d | refs/heads/master | 2020-03-29T19:55:07.331831 | 2012-09-18T20:22:52 | 2012-09-18T20:22:52 | 6,289,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
import sys
def CetakData(config,parameters,returns):
ret = returns.CreateValues(
['IsErr', 0],
['ErrMessage','']
)
try:
except:
ret.IsErr = 1
ret.ErrMessage = str(sys.exc_info()[1])
| [
"wisnu27@gmail.com"
] | wisnu27@gmail.com |
e78093701de327b6a6d098469195e5498d9d4897 | c6366edb2b2cd4804d566c7087365a3851b1dc9c | /sorted_arry.py | 7afa4f86456d9ec4d5daadbb58c8774845aa88e3 | [] | no_license | sharmilasharu/guvii | 093e4261f7a09114279244db9c102afac3172352 | f804fcb21e243bf8cfa009f0721fc3ab3dabcb91 | refs/heads/master | 2020-05-26T02:32:51.861133 | 2019-07-10T13:53:09 | 2019-07-10T13:53:09 | 188,076,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | number=int(input())
N=list(map(int,input().split()))
temp=sorted(N)
print(*temp)
| [
"noreply@github.com"
] | noreply@github.com |
dfabfbb7eef76a04289682868648631a818c208c | 198ac210d70c865367fb73fb3c8f99b06cdd91d0 | /tests/integration/steam_simulator.py | 82382ec24aaef6653b83a506c43439f19fc0d0c8 | [
"BSD-3-Clause"
] | permissive | gutomaia/steamer-py | 0f2bc6a81bfab6986470b03b370ccf53941432ff | 7175fb1d79fe6ffc0c31b3e74f62805629e457b2 | refs/heads/master | 2021-01-10T19:30:50.429652 | 2013-04-29T13:38:30 | 2013-04-29T13:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import threading
from time import sleep
import web
import requests
urls = (
'/id/(\w+)/stats/(\w+)', 'game_page'
)
class game_page(object):
def GET(self, user, game):
f = open('fixtures/%s-%s.xml' % (user, game))
xml = f.read()
f.close()
web.header('Content-Length', len(xml))... | [
"guto@guto.net"
] | guto@guto.net |
151f5b040ea2f06c60e0d8eb26aed3b49555b1af | a62127105b45751fc23d62c83cc5e6fc26ac0bba | /FEMSolver/test.py | 8825b86a40bca57f93d0e51efe769d652bb0d067 | [] | no_license | CloakMe/MyStuff | d4be758f543242802fda6163b94cbc6d5db4ae98 | ccd29bbc002ca26dab9e8874a4c64601ab64f2f6 | refs/heads/master | 2022-10-15T16:37:28.728167 | 2022-10-13T07:10:07 | 2022-10-13T07:10:07 | 16,573,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import numpy
from numpy import *
domainNodes = numpy.genfromtxt( "coordinates.dat", delimiter=" ")
size = domainNodes.shape
print size
a = 4
b = 3
xx = a + \
b
print xx | [
"angelow@math.bas.com"
] | angelow@math.bas.com |
d0514286e882b2b9ccea6917e542ed17d5dcc3ed | ea39e9586a585daa1852998ebbeb3b4c16cf9c6b | /venv/Scripts/pip3.7-script.py | be3e21862f6f6c5bfd6ced260333d34f20874d78 | [] | no_license | lrssnn/lyrical | 5973657cca994fde30a5a64dff1e03038ea4a2fa | d0df9558c14941b1c7b053df7512696381e1108b | refs/heads/master | 2020-06-02T01:07:44.436049 | 2019-06-10T11:18:58 | 2019-06-10T11:18:58 | 190,988,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\nikla\PycharmProjects\speech\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"niklaslarsson95@gmail.com"
] | niklaslarsson95@gmail.com |
1315c06485dbe71eaa8760926e634df200ee5689 | 818d9d99823fb1e087368849a23bdc2b83e29d00 | /数据采集_内网版_2017_9_4/源码/dns.py | ccbd99ff74895c80eebda82eccdb05ac41982b61 | [] | no_license | jiangyt2112/Web-Data-Collector | 17ea2d3b1e2f905cfeabdab74522b0aac88b64b1 | 1f4161cc305925ec3810712b5d9c09f9207332bd | refs/heads/master | 2020-04-01T13:52:12.812023 | 2018-10-16T11:12:56 | 2018-10-16T11:12:56 | 153,270,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
# 清理系统的dns缓存
from subprocess import Popen, PIPE
#proc = Popen(['tracert','www.baidu.com'], stdout=PIPE, stderr=PIPE)
#proc = Popen(['ping','www.baidu.com'], stdout=PIPE, stderr=PIPE)
#ipconfig /flushdns
def clear_dns():
#return_code = -999
proc = Popen(['ipconfig', '/flushdns'], stdou... | [
"946692706@qq.com"
] | 946692706@qq.com |
abef2cb274ed65989d3ca39589e5a560860bd612 | 1eed1b2d9b03aea520a370851efeff8e6819b47b | /rl/urls.py | 301479caffa78cc64ee0e968e4ed9723c64f00b9 | [] | no_license | smartbrainsakshi/augmenter | 318a700980055c3360599f7fc4117e9d03e714ee | 81990805bdc86df83d96f47037268deb83f681b7 | refs/heads/main | 2023-06-16T06:12:14.632655 | 2021-07-18T22:24:10 | 2021-07-18T22:24:10 | 387,283,072 | 0 | 0 | null | 2021-07-18T22:45:37 | 2021-07-18T22:45:37 | null | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import url
from django.conf.urls.static import static
from django.conf import settings
from . import views
app_name='rl'
urlpatterns = [
url(r'^index', views.my_form_post),
]+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| [
"princesharzeel.10@gmail.com"
] | princesharzeel.10@gmail.com |
0331644aa9c6ce4d3b15eb5d286fa083f49458af | 4723d9818d8b52bcfa2315a59ceb4acf1731b761 | /pysgg/engine/inference.py | 7b71c8bd65ef28cc62751bb7f02222daf39f8a96 | [
"MIT",
"Python-2.0"
] | permissive | rafa-cxg/PySGG | fe8b34157438d73e7a91a846a3428f411a9b2535 | 5b758cd811e81cd47781fb4028011a012d91fcff | refs/heads/main | 2023-08-30T09:22:04.937170 | 2021-10-29T02:31:41 | 2021-10-29T02:31:41 | 425,873,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,090 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import logging
import os
import torch
from tqdm import tqdm
from pysgg.config import cfg
from pysgg.data.datasets.evaluation import evaluate
from .bbox_aug import im_detect_bbox_aug
from ..utils.comm import all_gather
from ..utils.comm import is_... | [
"limo97@163.com"
] | limo97@163.com |
6b47b5fc35da3f18e857c3305a1cd2087d33387d | f12dc9abda678a4ac7ba1bb7e0be0f20c4213c1c | /venv/bin/subunit2gtk | 45d09b6f8f45ac5e0faf80db3c1b7fe6797aa6fc | [] | no_license | navsinghoberoi/PythonDemoProject | aeeba47c3be54d920ff8559cca5a7798b2fec7df | 2cdac6e4b82ef42d07d580bbf782318c4d360bf9 | refs/heads/master | 2020-05-21T07:13:41.131447 | 2019-05-10T13:15:43 | 2019-05-10T13:15:43 | 185,950,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,349 | #!/Users/navpreetsingh/PycharmProjects/try/venv/bin/python
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A c... | [
"navpreet.oberoi@shuttl.com"
] | navpreet.oberoi@shuttl.com | |
cff0dc219b93857bac6bb89771e881ac83053947 | d659f9a8e5eae230273c6d6d8dc7730a4a902616 | /Homework/hw04/hw04.py | bb7f0f8e1bdc46541c4b84661f7df444a68439db | [] | no_license | JWRickyWan/CS61A | ae7b29ac6abda13509af2d37e0d9768366368497 | cbc63e953f3479431bee0dfcf89fe229b3a5dba2 | refs/heads/master | 2023-01-25T01:16:18.887140 | 2020-12-16T06:07:32 | 2020-12-16T06:07:32 | 321,885,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,270 | py | this_file = __file__
# Mobiles
def mobile(left, right):
"""Construct a mobile from a left arm and a right arm."""
assert is_arm(left), "left must be a arm"
assert is_arm(right), "right must be a arm"
return ['mobile', left, right]
def is_mobile(m):
"""Return whether m is a mobile."""
return t... | [
"JWRickyWan@users.noreply.github.com"
] | JWRickyWan@users.noreply.github.com |
0dee9403c606c115e210e6b3f137273ecb325dac | 696c21dce5b61e65284144d4e37839c5f310e9b2 | /src/work/sinobiological/sinobiological23.py | 930d966150995b79590a7dad92d7f1065e88e025 | [] | no_license | Just-Doing/python-caiji | 6e379ec7742e1b5a168f4f0a6a4fb23fc99c65df | e5b80cb1faa6f2176dfacfb01640c35023bee527 | refs/heads/master | 2023-01-28T05:47:56.263966 | 2023-01-17T06:51:35 | 2023-01-17T06:51:35 | 213,672,397 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,437 | py | from urllib.request import urlopen
import urllib
from selenium import webdriver
from bs4 import BeautifulSoup
import http.client
from openpyxl import Workbook
from openpyxl import load_workbook
from openpyxl.writer.excel import ExcelWriter
import json
import re
import copy
import string
import ssl
ssl._create_default_h... | [
"969502899@qq.com"
] | 969502899@qq.com |
68bfda635daa1e717968818931ef863405f5ba8a | 78125eab78398588b646747056eddee6b75a3b44 | /LCD_Screen.py | 68b4572c886e1e3836f04ad0356d3ea2df3d6470 | [] | no_license | Scollie86/CircuitPython | 72808ec4043bbca71b480d3bce9f140dec86333e | f61a78ad0be83ba302d78eb95e8bf7a4cd02ce55 | refs/heads/master | 2020-08-05T14:38:41.915529 | 2019-11-14T15:35:04 | 2019-11-14T15:35:04 | 212,582,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import board
import time
from digitalio import DigitalInOut, Direction, Pull
from lcd.lcd import LCD
from lcd.i2c_pcf8574_interface import I2CPCF8574Interface
from lcd.lcd import CursorMode
button = DigitalInOut(board.D2)
button.direction = Direction.INPUT
button.pull = Pull.DOWN
switch = DigitalInOut(board.D3)
switc... | [
"scollie86@ccs.local"
] | scollie86@ccs.local |
45791f8780d3d0fcf36794f07c8f0c0341846d4c | e7c576fadb4ee05e3a7dfa4594c0c7ef3e6e258e | /week2_basic_math_operations.py | 4290f7de8511390932c9bb0e0bf91de1203debd0 | [] | no_license | fhcwcsy/python_practice | 9c3d559279c9d6d2fcc5f875110421137eead28d | a8b2e0bdf05cc372aa992058bc43949dbd99755d | refs/heads/master | 2020-09-10T01:43:54.066192 | 2019-12-11T00:35:17 | 2019-12-11T00:35:17 | 221,618,373 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | import math
def basic_math( input_list ) :
summation , maximum , minimum , _sqsum = 0, input_list[0] , input_list[0] , 0
for item in input_list :
summation += item
_sqsum += item ** 2
if maximum < item :
maximum = item
if minimum > item :
minimum = item
... | [
"fhcwcsy@gmail.com"
] | fhcwcsy@gmail.com |
6d72629e2166ef7142a7423e4d47ebcc5b93f571 | 869b8c7a526ebfbe6b55832ce9f081cd0218a4f5 | /onconet/models/spatial_transformers/factory.py | 0ad65b9657f472eb0d7eaebe27c8ff71d8b3ee59 | [
"MIT"
] | permissive | yala/Mirai | 54d1ab1496d35c05553cfe1c255e7c3012462ce4 | 12bace8fd6ce9c5bb129fd0d30a46a00a2f7b054 | refs/heads/master | 2023-04-29T11:12:28.853712 | 2023-02-24T21:28:20 | 2023-02-24T21:28:20 | 315,745,008 | 66 | 23 | MIT | 2022-02-07T20:49:05 | 2020-11-24T20:29:22 | Python | UTF-8 | Python | false | false | 688 | py | SPATIAL_TRANSFORMER_REGISTRY = {}
NO_SPATIAL_TRANSFORMER_ERR = 'Pool {} not in SPATIAL_TRANSFORMER! Available spatial transformers are {}'
def RegisterSpatialTransformer(st_name):
"""Registers a pool."""
def decorator(f):
SPATIAL_TRANSFORMER_REGISTRY[st_name] = f
return f
return decorato... | [
"adamyala@csail.mit.edu"
] | adamyala@csail.mit.edu |
151f8401dd23cc073bf7bb3fbb5cbf94fb035bc6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_greyhounds.py | b30dc2d9386d20b4a85bd14ebe73422e2417bc96 | [
"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 | 259 | py |
from xai.brain.wordbase.nouns._greyhound import _GREYHOUND
#calss header
class _GREYHOUNDS(_GREYHOUND, ):
def __init__(self,):
_GREYHOUND.__init__(self)
self.name = "GREYHOUNDS"
self.specie = 'nouns'
self.basic = "greyhound"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f0187b86e29e7f18ddf9462ac414c4886ffcb744 | 8731516c32082c299a41c4cb36553025d757f2d7 | /libs/listToDict.py | 72da0d69311eca47bdc30809fbabc4b039a64bb5 | [] | no_license | wangkb23/gitpy | e0f452624423a4820ff2221c111c623b224b497a | a23ec36857f20e410fd380a5e1d1ce121922a04f | refs/heads/master | 2020-06-23T10:50:28.025105 | 2019-07-26T09:17:26 | 2019-07-26T09:17:26 | 198,601,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #coding=utf-8
'''
解决从excel中读取列表转化为字典的问题,使之成为参数字典格式
'''
def listTD2(lt):
lt2=[]
lt3=[]
dt={}
count=len(lt)
if count%2==1:
lt.append('')
lt2=lt
elif count%2==0:
lt2=lt
# print lt2
for j in range(len(lt2)):
lt3.append(str(lt2[j])) #str解决取出的数字带小数点的问题
for k in range(0,len(lt2),2):
dt[lt3[k]]=str(lt3[k+1]... | [
"xinjie.wang@innotree.com"
] | xinjie.wang@innotree.com |
c3a9171b7c4e48ee6debd0d97be46badbb31b719 | 29ed97dde7e2f3694d2acf49cd71934a5dc8b034 | /website/util/utilities.py | 1fa73204b203a48ce2dd60a71811e6719fa2300e | [
"MIT"
] | permissive | Jack-Gledhill/pistat | ca8097fe2e38a160d8111d84eebc09721b116fbc | 67e1c6c64aa6692c69818855a8fc13f794493e3b | refs/heads/master | 2022-11-19T06:39:15.490932 | 2020-07-10T08:35:43 | 2020-07-10T08:35:43 | 269,434,702 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | # Copyright (C) JackTEK 2018-2020
# -------------------------------
# =====================
# Import PATH libraries
# =====================
# ------------
# Type imports
# ------------
from typing import Any, Iterable, List, Optional, Union
# --------------------
# Builtin dependencies
# --------------------
from da... | [
"jackgledhill2005@gmail.com"
] | jackgledhill2005@gmail.com |
ed32f58e9cc613022cfac9a88c40175bd3ff5d6d | 37ddd56edefcc293e4549ca8a6dd5eb784c5ef6e | /citizen/apps.py | 4f9feac07cc2b3b3521e910171663478cdccb875 | [] | no_license | prabhanjan1996/Citizen-Seva-Application | 201eafe50bd03a23f26af39dc04528a39b6d389e | 248f73936f1ca07c5ab82d3a9c33ea47c8c7aeeb | refs/heads/master | 2022-11-15T18:32:24.020882 | 2020-06-28T07:30:03 | 2020-06-28T07:30:03 | 272,720,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class CitizenConfig(AppConfig):
name = 'citizen'
| [
"desaiprabhanjan05@gmail.com"
] | desaiprabhanjan05@gmail.com |
d562c454c33e7d1de5b64e3d465d60fa667e1f22 | d4722d631ed1e137073bec767ea2af208e60f09b | /utilities/doxy-coverage/doxy-coverage.py | 69df8b218cee9631b1758d86943c59f84cbba107 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | RoboJackets/mjackets-api | 6c701f0955099bd5867cf76dc9a6d452ab1e5e9a | 587600e6496461dca042dfee3b19192ef609dab6 | refs/heads/master | 2023-06-30T23:25:16.073509 | 2020-10-22T23:16:15 | 2020-10-22T23:16:15 | 274,287,907 | 1 | 0 | Apache-2.0 | 2021-07-05T21:17:51 | 2020-06-23T02:17:43 | CMake | UTF-8 | Python | false | false | 5,377 | py | #!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
# All files in doxy-coverage are Copyright 2014 Alvaro Lopez Ortega.
#
# Authors:
# * Alvaro Lopez Ortega <alvaro@gnu.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following c... | [
"akeener@outlook.com"
] | akeener@outlook.com |
0f55a6b45df9e1fdac09052d9d56e1e79e55d768 | f077bcbe2f3e309ce9747c3d37da9461864865fa | /Aerodynamic problem.py | 5fb87ceb5aa47ad56adc66979d92f694ed4f7e16 | [] | no_license | Tarekhelmy/Assigment1 | 7d0bdf6a47d09b6ca2a582004247cda9f5560c04 | fe03cae2967043cba07af76da1eac79aaa5c4bed | refs/heads/main | 2023-03-28T10:53:17.343378 | 2021-03-27T16:47:45 | 2021-03-27T16:47:45 | 352,125,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | import numpy as np
Cord=[100.000000,0.126000
,99.941610,0.134190
,99.766580,0.158700
,99.475320,0.199380
,99.068500,0.255950
,98.547090,0.328040
,97.912290,0.415190
,97.165590,0.516850
,96.308730,0.632380
,95.343720,0.761080
,94.272800,0.902170
,93.098490,1.0548... | [
"noreply@github.com"
] | noreply@github.com |
c14234282bae06f12ccd4344b5d1469cccd06875 | f544003d9fb2c51f1ba341d32f496ce1098dd010 | /scr/bot.py | bfdd67f3f0b0f79b07741457bdde3e29492c4520 | [] | no_license | Mikhaylov-yv/IT_hakaton | 30882b585b9c122e449518532bad5a88e8338078 | 3d52942a9dca4d8609fa1be717f1f5ebde5909b4 | refs/heads/main | 2023-05-03T02:44:13.359551 | 2021-05-29T13:05:23 | 2021-05-29T13:05:23 | 371,578,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
import time
import main
updater = Updater(token = '', use_context=True)
dispatcher = updater.dispatcher
import logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO)... | [
"dezmond22@yandex.ru"
] | dezmond22@yandex.ru |
cbbd9dab26749f718151b2df3aa9d7dd0422c9b9 | 75cb135862cfed6e566f3beb6af4c336d2713cbf | /watchstore/watchstore/wsgi.py | d30241dd127aa6750328bd25f8c06300212fcd96 | [] | no_license | TomJSmith/watchstore | c7c7b175325918fceed4261702db7fba9bcb24e0 | 4544e6bd7ddd778b90237edfe07b9d1b2c6a592b | refs/heads/master | 2021-03-27T08:36:27.994449 | 2017-04-11T06:11:40 | 2017-04-11T06:11:40 | 82,330,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for watchstore 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"thomas_smith@live.ca"
] | thomas_smith@live.ca |
4ec02b40b4eaef9cd000b9f4fed6b0c691c3f47d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21454.py | 45e7d2122ab9b2a6b0f3906d21dcb18297aff031 | [] | 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 | 159 | py | # Updating collections from collections
db.Coll2.find().forEach(function(c2){
db.Coll1.update({isbn:c2.isbn},{$set: {category:c2.category}},{multi:true})
});
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c4dfd77cd9d0addc9ec6ac5d9e9ce47a3e5a5eb6 | 3fde797ab95c56e8c5f94e688dd542ee8ff38906 | /code/process_data.py | 672668a57c5268cf57ca678d1d3d08de556ca74b | [] | no_license | ryanran92/AliMusic | 9f1e5f81bba9f2ac25b08028f53a82971e11794d | 2a03be2392fbc220b06e40a04ec67e6fc7565b10 | refs/heads/master | 2023-04-09T01:14:43.493551 | 2016-05-31T16:02:13 | 2016-05-31T16:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | __author__ = 'WSY'
import os
class Song():
def __init__(self, song_id, publish_time, song_init_plays, language, gender):
self.song_id = song_id
self.publish_time = publish_time
self.song_init_plays = song_init_plays
self.language = language
self.gender = gender
... | [
"ranyu2@126.com"
] | ranyu2@126.com |
9ae166800134dc998f14b2a79ca1725e88555712 | b007a2fa60aff213e57305e3e2c3ee68e989595b | /cliente_soket.py | e92b46cc1c70b0e281538c86d7a6ea660bd0ee71 | [] | no_license | IvanManchon/TFG | 14a4a4c9f52830d9215ed906d46e5881cef85f65 | 49a1632f73ac998c336adf5059aaade2074843e7 | refs/heads/main | 2023-06-01T12:05:51.129287 | 2021-06-14T17:00:51 | 2021-06-14T17:00:51 | 305,331,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import socket
while 1:
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = ('192.168.0.17', 10000)
print('connecting to {} port {}'.format(*server_address))
sock.connect(serve... | [
"noreply@github.com"
] | noreply@github.com |
f679801522b6aebb31331aa94e42930f3a44703b | 1f0ce573ed9fc539c01865e89bf148b9628c0174 | /train_4c_HNN.py | e835dc3f44d2498c8dc91a28f8a53acbd50ad783 | [] | no_license | SonwYang/building-extraction | cfd304dbeeca93363ff0dbfe8d09d5477d519051 | 3cacc547eb6fab8150cfa7407a1144e5e80a0fe1 | refs/heads/master | 2023-08-21T03:54:10.215846 | 2021-10-26T00:19:08 | 2021-10-26T00:19:08 | 263,852,200 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,759 | py | #!/usr/bin/env python
# coding: utf-8
import collections
import torch
import torch.nn
import torch.backends.cudnn
import argparse
from utils.datasets import build_loader
from weight_loss import WeightedBceLoss
from utils.metrics import Metrics
import segmentation_models_pytorch as smp
from models.YpUnet_AG_hnn234 impor... | [
"yp1995@qq.com"
] | yp1995@qq.com |
2ea557f2ff25dfe3d6814f661e394d2f08d30e99 | fcdad70e1420fcbf23162495df5d371456a9e54b | /高效开发/error/except1.py | 12a413c8f9e5a3967791d27bd12aa76e5e489b94 | [] | no_license | Fngje/pythoncode | 5148ef77f5039a131ed27c98aa203e22a8328fc6 | fcd7be9aa6810914f4e72cc620909febff1e9e7d | refs/heads/master | 2021-07-20T09:14:21.509653 | 2017-10-29T02:24:33 | 2017-10-29T02:24:33 | 103,025,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#Author:jie.fang
try:
result = 3/0
print("This is never been called")
except:
print("Exception happened")
finally:
print("Process finished!") | [
"fngje0128@163.com"
] | fngje0128@163.com |
9d8652bd5212638aa553faeda0f53d1c427b62df | 3e10d3bda8482cc4278fff181b04cc0d4f0ae5e2 | /reusable_code/sheets.py | b2b1adda96b3de587063d734dd15291dd7e7788f | [] | no_license | sw-2019/bbdig_backup_SW | a0e076fa6128868de3056f953e325bca793d28ac | 8ddf1ef15bfe97ee334d41883d726ecef556b7f0 | refs/heads/main | 2023-04-08T03:05:01.880240 | 2021-04-16T16:34:46 | 2021-04-16T16:34:46 | 339,210,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,158 | py | import datetime
import logging
import re
import string
import gspread
import numpy as np
import pandas as pd
from oauth2client.service_account import ServiceAccountCredentials
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
# set up logging
logging.basicConfig(
format="%(asctime)s - %(na... | [
"52572974+sw-2019@users.noreply.github.com"
] | 52572974+sw-2019@users.noreply.github.com |
a96ea359ed19120303caf5cce18f7196db6b264b | 632dfb2bfa5a0ecb037a0e8d4257076480418efc | /upload/urls.py | 793a4f9d5197bff480f97da4cc8cec302518e92d | [] | no_license | akiraowada/django | 0a77fc12d1b63dd1fc4338f589bc746342817ba4 | 1bb67672c8f78299c48e04e642553dc1acd10b9b | refs/heads/master | 2020-03-17T20:00:10.265072 | 2018-05-18T01:20:37 | 2018-05-18T01:20:37 | 133,888,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from rest_framework import routers
from .views import ImageViewSet
router = routers.DefaultRouter()
router.register(r'images', ImageViewSet)
| [
"a.owada@too.co.jp"
] | a.owada@too.co.jp |
b3b956cf8f2482a45cd555f202e06a02b98b7d41 | 5f61724fc5cad3f82094a681c853cc9f0337f050 | /test/test_section.py | 41d67a7de2c3641cf36ab6ae71a3a5eccb98bd42 | [
"Apache-2.0"
] | permissive | barseghyanartur/odfdo | 2cecbbbb33f23d5ed0ba80cb9208a8e7857b93a0 | e628a9e9daa40319a777d216ec7ebca4057b3344 | refs/heads/master | 2022-11-17T15:43:15.662484 | 2020-06-27T00:41:38 | 2020-06-28T22:53:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | #!/usr/bin/env python
# Copyright 2018 Jérôme Dumonteil
# Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend.
#
# 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.apach... | [
"jerome.dumonteil@gmail.com"
] | jerome.dumonteil@gmail.com |
f6c2473d0cb4c1a714cbf63f8d726665549f6ff9 | 4960c0d38c3794cf249b6cb473232a75e5d777a0 | /interfaceTest/t1.py | 7878a46ed0fb123bdf032f41cef8283ef2c1b122 | [] | no_license | yanfengmusic/charging | 0c10f35395279713758e930e9e7c2e5972cfeb86 | a5ab8aedc41ecde6de89a5731e77de4f0c4cee38 | refs/heads/master | 2021-05-23T01:51:18.578385 | 2020-07-14T03:38:20 | 2020-07-14T03:38:20 | 253,180,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __author__:hp
__mtime__ = '2020-03-19'
"""
信息一、
我的名字叫呱呱,年龄35岁,不抽烟
A. 用urlencoded格式表述为,form表单表达方式
B. 用JSON格式表述为
name=呱呱&age=35
{
"name":"呱呱"
"age":35
}
"""
# import requests
# # proxies = {
# # "https": "http://10.10.26.28:8888",
# # }
# r = requests.get("https://www... | [
"yanfengmusic@126.com"
] | yanfengmusic@126.com |
f7bf738a8da6c732349f052d81c1f7e933b1fcee | 123611a9cfd09f4a78cb0c8af714caa97520f614 | /src/reordering_evaluation.py | a6fe4e14766575bd9cccefca649c3deb8ffd17e4 | [
"MIT"
] | permissive | XPerianer/TestingBackend | 6dc8f0425e1d3fa1af0b69ab3db3be8f8b9b723a | 3949f31d75cb0c5fe01ceeabe98c3bf48f60c936 | refs/heads/main | 2023-03-08T23:36:02.079507 | 2021-02-28T22:09:26 | 2021-02-28T22:09:26 | 317,542,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,258 | py | #
# The MIT License (MIT)
#
# Copyright (c) 2020-2021 Dominik Meier
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, co... | [
"dominik.meier@student.hpi.de"
] | dominik.meier@student.hpi.de |
01cb5e2217cbeda9c07fa41e124ecaa47af4e2a3 | 2e0c07e8f719e456f1b56c872c4c65d42e3b69d6 | /myapp/migrations/0009_auto_20180413_0520.py | 05de715d9902e06e3b6a80670afcb4e676ba7900 | [] | no_license | Surendhar249/FoodDeliveryApp | 8677a433075ea536e5fe744a9cdeb98d364c897d | cc01b7a003a4a5c12d57d7b53fa6640d533e6acf | refs/heads/master | 2023-05-02T16:53:54.131760 | 2021-05-28T20:26:16 | 2021-05-28T20:26:16 | 371,759,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-12 23:50
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0008_auto_20180413_0515'),
]
operations = [
migrations.RenameField(
... | [
"practicalengineers05@gmail.com"
] | practicalengineers05@gmail.com |
46422d85aaa5bc5f8d3b2b82cb297d5f23856836 | c2046b7f9e325f38e28b87b8a07af96855f098f1 | /Tracker/migrations/0028_auto_20200408_1125.py | 1859ac29e9ea8467cf780de7ccb79376f081348e | [] | no_license | PankajLal99/Django-Alumni-Tracker | 722cd38caf531f32d190285397cd607222b9e322 | 305e975a043968bb2ad8f6acf4301e2857d9da43 | refs/heads/master | 2021-04-08T22:33:13.370610 | 2021-03-21T05:31:06 | 2021-03-21T05:31:06 | 248,815,864 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Generated by Django 3.0.2 on 2020-04-08 05:55
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Tracker', '0027_auto_20200408_1124'),
]
operations = [
migrations.AlterField(
model_name='profile'... | [
"lalpankaj0@gmail.com"
] | lalpankaj0@gmail.com |
f3dab0cc3956feacbab0c7ed3cd9898dde52ce30 | 7aface48eb7790912af15025a4e23d6c625c9a1e | /old/bayes.py | 5c0a85d05bf8513658f765eafd4481a201576541 | [] | no_license | J-bytes/competition3395 | e5cc293063e2f82c42ee43d6b1c60075c218ae03 | 7b7473b4b83bd063f9b63beba9b6f003a8ef6224 | refs/heads/main | 2023-01-05T14:00:42.729004 | 2020-11-04T00:05:52 | 2020-11-04T00:05:52 | 302,062,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 8 19:09:04 2020
@author: Jonathan Beaulieu-Emond
"""
import numpy as np
import pandas as pd
import regex as re
train=pd.read_csv('data/train.csv')
def draw_rand_label(x, label_list):
seed = abs(np.sum(x))
while seed < 1:
seed = 10 * seed
seed ... | [
"60334318+J-bytes@users.noreply.github.com"
] | 60334318+J-bytes@users.noreply.github.com |
927d97d44d8586ea1953c8305e6863d6fd444998 | 3025e486be4299b0cdbb4a4442c1c912ebf65ba1 | /backend/service/checkPercent.py | 63ab4e87066a5479e8b21981a6cafb3697eebc92 | [
"MIT"
] | permissive | CiprianBodnar/DeftEval | 472b064a6f81fd73f1810600c40ad33114c4746d | 7afbaa9013873c91e4f209311ed499005080e131 | refs/heads/master | 2020-08-15T11:00:45.390998 | 2020-01-16T11:26:31 | 2020-01-16T11:26:31 | 215,329,322 | 0 | 1 | MIT | 2020-01-16T11:26:32 | 2019-10-15T15:11:32 | Java | UTF-8 | Python | false | false | 1,124 | py | from Features import is_definition
trueCheck = 0
falseCheck = 0
totalSent = 0
def checkPercent(file_read):
global trueCheck, falseCheck, totalSent
with open(file_read, 'r') as ins:
line_list = []
for line in ins:
line_list.append(line)
sentences_list = []
val_list... | [
"andrada.tapuc@gmail.com"
] | andrada.tapuc@gmail.com |
5e290ff3d641dac02dfaa26c5ddc518dc5296c53 | 64564ad34eb88c9b366b23c21e90684dbbf0ba94 | /gen-py/livetex/presence/__init__.py | f312244d5dd7e10e95dd3ce02da36801320797ef | [] | no_license | hobbit-vt/livetex-fake-services | 53481fcc02190a14648ac6950eeb39b31087f9f2 | b595d912307148d1bc6b162f63608369256d9c43 | refs/heads/master | 2021-01-25T07:34:36.583297 | 2014-10-17T09:51:11 | 2014-10-17T09:51:11 | 23,706,391 | 1 | 1 | null | 2014-10-23T15:16:52 | 2014-09-05T14:42:37 | Python | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
__all__ = ['ttypes', 'constants', 'Presence']
| [
"viktor.g@livetex.ru"
] | viktor.g@livetex.ru |
c8db93ac8b84069eaa3db4066fd55c60f660c841 | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/gluon/contrib/generics.py | abaa95f64160cec56f5ab445a32e92a16a8ff4fd | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 2,528 | py | # fix response
import os
from gluon import current, HTTP
from gluon.html import markmin_serializer, TAG, HTML, BODY, UL, XML, H1
from gluon.contrib.fpdf import FPDF, HTMLMixin
from gluon.sanitizer import sanitize
from gluon.contrib.markmin.markmin2latex import markmin2latex
from gluon.contrib.markmin.markmin2pdf impor... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
ca630a81ec19d0c7e2db93cbb67a3c2e0e581877 | 3d700978d5022e337bedd8346757734eaa8c1d99 | /Playground/test_line.py | d661fc859486da78f09ffa9d5d3c15badb43d499 | [] | no_license | hukf/test | 312ec15122bc1631b74a35e992bed2f7b56b41ac | 18211d244395c487df387fda49ef2df4d5e46138 | refs/heads/master | 2020-08-06T17:37:22.168307 | 2019-10-07T21:32:30 | 2019-10-07T21:32:30 | 213,095,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 13 19:36:40 2018
@author: kuifenhu
"""
# -*- coding: utf-8 -*-
import math
import matplotlib.pyplot as plt
from matplotlib.backend_bases import MouseEvent
class DraggablePlotExample(object):
u""" An example of plot with draggable markers """
def __init__(sel... | [
"kuifeng.hu@keysight.com"
] | kuifeng.hu@keysight.com |
b16c4c52914d1c0afb2908d9932731d9a2b4a8f4 | 4290a698a7192fd8b4f25544d656509706439025 | /Kata_HW/HW3_2_Reversing Words in a String.py | 4ef727e84a89d73d018a6433d4a662c060649e95 | [] | no_license | Row35/Homework.SSAcademy | 6401b869da99f5b963b4ec320eb229e03a1e9927 | a577f5ee17ab3cb11a80e6beabfd06bf6f8fc289 | refs/heads/master | 2020-12-26T10:18:51.381457 | 2020-03-03T10:20:58 | 2020-03-03T10:20:58 | 237,479,109 | 0 | 0 | null | 2020-02-06T21:19:17 | 2020-01-31T17:17:19 | Python | UTF-8 | Python | false | false | 82 | py | def reverse(st):
list = reversed(st.split())
return ' '.join(list).strip() | [
"ivan.shtoyko@gmail.com"
] | ivan.shtoyko@gmail.com |
a5619323d43ade10c4b214fd9d79a78d192eb311 | e58849902137059f26d81fa072436ec5d5cca655 | /venv/Scripts/pip3.7-script.py | fc58c48e3fabc206c6d8ff83ed296bdbab2e673c | [] | no_license | HT78/guoya1zu | 841b1d4831b5096c67e21ce14ac41fa445fc27b2 | 572516594e0fb1a5c5d2a0d7c0554dbc48b20bc1 | refs/heads/master | 2022-11-11T11:42:38.405009 | 2020-07-07T06:43:24 | 2020-07-07T06:43:24 | 277,698,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!D:\python\py\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__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)?$', '', sys.argv[0])
sys.exit(
... | [
"18221135679@163.com"
] | 18221135679@163.com |
f54d3836109b9cd59ba664c899e1d55d2bb6d01b | 4a92b0df42dff28470f5bf72e16b33f42fbe57c6 | /10 05 2021/Aula06_Ex7.py | a5ff345f780baed392430af4f1c285c1c4fb9cbf | [] | no_license | GHEPT/visualstudio-bluedtech | 6a9c67529aec2bace60512f276f23a31537da3de | e87a89a520d3d794ce2ac9defa11637564cb55e6 | refs/heads/master | 2023-04-29T09:47:42.662130 | 2021-05-12T00:18:16 | 2021-05-12T00:18:16 | 365,823,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # funcao recebe 2 valores, imprime o menor e se forem iguais passa essa informacao
def compara(a, b):
if a > b:
print(a)
elif a < b:
print(b)
else:
print("Os valores são iguais")
a = float(input('Digite um número: '))
b = float(input('Digite outro número: '))
compara(a, b) | [
"teodoro.edu@hotmail.com"
] | teodoro.edu@hotmail.com |
f12544262fd311d63d723c7c08c4e901561141d6 | 49efc1fb2082f082b829cbafb766f20b1c09e035 | /Formats/Django.py | 54497736f1458cb22a2dc013257dd38a2b7a5ea9 | [
"MIT"
] | permissive | koffisani/vectorformats | 1558e7b1db4490eeac14e2469c4533a72ffd963b | 8f687fe9957e1833c06c01e3af854d402449f2af | refs/heads/master | 2020-05-07T10:22:46.171169 | 2019-04-12T08:27:58 | 2019-04-12T08:27:58 | 180,415,760 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | import pickle
from vectorformats.Feature import Feature
from vectorformats.Formats.Format import Format
class Django(Format):
""" This class is designed to decode a Django QuerySet object into
Feature.Vector objects.
Simply pass a query_set to the decode method, and it will return
... | [
"koffisani@gmail.com"
] | koffisani@gmail.com |
6a168b8bdfc3c844bc85731230905ece6190e015 | 0930a8c501b39e8a0c69b503108a3987720e145a | /4.List_and_Tuple/list.py | e7092387eb7232d55620460ed12c1dbc0f6f7306 | [] | no_license | kdeng/python-tutorials | 77e77aa36a898f5a6c57bb67c95e10594ce2f73e | 527a72aad54e0a2621aea351f7287140e90aafd4 | refs/heads/master | 2021-05-13T15:13:33.076806 | 2018-05-28T08:21:11 | 2018-05-28T08:21:11 | 116,762,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | """
List ia mutable
Tuple is immutable
"""
# List
classmates = ['Michael', 'Bob', 'Tracy']
print('Classmates is :', classmates)
print('Classmates[0] = ', classmates[0])
print('Classmates[1] = ', classmates[1])
print('Classmates[2] = ', classmates[2])
print('Classmates[-1] is:', classmates.pop(-1))
print('Classmates ... | [
"kefeng.deng@fairfaxmedia.co.nz"
] | kefeng.deng@fairfaxmedia.co.nz |
df94816cf1d341645c00813001ccbbdc695412c4 | a363b1ad911b8c989e578b5a4a412c1dd615cc39 | /toontown/building/ToonInteriorColors.py | 56f103d58606c8a93f75fab6679a53c759bd7641 | [
"Apache-2.0"
] | permissive | OSToontown/Project-Altis-Alpha | 2999e944c44e0409cb19e277da61807bfa871e86 | 3a542b5d19784e9c4a5b893e88617e5280b213dd | refs/heads/master | 2023-06-26T12:12:35.073103 | 2021-07-24T17:20:43 | 2021-07-24T17:20:43 | 248,406,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | from toontown.toonbase.ToontownGlobals import *
wainscottingBase = [Vec4(0.8, 0.5, 0.3, 1.0), Vec4(0.699, 0.586, 0.473, 1.0), Vec4(0.473, 0.699, 0.488, 1.0)]
wallpaperBase = [Vec4(1.0, 1.0, 0.7, 1.0),
Vec4(0.8, 1.0, 0.7, 1.0),
Vec4(0.4, 0.5, 0.4, 1.0),
Vec4(0.5, 0.7, 0.6, 1.0)]
wallpaperBorderBase = [Vec4(1.0, 1.0,... | [
"anythingtechpro@gmail.com"
] | anythingtechpro@gmail.com |
94ecd8e151180c98925fadf7087cba319e6c0c2b | c93e60eb46045be8290b42c672caac27257144fd | /enveritas.py | f519acd8cf34e26fd6630c9d508721f5bdade48b | [] | no_license | lesliemanrique1/Enveritas_Challenge | 2670a802603b9bd678be5638b68ac08042c22935 | e7df0bd2aad5d3437ab2917386395341497979be | refs/heads/master | 2021-01-21T17:38:13.146316 | 2017-05-21T17:06:03 | 2017-05-21T17:06:03 | 91,963,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | import pandas as pd
from datetime import datetime
from fuzzywuzzy import fuzz
import sys
import math
def survey_length(df):
df["started_time"] = df["started_time"].apply(lambda x : datetime.strptime(x,"%m/%d/%y %H:%M"))
df["ended_time"] = df["ended_time"].apply(lambda x : datetime.strptime(x,"%m/%d/%y %H:%M"))
df... | [
"ljm391@nyu.edu"
] | ljm391@nyu.edu |
614462b6940c9c08b08c24650c5683c4986c8d17 | 42d58b23f446a48907d965794a2ae1dc4ad751ab | /347. Top K Frequent Elements.py | 4d70eebffd7020a5f6c65cb4f2b11935dad21ace | [] | no_license | AsadullahFarooqi/LeetCode | fabec1cad1781d0300cec2931545b92dd1390900 | aecc4efe8e0561aa4dd8a8b7f755c19982c6c2ef | refs/heads/master | 2022-11-03T08:01:47.656348 | 2022-10-11T06:19:56 | 2022-10-11T06:19:56 | 187,672,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """
Given a non-empty array of integers, return the k most frequent elements.
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1,2]
Example 2:
Input: nums = [1], k = 1
Output: [1]
Note:
You may assume k is always valid, 1 ≤ k ≤ number of unique elements.
Your algorithm's time complexit... | [
"asadullah.itcgcs@gmail.com"
] | asadullah.itcgcs@gmail.com |
514ee6756eb2aa90c77d1639a957a9304b5fb29b | a1bf75bdb8210876e3c796cec428559151108c5b | /auth.py | 183d44cc429980621b293bb70c99e40d82dd6d73 | [] | no_license | jailukanna/armaformAPI | 72f5b92f5d01c3d4d69804474d0c4e34471b2fc7 | a635ecdbeab6eb7ee60fefa6f91392e6af60cb7e | refs/heads/master | 2023-04-23T05:29:40.246552 | 2020-05-02T05:28:45 | 2020-05-02T05:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from flask import Blueprint
auth = Blueprint('auth', __name__)
@auth.route("/signin")
def signin():
return 'logged in' | [
"anthony.dupont@eduwell.cz"
] | anthony.dupont@eduwell.cz |
0c466ab51584cc7abc7bf177aebdbdc859e8ee1a | f06e4039e357d98e7f714584e902ba2a070758da | /net_classifier.py | 87f65b62bf2bdca7393f4301b6abb4dc343b7b22 | [] | no_license | kusnir18/Signin2 | badaf87657a9b990826fcd46c0c340eab517376e | 6d6b055d17e004461113101c45fdc4b026450c1e | refs/heads/master | 2023-09-01T09:34:55.160727 | 2021-11-04T17:42:22 | 2021-11-04T17:42:22 | 424,683,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,576 | py | import numpy as np
def one_in_k_encoding(vec, k):
""" One-in-k encoding of vector to k classes
Args:
vec: numpy array - data to encode
k: int - number of classes to encode to (0,...,k-1)
"""
n = vec.shape[0]
enc = np.zeros((n, k))
enc[np.arange(n), vec] = 1
return enc
d... | [
"maros.kusnir@gmail.com"
] | maros.kusnir@gmail.com |
c3f9dfdb6e4069422987d7f55ef750f4295ff25b | aaf60c0158614e162189435e1dd89c48aadf8476 | /src/adsr.py | 3731e043e35eee129ad9376a4d2374dd780abed4 | [] | no_license | ginedoc/additive_synthesis_violin | 1335641c2ed840add89149505b8c7d7d2fe00836 | 40c02d29ab606d6e8c6f5964306ad990147d31bc | refs/heads/master | 2020-03-29T01:48:36.307974 | 2018-12-24T16:43:44 | 2018-12-24T16:43:44 | 149,407,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from scipy.io import wavfile
import numpy as np
import matplotlib.pyplot as plt
s = wavfile.read('../cctest.wav')
print(s[0], len(s[:,1]))
plt.plot(s[:,1])
plt.show()
#wavfile.write('adsr.wav', s[0], s[1]*m)
| [
"bear110088@gmail.com"
] | bear110088@gmail.com |
7b5b3d83e8bd8120132fc20d349a5bc3ec4b7c49 | deb9cb9ac136d3af0969b68c4b17233506b152ad | /questions/urls.py | 1da5797383e9098b92004d7fb14cad206dfb324d | [] | no_license | cpadiernos/triviacompany | 75c814edd4557cfe2565fb68f7bdb6ebda14fa66 | fc2a392edfb57c2af74a42ccf9b8068cc679e0ab | refs/heads/master | 2022-04-09T10:18:36.198633 | 2020-03-26T20:49:45 | 2020-03-26T20:49:45 | 219,570,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.conf import settings
from django.urls import path
from . import views
urlpatterns = [
path('game-supplies/', views.GameListView.as_view(),
name='game-list'),
path('{}/<path:path>'.format(settings.PRIVATE_STORAGE_URL[1:-1]),
views.login_required_private_file, name='login-required-pr... | [
"cpadiernos@gmail.com"
] | cpadiernos@gmail.com |
9bc20ea8d6088b0b498b72fd65d801d51f827209 | 17e47eb8079f9227733c54d1732a7122be6b3f75 | /112_Bouncy_Numbers/p112.py | 6735a70e921e6c5f07f5650e97d6f2191241528e | [] | no_license | arminale/ProjectEuler | 4a25c097f2d03fd79b9486f338be34dbc047475a | 2aa75254c03e875015a25957d45444c4fe0c8ea1 | refs/heads/master | 2021-01-19T17:38:56.277307 | 2018-05-17T21:15:05 | 2018-05-17T21:15:05 | 101,080,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # https://projecteuler.net/problem=112 bouncy numbers
def is_bouncy(num):
has_incr_seq, has_decr_seq = False, False
right = num % 10
num = num // 10
while num > 0:
left = num % 10
if left < right:
has_incr_seq = True
elif left > right:
has_decr_seq = T... | [
"arminale@yahoo.com"
] | arminale@yahoo.com |
af27caee0327daf84e5f6f2490aa2576a6d6ef0d | 38cc23df5ca28a2450e3206b513719a39b36aa60 | /venv/bin/chardetect | 018467ea99bd5369582a3546d8d4de48f6f75129 | [] | no_license | Deogor/ssl-certs | 2a3cd9cff5bbb3e2e99d33162263549eda68ee00 | cea27ab011592c8890ecddb6addd3a29e9297a47 | refs/heads/main | 2023-07-15T02:04:08.576707 | 2021-08-24T17:10:25 | 2021-08-24T17:10:25 | 399,545,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/home/user/PycharmProjects/pythonProject/venv/bin/python
# -*- 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())
| [
"vsurov@phoenixit.ru"
] | vsurov@phoenixit.ru | |
9f94cbe17f916dbbc82e54a5af00ae76aa132cfa | 3e1d3a69651b01b23445e05cc96408f88e67a79a | /src/lib/droplet/__init__.py | a45383f27521bc42e08be1351bb3e0a814f9afa5 | [] | no_license | watanany/20200716--BrushFontGenerator | 8f7defd1dd913acc020496e1b5a82c00b049a59c | 9bb3e4ae1208053775da891bfd2e178ce37e5668 | refs/heads/master | 2021-06-02T18:55:58.893534 | 2016-08-18T15:21:16 | 2016-08-18T15:21:16 | 51,625,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from droplet import Droplet
from dropletmodel import DropletModel
| [
"s1170087@gmail.com"
] | s1170087@gmail.com |
13e109703253a9f3a1da4c8dd08d3e4292e6bbd9 | cfb76fefdf3d991ca516d10ee04afda061fd9b7f | /tests/test_pcolormesh.py | 5363db32fb91669dcb3d1c11edbb4d67b15e1858 | [
"MIT"
] | permissive | chebee7i/prettyplotlib | 77d7fd3941877d694b4237850cfa75605a2954d7 | 68841f0156e29eec4fc76c53407e67206287b861 | refs/heads/master | 2021-01-20T23:11:57.745272 | 2013-10-06T20:04:12 | 2013-10-06T20:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | __author__ = 'olga'
from matplotlib.testing.decorators import image_comparison
import prettyplotlib as ppl
from prettyplotlib import plt
import numpy as np
import os
import string
from prettyplotlib import brewer2mpl
from matplotlib.colors import LogNorm
@image_comparison(baseline_images=['pcolormesh'], extensions=['... | [
"olga.botvinnik@gmail.com"
] | olga.botvinnik@gmail.com |
a32e00000f109f3f2e8079952c3278071e27cf0f | 00c7bd96f1afab807746f1f7f013d4aadc5f6a6e | /sakura/common/types.py | 32cb4d9e52fd22a39835c2c8c60f49825f3f0bb7 | [] | no_license | sakura-team/sakura | 350ae27bdf5c3e7c338c04ec33fb50f4cdc7bfb4 | 306bfe82ffd6b204b0b574bb7f75b35712a3202f | refs/heads/master | 2021-06-02T01:30:14.294572 | 2021-03-04T10:16:44 | 2021-03-04T10:16:44 | 61,307,818 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | import numpy as np
from sakura.common.errors import APIRequestError
# Strings whose length is known to be lower than NUMPY_EMBEDDED_STR_MAX_LEN
# will be encoded directly in numpy arrays.
# Others will be saved as an object pointer in numpy arrays.
NUMPY_EMBEDDED_STR_MAX_LEN = 16
SAKURA_INTEGER_TYPES = ('int8', 'int16... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
82657ce82557f978f2b158f3fb51dcf3b682dbb4 | 5954e0184fbfbe82a697754fe062179a57d75ce6 | /topic_tutorial_2/scripts/Pub_node2.py | c093299701ed740bae15feccb2914a45b9f989c2 | [] | no_license | yheewon/WeCar | 388fc4d1d8ee2b845f319cc74b2d7dd60f07a212 | 49ca55223042daa59105be9055b7ebcdaca549d7 | refs/heads/master | 2023-01-31T21:44:43.142088 | 2020-12-20T09:05:58 | 2020-12-20T09:05:58 | 278,515,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python
import rospy
from topic_tutorial_2.msg import MyMsgs
NAME_TOPIC = '/msgs_talk'
NAME_NODE = 'Pub_node2'
if __name__ == '__main__':
rospy.init_node(NAME_NODE,anonymous=True)
pub = rospy.Publisher(NAME_TOPIC,MyMsgs,queue_size=10)
rate = rospy.Rate(10)
msgs_pub = MyMsgs()
while... | [
"dnjsl0629@naver.com"
] | dnjsl0629@naver.com |
099f1a0c90436c8bb8a55a6eb56a8de10d97e2bb | 48cfb77a9cd52328717ae79c89551977f35163f5 | /sensor/sense.py | c890744a041ec23ea147bbfee5aebcf42034d98d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | karthikvijayjirlimath/aws-iot-office-sensor | 8c69f3091fcf51b1c8b6631122119eaac3013570 | 90b537bd70ab2afbabc9f95c7f56089b48f5ba5d | refs/heads/master | 2023-06-24T03:39:36.535490 | 2021-07-29T21:04:52 | 2021-07-29T21:04:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # Simple application that periodically collects sensor data from a Raspberry Pi SenseHat and sends the data to the
# AWS MQTT broker with the AWS MQTT client API
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
from sense_hat import SenseHat
import config
import time
import json
from datetime import datetime
sens... | [
"eharm@amazon.com"
] | eharm@amazon.com |
deecf0cc429f5ac067006280b182ac0eefbe2d87 | 8a898b085e13ce2338f1c373e930b832a76cdef3 | /hw4/task2_speed_compare/test_matrix_mul.py | 97dd3908c0530132eefc6b85209971f423c76130 | [] | no_license | AlexLoner/2020-1-Atom-Deep-Python-A-Lukianov | 1f81265e5cbc43893a54189d7b622f6904a32692 | 1509154b7e3722f356635c15c57cc5e7d23b7b25 | refs/heads/master | 2021-03-04T11:54:49.105798 | 2020-06-04T15:59:45 | 2020-06-04T15:59:45 | 246,031,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import sys
sys.path.append('/home/loner/Documents/atoms/deep_python/2020-1-Atom-Deep-Python-A-Lukianov/hw4/build/lib.linux-x86_64-3.8')
import ctypes
import time
import python_matmul
import numpy as np
from matrix import Matrix
lib = ctypes.CDLL('./mylib.so')
t1 = time.time()
lib.mtx()
t2 = time.time() - t1
print(f"C ... | [
"lukyanov9567@gmail.com"
] | lukyanov9567@gmail.com |
5980dfe80dbe7976918aa72251a6196f00d24561 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/420/usersdata/329/88113/submittedfiles/exe11.py | fcae8958e71f64e9a6bacbbd05f96f381947b027 | [] | 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 | 479 | py | # -*- coding: utf-8 -*-
n = int(input("digite um numero com 8 algarismos: "))
soma = 0
while n < 100000000:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d' % soma)
while n > 999999999:
resto = n % 10
n = (n - resto)/10
soma = soma + resto
print ('%d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b8190c2a6a2629219638f24c3bf1500de5a3e02b | 91aa103bb8163311d8f63241dc79842ecc868c79 | /project/MEANMEDIAN MODE/medium.py | 555737c09a510939605e11b4287f750b4227ea0f | [] | no_license | akhand19082006/python | fbd27dac5192a34f811606d95c83ba79a6f563b1 | 0b69c1e5b2a459d869e6ffea253679f833d08be1 | refs/heads/main | 2023-05-10T11:46:28.708307 | 2021-06-28T07:28:23 | 2021-06-28T07:28:23 | 380,942,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import csv
with open('h.csv',newline='') as f:
reader=csv.reader(f)
filedata=list(reader)
filedata.pop(0)
newdata=[]
for i in range(len(filedata)):
number=filedata[i][1]
newdata.append(float(number))
n=len(newdata)
newdata.sort()
if n%2 ==0:
median1=float(newdata[n//2])
median2=floa... | [
"noreply@github.com"
] | noreply@github.com |
abcf7b01aafcea2a410892b5d607641345f890fa | a95aa6f8671db71126508094bf66ee2405deac9a | /config/environment.py | 21eb35e3871859c0a98ab609c9f26f22571567e4 | [] | no_license | fnsport2/geckoboard | 3df354fdb04f7abd791cee9206b4356fd3389280 | 9bbcf1015976a05fa2b1e53bdcd97d2c09edac35 | refs/heads/master | 2016-09-02T02:53:12.664623 | 2014-09-16T01:07:02 | 2014-09-16T01:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # Geckoboard Environment
# Like a global scope (for modules) to have access to config.
#
import yaml
import os
# Get the full path for the file for access from outside modules.
__dir__ = os.path.dirname(os.path.abspath(__file__))
filepath =os.path.join(__dir__,'dashboard.yaml')
# Setting up our environment for some... | [
"fnsport2@aol.com"
] | fnsport2@aol.com |
38df09d7f8f9529aecc3adc8d1a17a4cdafadc24 | 25e7d840203e705c6a68aed079cc9844954b9536 | /torch/_dynamo/variables/builtin.py | 111d5415c77602d9e98273b3bb9af90d2ad46f9e | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yf225/pytorch | 874892cd9d0f7bb748e469cfca23a3f503ea4265 | 39590d06c563d830d02b9f94611ab01f07133c97 | refs/heads/main | 2023-07-24T06:17:16.324006 | 2023-04-24T18:22:54 | 2023-04-24T18:22:59 | 113,096,813 | 1 | 3 | NOASSERTION | 2023-08-29T18:46:16 | 2017-12-04T21:25:08 | Python | UTF-8 | Python | false | false | 48,433 | py | import functools
import inspect
import itertools
import logging
import math
import operator
import types
from typing import Dict, List
import torch
from torch import sym_float, sym_int
from .. import config, variables
from ..allowed_functions import is_allowed
from ..exc import unimplemented, Unsupported, UserError, ... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
4a61c9ff7e03b40f5c99cc955f9a7b03d8c7aa49 | 4a39e62a210f187a7ee7702aa64aa8e6abdd828e | /navigation.py | 61b397a11c571ad4f87de99967c63a94e1d04e1e | [] | no_license | duanlidewugui/day6 | 9ead529f9c670553371af70787595681c38cd09d | 96b5484397a925161528f4ce42ce38ad4a54b881 | refs/heads/master | 2023-05-09T21:24:18.041881 | 2021-06-10T09:51:36 | 2021-06-10T09:51:36 | 375,648,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,225 | py | #在导航中,进入商城即可开始进行购物
#舒识2021/6/10/17/46
from random import random, Random
navi ={
"北京":{
"朝阳区":{
"公园":["朝阳公园","奥林匹克公园","北京欢乐谷"],
"景点":["中国铁道博物馆","北京金港国际赛车场"],
"商城":["凤凰汇购物中心","新七彩商业中心"]
},
"海淀区":{
"高校":["清华大学","北京大学"],
... | [
"noreply@github.com"
] | noreply@github.com |
0ea0ff9173e8d97cada4f35ea04bd20e41880396 | 73d511f98dac31ecbc90c7df9af092cd9b4f4421 | /webapp/ENV/lib/python3.6/site-packages/distributed/publish.py | a275cfeff08f15e4de6daf7e1c11f0d1c2dd3e62 | [
"MIT"
] | permissive | linkehub/linkehub_api | f704f6272b5d103d6d833eae1a11fbb72f0b8233 | b5579a6156d6ae01f0cbd8526c8ed8264b5deeb5 | refs/heads/master | 2022-10-11T14:32:37.548985 | 2018-05-29T11:57:29 | 2018-05-29T16:59:54 | 135,220,244 | 0 | 1 | MIT | 2022-09-23T21:51:08 | 2018-05-29T00:05:57 | Python | UTF-8 | Python | false | false | 2,174 | py | from collections import MutableMapping
from distributed.utils import log_errors
class PublishExtension(object):
""" An extension for the scheduler to manage collections
* publish-list
* publish-put
* publish-get
* publish-delete
"""
def __init__(self, scheduler):
self.schedul... | [
"diego.marcolino.silva@gmail.com"
] | diego.marcolino.silva@gmail.com |
5c910493a60d9d11a5fd4a8f9b651220ce301f84 | 47713a1f9e0b4a3fd16348121ed77a57628f3c0a | /求1+2+3+...py | ceb0e1af6b23cb9dd1158645f1fbedae795c5465 | [] | no_license | geditzh/offer | 655c040d8425094ee26311f658541d97fd74df97 | bff6048099d68f639c61e767e250fe2366560099 | refs/heads/master | 2020-05-24T08:19:05.615035 | 2020-02-17T11:09:58 | 2020-02-17T11:09:58 | 187,181,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding:utf-8 -*-
class Solution:
def Sum_Solution(self, n):
# write code here
return self.sum_(n)
def sum0(self, n):
return 0
def sum_(self, n):
func = {False:self.sum0, True:self.sum_}
return func[not not n](n-1) + n
| [
"455209990@qq.com"
] | 455209990@qq.com |
5300271b0b676978f2319aff708095962e6f6c52 | 49cc32d5859e9002cb4b94ade25d72f5f4fe1612 | /CLASE5_PYTHON_UMAKER/codigo5.py | 52b8bdabb03966ebe2a3f86723ba2f2f85b85de5 | [] | no_license | jorgepdsML/DIGITAL-IMAGE-PROCESSING-PYTHON | c8441215b4cf9e912dad1885a82058c1b0bbb872 | 781c8c6d583aebda6381a301cdc33ad4d09f20c5 | refs/heads/master | 2021-06-26T00:06:44.344201 | 2021-01-21T17:41:36 | 2021-01-21T17:41:36 | 194,336,928 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class point():
def __init__(self,a,b):
self.x=a
self.y=b
def coordenada(self):
print(self.x,self.y)
def __add__(self, other):
x=self.x+other.x
y=self.y+other.y
return (x,y)
def __call__(self,*args):
suma=0
for val in args:
... | [
"noreply@github.com"
] | noreply@github.com |
a6f04bbaa1f2de98cd73c3bc3b9f3f18bc1eb22d | c851a789091aabb92bf22bebbecfb873c0e609a8 | /main.py | 8b1727b920444a3ee0458fbb5dc8b47d53446b9d | [] | no_license | chief680/App-Engine-Web-Service | 53f654ddf9ac188d02a8366c370103f795a34cb3 | bd37c61a627869b1d0d9a182d05275e57e5cb9c0 | refs/heads/master | 2023-05-10T20:56:52.166714 | 2019-10-11T22:27:29 | 2019-10-11T22:27:29 | 214,534,154 | 1 | 0 | null | 2023-05-01T21:16:39 | 2019-10-11T21:50:52 | Python | UTF-8 | Python | false | false | 1,379 | py | from flask import Flask, Response, url_for, request
from json2xml import json2xml, readfromurl, readfromstring, readfromjson
app = Flask(__name__)
@app.route("/")
def index():
'''
try:
import googleclouddebugger
googleclouddebugger.enable()
except ImportError:
pass
'''
... | [
"noreply@github.com"
] | noreply@github.com |
59a1333f4e2e09396fee6b1a38fe10894c3644f1 | 5e1fc3984d71e66ad4c5b2b743660acde434e037 | /myecart/asgi.py | ba22b5c7ec5e5b887df19e6b989fa49b7da429ac | [] | no_license | purohit-arun/ecommerce-site | 41a0ab26e5f631bce7817d9ca51d7f52813a48a3 | aefb503181f58e44cc7a70f13ae79bb47c2a226c | refs/heads/main | 2023-06-29T16:15:56.311181 | 2021-07-19T11:37:00 | 2021-07-19T11:37:00 | 363,024,336 | 0 | 0 | null | 2021-07-14T14:40:00 | 2021-04-30T04:19:31 | HTML | UTF-8 | Python | false | false | 391 | py | """
ASGI config for myecart project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"purohitamit2001@gmail.com"
] | purohitamit2001@gmail.com |
8259a1e69951d5b1a351445f32169d1f50ca8445 | 5d344134f84f90df8443de9743e6d05b4d33ecca | /BigDataML/lab1/h2o_automl.py | a674f4606cf8bddde11da7f9a70b44acb53bf558 | [] | no_license | aulasau/BSU.Magistracy | e8deaba2c78e4ccb4f77f2956fc286c94573ae87 | cb9c547987030d004e33048e7c38f057e393413c | refs/heads/master | 2023-01-01T23:41:58.973005 | 2020-10-31T17:51:38 | 2020-10-31T17:51:38 | 308,931,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import h2o
from h2o.automl import H2OAutoML
from prepare_data import prepare_adult_dataset,draw_plot
import matplotlib.pyplot as plt
from sklearn.metrics import roc_auc_score
def run_automl_h2o(max_models=10):
"""
h2o instance should be running
:return: the path of the best model
"""
h2o.init()
... | [
"barabasha999@mail.ru"
] | barabasha999@mail.ru |
b0fe0d28f899105a973c6e14181d5562dedc2e72 | 1c92125e591b71c8809e220b24a2f7136aeeff96 | /velvetSub2.py | 7ac0e765604c8b052dd9fbb9ce9731438a62fdb4 | [] | no_license | zyd14/kappa | e9a86d0a2caa3b2d5084dee9083b2e9b11c591b7 | b3ee10297aaa9c0e391023845134c0a5dcd0f7cd | refs/heads/master | 2021-01-23T23:14:21.409843 | 2014-12-08T17:04:18 | 2014-12-08T17:04:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | #Manipulating velvet with subprocesses
import subprocess
import glob
class velvetPak:
def __init__(self):
self.fmt = None
self.out = None
self.inFiles = None
self.kmer = None
self.readType = None
self.vCmd = None
self.r1 = None
self.r2 = None
self.mult = None
def getParams(self):
#Ask user for a... | [
"romerzs14@gmail.com"
] | romerzs14@gmail.com |
dcedcd713c92d6600f95c8050ce7e26df5f34674 | b3cce6c232ba8d217ccca9a54825d32ca933b510 | /Classification/Random Forest classification/random forest classifiction.py | 43f866215083d9b1bf7b603c53ca3431d40a391c | [] | no_license | dhirajwagh1612/Machine_Learning_Models | 23966b89741553d96ddbbb5d1029849936965a20 | a43d7b602be5c37432a120fba4580f3eed149749 | refs/heads/main | 2023-04-28T23:39:05.410005 | 2021-05-18T05:09:01 | 2021-05-18T05:09:01 | 358,794,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 2 22:12:33 2021
@author: Dhiraj Wagh
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
dataset = pd.read_csv('Social_Network_Ads.csv')
# define X and y variables.
X = dataset.iloc[:, [2, 3]].values
y= dataset.iloc[:, 4].values
# split datase... | [
"54485930+dhirajwagh1612@users.noreply.github.com"
] | 54485930+dhirajwagh1612@users.noreply.github.com |
242923c5197a8ee760b120a5605b8afca943eab0 | f99cca94f74c69bc518e298c14140534e18eabd3 | /OrcLib/Test/TestNet.py | 07cd62a60036cd81afff87edaf6b1fcf167c81cd | [] | no_license | pubselenium/OrcTestToolsKit | d6d838d9937d2c4d86941e317cb3ff096b58e52d | f3ccbbceaed4f4996f6907a2f4880c2fd3f82bbb | refs/heads/master | 2021-04-29T05:15:53.240714 | 2016-12-30T09:42:53 | 2016-12-30T09:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | import unittest
from OrcLib.LibTest import OrcTest
from OrcLib import init_log
from OrcLib.LibNet import OrcParameter
class TestOrcParameter(unittest.TestCase):
def test_send_para(self):
"""
Test get exist option
"""
OrcTest.test_print_begin()
init_log()
_para_01... | [
"orange21cn@126.com"
] | orange21cn@126.com |
b8d3389506388638266727994d7c929f57d9bd8d | c82e803475b36940f847881c6ac4d586d28f0da4 | /run_queue.py | 013320a508f1aa74a84cbc1c7fe30f66c082843e | [] | no_license | Obichukwu/linkedin-python-data-structure | 39a6ae450ed189fdca86dd566652b7743da07508 | 9a85118243f6b68cdb0643bfded6144448dd2480 | refs/heads/master | 2022-11-15T02:54:24.000188 | 2020-07-10T22:51:28 | 2020-07-10T22:51:28 | 278,847,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import random
from queue import Queue
class Printer:
def __init__(self):
self.current_job = None
def get_job(self, print_queue):
try:
self.current_job = print_queue.dequeue()
except ValueError: # Queue is empty
return "No more jobs to print."
def print_cur... | [
"nervign@nervlite.com"
] | nervign@nervlite.com |
83106a36cd29e8741a1919b6f4bf78d23698ba99 | 7c555fbf6d3e8109d3b1cf68d8db9c82d033d708 | /test-framework/test-suites/integration/tests/report/test_report_host.py | 16b657a98f35d9e92a9751bdb5040688bd8bba7b | [
"BSD-3-Clause"
] | permissive | khanfluence/stacki-intern | 23a4440d2ae99cfa1db1becd0d9e3fbbd03489a5 | df54afb20f6ea6a3a136b3c09b30df54ea79ffcc | refs/heads/master | 2022-03-23T11:38:52.966486 | 2018-08-17T18:04:09 | 2018-08-17T18:04:09 | 145,151,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,546 | py | import pytest
import re
@pytest.mark.usefixtures('revert_database')
class TestReportHost:
def test_report_host_with_default_network_behaviour(self,host):
result = host.run('stack add network test address=10.10.0.0 mask=255.255.255.0 zone=')
assert result.rc == 0
result = host.run('stack add host backend-1-0')
... | [
"billysanders@gmail.com"
] | billysanders@gmail.com |
61b73f81a6ce58f01421640a196a3f4b847c39ef | fbe7d15c8adb20accb66fb3ce011efc8444da61f | /functional_tests.py | 6a6a02c55dc130a53cacb5255f1fdfc5c1a1de08 | [] | no_license | Leomaxson/tdd-project | f065ff0e3799e7fd55408688e904407779ce4dd7 | 855564d5fb48681ac97432c1d166de92fe08a547 | refs/heads/master | 2021-03-13T14:49:48.022815 | 2020-03-11T23:37:30 | 2020-03-11T23:37:30 | 246,689,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from selenium import webdriver
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.quit()
def test_can_start_a_list_and_retrieve_it_later(self):
# Maria decidiu utilizar o novo app T... | [
"leonardo_maxson@hotmail.com"
] | leonardo_maxson@hotmail.com |
540d97f9eae15addee732fb657ab96e2f3bec81e | c6c1343006a8f87013603c6c709606c04ae522af | /codeninja/settings.py | a21fada49260b06928f530918207a080efd264fa | [
"MIT"
] | permissive | Deathnerd/iamacodeninja | 021c46e3cc11a1f572c47ae1b649301c6b988c3f | 8e2ef93db7f144cc48676c1a5d1423d65490dbd3 | refs/heads/master | 2021-01-10T18:24:35.146654 | 2015-04-21T17:47:19 | 2015-04-21T17:47:19 | 33,887,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | __author__ = 'Deathnerd'
import os
class Base():
"""Base Config"""
# General App
ENV = os.environ['CODENINJA_SERVER_ENV']
SECRET_KEY = os.environ['CODENINJA_SECRET_KEY']
APP_DIR = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
# SQLAlchemy
SQLALCHE... | [
"wes.gillealnd@gmail.com"
] | wes.gillealnd@gmail.com |
d308e86366cb8b7a3aace35c26d3ce733fd7b08a | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day08-接口-网络/self/网络编程/06-模拟ssh-加上报头/服务端.py | c4da2e73dc660420a2babf440c3e5581b3ee967d | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | ####建立连接
import socket
import struct
import subprocess
phone=socket.socket(socket.AF_INET,socket.SOCK_STREAM)###tcp
phone.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) ###复用
phone.bind(('127.0.0.1',8080))
phone.listen(5)
print('server start...')
while True: ###连接循环
conn,client_addr=phone.accept()
print(... | [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
43c02c8eb63af5eaf1609b3f7f6e3a4556b981ef | 982628a28b411eee2975c3c585fe85dd9c75ca81 | /50_libraries/1_pandas/4_time_series/basic_vizualization_with_GTK.py | 1c4a6019b583428b3ac764ef1d30dcf2006ccafe | [] | no_license | lukaskellerstein/PythonSamples | 3a6a03f252c5d5538a28edd0bcfff5388a8df55d | 66255a3a04d869799ac3182b09631735b8f00846 | refs/heads/master | 2023-07-12T10:28:00.985123 | 2023-07-06T10:17:22 | 2023-07-06T10:17:22 | 245,231,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import sys
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
from datetime import datetime
import numpy as np
import pandas as pd
import pandas_datareader.data as web
import matplotlib.pyplot as plt
from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas
class MyWi... | [
"lukas.kellerstein@gmail.com"
] | lukas.kellerstein@gmail.com |
faca4faf2d9ad578da8bee49b849078db80ad5b9 | 4c95c518b8e7a73d83afbdf38d37103b238c211e | /covidtracker/tracker/migrations/0001_initial.py | d04ce72ca5f31dedc47868a2124ff1ff4cd0738c | [
"MIT"
] | permissive | tyrozz/covid19-tracker | 07fc2668305848162aac5f7d17a089322d48ae9f | 8facde18d9e100f6e3be4ad78f53ab5f02b5a284 | refs/heads/master | 2023-08-25T08:35:57.525031 | 2021-10-23T11:22:25 | 2021-10-23T11:22:25 | 355,706,479 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | # Generated by Django 3.1.7 on 2021-04-09 16:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Location',
fields=[
... | [
"ozanyildirim1000@gmail.com"
] | ozanyildirim1000@gmail.com |
968a736930a6730a0b2049734b9b83b6de0fac28 | 9a0e25591deef948bd5957ac79131bc01594b0bb | /users/urls/urls.py | 5dcecf097a0cfcdd74dcdd19e0bb389c5cd3a355 | [] | no_license | ursusma/HiCommunity | ad31342d6f5ee0bc28899dc1cb199fbe1085e554 | 81e2340264cce983b889dacdb01bbeeb2cb67f21 | refs/heads/master | 2021-07-25T10:58:04.239531 | 2017-10-26T14:17:05 | 2017-10-26T14:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | # coding=utf-8
from django.conf.urls import url
from users import views
urlpatterns = [
]
| [
"1225191678@qq.com"
] | 1225191678@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.