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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03dd33c5872c44c363516af41041b942fc4b82c7 | a6ed990fa4326c625a2a02f0c02eedf758ad8c7b | /meraki/sdk/python/removeNetworkSwitchSwitchStack.py | ea22d146e97d6bbedda21ccbaa78bfaab2c71d73 | [] | no_license | StevenKitavi/Meraki-Dashboard-API-v1-Documentation | cf2352976c6b6c00c17a5f6442cedf0aeed46c22 | 5ed02a7def29a2ce455a3f2cfa185f76f44789f5 | refs/heads/main | 2023-03-02T08:49:34.846055 | 2021-02-05T10:31:25 | 2021-02-05T10:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import meraki
# Defining your API key as a variable in source code is not recommended
API_KEY = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0'
# Instead, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/
dashboard = meraki.DashboardAPI(API_KEY)
network_id = ... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
18eb37c2ffe3434f8bcd511d3c748630d8feec5c | d6458a979207e00da6dc653c278b9bfb818ce18d | /Additional Stuff/Medium Stuff/PythonCrypto/crypto9.py | c0eb73e93ad223663400383fdecbc56cad757bcf | [] | no_license | Hackman9912/05-Python-Programming | 61ce7bb48188b4cd3cd8e585480325fdd02e579b | d03a319c952794b2f298a3ef4ddd09c253e24d36 | refs/heads/master | 2020-08-29T14:28:48.403323 | 2019-12-18T21:30:55 | 2019-12-18T21:30:55 | 218,061,276 | 0 | 0 | null | 2019-10-28T14:07:31 | 2019-10-28T14:07:31 | null | UTF-8 | Python | false | false | 454 | py | alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
string_input = input("Enter a string: ")
input_length = len(string_input)
string_output = ""
for i in range(input_length):
character = string_input[i]
location_of_character = alphabets.find(character)
new_location = location_of_character + 3;
string_output = ... | [
"charleshackett89@gmail.com"
] | charleshackett89@gmail.com |
6dbf65dea55f3575b84c21c3e7a60a933815fa0e | 87b4c1e282782ddfa22df95d8f494322bf2f2fb9 | /Flower Classification with Image Histogram/dataset.py | 1b47f756b06a5dd1afd718f35f291a0afe4c1872 | [] | no_license | janFrancoo/Python-Projects | 34e9515ae167bdca2f8e601c3ccc4bd4a6cb48cb | 875ed126e4adb7cd4c2884660f24d6515086995c | refs/heads/master | 2021-06-26T17:40:47.740967 | 2021-01-31T15:27:25 | 2021-01-31T15:27:25 | 199,189,125 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import os
import cv2
labels = ["Daffodil", "Snowdrop", "Lilly Valley", "Bluebell", "Crocus", "Iris", "Tigerlily", "Tulip", "Fritillary",
"Sunflower", "Daisy", "Colts' Foot", "Dandelion", "Cowslip", "Buttercup", "Windflower", "Pansy"]
def get_flowers(flowers_path, masks_path):
count = -1
masks = []
... | [
"noreply@github.com"
] | janFrancoo.noreply@github.com |
4aaad55843e277a02646a91c6816ac641bb76a96 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_171/ch4_2019_04_03_14_50_06_906813.py | 13c4f9117194d74ac4dc2b5209ab49e9cc9ef2fc | [] | 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 | 204 | py | def classifica_idade (x):
if x<=11:
print('crianca')
return x
elif x>11 and x<=17:
print('adolescente')
return x
else:
print('adulto')
return x
| [
"you@example.com"
] | you@example.com |
15f466d20b51d0e199a6bca4759d7a97d12b9d39 | e1aeede7cecf2bdb3317954e042f41810745b980 | /winston/commands/__init__.py | 879f94514a8039ff04a915527499ca075f99746c | [] | no_license | G10DRAS/winston | b0f50822af077d374e864f2eefa559275c673fef | c72c7f77a89f77d1de31cd0f401b3dc836338b36 | refs/heads/master | 2021-01-15T16:04:40.719122 | 2014-02-27T22:31:56 | 2014-02-27T22:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | import re
class Command(object):
"""
Stores a command that is executed by external events such as a voice command,
a change of state or a notification.
"""
# The name with which all commands begin. Can be a word or a regex.
# Example: jenkins, alfred, robot. "Jenkins! Turn on the lights!"
... | [
"contact@nicolasbouliane.com"
] | contact@nicolasbouliane.com |
8acc9bc358a8f92477e4d4014cb1f0dd864c69da | 375c87462c4ed200cecce0aeab09c6161ac10dcd | /pwg_ls2/RV/dict_2_changes.py | dd80bde0aefbda7ab8b5fe3967bd41d33ad19f5b | [] | no_license | sanskrit-lexicon/PWG | 2e7ab371ec7e4da43d81d50663b06fa2e2b44806 | d32d701366cff1156b7f7bb0aea8ea27cd7fb7dd | refs/heads/master | 2023-02-07T02:49:53.179915 | 2023-02-03T19:53:25 | 2023-02-03T19:53:25 | 15,903,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | #-*- coding:utf-8 -*-
""" dict_2_changes.py
"""
import sys,re,codecs
## https:##stackoverflow.com/questions/27092833/unicodeencodeerror-charmap-codec-cant-encode-characters
## This required by git bash to avoid error
## UnicodeEncodeError: 'charmap' codec cannot encode characters
## when run in a git bash script.
sys... | [
"funderburkjim@gmail.com"
] | funderburkjim@gmail.com |
a879df24d86dc8af1ae7633235f859be1a1e0509 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1759.py | bcb20cc7d58111256fe3f74a18f02994896b444e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,797 | py | # qubit number=5
# total number=60
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
7f95dc0c757ee5c602eda0c84f0a8b39f5e022ba | bc181d3e95743e498a1ec0cfbdac369a01d95218 | /apps/accounts/migrations/0001_initial.py | 7daca24efb48c0d09b39887195357f9e09d5df77 | [] | no_license | roman-oxenuk/welltory_test | 09bbbd8502735adb3662318affa3df10ef47f5af | 853dff24bbf38d5c2d6dce75dd5713ab6347a00d | refs/heads/master | 2021-01-21T23:23:55.809175 | 2017-06-23T18:50:54 | 2017-06-23T18:50:54 | 95,241,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
]
operations = [
migrations.CreateModel(
name='User',
fiel... | [
"roman.oxenuk@gmail.com"
] | roman.oxenuk@gmail.com |
35d4289b0d5b7197676570e63cb452d1d2bfd5cb | be5b91588f198a665160a574e2eba2dd0be84783 | /database/write_nlu.py | 5a4e3c8356059d789dcec0516b42e509f4a727a7 | [] | no_license | swqsd218219/rasa_uncertain_slot | f60f9162cc629552f2deef0fb6cd6ea8cb93ae42 | ec7a0912b9058e3b19acce6ae05b8e871d720141 | refs/heads/main | 2023-03-08T18:13:26.853865 | 2021-03-01T01:23:20 | 2021-03-01T01:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py |
'''
定义模板:
query attribute:
1. what is the cpu?
- what kind of entity do you want to ask?
- server
- please tell me about the ip of the entity
- 1.2.3.4
- 4 cores
2. what is the cpu of the 1.1.1.1?
- please tell me about the entity of the ip
- server
- 4 cores
3. what is the cpu of the server 1.... | [
"zhangmw_play@163.com"
] | zhangmw_play@163.com |
545da2d80571e4c8539199e79b3b92fa018cd91d | 8629b45d5cec27fa701c76644db2a1ac9a090b07 | /016/16.py | e848effd4500e3781e5281f0b148d840ea536535 | [
"MIT"
] | permissive | bsamseth/project-euler | 96e3a7a94cc605ded3edf7176a93147f9836350e | 60d70b117960f37411935bc18eab5bb2fca220e2 | refs/heads/master | 2021-04-06T06:16:23.425225 | 2018-11-05T09:50:21 | 2018-11-05T09:50:21 | 59,105,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | """
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
What is the sum of the digits of the number 2^1000?
"""
print sum([int(char) for char in str(2**1000)])
| [
"b.samseth@gmail.com"
] | b.samseth@gmail.com |
852bcee70e02a31eea4fdda750582f430f99ea17 | 11ca0c393c854fa7212e783a34269f9dae84e8c7 | /Python/226. 翻转二叉树.py | 38463da19db06e4efb8634aea7b35a3f18030818 | [] | no_license | VictoriqueCQ/LeetCode | dc84d81163eed26fa9dbc2114bba0b5c2ea881f4 | a77b3ead157f97f5d9599badb4d4c5da69de44ba | refs/heads/master | 2021-06-05T06:40:24.659909 | 2021-03-31T08:31:51 | 2021-03-31T08:31:51 | 97,978,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def invertTree(self, root: TreeNode) -> TreeNode:
if not root:
return None
def dfs(root):
if not... | [
"1997Victorique0317"
] | 1997Victorique0317 |
0a57942b9958442ababf76cf5c5edea1a6dacd8a | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /nn_ns/parse/MyLL1L/ProcessMatchResult_MyLL1L_of_SRRTL.py | 0aef1359eb2e3c4617306d57faaef7e442c70f50 | [] | no_license | edt-yxz-zzd/python3_src | 43d6c2a8ef2a618f750b59e207a2806132076526 | 41f3a506feffb5f33d4559e5b69717d9bb6303c9 | refs/heads/master | 2023-05-12T01:46:28.198286 | 2023-05-01T13:46:32 | 2023-05-01T13:46:32 | 143,530,977 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,673 | py |
from .tools_for_id2infoID_SRRTL import *
from .SRRTL_in_MyLL1L import mainID_MyLL1L_of_SRRTL
from .ProcessMatchResult_MyLL1L import ProcessMatchResult_MyLL1L
from .raw_tokenize_SRRTL import RawTokenizer_SRRTL
#from .id2infoID_MyLL1L_of_MyLL1L import tIDDict_MyLL1L_of_MyLL1L
class ProcessMatchResult_MyLL1L_of_SRRT... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
1ac9526b04e496e36c8caa591056247ab113c9a8 | fea444217851a92510651da2b60035b73344d7da | /todo/setup.py | ee4284355e4449097dd3991ca5c42f45b5f04dbb | [] | no_license | fuzzygwalchmei/scratchingPost | c70d4f3f37d3d4d6490edfbbae603305b2bb5764 | b232c54aac975aebb0945d66a841db3f241b7cd2 | refs/heads/master | 2023-01-29T13:02:22.615813 | 2020-12-15T00:47:56 | 2020-12-15T00:47:56 | 176,823,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from sqlalchemy.orm import sessionmaker
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('sqlite:///todo.db')
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
class ToDo(Base):
__tablenam... | [
"marc.falzon@gmail.com"
] | marc.falzon@gmail.com |
ba801aca965089f72776e5998d259a23802b74e6 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/sliding-puzzle.py | 22a02e080a64c277d48f26a549604f17dc5dba51 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 4,140 | py | # Time: O((m * n) * (m * n)!)
# Space: O((m * n) * (m * n)!)
import heapq
import itertools
# A* Search Algorithm
class Solution(object):
def slidingPuzzle(self, board):
"""
:type board: List[List[int]]
:rtype: int
"""
def dot(p1, p2):
return p1[... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
7029d9404d228661a4e2e7d27618a58caefe3e98 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.SHP/Sans_8/pdf_to_json_test_Latn.SHP_Sans_8.py | a9ff90b902a1274df32bc2575bf41aceb7fb70ec | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.SHP/Sans_8/udhr_Latn.SHP_Sans_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d2a3619d1a99b718458ffed7e6bdd3f373536969 | 04eaab6d9a6707b950d7ec4688707a883a009889 | /where/cleaners/__init__.py | d225d68de08cd820429206b62eea119429a5ee10 | [
"MIT"
] | permissive | skjaeve/where | 3eae1036419e5f9c6b824b5f9b1dcedbe9d4da93 | 690558f64d54ce46c55a0bc3ef26f6fd992a3737 | refs/heads/master | 2020-04-05T03:35:01.737430 | 2018-11-28T11:04:59 | 2018-11-28T11:04:59 | 156,520,078 | 0 | 0 | null | 2018-11-07T09:13:35 | 2018-11-07T09:13:35 | null | UTF-8 | Python | false | false | 454 | py | """Framework for cleaning data
Description:
------------
Each data cleaner should be defined in a one of two directories:
+ `editors` - Editors can add new fields to the dataset.
+ `removers` - These cleaners only remove observations.
"""
# Make the apply-functions in subpackages available
from where.cleaners.edi... | [
"geirarne@gmail.com"
] | geirarne@gmail.com |
ed5f6cde139950405c6ec1728493c26afb9a6799 | 9531e597cd3f865cc6b6f780498a18281c2413f8 | /comments/models.py | 956bf210ee9ab176d9e93f98dac9fd3202ac60d4 | [] | no_license | dpitkevics/DevNet | 7133b80ce5d56b9c11aa4c500d530faed7cb13f4 | 98ebc3916346e6c2bda79711a3896f7c2a8e2ac8 | refs/heads/master | 2020-04-15T12:04:00.245848 | 2015-09-14T17:45:39 | 2015-09-14T17:45:39 | 41,320,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from model_utils.models import TimeStampedModel
class Comment(TimeStampedModel):
user = models.ForeignKey(User)
... | [
"daniels.pitkevics@gmail.com"
] | daniels.pitkevics@gmail.com |
1ec7d95d1793fcef3900410021a4866f130286d4 | 9e715dea01dc637ed91cde345df8ae81267f60a9 | /webapp/apps/taxbrain/migrations/0069_auto_20150314_2139.py | ffaec203e84da216bcbc53279e1dc8272924d4d0 | [
"MIT"
] | permissive | kdd0211/webapp-public | f08b76201a6a59116bcfdc382ba995a46dd629cd | bcf94d5d6458ac5c6e89d0cf33d7fed06c85030d | refs/heads/master | 2021-01-16T21:07:44.059049 | 2016-01-14T05:09:50 | 2016-01-14T05:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('taxbrain', '0068_auto_20150314_2137'),
]
operations = [
migrations.RenameField(
model_name='taxsaveinputs',
... | [
"tj.alumbaugh@continuum.io"
] | tj.alumbaugh@continuum.io |
91bf99a2e6bbb2f2dbb60eb172f61a1ec01f2632 | a5a7a70348420b5815d4a49d74aa42e4ca41b4ba | /SAN/lib/utils/box_utils.py | ab81dc6b92ea5b149614c3bfed69a410239b17bb | [
"MIT"
] | permissive | 738654805/landmark-detection | 18f8692b0f81bb4198cb6a5baca42a3f9ec89e59 | 70f647752147592fd5f62f99e64c685a6cf45b4a | refs/heads/master | 2020-06-06T10:53:50.751520 | 2019-06-13T08:41:15 | 2019-06-13T08:41:15 | 192,720,661 | 1 | 0 | MIT | 2019-06-19T11:39:25 | 2019-06-19T11:39:25 | null | UTF-8 | Python | false | false | 1,836 | py | ##############################################################
### Copyright (c) 2018-present, Xuanyi Dong ###
### Style Aggregated Network for Facial Landmark Detection ###
### Computer Vision and Pattern Recognition, 2018 ###
##############################################################
impor... | [
"280835372@qq.com"
] | 280835372@qq.com |
8989148a1e906ae9fa35e8e5f99f07891fdd0d91 | 17e9441138f8ad09eab3d017c0fa13fa27951589 | /blog17-networkx/test02.py | 837cd862a077033de44e123fefe0dbd0a98117bc | [] | no_license | My-lsh/Python-for-Data-Mining | 159a09e76b35efd46ca3e32ad6dd2174847d5ec4 | f2dd0b8f3c4f5f51a10613dff99041bca4fd64c5 | refs/heads/master | 2023-03-26T08:48:32.088713 | 2021-03-25T14:57:07 | 2021-03-25T14:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 02 10:33:58 2017
@author: eastmount CSDN 杨秀璋
"""
import pandas as pd
import numpy as np
import codecs
import networkx as nx
import matplotlib.pyplot as plt
""" 第一步:读取数据并获取姓名 """
data = pd.read_csv("data.csv",encoding ="gb2312") #中文乱码
print data[:4]
print... | [
"noreply@github.com"
] | My-lsh.noreply@github.com |
458e17eed0bc39f02d890a755f9aa6207076f831 | 2a9a136296e3d2abebf3a3dbfbbb091076e9f15f | /env/Lib/site-packages/pip/_vendor/html5lib/treeadapters/sax.py | 59b0a8ff79ffd1467ad8d32e2074685db1ed7e20 | [] | no_license | Lisukod/planet-tracker | a865e3920b858000f5d3de3b11f49c3d158e0e97 | 6714e6332b1dbccf7a3d44430620f308c9560eaa | refs/heads/master | 2023-02-18T19:26:16.705182 | 2021-01-23T01:51:58 | 2021-01-23T01:51:58 | 328,032,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from __future__ import absolute_import, division, unicode_literals
from xml.sax.xmlreader import AttributesNSImpl
from ..constants import adjustForeignAttributes, unadjustForeignAttributes
prefix_mapping = {}
for prefix, localName, namespace in adjustForeignAttributes.values():
if prefix is not None:
pre... | [
"45397160+Lisukod@users.noreply.github.com"
] | 45397160+Lisukod@users.noreply.github.com |
4ed8aacb5d5e8e915a445cc8c33ffb7f42a8ec4c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/11134020.py | d61de03b13fd229fd8d73ea102ddc4195d7175b6 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/11134020.py generated: Fri, 27 Mar 2015 15:47:57
#
# Event Type: 11134020
#
# ASCII decay Descriptor: {[[B0]nos -> (J/psi(1S) -> p+ p~-) (rho(770)0 -> pi+ pi-)]cc, [[B0]os -> (J/psi(1S) -> p+ p~-) (rho(770)0 -> pi- pi+)]cc}
#
from Configurables import Gen... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
1d14a6463b2ceaf9f8bc13e5d1c1c6450675751c | 49b048b05330fcc7ebd1ea6d3b619085af46b433 | /exe01.py | 751128bf3dd018f9c1442b0a37477fe9a947ef8a | [] | no_license | andreplacet/reinforcement-tasks-python-strings | a26e2c8544a2dbb161ffd27c4f806398c2096b8f | 1ee8f16bbc97bca138feb41992205674a4e07a57 | refs/heads/master | 2023-01-08T23:09:40.872807 | 2020-11-06T17:54:51 | 2020-11-06T17:54:51 | 310,668,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Exercicio 01
print('Comparador de strings')
string_1 = str(input('Digite uma frase: ')).strip().split()
print(f'String 1: {string_1}')
string_1 = ''.join(string_1)
string_2 = str(input('Digite uma frase: ')).strip().split()
print(f'String 2: {string_2 = }')
string_2 = ''.join(string_2)
print(f'Tamanho da String 1... | [
"andreplacet@gmail.com"
] | andreplacet@gmail.com |
71ef0ac38df7ff3711365479429d3a21f262af87 | 1b48b3980abbe11691310a7f35efef62bc0ae831 | /_msic/py/_fp/rxpy/test_rx.py | 7ae445bd4cd75655f4c4f14080afa7efe81709e5 | [] | no_license | FXTD-ODYSSEY/MayaScript | 7619b1ebbd664988a553167262c082cd01ab80d5 | 095d6587d6620469e0f1803d59a506682714da17 | refs/heads/master | 2022-11-05T08:37:16.417181 | 2022-10-31T11:50:26 | 2022-10-31T11:50:26 | 224,664,871 | 45 | 11 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from rx import Observable
from random import randint
three_emissions = Observable.range(1, 3)
(
three_emissions.map(lambda i: randint(1, 100000))
.subscribe(lambda i: print("Subscriber 1 Received: {0}".format(i)))
.subscribe(lambda i: print("Subscriber 2 Received: {0}".format(i)))
)
| [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
dc081a3bdcb41c1fec957a206f7cd2c2a8b97677 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/-1850396913/lxml/etree/_Comment.py | d1bc71dd97ac493d449fb08c86cc8fe73d2b8f6e | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 1,038 | py | # encoding: utf-8
# module lxml.etree
# from /var/www/newsbytes/CricketPlayerDataScrapper/venv/lib/python3.6/site-packages/lxml/etree.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
""" The ``lxml.etree`` module implements the extended ElementTree API for XML. """
# imports
import builtins as __builtins__ # <modu... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
db860acf670514cdb3a4a8ac172160bfbafee046 | a8e3ddb269a8b959b3bce38e7b21aaa1a7e69dd4 | /tensorpack/trainv1/config.py | abc02ccaa6e417f64904e35095a3b993806a2fc4 | [
"Apache-2.0"
] | permissive | myelintek/tensorpack | 55945c7ea9d661b31f28c83e5477870d2f3dac86 | fcbf5869d78cf7f3b59c46318b6c883a7ea12056 | refs/heads/master | 2018-10-25T05:50:15.302077 | 2018-04-09T03:24:27 | 2018-04-09T03:24:27 | 114,971,878 | 0 | 2 | Apache-2.0 | 2022-09-29T03:16:20 | 2017-12-21T06:39:29 | Python | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
# File: config.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
__all__ = ['TrainConfig']
from ..train.config import TrainConfig
| [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
9488d6f82af89e6350f8e311867f201ac9056640 | 06d882216885b4cc82ef131afc27baa8a797537a | /food_api/zomato_api/restaurant_url.py | f3399ee659e6f39d9d23973d5b8cccebc3ea0faa | [] | no_license | bopopescu/restaurant_data_crawler | 7de91844ae51b71b1c64af57cf82067f28996940 | dd14839cabd114ab22c86eff15428143a310da5f | refs/heads/master | 2022-11-06T21:52:22.941089 | 2017-10-09T12:10:41 | 2017-10-09T12:10:41 | 282,031,811 | 0 | 0 | null | 2020-07-23T18:54:44 | 2020-07-23T18:54:43 | null | UTF-8 | Python | false | false | 3,633 | py | from bs4 import BeautifulSoup
from urllib2 import Request, urlopen, URLError
import re
from errorhandler import typec
from re import search
from re import sub
import json
def crawlRestaurants(restaurant_url):
try:
menu_url = []
restaurant_menu_url_with_unicode = restaurant_url + "/menu#food"
restaurant_menu_url... | [
"nitesh.surtani0606@gmail.com"
] | nitesh.surtani0606@gmail.com |
77007c1c919ffc67963fee14634b26ee9856e131 | a1bffb2795728a6369c4447ca58e9a60620a1e7d | /intro/matplotlib/examples/plot_aliased.py | 91281736e7c3d601518f28e84fe5b8b6f7ae0e36 | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | imieza/scipy-lecture-notes | 03a4e0615f4fc4fdea3583d9557742fc1798ba65 | 74c8b7b491ceae0ce5be1745497b7adc0bad1406 | refs/heads/master | 2021-01-16T20:30:57.735341 | 2015-09-21T17:28:35 | 2015-09-21T17:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | """
Aliased versus anti-aliased
=============================
This example demonstrates aliased versus anti-aliased text.
"""
import pylab as pl
size = 128, 16
dpi = 72.0
figsize= size[0] / float(dpi), size[1] / float(dpi)
fig = pl.figure(figsize=figsize, dpi=dpi)
fig.patch.set_alpha(0)
pl.axes([0, 0, 1, 1], frameo... | [
"gael.varoquaux@normalesup.org"
] | gael.varoquaux@normalesup.org |
bde24f32962bc7daa1d653fc2bfc6b034f25a563 | 4f972877da14226125440b3da9bdb058764d8a54 | /pythonDemo/argparseOpt/add_arg.py | e43e60028c712b282fd0fa4373dee4ad04ff9d48 | [] | no_license | ZhiYinZhang/study | 16c29990cb371e7e278c437aa0abc7c348614063 | 8c085310b4f65e36f2d84d0acda4ca257b7389af | refs/heads/master | 2021-07-09T16:05:02.925343 | 2020-06-30T07:53:05 | 2020-06-30T07:53:05 | 153,767,096 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# datetime:2020/5/18 14:51
import argparse
if __name__=="__main__":
parser=argparse.ArgumentParser(description="在参数帮助文档之前显示的文本")
#参数需要使用--b或-b
parser.add_argument("--by","-b", #参数变量,‘-’表示缩写
action="store", #将命令行参数与action相关联,默认st... | [
"2454099127@qq.com"
] | 2454099127@qq.com |
f04c44f3b9373ead505307d3d465a8862a926482 | d541422113225e372b2d645fb1e8731b24d12d75 | /hello_name.py | 86c938b89f7a20f62469916e2fcd9bdfa3724004 | [] | no_license | vdpham326/Python_Coding_Exercises | 8c1d5d4cd87f57b94600138649dc865dc9282be3 | 9efd64b24671df1c56ccfac50582d6fd71bc14fc | refs/heads/master | 2022-11-10T09:56:36.252673 | 2020-06-26T09:36:47 | 2020-06-26T09:36:47 | 274,311,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # Given a string name, e.g. "Bob", return a greeting of the form "Hello Bob!".
def hello_name(name):
return "Hello " + name + '!'
print(hello_name('Bob'))
print(hello_name('Alice'))
print(hello_name('X'))
| [
"vdpham326@gmail.com"
] | vdpham326@gmail.com |
d3f4f28a07d725a745058165f9fa71a5072d5e6b | c8b095adbbea29211d699f4113a91bc89fa54493 | /jury/models.py | d1b52c51d89d1786c9bd0a9c7582d0bfc7f37143 | [
"MIT"
] | permissive | maribedran/speakerfight | 9e554e7ea557c5bc44aafb616e46f0878fe8e2d5 | 26e3e70e1d06ec0be004a9b1598c2b55f9823a7d | refs/heads/master | 2021-07-18T04:13:18.974661 | 2017-10-19T17:46:36 | 2017-10-19T17:46:36 | 106,606,011 | 2 | 0 | null | 2017-10-11T20:29:57 | 2017-10-11T20:29:55 | Python | UTF-8 | Python | false | false | 371 | py | from django.utils.translation import ugettext as _
from django.db import models
from django.conf import settings
class Jury(models.Model):
# relations
users = models.ManyToManyField(to=settings.AUTH_USER_MODEL,
related_name='juries')
class Meta:
verbose_name = _... | [
"luanfonceca@gmail.com"
] | luanfonceca@gmail.com |
738f5c35424d9fc3c0c2579254d86e5fe343b5e4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/6c38443a9c1f79ebf131d120be0f36ccfbe963c6-<main>-bug.py | 191038ac35ab613322148994a91dc9df1e97b7c1 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(names={
'default': [],
'type': 'list',
}))
module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)
if (not HAS_BOTO):
module.fail_json(msg='boto required for this module')
try:... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
327cab1f61b7fc63a691fa1106537977cd19c625 | e273ac58c34f6a0fba8360aef75f52a7ef03d5bb | /ansiblemetrics/playbook/num_unique_names.py | 86e83089e546f11c6247dd51d9b902c4e8b68bfe | [
"Apache-2.0"
] | permissive | valeriapontillo/radon-ansible-metrics | e25b6c848fd40eb4b5802f540a6fd1ad20a77ce4 | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | refs/heads/master | 2023-09-06T06:21:43.417616 | 2021-11-04T14:28:04 | 2021-11-04T14:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | import re
from collections import Counter
from ansiblemetrics.ansible_metric import AnsibleMetric
from ansiblemetrics.utils import key_value_list
class NumUniqueNames(AnsibleMetric):
""" This class measures the number of plays and tasks with unique a name.
"""
def count(self):
"""Return the numbe... | [
"stefano.dallapalma0@gmail.com"
] | stefano.dallapalma0@gmail.com |
a45a07dd66cbbfa57b6a3b8f8445747b4300de28 | 1d9e681b204e6ec2d7a710ef45b7dec082239491 | /venv/Lib/site-packages/od_python/models/inline_response_200_33.py | 2f87d5fa2b2a17141b43a2b9c133a4e168221558 | [] | no_license | 1chimaruGin/DotaAnalysis | 0e0b85805cc83e4cc491d46f7eadc014e8d6b1f1 | 6a74cde2ee400fc0dc96305203d60c5e56d7ecff | refs/heads/master | 2020-07-21T20:48:07.589295 | 2019-09-07T12:20:15 | 2019-09-07T12:20:15 | 206,972,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | # coding: utf-8
"""
OpenDota API
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. Please keep request rate to approximately 1/s. **Begining 4/22/2018, the OpenDota API will be limited to 50,000 free calls per month.** We'll be offering a... | [
"kyitharhein18@gmail.com"
] | kyitharhein18@gmail.com |
7a203d32c16d289fef8f26566ec33d36956c6123 | b11b16bf88d4d9be80986631ba161883cd9a28a4 | /examples/rc/packages/gnu.py | 1d096f2cec2adb7a006c51d7ab8534210bfb4da8 | [
"Apache-2.0"
] | permissive | simone-campagna/zapper | 8ec11f68fdf6904cab3031789cd7553aa71f7869 | fee2aaddcb13f789768a30761670c8c142d2b54d | refs/heads/master | 2020-04-26T01:42:32.180173 | 2013-12-07T14:45:57 | 2013-12-07T14:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from zapper.package_file import *
gnu = Suite('gnu', NULL_VERSION)
gnu.add_conflicting_tag('compiler-suite')
for version in '4.1.2', '4.5.2', '4.7.0':
version_name = version.replace('.', '_')
gnu_version = Suite(version_name, NULL_VERSION, suite=gnu)
gnu_version.add_conflicting_tag('gnu-suite')
libf... | [
"simone.campagna@tiscali.it"
] | simone.campagna@tiscali.it |
80df44273e2f313dce7038b7329a31df34e2b601 | 7358fef64817a640f224f6a1b0ef22f7e4812d4b | /Materi/Materi 8 Fungsi/isGenap.py | 926f99fc36b94ff6225596af70dc71181e8fc136 | [] | no_license | bimarakajati/Dasar-Pemrograman | 8d4124701c61900c2cc41ec89be2b08c492c8541 | af5e7abf122b8b151625504ac6739ab98996fb7f | refs/heads/master | 2023-08-24T19:32:00.591820 | 2021-10-13T20:10:12 | 2021-10-13T20:10:12 | 302,336,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def is_Genap(i):
"""
diberikan suatu bilangan i dengan tipe
integer untuk mengecek apakah bilangan
tersebut bilangan genap atau bukan
"""
print('keterangan didalam fungsi is_Genap')
return i%2 == 0
is_Genap(4) | [
"bimandugal@gmail.com"
] | bimandugal@gmail.com |
d27c1611bd3737bd6b4d8b6aecbf4c536cec23b3 | 015098bcb0e7b5595337c1b3e702942ed5b01272 | /setup.py | 6036b2725a5bdc962a01ccd158e2d7961c4446af | [] | no_license | ASSNAKE/assnake-core-binning | f0e0676aa6bcdc4fc60fa98fcdb49d0f5fa960a7 | 7b7e539722e18226b1dd9cd23231a4fda4ba78c9 | refs/heads/master | 2022-12-25T18:39:22.303737 | 2020-10-09T09:53:07 | 2020-10-09T09:53:07 | 236,690,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
import os, shutil
setup(
name='assnake-core-binning',
version='0.0.1',
packages=find_packages(),
entry_points = {
'assnake.plugins': ['assnake-core-binning ... | [
"fedorov.de@gmail.com"
] | fedorov.de@gmail.com |
b86275ae56f9d0014b5c3a45b2b8249d042a0397 | c74b29b68211a51d7283d57b24d7cf83422a8ceb | /historischekranten2folia.py | 49a1dadee9ba395be694155de271a6c80da1c684 | [] | no_license | proycon/nlpsandbox | 63359e7cdd709dd81d66aed9bf1437f8ecf706a0 | 22e5f85852b7b2a658c6b94c3dedd425a5d6396f | refs/heads/master | 2020-12-09T19:37:10.040962 | 2019-04-23T17:17:15 | 2019-04-23T17:17:15 | 2,347,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | #!/usr/bin/env python3
import csv
import sys
from bs4 import BeautifulSoup
from pynlpl.formats import folia
for filename in sys.argv[1:]:
with open(filename, 'r',encoding='utf-8') as f:
reader = csv.DictReader(f, delimiter='\t', quotechar='"')
for row in reader:
docid = "historischekr... | [
"proycon@anaproy.nl"
] | proycon@anaproy.nl |
b776e05c4aebbeae77ba412fb2ebf0fec81ef261 | d3aef2ce0ee88c92516e64018f6d9f880911438c | /demo/urls.py | 0137d9575b7afac8bf893f382ea0ac49ae67e9f8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Apkawa/django-material | 648451d28a21270ddff937abf92931592ab9a56e | 426e845ac27db0e1351bbb7f68377949581dfbd7 | refs/heads/master | 2021-01-15T17:51:49.304338 | 2016-02-26T10:34:15 | 2016-02-26T10:34:15 | 52,146,120 | 0 | 0 | null | 2016-02-20T09:29:25 | 2016-02-20T09:29:24 | null | UTF-8 | Python | false | false | 6,434 | py | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views import generic
from django.shortcuts import render
from formtools.wizard.views import SessionWizardView
from material.frontend import urls as frontend_urls
from . import forms, widget_forms
d... | [
"kmmbvnr@gmail.com"
] | kmmbvnr@gmail.com |
8f6074736677b40ad3abc447c437659f71c7eb0f | fbf4f26a2b97d4fe35aa7b66e9cfed4cd0224e89 | /chlamdb/eutils/sequence_exact_match.py | 83e231040a3d492e29ca337400d07a339d4fe140 | [] | no_license | metagenlab/chlamdb | a100ab93407e15c33684b8d7175873adc6720d0b | f1829cf19ac1ded032d65689fbbff2d37489f739 | refs/heads/master | 2023-03-07T05:30:02.793914 | 2023-03-02T10:30:57 | 2023-03-02T10:30:57 | 179,291,344 | 6 | 1 | null | 2022-11-01T07:01:54 | 2019-04-03T13:02:40 | HTML | UTF-8 | Python | false | false | 4,816 | py | #!/usr/bin/env python
def process_tag(tag):
return tag.split('}')[-1]
def get_UPI(seq):
for element in seq:
if element.tag == '{http://model.picr.ebi.ac.uk}UPI':
return element.text
def get_hit_attributes(hit):
accession = ''
version = ''
taxon_id = ''
db_name = ''
for... | [
"trestan.pillonel@gmail.com"
] | trestan.pillonel@gmail.com |
077d1f303b1d8e4453ccf710e00fdc43e75bd68c | 1f38f3cd0ba6d42dd73f273e3dc9df4ebdc0dc9d | /BuzzScoreSite/manage.py | 5463761455fffd46cd530a6382b889c5bc5c5ee1 | [] | no_license | MenshovSergey/BuzzScore | 2a5f8cfd9b46a85665455c2a5cfa298c9a3a698b | 348d1b2feb76a892e489016682f16e7a70a504a9 | refs/heads/master | 2021-01-16T19:49:40.996213 | 2013-10-12T09:43:46 | 2013-10-12T09:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BuzzScoreSite.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"snailandmail@gmail.com"
] | snailandmail@gmail.com |
9fdf1fcd02e82e69e482cbdf80c02a24fcb02aef | 01200401ef046a917df1205268fa92f23cfd28d8 | /tests/test_histogram.py | f59279d6ed0771159428df32ce8d3a52d8e06d3d | [
"BSD-3-Clause"
] | permissive | murodin/pyclesperanto_prototype | 5fa8922dcbbc98aa69e1aab779c62a326a6937d7 | 4687e3085a5f8bc12e798bf25acd295ee249fb5e | refs/heads/master | 2023-01-20T14:34:47.858014 | 2020-11-30T11:56:47 | 2020-11-30T11:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | import pyclesperanto_prototype as cle
import numpy as np
def test_histogram():
test = cle.push_zyx(np.asarray([
[1, 2, 4, 4, 2, 3],
[3, 3, 4, 4, 5, 5]
]))
ref_histogram = [1, 2, 3, 4, 2]
my_histogram = cle.histogram(test, num_bins = 5)
print(my_histogram)
a = cle.pull(my_his... | [
"haesleinhuepf@users.noreply.github.com"
] | haesleinhuepf@users.noreply.github.com |
8e6a40aabb5d98acecdf713ba9a997923ae08b27 | 7bf617f77a55d8ec23fa8156c1380b563a5ac7f6 | /CG/SciPy/mm_color_cluster.py | c069d4d292db408ca47cdbeff36617ac590abb43 | [] | no_license | anyatran/school | c06da0e08b148e3d93aec0e76329579bddaa85d5 | 24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec | refs/heads/master | 2021-06-17T10:45:47.648361 | 2017-05-26T12:57:23 | 2017-05-26T12:57:23 | 92,509,148 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | # Auto-clustering, suggested by Matt Terry
from skimage import io, color, exposure
from sklearn import cluster, preprocessing
import numpy as np
import matplotlib.pyplot as plt
url = 'http://blogs.mathworks.com/images/steve/2010/mms.jpg'
import os
if not os.path.exists('mm.png'):
print "Downloading M&M's..."
... | [
"panhtran249@gmail.com"
] | panhtran249@gmail.com |
e2fa124d83cd3c760b0eff2d53eef09fec49c3aa | 7e266469a84e06e3551a7ba0dca25e894f2f3111 | /Bloomy_Core_CreateQualityInspection_TestCase/test_createqualityinspection_testcase.py | 7f7b7aeeb1520353cfd2c98e5bd56a96ac51aa33 | [] | no_license | Bloomstack-Test-Automation/Bloomstack-Test-Automation | 43862b6761951effee5f17d7428f5be0c34b4499 | 2450df2018715cf6f0ec080ca1dc0751a230d969 | refs/heads/main | 2023-06-06T10:52:57.695175 | 2021-06-30T11:33:30 | 2021-06-30T11:33:30 | 368,438,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,647 | py | import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from src.testproject.classes import DriverStepSettings, StepSettings
from src.testproject.decorator import report_assertion_errors
from src.testproject.enums import SleepTimingType
from src.testproject.sdk.driv... | [
"noreply@github.com"
] | Bloomstack-Test-Automation.noreply@github.com |
b9ad5d3f538a6de721c9603acde868d0da3788d0 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav388.py | 2b4f02b7722c2854864b1dddca35aacd975e7d93 | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = prey[0] + prey[1]
if temp0 > prey[0]:
temp1 = min(temp0, temp0)
else:
if prey[1] != 0:
temp1 = prey[1] % prey[1]
else:
temp1 = prey[1]
temp0 = max(prey[0], temp0)
temp0 = temp0 - temp1
if prey[1] != 0:
temp2 = prey[0] / prey[1]
else:
temp2 ... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
721c16210b081c6ce406706a8bf7b814db33d02e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayDataAiserviceHellobikeSiteQueryModel.py | dc06ebbcb58713b563f9fd0994a388c9ab3da002 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 896 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayDataAiserviceHellobikeSiteQueryModel(object):
def __init__(self):
self._plan_id = None
@property
def plan_id(self):
return self._plan_id
@plan_id.setter
de... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
92aaa9f2c0851bde5ed7572fb8b8c62845c4c814 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /R4D59C9CQbJvqWaKd_6.py | ed52bb6e52badf15ab27956a07eb2844ef6a368d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | """
A baseball player's batting average is calculated by the following formula:
BA = (number of hits) / (number of official at-bats)
Batting averages are always expressed rounded to the nearest thousandth with
no leading zero. The top 3 MLB batting averages of all-time are:
1. Ty Cobb .366
2. Rogers Horns... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
861619f37d3f45ca55feb13d85f1c0ec4990fcef | 52a3beeb07ad326115084a47a9e698efbaec054b | /horizon/.venv/bin/pyscss | 80baac9d659e74f232c739e2139c1b9408819faa | [
"Apache-2.0"
] | permissive | bopopescu/sample_scripts | 3dade0710ecdc8f9251dc60164747830f8de6877 | f9edce63c0a4d636f672702153662bd77bfd400d | refs/heads/master | 2022-11-17T19:19:34.210886 | 2018-06-11T04:14:27 | 2018-06-11T04:14:27 | 282,088,840 | 0 | 0 | null | 2020-07-24T00:57:31 | 2020-07-24T00:57:31 | null | UTF-8 | Python | false | false | 319 | #!/home/horizon/horizon/.venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pyScss==1.3.5','console_scripts','pyscss'
__requires__ = 'pyScss==1.3.5'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pyScss==1.3.5', 'console_scripts', 'pyscss')()
)
| [
"Suhaib.Chishti@exponential.com"
] | Suhaib.Chishti@exponential.com | |
df91c9a9b9937a18b50fc7a7be16c73b905500d8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_true.py | ada6ea76ff35da675f31a995503e77327d2954a1 | [
"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 | 359 | py |
#calss header
class _TRUE():
def __init__(self,):
self.name = "TRUE"
self.definitions = [u'to not be in the correct position or to be slightly bent out of the correct shape: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7d9b8ff5c86e7a469c4e54991a98f844dbd57066 | e4cab6feadcee618f092f23020a157c8ded42ffc | /Basics/Matrix/homework.py | 524046cb9ab52c37bb822c2aedc925bed9786d01 | [] | no_license | Larionov0/Group3_Lessons | 7c314898a70c61aa445db37383076e211692b56b | 628bc7efe6817d107cb39d3017cb7cee44b86ba4 | refs/heads/master | 2023-08-22T07:14:44.595963 | 2021-10-17T11:48:06 | 2021-10-17T11:48:06 | 339,141,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | matrix = [
[1, 2, 3, 4],
[5, 6, 7, 8],
[9, 10, 11, 12],
[13, 14, 15, 16]
]
while True:
i = int(input('enter number from 0 to 4: i = '))
j = int(input('enter number from 0 to 4: j = '))
print(matrix[i][j])
| [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
4aa619c5f0da271cf82f1c1c1edb77fb610b3181 | 4b17d98ad2a3ef018cfb33f7f1d645ede72eb808 | /models.py | 317ff17f52dc2e3d03d3556e07facbc26924d19b | [
"MIT"
] | permissive | poshan0126/Facial-Keypoint-Detection | 932ce0b85d7b1b0b893376537a5cf7c148704ee7 | fc52574b4c006e3afd86f209369e1a3e704a65fa | refs/heads/master | 2020-09-02T19:43:20.650541 | 2019-11-03T11:53:30 | 2019-11-03T11:53:30 | 219,292,492 | 0 | 0 | MIT | 2020-01-19T09:34:06 | 2019-11-03T11:47:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,030 | py | ## TODO: define the convolutional neural network architecture
num_output = 136 # As it's suggest final linear layer have to output 136 values, 2 for each of the 68 keypoint (x,y) pairs.
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
# can use the below import shou... | [
"aakrist666@gmail.com"
] | aakrist666@gmail.com |
c11ee44633ac855b635d80da88d711d373e23c60 | 59886a1143cc4043b19e398fae1fddb5742b4b55 | /src/main/python/rlbot/agents/base_java_agent.py | 558144395485290f687591f9f3c43416c417fb28 | [
"MIT"
] | permissive | RLBot/RLBot | a6c4f502403f02822b3e4078b27583226584432e | c2f7c9a07911691b112b5338008e2ec932e7aee0 | refs/heads/master | 2023-08-16T06:04:35.384448 | 2023-07-01T11:21:26 | 2023-07-01T11:21:26 | 80,671,678 | 482 | 138 | MIT | 2023-07-01T11:21:28 | 2017-02-01T22:36:52 | Python | UTF-8 | Python | false | false | 542 | py | from rlbot.agents.base_independent_agent import BaseIndependentAgent
class BaseJavaAgent(BaseIndependentAgent):
def __init__(self, name, team, index):
super().__init__(name, team, index)
raise NotImplementedError(
f"Cannot run {name} because BaseJavaAgent is deprecated! "
... | [
"noreply@github.com"
] | RLBot.noreply@github.com |
795c71f40d7e4b7b4ba2a1d84f255eb7b5f64b2d | faa965776fb422437332440a169d9980437e4fce | /text/cleaners.py | b2c8c9d1e2e3a65a3eb3e110beec2fb2eb299138 | [] | no_license | IMLHF/lpc-tracotron | 752ac707568098c870bf5db107dc9d184a7f853d | 5994f84bf828afe11da845fb5153080f673a653e | refs/heads/master | 2020-07-02T16:50:18.803338 | 2019-09-03T03:20:41 | 2019-09-03T03:20:41 | 201,594,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | '''
Cleaners are transformations that run over the input text at both training and eval time.
Cleaners can be selected by passing a comma-delimited list of cleaner names as the "cleaners"
hyperparameter. Some cleaners are English-specific. You'll typically want to use:
1. "english_cleaners" for English text
2. "tr... | [
"red_wind@foxmail.com"
] | red_wind@foxmail.com |
fec187d97af48673db9a3cd1cb57dbaa81a53c2d | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2020/DeclarativeEnvironmentRecord.CreateImmutableBinding.spec | 32137e54076b90b69a23ec493062ece2b21f0272 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 398 | spec | 1. Let _envRec_ be the declarative Environment Record for which the method was invoked.
1. Assert: _envRec_ does not already have a binding for _N_.
1. Create an immutable binding in _envRec_ for _N_ and record that it is uninitialized. If _S_ is *true*, record that the newly created... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
922afb74fdeb65bf3a731c7e2f814a52234e3f75 | 8fd07ea363ba4263bafe25d213c72cc9a93e2b3e | /devops/Day1_fork_thread/Thread/5.凑够一定数量才能继续执行.py | d73b1743ccd66793d4ab5dc684274cdd8d96cd03 | [] | no_license | ml758392/python_tedu | 82e12ae014f0fc81230386fab07f901510fc8837 | 9f20798604db0ac8cd7b69d8c7a52ee361ebc7a7 | refs/heads/master | 2020-04-12T08:30:42.354663 | 2019-03-29T11:55:30 | 2019-03-29T11:55:30 | 162,386,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # -*-coding:utf-8-*-
import threading
import time
bar = threading.Barrier(6)
def run():
print('%s---start' % threading.current_thread().name)
time.sleep(1)
bar.wait()
print('%s---end' % threading.current_thread().name)
if __name__ == '__main__':
for i in range(5):
threading.Thread(targe... | [
"yy.tedu.cn"
] | yy.tedu.cn |
59f0627ece60217800e3c91abd0f3269841b99de | a3354726b126b85987a1455bd4b1ed0a4d05f5bb | /apps/posts/templatetags/urlify.py | dbcef20ecbbcf46d92a98266c40fc00add8b6040 | [] | no_license | RonaldTheodoro/django-blog | cea90ab619e69560013a995c8d67d65e4593e0a9 | 92b64aa93c495fef835e64a98c9619cba3f518c4 | refs/heads/master | 2020-04-01T06:05:08.492523 | 2018-10-20T15:28:53 | 2018-10-20T15:28:53 | 152,932,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from urllib.parse import quote_plus
from django import template
register = template.Library()
@register.filter
def urlify(value):
return quote_plus(value)
| [
"ronald.silva4@fatec.sp.gov.br"
] | ronald.silva4@fatec.sp.gov.br |
31642fa7ef14844e7529c37bd4b42f313d0a69bc | 32f7392217c50e1ee5a41db0414cbd6ca2427753 | /Tencent2020/txbase/emb.py | 2bf25c681898d4882c0639e0dc5cc6a532c10b48 | [] | no_license | Stella2019/KDD2020 | 0f315cd14c26bbcedc69b3982ca58d848d5d4a13 | 2604208d8bcac47ef097e6469633430637149b31 | refs/heads/main | 2023-07-02T02:22:07.707798 | 2021-08-14T06:15:04 | 2021-08-14T06:15:04 | 395,909,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,577 | py | from . import Cache
import numpy as np
class EmbBatchLoader:
def __init__(self,
all_emb_cols,
emb_base_dir=None,
key2index=None,
outer_emb=False):
"""
outer_emb: 设置该参数为True,如果是导入外部的embedding,
会造成key2index和w... | [
"noreply@github.com"
] | Stella2019.noreply@github.com |
1a9627a465aa1f53187fe367e69589eff0cf6a31 | a59d1faced9fe7348ca7143d2a8643e0ebad2132 | /pyvisdk/do/application_quiesce_fault.py | cf32f58e3304afc4abc1a5f0d39e25a272834537 | [
"MIT"
] | permissive | Infinidat/pyvisdk | c55d0e363131a8f35d2b0e6faa3294c191dba964 | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | refs/heads/master | 2023-05-27T08:19:12.439645 | 2014-07-20T11:49:16 | 2014-07-20T11:49:16 | 4,072,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def ApplicationQuiesceFault(vim, *args, **kwargs):
'''This fault is thrown when creating ... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
63f33a87835b8770a6f52247450c589c170448cc | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/kusto/v20210827/get_data_connection.py | 10c402e25115ff6f6d20ff26cd07edd7efef74c5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | 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"
] | bpkgoud.noreply@github.com |
4b8eff8148ed0ac19a6ac1759eb66417d0b8a4a0 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part010263.py | 46c4f1fd19764edd4977285229bf635d77cfbf13 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
4c98e08132aeae3e18d23763c7ba5bf9f7915f22 | 3970706a16be81a63b2476222c1b061da9f11b70 | /estimator/download_data.py | 4cf480e781e68353a149d1325da327b6ec2ae348 | [] | no_license | sfujiwara/tensorflow-examples | 3de3fb90c6204bec2c455f8f1b9aa98a14f393b9 | 6b9dd3ba27e1b0d021c322f5504e888b6b7ed4fb | refs/heads/master | 2023-04-18T11:33:43.271751 | 2020-12-17T20:49:57 | 2020-12-17T20:49:57 | 126,787,804 | 1 | 0 | null | 2023-03-25T00:25:33 | 2018-03-26T07:06:44 | Python | UTF-8 | Python | false | false | 426 | py | import argparse
import tensorflow_datasets as tfds
parser = argparse.ArgumentParser()
parser.add_argument('--tfds_dir', type=str)
parser.add_argument('--dataset_name', type=str)
args = parser.parse_args()
TFDS_DIR = args.tfds_dir
DATASET_NAME = args.dataset_name
def main():
builder = tfds.builder(DATASET_NAME,... | [
"shuhei.fujiwara@gmail.com"
] | shuhei.fujiwara@gmail.com |
a015fd2835d1017c32b4f5d5ad8ec3e72eb99d16 | a78f0d96c33d8e3399bffa85ffba5c8e598e8492 | /Array/55_sort_wave.py | 94cb0b44a844fba62865e284c91e58d6ea58cb23 | [] | no_license | ANKITPODDER2000/data-structure | 78203fabf9ea7ef580d41d4d44cbff1e6c9f397d | 3c1542562e74c0888718273e16206a755b193d4e | refs/heads/main | 2023-02-04T15:40:21.017573 | 2020-12-31T10:45:18 | 2020-12-31T10:45:18 | 325,778,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from get_array_helper import take_array_user
def sort_wave(arr , n):
for i in range(0 , n , 2):
if arr[i]<arr[i-1] and i > 0:
arr[i] , arr[i-1] = arr[i-1] , arr[i]
if arr[i]<arr[i+1] and i<n-1:
arr[i] , arr[i+1] = arr[i+1] , arr[i]
arr , n = take_array_user()
print... | [
"ankitpodder0211@gmail.com"
] | ankitpodder0211@gmail.com |
98cb85d1402933244f795a346bdc4fd0313236fe | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/scrapy_scrapy/scrapy-master/scrapy/commands/startproject.py | 5941066326a89f8907da69a7681f54c726320d4d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,863 | py | from __future__ import print_function
import re
import os
import string
from importlib import import_module
from os.path import join, exists, abspath
from shutil import ignore_patterns, move, copy2, copystat
import scrapy
from scrapy.commands import ScrapyCommand
from scrapy.utils.template import render_templatefile, ... | [
"659338505@qq.com"
] | 659338505@qq.com |
8e3433cc468d8d0c729fe477b522903a60d3acd2 | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/UnigramLanguageModelImplementation_20210809170904.py | 6ea53ba81f55833e5414f6e86eea471894cdaf2c | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | import math
from IPython.display import display
import sys
from BM25implementation import QueryParsers
ALPHA = 0.75
NORMALIZE_PROBABILITY = True
class UnigramLanguageModel:
def __init__(self, tweets_data): #tweets is a pandas dataframe
self.tweets_data = tweets_data
self.wordsCollectionFrequencyD... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
c563ebf7c8f48e07c6f75e980fe4f341bf47c19f | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20180703/example_resumable/05handler_cli.py | 391b49df85d96e1dc81fa2dd64d1562ecb57edaa | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 489 | py | import csv
import sys
def main(args):
yield from run(args.input)
def run(itr):
yield ["x", "x*x"]
for x in itr:
x = int(x)
yield {"x": x, "x*x": x * x}
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--input", action="appen... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
e771087dda9f75a0335919a1fb638e8c0f758ab6 | 8fd07ea363ba4263bafe25d213c72cc9a93e2b3e | /nsd2018-master/nsd1804/python/day05/u2d.py | 5bab4f12fb972e1d039dbb0c1b0ab2b1eb7c6dc5 | [] | no_license | ml758392/python_tedu | 82e12ae014f0fc81230386fab07f901510fc8837 | 9f20798604db0ac8cd7b69d8c7a52ee361ebc7a7 | refs/heads/master | 2020-04-12T08:30:42.354663 | 2019-03-29T11:55:30 | 2019-03-29T11:55:30 | 162,386,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import sys
def unix2dos(fname):
dst_fname = fname + '.txt'
with open(fname) as src_fobj:
with open(dst_fname, 'w') as dst_fobj:
for line in src_fobj:
dst_fobj.write(line.rstrip() + '\r\n')
if __name__ == '__main__':
unix2dos(sys.argv[1])
| [
"yy.tedu.cn"
] | yy.tedu.cn |
e2e24e924dd08430e582554e7321d4125ec6c862 | c40e84f6ca54fd85fc4f91740f6d35b9e693584a | /LeetCode/Python/073 Set Matrix Zeroes.py | 2626b6ad540243c985a9763a59b8dc676a17801a | [] | no_license | arif-hanif/Algorithm | 8b4d7b7e1c32524558f35bcca2f70b6283b16370 | 84b5be24f7b083b6fab6228a49eb279ab764ccda | refs/heads/master | 2021-01-15T16:42:29.079179 | 2016-09-10T11:32:25 | 2016-09-10T11:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | # -*- coding: utf-8 -*-
'''
Set Matrix Zeroes
=================
Given a m x n matrix, if an element is 0, set its entire row and column to 0.
Do it in place.
Follow up:
Did you use extra space?
A straight forward solution using O(mn) space is probably a bad idea.
A simple improvement uses O(m + n) space, but still ... | [
"shiyanhui66@gmail.com"
] | shiyanhui66@gmail.com |
d992dc6e406ab8fbad3aebc90fc1b8a3592c3027 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /sdk/servicebus/azure-servicebus/examples/async_examples/example_queue_send_receive_batch_async.py | 2ae76d4e5a94a9d9b0c3c20ade55f474df3daa07 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,914 | py | # ------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -------------------------------------------------------------------------
import asyn... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
75aa760a5335cac72dbbcde939f818d0c5ecf3ac | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_366/ch27_2019_03_05_20_56_38_513299.py | 0e3a0ae523a08345d0ba9fc83d035fa90b50cc99 | [] | 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 | 280 | py | qtde_cigarros = int(input('Quantos cigarros você fuma por dia?'))
qtde_anos = float(input('Há quantos anos você fuma?'))
def tempo_perdido(qtde_cigarros, qtde_anos):
y = qtde_cigarros*365*qtde_anos/144
return y
c = tempo_perdido(qtde_cigarros, qtde_anos)
print(c) | [
"you@example.com"
] | you@example.com |
35d99c94d8fbf0df2eb3e6cc2c0ef0d44c95e3dd | 6b3e8b4291c67195ad51e356ba46602a15d5fe38 | /test_v2/core/test_config.py | 311cc073a68e5459dfd6c8c248fdf2f4f5fda633 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | csaybar/raster-vision | 4f5bb1125d4fb3ae5c455db603d8fb749221dd74 | 617ca15f64e3b8a391432306a743f7d0dfff352f | refs/heads/master | 2021-02-26T19:02:53.752971 | 2020-02-27T17:25:31 | 2020-02-27T17:25:31 | 245,547,406 | 2 | 1 | NOASSERTION | 2020-03-07T01:24:09 | 2020-03-07T01:24:08 | null | UTF-8 | Python | false | false | 3,493 | py | from typing import List
import unittest
import copy
from pydantic.error_wrappers import ValidationError
from rastervision2.pipeline.config import (Config, register_config, build_config,
upgrade_config, Upgrader)
class AConfig(Config):
x: str = 'x'
@register_config('a... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
4825299ada1c314576b5b7d6ef81e6e9a85796e6 | 14c8434f6a4f09b84bc7dae3b6b225e7e13b156d | /app/errors.py | abd12d1d19f7af2be57ad88f68ab3f628692e411 | [] | no_license | mingming2513953126/flack | 07299d5cc62aa4ced0734f2b00db587a24261d69 | dbc793c0908629ae7fee87250f2e0f4456e76f33 | refs/heads/master | 2021-05-10T09:11:24.354831 | 2018-01-25T13:38:02 | 2018-01-25T13:38:02 | 118,917,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # encoding: utf-8
'''
@author: lileilei
@file: errors.py
@time: 2017/5/22 20:50
'''
from flask import render_template,jsonify,request
| [
"2513953126@qq.com"
] | 2513953126@qq.com |
af6f8fa01e3dd3c3a068bcce200fc48515571e7f | c237d854f2fc78a7583f2bf0528355c8b14912f8 | /tests/test_example.py | 099b0812c779fffcc65bb463803178d1b6192432 | [
"MIT"
] | permissive | azridev/flask-dashboard-shards | da072e7406e9be3b85f31a9dff6167a0d87a7496 | c6833e6d55c7dd065b4c6e9b677288e9fe9aa344 | refs/heads/master | 2021-05-19T09:08:00.079436 | 2020-03-26T19:04:00 | 2020-03-26T19:04:00 | 251,620,836 | 0 | 1 | MIT | 2020-03-31T14:04:41 | 2020-03-31T14:04:40 | null | UTF-8 | Python | false | false | 584 | py | # -*- encoding: utf-8 -*-
"""
License: MIT
Copyright (c) 2019 - present AppSeed.us
"""
from tests.test_base import check_pages, check_blueprints
@check_pages('/', '/home/index')
def test_pages(base_client):
# do something
base_client.post('/', data={})
# the pages are tested (GET request: 200) afterwards ... | [
"developer@rosoftware.ro"
] | developer@rosoftware.ro |
1d29dee387b69c8558912e9c4fd3c2013e88be9a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2550.py | 28c00dfbc78318b375a16931dd8cc2af6d52486d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | #!/usr/bin/env python
import sys
from math import sqrt
def pal(x):
x = str(x)
return x == x[::-1]
if __name__ == "__main__":
t = int(sys.stdin.readline())
for case in range(1, t+1):
count = 0
i, j = [long(c) for c in sys.stdin.readline().split(" ")]
for n in range(i, j+1):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d32be4c5c1aa79bae358160228b4b8ad3f289a4f | 28ef7c65a5cb1291916c768a0c2468a91770bc12 | /configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/coco/mobilenetv2_coco_384x288.py | b7b54f086ffee4d0e83d3a2fe04f5cf10f68a7ec | [
"Apache-2.0"
] | permissive | bit-scientist/mmpose | 57464aae1ca87faf5a4669991ae1ea4347e41900 | 9671a12caf63ae5d15a9bebc66a9a2e7a3ce617e | refs/heads/master | 2023-08-03T17:18:27.413286 | 2021-09-29T03:48:37 | 2021-09-29T03:48:37 | 411,549,076 | 0 | 0 | Apache-2.0 | 2021-09-29T06:01:27 | 2021-09-29T06:01:26 | null | UTF-8 | Python | false | false | 4,196 | py | _base_ = ['../../../../_base_/datasets/coco.py']
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', save_best='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optim... | [
"noreply@github.com"
] | bit-scientist.noreply@github.com |
f2746e2381a95d740cf3cd4036e8a08a7bb02ad3 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/aldryn/django-simple-sso/simple_sso/sso_server/server.py | aa568278cfa75a6e2015dc8bf8be3712ae4e86da | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 6,308 | py | # -*- coding: utf-8 -*-
import urlparse
from django.conf.urls import patterns, url
from django.contrib import admin
from django.contrib.admin.options import ModelAdmin
from django.core.urlresolvers import reverse
from django.http import (HttpResponseForbidden, HttpResponseBadRequest, HttpResponseRedirect, QueryDict)
fr... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
1bc5bfe0093dafca4e694e1f48a3517bedeab02c | 5cd6a7fa7be3b00ff63e60935bc1be9fa1cfebf4 | /projects/mid_atlantic/study/plot_FigS3_Distance_v_Depth_By_State.py | 32b02836b5905138d01abb24b202eb0527cf62b4 | [
"MIT"
] | permissive | EnergyModels/caes | 214e1c7cded4498f33670da7eeebccbaa665e930 | 5e994c198657226925161db1980ebfa704d0c90b | refs/heads/master | 2023-08-23T15:05:53.594530 | 2021-11-06T01:00:57 | 2021-11-06T01:00:57 | 261,201,284 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,026 | py | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes, mark_inset
df = pd.read_csv('all_analysis.csv')
# f, a = plt.subplots(2,1)
# a = a.ravel()
#
# sns.scatterplot(data=df, x='NEAR_DIST',y='feasible_fr', hue='NEAR_FC', ax=a[0])
... | [
"jab6ft@virginia.edu"
] | jab6ft@virginia.edu |
164e5493f6758c339a9e2ad856a3766537c455d0 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=65/params.py | 1784956005fe6b3ad3c6eecf934f47a007d14984 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.662643',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 65,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
ac3142959ea8cad01113bded21db613df639e564 | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/326A/test_cdf_326A.py | 64e36fcaf81aaefde3dcff7e62890268fa2c84a8 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import unittest
from unittest.mock import patch
from cdf_326A import CodeforcesTask326ASolution
class TestCDF326A(unittest.TestCase):
if __name__ == "__main__":
unittest.main()
| [
"oleszek.karol@gmail.com"
] | oleszek.karol@gmail.com |
30965eb40de98acf331d58db74af0f8f602f227d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03085/s149035990.py | 1c1c597445598c94f69ba81db215767cac8dae30 | [] | 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 | 458 | py | # A - Double Helix
# A:アデニン T:チミン G:グアニン C:シトシン
# 対になる組み合わせ A-T G-C
# 標準入力
base = input()
# print(base)
# 条件分岐し、結果を answer に代入
if base == 'A':
# print('T')
answer = 'T'
elif base == 'T':
# print('A')
answer = 'A'
elif base == 'G':
# print('C')
answer = 'C'
elif base == 'C':
# print('G')
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
72385aef0f88fb44670c62fe09108881b5ca1cdd | a934a51f68592785a7aed1eeb31e5be45dd087d3 | /Learning/Network_process_WA/Day1/2020_Jul23/subprocess_old/run_ls01.py | ba2d553ef730e9191baf52a2201f2e782ccafa17 | [] | no_license | nsshayan/Python | 9bf0dcb9a6890419873428a2dde7a802e715be2b | 0cf5420eecac3505071326c90b28bd942205ea54 | refs/heads/master | 2021-06-03T18:41:06.203334 | 2020-09-28T07:28:48 | 2020-09-28T07:28:48 | 35,269,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from subprocess import Popen
#p = Popen("echo $PATH", shell=True)
with open("ls.out", "w") as lsout:
p = Popen(["ls", "-l", "/usr"], stdout=lsout)
ret = p.wait()
print("ls exited with code =", ret)
| [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
a14c03bc628896e88a3a715353f4b5c93d9778c3 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part13-introduction-data-visualization/No07-Using-legend.py | bd1fef91573279e954aa0db684577e0a61040372 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #Using legend()
'''
Legends are useful for distinguishing between multiple datasets displayed on common axes. The relevant data are created using specific line colors or markers in various plot commands. Using the keyword argument label in the plotting function associates a string to use in a legend.
For example, here... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
328ecc8c6a133314695a3f5e71fe57df6876cc9c | bdb206758815fa598285e05c23d81829f3ad60a9 | /addons/at2166/controllers/controllers.py | 4e907a688dc832b0d2a90c58e410c59f80a51a82 | [] | no_license | kulius/odoo10_test | 75a9645fbd64ba5fd6901fb441f2e7141f610032 | 5a01107e2337fd0bbe35d87d53a0fe12eff7c59e | refs/heads/master | 2021-07-26T15:05:58.074345 | 2017-11-08T09:04:11 | 2017-11-08T09:04:11 | 109,943,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
from odoo import http
# class At2166(http.Controller):
# @http.route('/at2166/at2166/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/at2166/at2166/objects/', auth='public')
# def list(self, **kw):
# return http.request.render('... | [
"kulius@gmail.com"
] | kulius@gmail.com |
99f2714c3fba9228c05928fad3b4c365ac9aa7b1 | 356151747d2a6c65429e48592385166ab48c334c | /backend/customer/threads/order_now/th_get_menu.py | 5e181b84ea83adbffe87077606958d72b475afed | [] | no_license | therealrahulsahu/se_project | c82b2d9d467decd30a24388f66427c7805c23252 | c9f9fd5594191ab7dce0504ca0ab3025aa26a0c1 | refs/heads/master | 2020-06-25T02:51:30.355677 | 2020-04-20T13:01:36 | 2020-04-20T13:01:36 | 199,175,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | from PyQt5.QtCore import QThread, pyqtSignal
class ThreadGetMenu(QThread):
signal = pyqtSignal('PyQt_PyObject')
def __init__(self, parent_class):
super().__init__()
self.parent_class = parent_class
def run(self):
if self.check_for_veg():
food_query = {
... | [
"43601158+therealrahulsahu@users.noreply.github.com"
] | 43601158+therealrahulsahu@users.noreply.github.com |
e46e39a01e13cb2eea5a6f5add4fb61accae3bf1 | c99be9a7a55c6dc3dade46147f116ee6729a19d1 | /tikzplotlib/__about__.py | 4d3b2067e4529f6a610d20626f3fcbed193b58ca | [
"MIT"
] | permissive | theRealSuperMario/tikzplotlib | 3001cbe11856b1e7d87aa308c0ef99bbd28d1bec | 3c1e08e78cb87ecf4b475f506244813bf99ac705 | refs/heads/master | 2020-12-11T09:36:37.399842 | 2020-11-01T10:27:21 | 2020-11-01T10:27:21 | 233,809,790 | 2 | 0 | MIT | 2020-01-14T09:54:53 | 2020-01-14T09:54:53 | null | UTF-8 | Python | false | false | 221 | py | try:
# Python 3.8
from importlib import metadata
except ImportError:
import importlib_metadata as metadata
try:
__version__ = metadata.version("tikzplotlib")
except Exception:
__version__ = "unknown"
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
5f5a0e831a68c5ef684d354ca570acf953792cea | f75ec2c20c3208350d310038a2cd0a67253b44df | /src/swagger_codegen/api/response_deserializer.py | 5abc7163627b96210e3b445db6500c9493171408 | [] | no_license | vichooz/swagger_codegen | e53f59f3cd2c080157863698f932a606705db4e4 | 8238356075eea4218b2e6a645c7ea2b8826b1044 | refs/heads/master | 2022-08-03T04:32:49.291426 | 2020-05-27T06:09:28 | 2020-05-27T06:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import abc
from typing import Any
from typing import Optional
import pydantic
from swagger_codegen.api.types import ResponseType
class ResponseDeserializer(abc.ABC):
@abc.abstractmethod
def deserialize(self, deserialize_to: ResponseType, model_body):
pass
class DefaultResponseDeserializer(Response... | [
"n10101010@gmail.com"
] | n10101010@gmail.com |
4a67d8771aca07434a51aa7be4bb84f2c069a433 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python Fundamentals/Final exam/02_emoji_detector.py | 2561bef627873327e10a68ef7de9312ae81415d8 | [] | 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,134 | py | import re
def threshold(input_string):
c_threshold = 1
digit_regex = r"[0-9]"
digits = re.findall(digit_regex, input_string)
for digit in digits:
c_threshold *= int(digit)
return c_threshold
def emoji_checker(input_string, cool):
all_of_emojis = []
cool_of_emojis = ... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
36859f62160f94e4c4d427461f1f1f7aaa00bab4 | 5efc7ab8a298a026bad44596e18de104985a4b71 | /fn_wiki/tests/test_funct_fn_wiki_create_update.py | 9aa1fce69272eadbcde79a40b9ddf69ec5e91908 | [
"MIT"
] | permissive | RomanDerkach/resilient-community-apps | 4cf0abe443411582e9f57491364ecc2d844ba30d | 1f60fb100e6a697df7b901d7a4aad707fea3dfee | refs/heads/master | 2023-03-11T21:56:18.307942 | 2021-03-02T16:09:33 | 2021-03-02T16:09:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,815 | py | # -*- coding: utf-8 -*-
"""Tests using pytest_resilient_circuits"""
import pytest
from resilient_circuits.util import get_config_data, get_function_definition
from resilient_circuits import SubmitTestFunction, FunctionResult
PACKAGE_NAME = "fn_wiki"
FUNCTION_NAME = "fn_wiki_create_update"
# Read the default configur... | [
"ihor.husar@ibm.com"
] | ihor.husar@ibm.com |
c8a8f30335dc23ab837f1ee123fbde87fd5009b9 | 49900ba50d4f6c979d6d433577828c8007973125 | /data_utils/ner.py | 597d37cdb973d60f1d05f4fd35b70b226eb1faac | [] | no_license | weizhenzhao/cs224d_nlp_problem_set2 | 9661414965a58b97113f828a47932c5b9d8411df | 302f0e53cdd88147a5c1727d06f0be18270d8a2a | refs/heads/master | 2021-10-22T18:22:31.063591 | 2019-03-12T14:03:36 | 2019-03-12T14:03:36 | 104,356,708 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | ##
# Utility functions for NER assignment
# Assigment 2, part 1 for CS224D
##
from data_utils.utils import invert_dict
from numpy import *
def load_wv(vocabfile, wvfile):
wv = loadtxt(wvfile, dtype=float)
with open(vocabfile) as fd:
words = [line.strip() for line in fd]
num_to_word = dict(enumerat... | [
"958904120@qq.com"
] | 958904120@qq.com |
f225babc8403680d28288ebf49150e7c4d9c2893 | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/v1_0/usersactions_v1_0/azext_usersactions_v1_0/vendored_sdks/usersactions/operations/_user_onenote_notebook_section_group_section_page_parent_notebook_operations.py | 9cbe41f6e394adb19707b01f0c335867f7b93f53 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,768 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
8cbeef5ea8b3d7e0aa7655c31e01ef7d0da11446 | 8541f4118c6093c84e78d768285e7007ee5f6a6c | /apps/tax/migrations/0005_auto_20160306_1353.py | 8077c34962cafafda6e7398270db44898639bd2a | [] | no_license | iraycd/awecounting | c81a8ca6b7a4a942e63cf6b7d723f9883e57a107 | 388df4de63146e0a9a211afa522ec50e0f3df443 | refs/heads/master | 2021-01-15T23:30:27.439759 | 2016-03-16T10:34:40 | 2016-03-16T10:34:40 | 57,046,467 | 1 | 0 | null | 2016-04-25T14:03:40 | 2016-04-25T14:03:40 | null | UTF-8 | Python | false | false | 574 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-06 08:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tax', '0004_partytaxpreference'),
]
operations = [
... | [
"roshanshrestha01@gmail.com"
] | roshanshrestha01@gmail.com |
31fafff04d22006623a7bc672c81339d13885407 | 22ccc673a522b52f2678b6ac96e3ff2a104864ff | /jobs/migrations/0005_auto_20150902_0600.py | e6e2f4f6043f8e5e142666aeaf0c677401c0f62a | [] | no_license | ivlevdenis/pythondigest | 07e448da149d92f37b8ce3bd01b645ace1fa0888 | f8ccc44808a26960fb69a4c4c3491df3e6d3d24e | refs/heads/master | 2021-01-18T02:09:42.121559 | 2016-05-15T22:44:34 | 2016-05-15T22:44:34 | 58,350,368 | 0 | 0 | null | 2016-05-09T05:21:39 | 2016-05-09T05:21:39 | null | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_jobfeed_is_activated'),
]
operations = [
migrations.RemoveField(
model_name='jobitem',
... | [
"sapronov.alexander92@gmail.com"
] | sapronov.alexander92@gmail.com |
b923127047254c84445608e989311a4fb0eb0b40 | 4f4776eb69cbea9ee1c87a22732c5d778855c83a | /leetcode/Number_Complement.py | 6f4cc7d18ff977b72e60674c3283b67bee1f0ecb | [] | no_license | k4u5h4L/algorithms | 4a0e694109b8aadd0e3b7a66d4c20692ecdef343 | b66f43354792b1a6facff90990a7685f5ed36a68 | refs/heads/main | 2023-08-19T13:13:14.931456 | 2021-10-05T13:01:58 | 2021-10-05T13:01:58 | 383,174,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | '''
Number Complement
Easy
The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation.
For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2.
Given an integer num, return its complement.
E... | [
"noreply@github.com"
] | k4u5h4L.noreply@github.com |
7bccdd943219008b9ab87f2c0d3a9f60a25927c6 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /03_Linear_Algebra_for_Machine_Learning/04/05_vector_division.py | 7a5cbfcb42a4a5db9dfe2635df84d2ce76f0ddf3 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # vector division
from numpy import array
# define first vector
a = array([1, 2, 3])
print(a)
# define second vector
b = array([1, 2, 3])
print(b)
# divide vectors
c = a / b
print(c)
| [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
47010cc8029ce26f087bc5af210729e2ad8964d0 | 6062dc6c23a4013a879617cd9dd8d60fba582964 | /day23/machine.py | 16384f67fcfce888fea5c9cb2095b5fec6a57bfc | [] | no_license | grey-area/advent-of-code-2017 | 8134a1213e69460e24a821ff96e38cbc7f83b480 | 87c213277e4535fff0a1dcf7ad26e182e20b8165 | refs/heads/master | 2020-04-13T05:38:36.852721 | 2018-12-30T23:31:00 | 2018-12-30T23:31:00 | 162,997,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | from collections import defaultdict
from collections import namedtuple
from collections import deque
import operator
from functools import partial
Instruction = namedtuple('Instruction', ['op', 'args'])
class Machine():
def __init__(self, filename):
self.registers = defaultdict(int)
self.load_prog... | [
"andrew@awebb.info"
] | andrew@awebb.info |
7084db3062d66581c38fbdc43d86b9d20a9172c9 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /1534.py | 13cc2b14de3bdc53a7c3d07c0f26668d8b35111d | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
class Solution:
"""
@param root: root of a tree
@return: head node of a doubly linked list
"""
def treeToDoublyList(self, root):
# Write your code here.
def... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
e07f624ea0d255df65ac483eff918d2f319b22b5 | afea9757be324c8def68955a12be11d71ce6ad35 | /willyanealves/services/migrations/0009_auto_20201209_1404.py | b2e2a364f136f17ebd91a275a705f8061d4ef9ea | [] | no_license | bergpb/willyane-alves | c713cac3ec3a68005f3b8145985693d2477ba706 | 8b2b9922ba35bf2043f2345228f03d80dbd01098 | refs/heads/master | 2023-02-10T19:57:50.893172 | 2021-01-11T16:17:14 | 2021-01-11T16:17:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Generated by Django 3.1.2 on 2020-12-09 17:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('services', '0008_auto_20201209_1400'),
]
operations = [
migrations.AlterField(
model_name='service',
n... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
101feda1a0f140f3e9c0891e6c61e0269a85ac2e | dda862418770f3885256d96e9bdb13d0759c5f43 | /codeforces/div-2/nastya-and-rice.py | a2c25afd65589336a3210b2dd8ff1e66d0aefc44 | [
"MIT"
] | permissive | bellatrixdatacommunity/data-structure-and-algorithms | d56ec485ebe7a5117d4922caeb0cd44c5dddc96f | d24c4001a797c12347973263a0f4f98939e86900 | refs/heads/master | 2022-12-03T00:51:07.944915 | 2020-08-13T20:30:51 | 2020-08-13T20:30:51 | 270,268,375 | 4 | 0 | MIT | 2020-08-13T20:30:53 | 2020-06-07T10:19:36 | Python | UTF-8 | Python | false | false | 3,299 | py | """
[A. Nastya and Rice](https://codeforces.com/contest/1341/problem/A)
time limit per test1 second
memory limit per test256 megabytes
inputstandard input
outputstandard output
Nastya just made a huge mistake and dropped a whole package of rice on the floor. Mom will come soon. If she sees this,
then Nastya will be pu... | [
"adityaraman96@gmail.com"
] | adityaraman96@gmail.com |
edfa698a2b59a1f3f4933f667ae163d842cb428d | f06ddca5258290a1e7448a18e1d24a9d20226fbd | /pytext/common/constants.py | 3b0c31b01f7bc57811441b3f5a267b920e948602 | [
"BSD-3-Clause"
] | permissive | mruberry/pytext | 6d64bc37429e3dd5581e5b3b6bf60bd216b6f445 | 3bba58a048c87d7c93a41830fa7853896c4b3e66 | refs/heads/master | 2022-07-16T07:41:47.781126 | 2020-05-14T04:52:35 | 2020-05-14T04:54:33 | 263,892,770 | 2 | 0 | NOASSERTION | 2020-05-14T11:11:33 | 2020-05-14T11:11:32 | null | UTF-8 | Python | false | false | 2,357 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from enum import Enum
class DatasetFieldName:
DOC_LABEL_FIELD = "doc_label"
WORD_LABEL_FIELD = "word_label"
UTTERANCE_FIELD = "utterance"
TEXT_FIELD = "word_feat"
SEQ_FIELD = "seq_word_feat"
DICT_FIE... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4fcdf50c43cf0c0a802c7899882d88c66afb5521 | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/Best-Time-to-Buy-and-Sell-Stock.py | aa4097ebb2db64fb2c8d11bb08368e8d97f353a7 | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) < 2:
return 0
ans, minNum = 0, prices[0]
for i in range(1, len(prices)):
if prices[i] > minNum:
ans = max(p... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
cdbd67b1a12b3c7320da2aafaa87a06508e9b4de | 5ef19fdf04970ed0481ff29234a11b812b55a257 | /OS/SRT.py | 89a0d94dba43339334289d424480551cfb9d8b02 | [] | no_license | priyamshah112/Study | 636bfadee2384b39399b8b2c03349c9faf8853df | 2ea4341d8497573b014a5275d548289696fe3662 | refs/heads/master | 2021-06-28T15:19:24.002518 | 2020-10-02T07:36:24 | 2020-10-02T07:36:24 | 149,157,682 | 0 | 0 | null | 2020-10-02T07:36:25 | 2018-09-17T16:48:41 | Java | UTF-8 | Python | false | false | 1,762 | py | class Process:
def __init__(self, p_no, at, bt,wt,tat,nt,ct,rt):
self.p_no = p_no
self.at = at
self.bt = bt
self.wt =wt
self.tat =tat
self.nt =nt
self.ct=ct
self.rt=rt
def Shift(alist):
alist.sort(key=lambda x:x.rt)
return alist
def main():
n=i... | [
"priyamshah112@gmail.com"
] | priyamshah112@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.