blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d76d5cccf34b4397840d9054661e6b099cfab82 | 12bfb5bcf0c1fcf4ae0a09b39bb180d6d2f27236 | /manage.py | 11a8c800f2676621c04324f836e1331b9ca4dcc7 | [] | no_license | NonsoEz/Food_Vendor_App | b5e52371069595b129a4be4a065ae0f828225b86 | 550b785fe182a73f9ec85f033f9f1ae0b29f3325 | refs/heads/master | 2022-11-10T03:08:30.906210 | 2020-06-14T11:36:46 | 2020-06-14T11:36:46 | 272,182,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'daisy_delights.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"itsnonso97@yahoo.com"
] | itsnonso97@yahoo.com |
85c2a8dc30a8c4d16a1497f4bad44935f7ca19d2 | 81485dc96f7539730bee976c7e8e3d5929c3df77 | /ProjectEuler145.py | a3fd109802113ff296456c4d9fc9e471357fb859 | [] | no_license | zfhrp6/PE | 6462621f5cb3812c7d8d9f591ad66382490661e2 | 4e64f6549bd50fb4c1ee5f580a76764935e35360 | refs/heads/master | 2020-04-05T13:45:56.936758 | 2015-12-11T08:29:50 | 2015-12-11T08:29:50 | 4,495,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
project euler problem 145
ある正の整数nについて、[n + reverse(n)]が奇数のみで表されるようなnが存在する。
えば、36 + 63 = 99, 409 + 904 = 1313 のように。この性質を持つ数を、reversibleと呼ぶことにする。
つまり、36, 63, 409, 904はrevesibleである。
先頭の0はnでもreverse(n)でも許されない。
1000未満には120個のreversibleな数が存在する。
10億(10^9)未満では、いくつのreversibleな数が... | [
"coricozizi@gmail.com"
] | coricozizi@gmail.com |
76353eeb5636f6bbec22d1117dfa467ba584418d | 4ea26bf3ec34b8dc6e495372e0de143541b09ccb | /inventory/models.py | efce5773ca7427baffe05f36c84ef631164c0372 | [] | no_license | mahesh2019/inventoryms | 232e4bce9c5579c777d5e1cd45e2b775e28b84c0 | 67d104ec6f612a43262bf4e4dd32fce7fb6a36a3 | refs/heads/master | 2020-04-12T09:52:14.263635 | 2018-12-19T09:53:30 | 2018-12-19T09:53:30 | 162,411,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from decimal import Decimal
class Product(models.Model):
name = models.CharField(max_length=200, blank=True, null=True)
cetagory = models.CharField(max_length=200, blank=True, null=True)
supplier = models.CharFie... | [
"mahesh281420@gmail.com"
] | mahesh281420@gmail.com |
4df437bfa66912a489fbf5bbae79735164228493 | e10f72609ffd7c156303640aad26512f91e5b341 | /decode-string.py | fb86f5dd4eb14168aca4a8059adac6ac9b10ea95 | [] | no_license | CSLSDS/leetcode | c26e514b8ee47a59d2e71e9a4f5cda3e66538d41 | 6d00429d989c9ba05e2e4a682b3e2d82a8920aca | refs/heads/master | 2022-12-06T14:51:06.192262 | 2020-08-28T17:50:50 | 2020-08-28T17:50:50 | 291,098,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # https://leetcode.com/problems/decode-string/
from collections import deque
class Solution(object):
def decodeString(self, s):
"""
:type s: str
:rtype: str
"""
stack = deque() # stack for stashing strings and scalars in op order
scalar = 0 # initialize neutr... | [
"lambdadatasciencelearning@gmail.com"
] | lambdadatasciencelearning@gmail.com |
3838634472d2c87a52af758b035cb3239c9a2c41 | 2414312a385f668efddefa8b690f94ddf81f3abd | /SD_DATA/PRISM/PRISM_regrid-0.25_NRT-vars-etopo_US.py | 20e2429d87bd98d0de5249efc19d1e0bc969ce3d | [] | no_license | ziwangdeng/DL_downscaling | ab04453c0ceb8fffee8f133b468ed823040c6626 | 563f3813a5e657d83cf99cd213d96162954fcb37 | refs/heads/master | 2022-07-19T08:08:26.320651 | 2020-05-13T00:39:12 | 2020-05-13T00:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,868 | py |
'''
Downscaling pre-rpocessing
Subsetting and re-griding near real-time PRISM.
TMAX/TMIN/PCT separate hdfs
'''
# general tools
import sys
from glob import glob
# data tools
import h5py
import numpy as np
import netCDF4 as nc
# custom tools
sys.path.insert(0, '/glade/u/home/ksha/WORKSPACE/utils/')
sys.path.insert(0,... | [
"yingkaisha@gmail.com"
] | yingkaisha@gmail.com |
c8ceb205029b263e2dcc73b72e5789d4fb2fb9fc | bc7f4a51dc8e98a6efb390949316c5d6ea9b18a2 | /devel/lib/python2.7/dist-packages/mavros_msgs/msg/_GPSRAW.py | cae8c0300eddf1c7613fa784634add8ab00ec2ff | [] | no_license | JethroPhuah/Catkin_ws | 952c22bbb8c72aecf7cdfe71a89f69b6bb0d7404 | cdbf9f25dc5f2ce83cf1bc32905bbe29c60786cd | refs/heads/master | 2023-06-30T23:28:02.816129 | 2021-08-05T10:25:21 | 2021-08-05T10:25:21 | 388,732,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | /home/jethro/catkin_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_GPSRAW.py | [
"jethrophuah@gmail.com"
] | jethrophuah@gmail.com |
da925a687a4a6763196e300aa014cbd8f853cc0e | 6cb5afbe80fe07f837848f56c1c0cc194534155c | /전기버스2.py | 0a419d679149cd2b9f819aedda22935b4e3d956d | [] | no_license | KoMinjae/codingtest | 9073dbd094e0675c0f3cac35085703d8d1c546f6 | 160dfc5f73cad9d1d00a9a497550ab34cdf31a32 | refs/heads/master | 2022-12-19T14:11:00.972578 | 2020-09-25T03:08:16 | 2020-09-25T03:08:16 | 285,505,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | def solution(N,bp):
answer = list()
battery = bp[0]
stack=list()
stack.append((1,battery,0))
mintemp=999999
while stack:
position, nowbattery, time = stack.pop(0)
#백트래킹 조건
if time <= mintemp:
if position == N:
answer.append(time)
... | [
"alswovv@naver.com"
] | alswovv@naver.com |
f7877e8532fbb6c049c1839b2d061e9e511a9704 | 380b3102e143a11ecd89f5f2eeced8532b8c431e | /Week_02/homework2.py | 9fa4686c8f386443b55201bf48c2599d7541152d | [] | no_license | yoyoshuang/algorithm012 | 9fe1672ac5cb8d4abe515b7e02cf8b436c366b56 | 505caabc895999bb12e9ff7b42013b4af29655e4 | refs/heads/master | 2022-12-14T13:17:51.115992 | 2020-08-30T08:39:31 | 2020-08-30T08:39:31 | 280,764,795 | 0 | 1 | null | 2020-07-19T00:41:25 | 2020-07-19T00:41:24 | null | UTF-8 | Python | false | false | 954 | py | # N叉树的层次遍历
"""
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def levelOrder(self, root: 'Node') -> List[List[int]]:
if root == None:
return []
outs = []
this_leve... | [
"haoshuang@rd.netease.com"
] | haoshuang@rd.netease.com |
73a74888c6116f3919e354c714885223f569f7b4 | 1c6299a4b63264e4722c1230ddc6fbd1e8795040 | /Tareas/Proyecto/Proyecto.py | 5cad493665fece58c650333c82b1d85fef9bfc7b | [] | no_license | RMACR7LP/Programacion1 | a7f930c4c5881af42f3e24c96fb77d38a0b19cee | f207da58657309f1de999e11d8d25f6722f2a667 | refs/heads/master | 2021-01-02T23:01:13.209506 | 2017-11-12T17:56:47 | 2017-11-12T17:56:47 | 99,440,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,914 | py | #-*- coding:utf-8 -*-
from Tkinter import *
import ttk
import datetime
import json
import subprocess
import sys
import os
import socket
import reportlab
from PIL import Image, ImageTk
from reportlab.pdfgen import canvas
from reportlab.lib.colors import PCMYKColor
from reportlab.graphics.shapes import Drawing
from repor... | [
"cristianjalvarez123@gmail.com"
] | cristianjalvarez123@gmail.com |
3a4aadc1e308d89e263727e617f4f157e27c8146 | 0ffe9d5c109d00cd9ca5eb25de3b0c6d963eb8d8 | /venv/bin/easy_install-3.8 | b7e3356679aae19589e816bbbe25416fbeb0e1d9 | [] | no_license | Brunomleguizamon/Flask_ToDoList | 9b6adb7236cce8cdfc00c4f132ddade19ed5f9cc | 4f0dbb5f343adc8559a19058867e1953647f488d | refs/heads/main | 2023-08-25T20:36:48.985344 | 2021-10-20T11:04:27 | 2021-10-20T11:04:27 | 418,869,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | 8 | #!/Users/Bmleguizamon/Desktop/workspace/Flask_Projects/Flask_ToDoList/venv/bin/python3
# -*- 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())
| [
"brunomleguizamon@gmail.com"
] | brunomleguizamon@gmail.com |
e2043a4f3f9bfbda10f9e715da267f997ce686b1 | 84579f545dd8b62e2b3a4be8180078641a3000a7 | /manage.py | e6a3a38ffeeae91d089af92fd263bf91c11406f3 | [] | no_license | Prosper033/happyday | f46ac3a514337c73dbc5d41442ac09bef628025c | 4c0b9c07f141216f7199b2b58483d67b37fbdb18 | refs/heads/main | 2023-08-29T15:09:17.370543 | 2021-09-15T13:15:27 | 2021-09-15T13:15:27 | 406,769,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'happyday.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"idowuoluwaseun033@gmail.com"
] | idowuoluwaseun033@gmail.com |
66f7a5c960b0854fe94b6ba044edbb41cf14e1de | 15a28c177721b62aa9976a2d61496b5ddc9c91a9 | /setup.py | 85cd2f6cd9f31448184929216e764e16a4804ec0 | [
"MIT"
] | permissive | haywse/feems | 404e4cf36da4acee0f425d985070977ac33ffd35 | 4fb3fa84470a2b87021f929ddc36703e7a2e2c4a | refs/heads/main | 2023-04-18T10:01:57.137826 | 2021-04-28T03:12:19 | 2021-04-28T03:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | #!/usr/bin/env python
from setuptools import setup
version = "1.0.0"
required = open("requirements.txt").read().split("\n")
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="feems",
version=version,
description="Fast Estimation of Effective Migration Surfaces (feems)",
... | [
"jhmarcus@uchicago.edu"
] | jhmarcus@uchicago.edu |
9e11e55d93f9595fd71b03c927ce27548ea7f34c | 28afc0b162388258f58382068f4496cb417879aa | /utils/request.py | 85bfe51573a14fe97dc1f3ad842c09cfe01f9d86 | [] | no_license | a1wen/bmtest_sample | 395c94191fd53687df55b70585c5570045da14cb | 9cda82198dbecfb56c401f16b4ed7a08d9a1b83d | refs/heads/master | 2022-12-15T07:19:30.171868 | 2019-07-12T15:43:58 | 2019-07-12T15:43:58 | 196,605,164 | 0 | 0 | null | 2022-12-08T05:52:34 | 2019-07-12T15:42:38 | Python | UTF-8 | Python | false | false | 795 | py | from typing import Optional
from pydantic import BaseModel
class Request(BaseModel):
msg_id: str
first_name: str
surname: str
patronymic: Optional[str]
birth_date: str
class ByMsisdnRequest(Request):
msisdn: str
class ByPassportRequest(Request):
series: Optional[str]
number: str
... | [
"artem.chuprina@inplatlabs.ru"
] | artem.chuprina@inplatlabs.ru |
5b9ed6ed0530e8623a9bbac53c115fadbaf8fb92 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_recesses.py | a34a6d1f64dbe47f008faa9c0c762b260b8b828f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
#calss header
class _RECESSES():
def __init__(self,):
self.name = "RECESSES"
self.definitions = recess
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['recess']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1fc637baacfe15ec87147a5c262442e79ca08358 | 34cf89f633059d0e5f2a444992c23278232aa3e3 | /stix2/test/test_hashes.py | 40ace38fa6c866669dbc64b8f40ba2db61e74ed4 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | oasis-open/cti-python-stix2 | e578fe17e42216bf2635781511be8d0b8612fcc0 | f1c1632f3aa916cfa30b0b3625200f01c12dc5ed | refs/heads/master | 2023-08-08T17:40:47.992285 | 2023-06-06T17:51:34 | 2023-06-06T17:51:34 | 81,590,907 | 336 | 112 | BSD-3-Clause | 2023-08-17T17:41:02 | 2017-02-10T17:50:12 | Python | UTF-8 | Python | false | false | 2,887 | py | import pytest
from stix2.hashes import Hash, check_hash, infer_hash_algorithm
@pytest.mark.parametrize(
"hash_name, expected_alg", [
("md5", Hash.MD5),
("md6", Hash.MD6),
("ripemd160", Hash.RIPEMD160),
("sha1", Hash.SHA1),
("sha224", Hash.SHA224),
("sha256", Hash.S... | [
"chisholm@mitre.org"
] | chisholm@mitre.org |
0f6bff7af88112200164ee73a63e93548e0b7606 | 1094e533594d6fbdf4a0f605b06a1954336b52e8 | /index/views.py | 586009091d84dd75a9a807174d8ade7c1949bc90 | [] | no_license | leezhiyong08/friutday | ac424c31bc2dd54aa61e76f13b8264042b4ba741 | 16f6a25d827f64fe88a526adf3e51de543b1c2de | refs/heads/master | 2020-04-24T01:14:11.321113 | 2019-02-16T13:40:16 | 2019-02-16T13:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,810 | py | import json
from django.core import serializers
from django.http import HttpResponse
from django.shortcuts import render, redirect
from .forms import *
# Create your views here.
def index_views(request):
return render(request,'index.html')
# /login 对应的视图
def login_views(request):
url = '/'
if request.met... | [
"lvze@tedu.cn"
] | lvze@tedu.cn |
07e944922bc77134b25da05b26ed94d7f5a4cc15 | 7fa4d48dfded9bcd5d9c113b38cd28c4b644f2eb | /Project 3: Data Warehouse/etl.py | c00815f8d3eb3da5d42060492bda15c641e225f2 | [] | no_license | MalvikaBodh/Data-Engineering | 8d322e1beba36d1c42aa6da53d67eac4ec093183 | 208de8cf576e8b28be6783270156d6a2a54a2166 | refs/heads/main | 2023-06-21T12:09:05.081108 | 2021-07-25T03:28:14 | 2021-07-25T03:28:14 | 350,126,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import configparser
import psycopg2
from sql_queries import copy_table_queries, insert_table_queries
def load_staging_tables(cur, conn):
"""This function will load our staging tables and we're using copy command to load staging data from s3"""
for query in copy_table_queries:
cur.execute(query)
... | [
"noreply@github.com"
] | MalvikaBodh.noreply@github.com |
e5e539147b37966eaf9509f87efb5d4f05343e42 | 860518269a26868520a441c0f82c6a87a9fa78e9 | /find_and_replace_pattern.py | 872a3e58f8db7461f97f5c545e55b0cedbb21e74 | [] | no_license | aliabbasrizvi/leetcode | 99e41b924a89fe01302e1c3d623927b792005e46 | 4c33a022984bb6e711d0def1bb9c47a5c22b3b29 | refs/heads/master | 2021-06-30T10:01:29.218059 | 2020-12-21T01:06:32 | 2020-12-21T01:06:32 | 49,443,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import collections
class Solution(object):
def build_pattern(self, word_for_pattern):
char_to_position = collections.OrderedDict()
for idx, char in enumerate(list(word_for_pattern)):
if char in char_to_position:
char_to_position[char].append(idx)
else:
char_to_position[char] = [id... | [
"ali@optimizely.com"
] | ali@optimizely.com |
dfda12ed6eaa7357e9e486024948bcda5cbc5a23 | e2a81e1e03a1deeaad9d9032e076a6e8327f65f7 | /JSS-django/api/serializers.py | b91862e583884414f7a0c4643eba36c9d2be3563 | [] | no_license | sirpqp/SubjectService | 529960a6c3172386e3d2d8d1e942dff4affcb72a | a47916a61c9e23dff55617acb878859a07b18210 | refs/heads/main | 2023-07-06T15:35:46.968783 | 2021-08-24T01:24:55 | 2021-08-24T01:24:55 | 396,760,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | from .models import *
from rest_framework import serializers
from robot.models import Dialog
from django.db.models import ObjectDoesNotExist
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = '__all__'
# class RoleSerializer(serializers.ModelSerializer):
# c... | [
"337236126@qq.com"
] | 337236126@qq.com |
bab1e109f5044efb3f4da3a62fb4d9a403a5c094 | dfda488f07064cf4545843aa18da00a2631b2299 | /font-caveat/setup.py | c9c4fd6bedb6f3da39f667d09b381ccda6b3bf4c | [] | no_license | castrofernandez/fonts-python | 38f8301f7ad82f16c07a3e80b97c4e485944b0ae | f8593844538a6239f06f23e304b8af0a532d28bd | refs/heads/master | 2022-11-13T12:47:21.828240 | 2020-07-02T17:42:54 | 2020-07-02T17:42:54 | 274,605,596 | 0 | 0 | null | 2020-06-24T07:36:09 | 2020-06-24T07:36:08 | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/env python
"""
MIT License
Copyright (c) 2020 Juan Castro Fernández
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... | [
"castrofernandez@gmail.com"
] | castrofernandez@gmail.com |
980b466c28c5040171706e805a75717fbb69f66d | ed7342bcfd051d5280c444f5a625fac507ef9b53 | /demo/basics/sum_of_numbers_v2.py | 724f67c49fef9989060ad053d4ae302ff4759cd0 | [] | no_license | srikanthpragada/PYTHON_19_MAR_2021 | 55f86289e7d6be5398c18ad9f52bfd4d81563827 | 20cd95481c1fc4c156d1fed01e29cb3b09b03333 | refs/heads/master | 2023-04-06T02:37:52.657864 | 2021-05-05T03:01:31 | 2021-05-05T03:01:31 | 350,551,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # Take numbers until 0 is given and display sum of numbers
total = 0
while True:
num = int(input("Enter a number [0 to stop] :"))
if num == 0:
break # Terminate loop
total += num
print(f"Total = {total}") | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
e4c5682a8d2d2bdc622eb0592def31a8a389c27f | 7d23cbeaf8fae2dca34180d8fa084b14c28cd1fc | /src/test/common/page.py | 1ea314b59b6f07a21660fd49a4ddbc71dc2a616e | [] | no_license | Cnnnnnnn/test-framework | e29dfb34474f8e8fe52a2007334cc1668d046077 | 73f6e8fb88b8dc38bb53d3a88b7ae2faa9aa3521 | refs/heads/master | 2020-04-03T09:52:25.326538 | 2018-10-30T05:27:40 | 2018-10-30T05:27:40 | 155,178,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import selenium.common.exceptions
from selenium.webdriver.support import expected_conditions
from src.test.common.browser import Browser
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
import time
class Page(Browser):
def __init__(self, pag... | [
"cnn@thinkerx.com"
] | cnn@thinkerx.com |
dd167235a75d178c486cf5e338db8bdff5431bd2 | 12a12cd19b25352b57aa3729189ebfee8574c62a | /testse2e/common.py | 58e6d940a6e0ecef3d93c5966d4c576dc4c09065 | [] | no_license | Patrik-Stas/InstabotPatrik | b40fbff68f149bee7bf76e52fa5b71679b234e7c | 69d015c690186cbd8aec844425741a5b5252c279 | refs/heads/master | 2020-03-17T22:54:08.724835 | 2018-04-11T06:35:13 | 2018-04-11T06:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from testsUnit.context import instabotpatrik
import os
def get_path_to_file_in_directory_of_this_file(file_name):
this_directory_absolute = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
return os.path.join(this_directory_absolute, file_name)
def get_config():
return instabotpatr... | [
"patrik.stas@concur.com"
] | patrik.stas@concur.com |
35f47b09947f8ea4d901c650b0b88fab65047c57 | fb9b0f9c6fb593dfb8e23ee04454f8c0a37cb15d | /other/ppmatrix.py | a84ab5fee6b75a0fd18b3583feba864d84ed27df | [] | no_license | dmishin/dmishin-pyscript | 624f1efda94916780bf25c6bd554c75f43936170 | 494433c26daf826f4b914f81ceaa69dc2f35c350 | refs/heads/master | 2021-01-02T22:52:09.917804 | 2010-08-28T20:11:11 | 2010-08-28T20:11:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,710 | py | from itertools import imap, count
def mul(m1,m2, lazy=False):
if m1.width!=m2.height:
raise ValueError, "Matrix sizes do not match"
k_range = range(m1.width)
def sumat(i,j):
return sum([m1[i,k]*m2[k,j] for k in k_range])
if not lazy:
return mtx(m1.height, m2.width, sumat)
el... | [
"shintyakov@gmail.com"
] | shintyakov@gmail.com |
2115a212a8cb5407557c8168b509d0dfcce1be84 | 4378bc1f97baf39dfc64f6b189f540bcebbf8772 | /generate-test-data.py | 9c36ccb065d57b70a5faf090d29d0187b2b97963 | [] | no_license | liulangmeng/nmf-spark | fbdd04291605860f287e3b96513880c231ef4da6 | a38e49948ed7faf15e8d05c7677677bdb172feb1 | refs/heads/master | 2021-01-13T03:47:38.438368 | 2016-12-23T03:09:41 | 2016-12-23T03:09:41 | 77,192,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from h5py import File
import numpy as np
# about 3 GB
m = int(2e6)
n = 200
k = 100
r = 20
W = np.random.random((m,r))
H = np.zeros((r, n))
H[:, :r] = np.eye(r)
H[:, r:] = np.random.random((r, n-r))
for i in np.arange(2, 20, 1):
temp = H[:, i]
H[:, i] = H[:, 2*i]
H[:, 10*i] = temp
fout = File("testdata.h... | [
"mxyliulangmeng@126.com"
] | mxyliulangmeng@126.com |
d617aaac35275cf070b7f5bd47f28582080b01ae | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /kosmos-2/fairseq/fairseq/models/speech_to_speech/__init__.py | d34883552596496799514422e5a895376d02f735 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 248 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .modules import * # noqa
from .s2s_transformer import * # noqa
| [
"1083127130@qq.com"
] | 1083127130@qq.com |
b01dce14fc9f5589006b2b7d410ad1ef9b9fee58 | 1ffdfe3588d39fd91c8f41a60c475c4e1cbb0126 | /pro07/person/urls.py | 937b70ac8d50da75dd2e2757ef73a9d5c0fee5e6 | [] | no_license | xddongx/study-Django | b52279d5b44e3cde7b1694472ff42f92e9b463c8 | c0ed149fddf9b1c39ab778103456ea2808188dd9 | refs/heads/main | 2023-04-15T03:31:42.657210 | 2021-04-21T08:48:28 | 2021-04-21T08:48:28 | 307,752,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"31644115+xddongx@users.noreply.github.com"
] | 31644115+xddongx@users.noreply.github.com |
4b17e3f76ea3f25cd1e3d6b4d7551e54d5734be4 | 33ee13e169f5405f9f808f7746178dfd56963e42 | /main.py | 058048b27efe66b869b56089c21d76311327ea2b | [] | no_license | 23akei/SabeyaLogger | 472bc8e65269078302b1fc0f04888af4a63db67a | ed48464ed7285e0dac5f61385638df3336a02350 | refs/heads/master | 2023-05-18T01:41:09.838749 | 2021-05-29T13:56:02 | 2021-05-29T13:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | from flask import Flask, render_template, escape, request, send_from_directory, url_for
import sqlite3
app = Flask(__name__)
@app.route("/")
def top():
return render_template("top.html")
@app.route("/hoge", methods = ["POST"])
def record():
id_num = 0
if request.method == None:
return render... | [
"tom0pr01fr.olem.001@gmail.com"
] | tom0pr01fr.olem.001@gmail.com |
404e972b7f3afe1279c55a210a28a4005c5a754c | 797a4bbcee31943d9cad71537da88edebf63c7ad | /main.py | 404163e74fe51ca71fcb9e675b94bd237e49182a | [] | no_license | Fratealin/exchange_rate_retriever | 9bc21e86c4586ac4de6b10903902c17807bb2488 | 37fca8a955a751880d4f8fa9b5aa70752a778ffd | refs/heads/master | 2022-05-29T13:25:12.269692 | 2020-05-02T16:33:12 | 2020-05-02T16:33:12 | 260,727,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | import get_exchange_rate_data
import datetime
import file_writer
import email_manager
import get_trip_destination
import time
# get email update every 24 hrs
def get_daily_exchange_rate():
currencies = get_exchange_rate_data.get_currencies_list()
destination_currency = get_trip_destination.get_trip_destinatio... | [
"ali_sensei2013@gmail.com"
] | ali_sensei2013@gmail.com |
7d83082d756b0f82bbbe4ad530fa037045e22460 | cd88c0c19c1be2b1cc6b9331c97f4ee67b5d0640 | /event/migrations/0004_auto_20160919_1107.py | a2a359d83af59dbe7065f67a1e1845e616605a63 | [] | no_license | al-alamin/msnb | eed3cb2e7252ad87c7866072b8c1c73ad626bdf3 | 451b8dfc3729424bb1d9ee2b1b592d671537171c | refs/heads/master | 2022-05-10T05:54:46.149661 | 2022-05-03T20:54:18 | 2022-05-03T20:54:18 | 68,234,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('event', '0003_auto_20160820_1347'),
]
operations = [
migrations.AlterField(
mod... | [
"tareqbuet@gmail.com"
] | tareqbuet@gmail.com |
318e6a0c5427da811a19e24e577d6e94e37eee94 | 574189454870b5469804aab2866ffbffc3669785 | /erikagnvall-python3/day05.py | f5ea40791948d4fd63a08643ec63e226b014e7b8 | [
"Apache-2.0"
] | permissive | jakeru/advent_of_code_2019 | 63fe51301af2c21e2a0a8bc5c3abcb59b0756d5e | d906d55095707942a051788b1d41ba12e1af66cd | refs/heads/master | 2020-09-24T08:27:55.138122 | 2019-12-11T21:35:03 | 2019-12-11T21:36:20 | 225,713,610 | 0 | 0 | Apache-2.0 | 2019-12-03T20:53:32 | 2019-12-03T20:53:31 | null | UTF-8 | Python | false | false | 2,627 | py | import os.path
from intcode import run
def _read_input():
with open(os.path.basename(__file__).replace('.py', '.txt')) as f:
program = tuple(int(i) for i in f.readline().split(','))
return program
def part1(memory):
_, _, _, outputs = run(memory, inputs=[1])
return outputs[-1]
def part2(m... | [
"erik.jansson@cognibotics.com"
] | erik.jansson@cognibotics.com |
ef835c8ab8f9b1d665e298b1da78b17ab7380731 | 135d2c02b3ad706573bdfafa75ebc14bd170ef97 | /firedex-static/sdn-controller/sdn_controller.py | d19c338814f705b0ff1ecde6b5649d74806fa4f2 | [] | no_license | boulouk/firedex | 4afc6467bd83e096051d941699e59f1be806a46c | 187012986f4adf85d017e84a64db7c9bb1f447b0 | refs/heads/master | 2022-06-06T01:56:38.464322 | 2019-11-24T09:44:03 | 2019-11-24T09:44:03 | 138,659,150 | 2 | 1 | null | 2022-05-20T20:55:18 | 2018-06-25T23:09:54 | Python | UTF-8 | Python | false | false | 376 | py |
from ryu.cmd import manager
applications = ["topology_application", "flow_application"]
def run_controller(applications):
arguments = []
arguments.extend(applications)
arguments.append("--observe-links")
arguments.append("--enable-debugger")
manager.main( args = arguments )
if __name__ == '__m... | [
"lucascalz8@gmail.com"
] | lucascalz8@gmail.com |
5b4139f4d254caa962680dbd2803d3a308ba364b | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /virtualticketpermissionsplugin/trunk/virtualticketpermissions/policy.py | a5555ce1fb694ee48ff392de846dd5835f425203 | [
"BSD-3-Clause"
] | permissive | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Noah Kantrowitz
# Copyright (C) 2008 Norman Rasmussen
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from trac.core import *
from trac.perm import IPermissionRequestor, ... | [
"rjollos@7322e99d-02ea-0310-aa39-e9a107903beb"
] | rjollos@7322e99d-02ea-0310-aa39-e9a107903beb |
23766bceb270d73585937f8eb705efca167b4426 | c3b739b07214507bf1023b926c19d30784623e98 | /segme/model/cascade_psp/refine.py | b8419f1aa09101135ce9339c1be00c9ec1fa696d | [
"MIT"
] | permissive | templeblock/segme | 20a96787500c46483cb7af0db917207fcedafb0b | 8192ed066558c1ea1e7283805b40da4baa5b3827 | refs/heads/master | 2023-08-30T12:31:39.327283 | 2021-11-11T17:08:40 | 2021-11-11T17:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | import cv2
import numpy as np
import tensorflow as tf
from keras import backend
from tensorflow_hub import KerasLayer
class Refiner:
def __init__(self, hub_uri, max_size=900):
self.model = KerasLayer(hub_uri)
self.max_size = max_size
self.image = tf.Variable(
shape=(1, None, N... | [
"shkarupa.alex@gmail.com"
] | shkarupa.alex@gmail.com |
c2155b38173125504ea953047536dfada8b480da | e6fad75ea5843b25fef33c9eb1048a12a52c030b | /first.py | 8563bf17b9ef8524107ac05b0f5ff9f604b80edc | [] | no_license | shirsenh/Playing-With-Matplotlib | 40d1a66097a4fde8d38b2cfc8a2dd80c093c092c | 340cfab4f4848cd7150e44e6d5e0275e2fca243d | refs/heads/master | 2021-06-25T20:53:16.843597 | 2017-08-24T01:34:38 | 2017-08-24T01:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
X, Y, Z = [1,2,3,4,5,6,7,8,9,10],[5,6,2,3,13,4,1,2,4,8],[2,3,3,3,5,7,9,11,9,10]
ax.plot_wireframe(X, Y, Z)
plt.show() | [
"haldershirsendu1@gmail.com"
] | haldershirsendu1@gmail.com |
21cb53ad9c60466e29851ca17b85630b65cdb096 | 0e70494cd1fb0958bcbf3c1dfafb008398defbb0 | /ros2doctor/ros2doctor/verb/hello.py | e023960d9228e7ddad02e4485cfc4c5c1fd9a088 | [
"Apache-2.0"
] | permissive | wayneparrott/ros2cli | 2bdbd62dc2c0b7468915dc12a8447aea77ed4524 | e9e89e037be79fd06a34399db18ef7ed79d23ffa | refs/heads/master | 2020-12-22T21:01:53.837774 | 2020-04-28T09:00:26 | 2020-04-28T09:08:31 | 236,930,967 | 1 | 0 | Apache-2.0 | 2020-01-29T07:57:06 | 2020-01-29T07:57:05 | null | UTF-8 | Python | false | false | 8,786 | py | # Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | wayneparrott.noreply@github.com |
03ece2f4bb8c3b14f00121fd73d1286b8e0e795d | be3f53f6d61dd21b79a3ac1e079aa0149069a912 | /lambdas_and_built_in_functions/filter.py | 07329a3270c835004e5bf2ccc31414f43a6c4716 | [] | no_license | ksompura/python_training | 769e76fc73b2d40106bd4db2f52d1257ef1f01c3 | 8675bb5e415ba56eda85c1efeef969c8bd74f848 | refs/heads/main | 2023-03-29T14:52:50.801711 | 2021-03-30T05:00:17 | 2021-03-30T05:00:17 | 345,509,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # filter is like map, but it is used to filter out a thing based on some conditions
# filter uses True and False to determine what is filtered out
users = [
{"username":"sam","tweets":["Pizza is good","Yummmmm"]},
{"username":"kale","tweets":["Kale chips, yeaaaa"]},
{"username":"jeff","tweets":[]},
{"username":"nico","... | [
"keshavsomp@gmail.com"
] | keshavsomp@gmail.com |
771a2bf6caaa7ad3e08d7d92a9dd0f6c8d49b9a8 | f74119a55ff5d4e89f5b7fb7da24a23828e1c203 | /test_labeler.py | 0ee0907d1d02f413876674b0d058a669f89f461d | [
"MIT"
] | permissive | mdlaskey/yolo_labeler | 3f15dd229f6a5e01e508c5141345ff9363717b94 | 93463ee54ee8773e7c2ce2368a95c4c1102e712c | refs/heads/master | 2021-08-16T00:50:10.238386 | 2017-09-20T22:49:40 | 2017-09-20T22:49:40 | 96,812,011 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,526 | py | import os,sys
import xml.etree.ElementTree as ET
import numpy as np
import cv2
import cPickle
import copy
import glob
import yolo.config as cfg
import cPickle as pickle
import IPython
class TestLabeler(object):
def __init__(self):
self.cache_path = cfg.CACHE_PATH
self.image_path = cfg.IMAGE_PATH
... | [
"mdlaskey@umich.edu"
] | mdlaskey@umich.edu |
1b5dde44a062a74cb90f2e60d15903012ccb7620 | eff2fc11905f6118dcd70050392f168cd7aea086 | /leetcode/5_longest_palindromic_substring/solution2.py | dc6f8c44f995cff0b89286e6dbc72af866bea932 | [] | no_license | algobot76/leetcode-python | 28f1e1107fa941a3b40006f074eec6231e674ac1 | ec8bff8978d6915bfdf187c760b97ee70f7515af | refs/heads/master | 2021-07-05T17:06:40.581977 | 2020-09-19T22:02:38 | 2020-09-19T22:02:38 | 199,255,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | class Solution:
def longestPalindrome(self, s):
n = len(s)
if n < 2:
return s
f = [[False] * n for _ in range(n)]
ans = ""
for i in range(n - 1, -1, -1):
for j in range(i, n):
if s[i] == s[j]:
if self._get_len(i, j)... | [
"xkaitian@gmail.com"
] | xkaitian@gmail.com |
e5389b6f96d7b53ab8a61f670edde6d6581d4925 | 1334014eaeffdde4886da49ce5f387c46a5cc23a | /2020-2/kakao/2020/Senario2.py | 82fc1c3d2689193e3ffe636a1ac40926025d5ebe | [] | no_license | gusah009/Algorithm | a85b1a4526a885b1f809c23c55565f453a5294c4 | 5da952e16a6f90f663706675812f042707aa7280 | refs/heads/main | 2023-07-31T17:28:20.404630 | 2021-09-05T06:14:00 | 2021-09-05T06:14:00 | 357,753,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,900 | py | import requests
import pprint
import json
url = 'https://pegkq2svv6.execute-api.ap-northeast-2.amazonaws.com/prod/users'
global LEN
LEN = 60
global BOARD_SIZE
BOARD_SIZE = LEN * LEN
global moving
moving = [1,5,-1,-5]
global move
move = [True for i in range(10)]
global pp
pp = pprint.PrettyPrinter(indent=2)
def start... | [
"minion@bmeks.co.kr"
] | minion@bmeks.co.kr |
24e12b193bbe94063956d9ed76968f0ee0da71b5 | e22b6598a03eb5f4c875ecdffee02a3e5b4ad717 | /search.py | 4617d453572a8b0ba24ac58771fcdd418d43a8e3 | [] | no_license | JustinRohweller/AIPROJ1 | 62fac6121aff65fb72c27d3d0caa4c256a8bbac5 | f67c1b86bdd98df49a9811392668dc9322c6c72c | refs/heads/master | 2021-03-19T12:28:14.987717 | 2017-10-04T19:38:04 | 2017-10-04T19:38:04 | 105,118,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,383 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"jrohweller13@apu.edu"
] | jrohweller13@apu.edu |
1842c2f22f63707d7611f23c86f8e2e01d22d89d | 3ce2e64a18e0d8769429a849ed61b13d6b2c0c5b | /scheduler.py | 467b7a5a5827421c072a10db8e95b39d57b2f832 | [] | no_license | xiufengliu/DLS | fa74f6fdcafba0222e0edc372cbde52334faab12 | df4d9b671c71853544130b0e7cc37a0808f6de72 | refs/heads/master | 2020-03-25T05:19:51.588425 | 2018-08-03T15:05:45 | 2018-08-03T15:05:45 | 143,441,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | import schedule
import time
from app import db
def batchJob1Min():
try:
result = db.session.execute("select script from essex_job_que where seg_type=1 and next_execute_time<=now()")
scripts = result.fetchall()
if scripts:
for row in scripts:
sqlStatements = row[... | [
"groupme@gmail.com"
] | groupme@gmail.com |
4b7d04c5de2f897b35e6ea61fc5a14077a9d6ef7 | 9f91ce42e1982ded6f77e184a0c6e35331b9ad23 | /greedy_color/main.py | 9308c47eb7dcc321bf983e03e6c97dfc36b2951d | [
"MIT"
] | permissive | dixler/graph-coloring | b5b1b5aeb91d24ba4f94fc1b837225019327c885 | 6a5e853b9a88bdddfd8a02c75dfe588f26eddaba | refs/heads/master | 2020-04-10T14:17:53.701941 | 2018-12-15T09:44:36 | 2018-12-15T09:44:36 | 161,073,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #!/usr/bin/env python3
# gonna make a stupid algorithm
import json
import sys
num_colors = 0
graph = json.loads(input())
num_nodes = len(graph)
class Node():
def __init__(self):
self.color = None
self.neighbors = set()
nodes = {int(i): Node() for i, val in graph.items()}
# add edges to graph
for... | [
"you@example.com"
] | you@example.com |
55452e8eaf3c675ee734d7d08b29328ed897b400 | 344b654cbb8b13d683bcd2cacf522c983287a5fe | /Exercises/fileExtension.py | 295ca1b77df26281183deef41448b83bb4510202 | [] | no_license | tchaitanya2288/pyproject01 | d869522584ab498008e67e81c209472ab20685c2 | 565660b73039db6f0e9ed986504c2f96ba674f9c | refs/heads/master | 2020-03-15T13:18:21.480443 | 2018-06-19T18:44:47 | 2018-06-19T18:44:47 | 132,163,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | Filename = input('Enter your required filename:')
Extension = Filename.split('.')
print("The Extension of file is:" +repr(Extension[-1])) | [
"tchaitanya.2288@gmail.com"
] | tchaitanya.2288@gmail.com |
34ad15bcc03e457d2b3ad2ccd42aae05b50b0160 | 7d310e0ab34c9d33b11202f60188202330fcacf8 | /Basic_grammer/for/for_star_tree.py | 15da12c0a32c0c40e2a4312f3896a6e5eb831b31 | [] | no_license | minseung73/kms | 5010f580acaa38fade4b262564a22cd68ced9a71 | 946b7d09ebeb6b4555535c169ce1469144e0eb7a | refs/heads/master | 2020-08-29T12:23:09.628838 | 2019-11-25T12:35:58 | 2019-11-25T12:35:58 | 218,029,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | for i in range(6):
print("*"*i)
for i in range(6):
print("*"*(6-i)) | [
"bria051@naver.com"
] | bria051@naver.com |
f39ba693f9984287400dc51c6fd3384c2c8d4aad | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/92/usersdata/216/46367/submittedfiles/atividade.py | 6f93a371a202140a4fcb7fb058a09a066cd9d666 | [] | 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 | 348 | py | # -*- coding: utf-8 -*-
import math
n=int(input('Digite um número:'))
soma=0
if n>0:
for i in range(0,n,1):
if n>=0:
i=i+1
soma=soma+((i)/(n))
n=n-1
else:
n=n*(-1)
i=i+1
soma=soma+((i)/(n))
n=n-1
else:
n=n*(-1)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bbed6ffc0de45ccedf5d739d5a96324c1eab399c | f67c3312d92a87c8f5858fac5e82970a012bfcbe | /squares/controllers/table.py | 744ab3709d774875397d838b265094057ff5eb83 | [
"MIT"
] | permissive | DestroyingWind/Squares | ae3268e11e4cb2291e2c2e7a2806ea38f55c14c4 | 3b331c38b577e67e5c08ab24f2900ed73d88c467 | refs/heads/master | 2021-01-21T16:35:41.500027 | 2017-06-01T09:46:48 | 2017-06-01T09:46:48 | 91,899,568 | 0 | 0 | null | 2017-05-20T15:51:16 | 2017-05-20T15:51:16 | null | UTF-8 | Python | false | false | 3,060 | py | from squares.models.play.table import Table
from squares.models.schema import get_axis_by_schema_id
from squares.errors.table import OutRangeError, TakeError
class TableController:
TABLE_MAX = 1024
TABLE_ID = 'table_id_{}'
def __init__(self, table_id, player_id=0):
self.table_id = table_id
... | [
"wangtao101rs@163.com"
] | wangtao101rs@163.com |
c7db867a68cfc633338475e43990083bb406cd98 | 1564d12d61f669ce9f772f3ef7563167f7fe13bf | /codeforces/educationalRound73/A-books.py | 77e50053332612a3e54fa06049612ac125655ecd | [] | no_license | sakshamk6999/codingPractice | 73ec4873defb0f0d2e47173150a589ee12e5e0a1 | f727aac6d87448b19fc9d48660dc6978fe5edc14 | refs/heads/master | 2020-12-01T20:22:36.299535 | 2020-02-04T05:55:53 | 2020-02-04T05:55:53 | 230,757,937 | 0 | 0 | null | 2020-02-12T20:38:12 | 2019-12-29T14:00:22 | Python | UTF-8 | Python | false | false | 316 | py | for _ in range(int(input())):
n = int(input())
a = list(map(int, input().split()))
dp = [0 for i in range(n)]
for i in range(n - 2, -1, -1):
if a[i] == a[i + 1]:
dp[i] = dp[i + 1]
else:
dp[i] = n - 1 - i
for i in dp:
print(i, end=" ")
print('') | [
"sakshamkhatwani@gmail.com"
] | sakshamkhatwani@gmail.com |
2eedf0e0dbb2f5a75909791d40dfecad3658332e | d12847b0deaaaf640bf192f1e06e53dd281f98e7 | /analysis/fitting.py | f24c854b205e9977d5317a0ba98420579e0724b6 | [] | no_license | HelmutFedder/pi3diamond | 3fe9e727db68c3339610d58121e8bb6463e47cbe | 2d5c1292039b0717a1328d5e2b60ce433e8f3a82 | refs/heads/master | 2021-01-11T03:22:55.570737 | 2016-10-15T21:54:55 | 2016-10-15T21:54:55 | 71,015,077 | 10 | 11 | null | null | null | null | UTF-8 | Python | false | false | 20,417 | py | """
This file is part of pi3diamond, a toolkit for
confocal scanning, anti-bunching, FLIM, pulsed ODMR / NMR,
and more sophisticated quantum physics experiments,
typically performed with NV centers in diamond,
written in python using the enthought traits packages.
pi3diamond is free software: y... | [
"helmut@fedder.net"
] | helmut@fedder.net |
3f4d8e5bb5ac53e3e70d2d2c21110925d8afa471 | 3a2d89bc4d8d5385f835a64ef6694604b4aa063c | /rockpaperscissors.py | d7194b8c8ce81a0ddc7c64ccf771c97cc64d2709 | [] | no_license | dancingdogs/myprojects1 | c4045c3e4132552adea2e4031c4a83844d3f73ac | f04edcc3643bbf3c751865e9ef07f7c222b09e16 | refs/heads/master | 2022-12-13T05:48:45.496393 | 2020-09-07T12:14:50 | 2020-09-07T12:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from random import randint
#create list of play options
t = ["Rock","Paper","Scissors"]
#assign a random play to the computer
computer = t[randint(0,2)]
#set player to False
player=False
while player==False:
#set player to True
player=input("Rock, Paper, Scissors?")
if player == computer:
... | [
"noreply@github.com"
] | dancingdogs.noreply@github.com |
1bfc305c082437bc2aadcf82bad18fc7287eca39 | 86afc6b35e262e60e7758f05884558389bfd388e | /day_15.py | 974eaf8959682a22266011f9a49a911c13c65c88 | [] | no_license | flbdx/AoC_2019 | c7c633fe615716a3ef2b20db0fabfa26b852cee1 | 5bb06e8b6a57cf8dc9a3a2d0f132af301a335abf | refs/heads/master | 2022-12-26T11:46:42.129493 | 2022-12-09T22:29:08 | 2022-12-09T22:29:08 | 226,040,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,666 | py | #!/usr/bin/python3
#encoding: UTF-8
import fileinput
import sys
from intcodecomp import IntComputer
import enum
if len(sys.argv) == 1:
sys.argv += ["input_15"]
class LabBot(object):
class Direction(enum.Enum):
NORTH = 1
SOUTH = 2
WEST = 3
EAST = 4
def turn... | [
"46577074+flbdx@users.noreply.github.com"
] | 46577074+flbdx@users.noreply.github.com |
d04bb4d89096e1542544dacd46c832a9276e2f3e | 256767f888195384e8a91bff0864d0afc3f7e4e9 | /python_scripts/runDifferentNATAndST.py | 86d11040c552b5a41ca89a2d36f0cb531f48d98c | [] | no_license | HelenHarman/AIS_Object_Tracking | a71b9c2df78c02180b7bb1ac2561a03a570ef935 | 3ec7128a739387299ac3e4a648e8c8f30274af97 | refs/heads/master | 2021-01-15T08:28:06.415775 | 2016-01-23T13:01:20 | 2016-01-23T13:01:20 | 43,375,968 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,051 | py | """
Runs the AIS tracking using different Network Affiliation Thresholds (NATs) and Stimulation Thresholds (STs).
Compares the results to the locations given in the Ground Truth (GT) file
"""
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import ... | [
"heh14@aber.ac.uk"
] | heh14@aber.ac.uk |
9a378ac66d24667514820bb7ae2934ca7d3f4f35 | e2242f78a129f2b87252a0bf1621e8190fd07442 | /src/compas_vol/microstructures/tpms.py | 6264e6a6389be9c6043785e4474fb65d97fa8cda | [
"MIT"
] | permissive | ilmihur/compas_vol | 751237e00f841f25546accf1bf1db782aa9a4559 | 8aedc611bd96acd95d26b9f34c805a8ff05020bf | refs/heads/master | 2022-11-19T12:21:03.829785 | 2020-07-16T11:22:52 | 2020-07-16T11:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | py | from math import pi, sin, cos
from compas import PRECISION
class TPMS(object):
"""A triply periodic minimal surface (TPMS) is defined by a type and a wavelength.
Parameters
----------
tpmstype: String
Type of TPMS. Currently avaliable are Gyroid, SchwartzP, Diamond, Neovius, Lidinoid and Fisc... | [
"bernhard@arch.ethz.ch"
] | bernhard@arch.ethz.ch |
e088b87c645c90af9868abefc5d1e8640ba3ecb5 | be68da7fcdf533e58970897f91a78f12a44b720c | /FSMonitor.py | 5ad6d4edf4cfc3d2c2e8bf200efea37f67e79315 | [] | no_license | lishuaijie0816/FSMonitor | 809e811b9a5fe2f38eead04183f5cd594fad1934 | dcf374db62ed9487103468af61088a77260bdc1c | refs/heads/master | 2020-06-21T03:39:05.313957 | 2019-07-17T08:03:29 | 2019-07-17T08:03:29 | 197,334,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# Event Name Is an Event Description
# IN_ACCESS Yes file was accessed.
# IN_ATTRIB Yes metadata changed.
# IN_CLOSE_NOWRITE Yes unwrittable file was closed.
# IN_CLOSE_WRITE Yes writtable file was closed.
# IN_CREATE Yes file/dir was created in watched directory.
# I... | [
"noreply@github.com"
] | lishuaijie0816.noreply@github.com |
440c195bd9d66a70de8b1abe612b540ee18ab1dc | 4e7784abf3b2cddd98c1c1f092f576dcab04f74c | /scripts/fbx_importer/fbx_helper.py | 39ad90663cac888e7ef286d5a052d4d945b5475e | [
"MIT"
] | permissive | tm8r/MayaFBXImporter | ad6f478dd1e0697699df7a7b0a83b0b9b78c4819 | f349564d2ec0c09c17253a6a9fd4958977e7b999 | refs/heads/master | 2022-05-18T01:24:19.502698 | 2022-05-02T12:07:27 | 2022-05-02T12:07:27 | 209,183,153 | 4 | 2 | MIT | 2022-05-02T12:07:28 | 2019-09-18T00:39:51 | Python | UTF-8 | Python | false | false | 1,152 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from .vendor.Qt import QtWidgets
from .libs.maya import fbx
from .libs.maya import namespace
from . import history_helper
def import_fbx(path, import_mode, parent):
"""import fbx
Args:
path (unicode): path
... | [
"tm8r.nrm@gmail.com"
] | tm8r.nrm@gmail.com |
20bf8ced91a04164ec1fb736de04da27ad9c1360 | 5c79ed194ae04f2b3154c3daba77197b57e900e9 | /password_generator.py | 3cf50310740a86a5ac1e2a21a0532f94f10a4d4d | [
"Apache-2.0"
] | permissive | abrahamanderson19972020/Password-GUI-Manager | 14b6579e8b9742bac9d04990805162300649480e | bf6516065af9918d7a2fd08128222d30f2a2d436 | refs/heads/main | 2023-07-20T05:33:33.064181 | 2021-08-15T18:16:57 | 2021-08-15T18:16:57 | 396,293,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | #Password Generator Project
import random
def password_maker():
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', ... | [
"abraham.anderson83@gmail.com"
] | abraham.anderson83@gmail.com |
e1deda18e1b2b41d478d2dce08424bda03ba7c3b | 9836a073c4f9c4f371fdfe971045835a0736c73c | /Genetic_Algorithm/venv/bin/easy_install | 699a4908203cf7b83e063ac1763559119bd94de6 | [] | no_license | Volodimirich/LargeSystems | 962efce5be55d077f32b9d4b959d0cdba305f693 | dfaa70312cd48cfcb6c37cb9f777b29d381f85e8 | refs/heads/master | 2023-02-05T04:42:32.461806 | 2020-12-17T23:11:39 | 2020-12-17T23:11:39 | 295,217,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | #!/home/voland/Workspace/LargeSystems/Genetic_Algorithm/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())
| [
"volodimirich@arccn.ru"
] | volodimirich@arccn.ru | |
73acba9528101c1bfa9187c8776c8d7234afbc3f | c6fca34b2c9cb973d9d65d23e58e40d4513e173a | /aoc2015/day18.py | 65008c1bad113a40d1876343cbf348d6f612d6a1 | [] | no_license | tomkooij/AdventOfCode | 8ff47c027c887194b0d441f61a8db172c4e260ea | 7890d45a01498dcb48972a7e311888ce6f003bd2 | refs/heads/master | 2021-08-15T19:46:21.869137 | 2021-01-18T06:37:50 | 2021-01-18T06:37:50 | 48,421,868 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | # adventofcode.com
# day18
from copy import deepcopy
INPUT = ('input/input18', 100)
TESTCASE = ('input/test18', 4)
ON = '#'
OFF = '.'
def pretty_print(lights):
for l in lights:
print ''.join(l).rstrip('\n')
def count(lights):
return sum([l.count('#') for l in lights])
def get_neighbours(lights, ... | [
"tomkooij@tomkooij.nl"
] | tomkooij@tomkooij.nl |
0099ea1a24cd0a7e27e7caa9bcd30ad25bb5fc29 | d4b91d9ebb7c850f07b06e5c15794b2885f2e767 | /6/Tema3(Циклы)/6.c_6.py | 3d423e792c84c79c5c729e0ca3d5be2f25693867 | [] | no_license | Timur597/First6team | 13b6dbb2d2e68d5df5c76c5bbba587d563a95957 | 4df85a6f20bad626ad76196cd5bc867ce27d0aac | refs/heads/master | 2023-03-05T15:39:24.311784 | 2021-02-20T07:17:36 | 2021-02-20T07:17:36 | 340,588,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | 6 Задание
names = ('Максат','Лязат','Данияр','Айбек','Атай','Салават','Адинай','Жоомарт','Алымбек','Эрмек','Дастан','Бекмамат','Аслан')
i = 0
while i < 12:
print (names [i])
i = i + 2
| [
"khalilov.timur97@mail.ru"
] | khalilov.timur97@mail.ru |
29c051ba4037637ba19565b0c61472f380db748c | c03869d82865e0d10c9f34d53563a3b0a49b5b0a | /env_file.py | f117aef8cf91c098d397640bbd126d81d689522b | [] | no_license | Azimkhan/env_file | 9385b8724e346ed0697e387eedb504cc27f921c5 | e865ba630ad6f745518dd65877f28b0ceb2d3e9d | refs/heads/master | 2016-09-01T08:32:32.025926 | 2016-03-17T17:03:13 | 2016-03-17T17:03:13 | 54,100,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import os
def setup_env_from_file(file_name='.env', file_dir=None):
if file_dir is None:
file_dir = os.getcwd()
file_path = os.path.join(file_dir, file_name)
if not os.path.exists(file_path):
return
with open(file_path, 'r') as f:
for line in f.readlines():
x = li... | [
"me@azimkhan.net"
] | me@azimkhan.net |
8368d9e18fd02f573ea870d4d0cdbff40237d735 | c23c092689ba634bb1037aaa0e058c8edec3407a | /Introduction to Machine Learning/Code Camp/Exercise2/LogisticR.py | e250a4d7b7813ac677020e5dc4a19caa81c3b202 | [] | no_license | PemYanZen/DataScience_2019501129 | 3911d2204159eeaa84350764f183c550ae4c938d | f42cdacb6e2e8942df79b658594b64c275fabe11 | refs/heads/master | 2023-06-01T09:26:54.155414 | 2021-06-22T03:11:26 | 2021-06-22T03:11:26 | 295,600,844 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,244 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 29 11:59:12 2020
@author: pemayangdon
"""
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from sklearn.preprocessing import OneHotEncoder
from sklearn.model_selection import train_test_split
from sklearn import preproce... | [
"pemayangdon@pemyanzen.local"
] | pemayangdon@pemyanzen.local |
ff5236cfbc685f7702d63948ddb042f1e8ba1d78 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-multimediaai/aliyunsdkmultimediaai/request/v20190810/RegisterFaceImageRequest.py | fcfb213b95d912b2eaf0be5026e27f0f3fad4814 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 1,779 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
a4219b235f2b02423f9e0f1c6bb9b429308d9880 | 8c2d92c3be91dfe97dcae8a09c2a95de8f58cd41 | /mm131zidong.py | f594d0f3bdf70d106cdba8331a2578c89a8d1386 | [] | no_license | SeemNobody/mm131-linux | 8ff442f1f73dd470fcd7065252a7e78a3a591d16 | fb61e9cba7f92a32feff3a43f9f18b0db4ba394e | refs/heads/master | 2022-09-21T07:15:00.134804 | 2018-01-04T10:02:00 | 2018-01-04T10:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,889 | py | #!/usr/bin/env python
# coding=utf-8
import urllib.request
from bs4 import BeautifulSoup
import os
import shutil
import urllib.error
import pymysql
import re
def xiazai_mm131(url):
html = urllib.request.urlopen(url).read()
title = BeautifulSoup(html,'lxml').find("title").get_text()
title = title[:-19]
t... | [
"834775954@qq.com"
] | 834775954@qq.com |
797d913b8e8db2d41ae09acf03025094110e6036 | b56751f13eda1438fed17de5f8fae02513daa318 | /assignment3/GANS.py | f80364e92d431368b6a5344633a6d20a80d9fdb2 | [] | no_license | WinterPan2017/cs231n | e48ca0ea3e3c069992462a492bdf6257da04f7ed | bd366b6e06bd9eca10aa09a32b00c41eece5e67b | refs/heads/main | 2023-02-03T10:02:18.662532 | 2020-12-23T11:18:07 | 2020-12-23T11:18:07 | 322,791,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,119 | py | '''
Description: Copyright © 1999 - 2020 Winter. All Rights Reserved.
Finished Generative_Adversarial_Networks_PyTorch.ipynb here.
Author: Winter
Email: 837950571@qq.com
Date: 2020-12-18 14:02:09
LastEditTime: 2020-12-20 16:46:55
'''
import torch
import torch.nn as nn
from torch.nn import i... | [
"837950571@qq.com"
] | 837950571@qq.com |
1656940dd6607f773281e142235fe11ba06d5b00 | 14b190bf799bbbacda22cea27cb4689be46b46de | /jobs/migrations/0001_initial.py | 5e903d40218b262e84948630dfe1ea2a7e7da231 | [] | no_license | WaliEEE/portfolio-waleee | e3516e1f369905dd44787cae5bcbae6547a581b6 | 314ba08c4fa6a8136bbe5490617cda2058bf221d | refs/heads/master | 2022-12-05T01:14:43.648681 | 2020-09-02T17:05:04 | 2020-09-02T17:05:04 | 292,340,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 3.1 on 2020-08-27 15:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Job',
fields=[
('id', models.AutoField(auto_c... | [
"jocularriad2@gmail.com"
] | jocularriad2@gmail.com |
1d87192e81d61530ae36b21063abb510bd089aee | fbaf44a5f4effe2838a03165f237a7a282284f64 | /Practice/PIle_length-width_soilE/1.1 readODB.py | 3f59145257606d79712227f140d6214a9b44a5d9 | [] | no_license | WangDooo/Python-in-Abaqus | b568f5499bbfd8bc4893f4510a233b9c0be30cf8 | c7bcbd1adc3bcff9661e13c8ce883cb59269ceb8 | refs/heads/master | 2021-06-13T14:05:25.639543 | 2021-03-24T03:32:44 | 2021-03-24T03:32:44 | 173,902,521 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # coding:utf8
from odbAccess import *
odb = openOdb(path='Job-1.odb')
step = odb.steps['Step-1']
point = odb.rootAssembly.nodeSets['SET-PILETOPPOINT']
lastFrame = step.frames[-1]
u = lastFrame.fieldOutputs['U']
u_point = u.getSubset(region=point)
uFile = open('U2.csv','w')
uFile.write('nodeLabel,U2 \n')
for u... | [
"wangbc1993@163.com"
] | wangbc1993@163.com |
2219b78d7cfa9f5dd1ab782b5bffc725cc294b50 | b0ca1e84804fe0fc1283addc7c90a6d6749887f2 | /Grafos/main.py | b42aa040923c42f227b5550d6fb3305e5c2862b5 | [] | no_license | santedicolaa/PO | 922f028afb5c0f3689e407e5959ecc62304caf0b | 0f17fe5fc8d5661796e17d51e42994aa492e5f60 | refs/heads/master | 2020-04-21T18:25:25.159875 | 2019-06-12T19:42:22 | 2019-06-12T19:42:22 | 169,468,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import replit
import time
class Grafo():
def __init__(self):
self.inicio = {}
self.num_vertices = 0
self.lis_vertices = []
def addVertice(self, vertice):
inicio = self.inicio
if vertice in inicio:
print(vertice,"já pertence ao grafo")
time.sleep(1)
return 0
if vertic... | [
"noreply@github.com"
] | santedicolaa.noreply@github.com |
5dea86eaad29c2989353630f5ff2bd269066b61c | 275252208c840919755e06029a298ae7f3344f39 | /option_system/test/test_case/scene_sta.py | e87a0df54c575951ebc19119b4386f4548ce4230 | [] | no_license | wanying0106/Test_system | a317c4d909ccf935f7d9c080fc5eb283a6d3ac82 | d28b1a02f7ad7477ce83644fac98d8fb5952f4e1 | refs/heads/master | 2020-03-30T04:02:42.047288 | 2019-06-29T06:33:05 | 2019-06-29T06:33:05 | 150,721,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # coding: utf-8
from time import sleep
import unittest, sys
sys.path.append("./ models")
sys.path.append("./ page_obj")
from models.myunit import *
from models.function import *
from page_obj.loginPage import login
from page_obj.planPage import plan
from page_obj.switchPage import switch
from page_obj.employeesPage i... | [
"15175089260@163.com"
] | 15175089260@163.com |
6d268fb1bb10e27331a3f7427f4e7ec31917a891 | 5e557741c8867bca4c4bcf2d5e67409211d059a3 | /test/distributed/elastic/timer/local_timer_example.py | 8d3702c9a70283500c437adc763c2e6090b382a9 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | Pandinosaurus/pytorch | a2bb724cfc548f0f2278b5af2fd8b1d2758adb76 | bb8978f605e203fbb780f03010fefbece35ac51c | refs/heads/master | 2023-05-02T20:07:23.577610 | 2021-11-05T14:01:30 | 2021-11-05T14:04:40 | 119,666,381 | 2 | 0 | NOASSERTION | 2021-11-05T19:55:56 | 2018-01-31T09:37:34 | C++ | UTF-8 | Python | false | false | 4,080 | py | #!/usr/bin/env python3
# Owner(s): ["oncall: r2p"]
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import logging
import multiprocessing as mp
import signal
impo... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
9cd4c96a648545918764e06df4c6c48ad22746ee | 43312a239823848b3f035a6ed6a52f23923004a9 | /EasyTeleBot/GenericFunctions.py | fb6f60ba3f41d59b224c99b6de334cb6c5e79aab | [
"MIT"
] | permissive | idozahavy/EasyTeleBot | 69a3072b8dbdc2a796b9763de94112015cdbb16a | ac5d2ff64d1a9a8382081ee9353596f5dd771e62 | refs/heads/master | 2022-11-21T00:58:52.468160 | 2020-06-28T15:48:54 | 2020-06-28T15:48:54 | 267,246,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | import copy
class Data(object):
def has_attribute(self, attr):
return hasattr(self, attr)
def __str__(self):
return str(self.__dict__)
def set_dictionary(self, dictionary: dict):
self.__dict__ = dictionary
def set_attribute(self, name, value):
self.__setattr__(name, ... | [
"idozahavy@users.noreply.github.com"
] | idozahavy@users.noreply.github.com |
15f097e5d25a77c286c586a759cb6af2c2055888 | 743d1e35108932987cd6c451561dceb4a9bd93fa | /function/16_local_variable.py | 339d8c6c9b4a8acea8863752bda79b6846edf4ba | [] | no_license | jun-young000/grammar-basic | bede88f8f1a4a85c1af8254b2d6b3e53ae1bbc1b | f0f0ce6b22bed8460162a9993551ebd2132bcf38 | refs/heads/main | 2023-07-07T07:36:52.560004 | 2021-08-10T12:27:56 | 2021-08-10T12:27:56 | 382,528,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | # 16_local_variable.py
# 예제 함수 정의
def show() :
a= 1 # 함수 내에서 정의된 지역 변수
a= a+1
print(a) #변수 a 는 함수 내에서만 사용 가능 / 화면에 a변수 값 2를 출력 하고 호출한곳으로 복귀
# 복귀가 되면 함수는 종료되고 만들었던 모든 변수는 제거
def show1(b) : # 인수가 b에 저장되면서 지역변수 b 생성됨
b=b+1 #b값을 1 증가
print(b) #b를 출력 - 함수 종료 - 호출한곳으로 복귀(변수b는 삭제)
show() # 함수 호출 ... | [
"taropoint1@naver.com"
] | taropoint1@naver.com |
e0b3b2bf29c0e1156a00e4caded2f504e78bfba4 | 004f96dfdb295e6ba3da755c9c65ba87e8329ed4 | /hotel/models/models.py | 1e7b8ed19327a412bec3e9080f6229937e02052f | [] | no_license | MohamedSalahKamel123/Hotel | 9f67824b5b7ae6e3be12602d7baada8b448754af | 8d01ee3c12f1020d4c43295efc537cdeb1e76b17 | refs/heads/master | 2020-03-22T00:22:37.678945 | 2018-06-30T10:49:23 | 2018-06-30T10:49:23 | 139,240,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
# class hotel(models.Model):
# _name = 'hotel.hotel'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# description = fields.Text()
#
# @api.depends('value')
# def _value... | [
"mohamedsalahkamel123@gmail.com"
] | mohamedsalahkamel123@gmail.com |
31c75823ceccc46b7570986abb36366707a7b394 | f995860ad78fc266d04b03c3478c74e989d8b568 | /PE/pe0178.py | 50751fc483b0c73fe0a8686c699f684a06e3cf11 | [] | no_license | 196884/Python | edd0234fd72a40d7a0b3310776edcaa8bda74478 | 8dc2e7a32dd350227cde748600e713dc3eea3f4a | refs/heads/master | 2016-09-06T19:26:19.860746 | 2015-11-09T00:09:23 | 2015-11-09T00:09:23 | 28,167,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | def initList():
r = []
for i in range(0, 10):
r.append([0 for j in range(0, 10)])
return r
def solve():
# dynamic programming:
# after n steps, l[i][j] is the number of paths:
# * of length n
# * starting at 0
# * going up or down by 1 at each step
# * with minimum -i, and m... | [
"regis.dupont+git@m4x.org"
] | regis.dupont+git@m4x.org |
02a33085d35c70f94f68dab669344b797c917898 | 871ceeae4a3e8575f2f4d46d5cec6398d5571884 | /py3.cgi | f53ebc0a48c0dfc03e075df2f7eede0b4147259e | [] | no_license | AhmadAlberkawi/Learntech | b27eb0a4cc8cb8ac819ebf789cc8eb94dd98c4c2 | 309181c8f71206a7129fccebe50a91febfc78f21 | refs/heads/master | 2023-05-27T06:44:34.615082 | 2020-07-13T12:58:51 | 2020-07-13T12:58:51 | 199,425,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | cgi | #!/bin/python
# Modul cgi
import cgi, cgitb
# Ausgabe bei Fehler
cgitb.enable()
# Objekt der Klasse FieldStorage
#form = cgi.FieldStorage()
# Einzelne Elemente des Objekts
name = form.getvalue('Name')
vorname = form.getvalue('Vorname')
email = form.getvalue('Email')
# HTML-Dokument mit Variablen
print ("content-ty... | [
"ahmads-96@hotmail.com"
] | ahmads-96@hotmail.com |
c6d53eae7e1128d46dbbb956b76c3a7d625330d0 | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /seed/types/MergeableHeap__immutable_tree.py | 62b0066d20d34eb16226590a2d6f29b3da608310 | [] | 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 | 33,990 | py | #__all__:goto
#testing_________goto:goto
r'''[[[
seed.types.MergeableHeap__immutable_tree
view ../../python3_src/seed/types/MergeableHeap__immutable_tree.py
using immutable_tree underlying
O(1) copy
++unoin/merge: like eat() but donot clear() input heap
view ../../python3_src/seed/types/MergeableHeap__mutab... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
962da2abca34985938d9ede37484fcea375e39e4 | c730d4df20898a966b8ff215b2d3cce894bcf55e | /Linked_Lists/concatenate_circularLinkedList.py | 9cf6ab5a0b417f94f29737d725ed6562f0d0d219 | [] | no_license | venukumarbv/Datastructure_Algorithms_using_Python | 23a6996b171aafc0bcfc43f55e679ee6ef76c5d7 | cd32691edbf9f7b6cdfc16ea742f78fbc5f003e4 | refs/heads/master | 2022-11-19T22:27:38.751963 | 2020-07-21T10:46:55 | 2020-07-21T10:46:55 | 281,368,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | class Node:
def __init__(self,value):
self.info = value
self.link = None
class CircularLinkedList:
def __init__(self):
self.last = None
def insert_a_node(self, value):
temp = Node(value)
if self.last is None: # Create a logical cicular list during empty list
... | [
"VKvision@venu.com"
] | VKvision@venu.com |
88dfb09583a57d41a21b54043ae54aaf5acc50da | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_buildpack_binding_operations.py | fa960c96a5d386a8bcb2472976a7bf735c0cfe36 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 37,434 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
5dd5a8300a0fca9f4b6b90e21a384d96b58795da | 6965dad35168a486fd824b9a436a7de066eab37a | /test/cal_len.py | e98f32537c6b62f7594b31b7d4664101e31c46f9 | [] | no_license | baoyi33/prac_1 | 7892acca16c89eba162448e8ae4cb9fabf9d7a78 | e7fa0f01f42367a84292c34dd4785144dbe18aee | refs/heads/master | 2020-04-01T22:46:44.178294 | 2018-10-24T21:54:14 | 2018-10-24T21:54:14 | 153,725,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/user/bin/python
with open("test.fa") as fasta: # open test.fa file
length = 0
next(fasta) # not the first line
for line in fasta:
print(line)
line = line.rstrip() # new line
length = length + len(line)
print(length)
| [
"baoyi33k@gmail.com"
] | baoyi33k@gmail.com |
15b2c5b66c9f84f6f1b8a358fac9053bb30b304a | c029647c1f3d06ac13fd519bddf8e25fc4e1b319 | /carla_rllib/carla_rllib-prak_evaluator-carla_rllib-prak_evaluator/carla_rllib/prak_evaluator/srunner/scenarioconfigs/scenarios/control_loss.py | 85d72b705a5f523073f8883e5a942dd9128e5a65 | [
"MIT"
] | permissive | TinaMenke/Deep-Reinforcement-Learning | 70f56eff4e9d54d70ea0eca6ca70e880fbdd74fb | 8ab0894b92e1f994802a218002021ee075c405bf | refs/heads/master | 2022-12-09T20:30:30.176090 | 2020-03-21T16:39:47 | 2020-03-21T16:39:47 | 249,012,679 | 9 | 2 | MIT | 2022-12-08T07:26:06 | 2020-03-21T16:12:14 | Python | UTF-8 | Python | false | false | 9,003 | py | #!/usr/bin/env python
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
"""
Control Loss Vehicle scenario:
The scenario realizes that the vehicle looses control due to
bad road conditions, etc. and checks to see if the vehicle
regains control and c... | [
"noreply@github.com"
] | TinaMenke.noreply@github.com |
2297e424c5d15295bfb270d9c8020915f0f434ed | 5854b5b0541075a9fe9b93dcdb4611746bcd3aa6 | /investigate.py | 777e13998a49d44057ceb5b5394d689c395517c1 | [] | no_license | KeithWM/conditioned | 479ea66b70e1fe93d72f9c05bf14cf4b0a80920d | aff54fba8dfa6af0290bd8a4fe16afe92abeb41e | refs/heads/master | 2021-01-21T07:07:15.091972 | 2017-03-01T08:46:17 | 2017-03-01T08:46:17 | 83,318,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | import pandas
from matplotlib import pyplot as plt
dfs = ()
names = ()
names+= ('taylor',)
# names+= ('int',)
for name in names:
# dfs+=(pandas.read_csv('df_{}.csv'.format(name), index_col=0),)
df = pandas.read_csv('df_{}.csv'.format(name), index_col=0)
# df = pandas.concat(dfs, axis=0)
int_keys = ('N',)
... | [
"keith@myerscough.nl"
] | keith@myerscough.nl |
d5456408727a5ab95b58366a7abfc66028440313 | 389be0f88fb2d71475b12963ca5e21d0b1c1f7fb | /src/drem/transform/ber_publicsearch.py | b98564cf278413314c503ef5a846504bd472e5a6 | [
"MIT"
] | permissive | codema-dev/drem | 7099c1cb1eef623e274dd9b6920b265df768173d | b7e4a47c3ae10040d6ea22ac4fa726d07d7ef508 | refs/heads/master | 2023-02-16T23:05:50.148136 | 2021-01-13T12:46:01 | 2021-01-13T12:46:01 | 281,381,878 | 4 | 5 | MIT | 2021-01-13T12:46:03 | 2020-07-21T11:43:30 | Python | UTF-8 | Python | false | false | 2,760 | py | from pathlib import Path
from typing import Any
import numpy as np
import pandas as pd
from prefect import Flow
from prefect import Parameter
from prefect import Task
from prefect import task
from prefect.utilities.debug import raise_on_exception
import drem.utilities.dask_dataframe_tasks as ddt
import drem.utilitie... | [
"noreply@github.com"
] | codema-dev.noreply@github.com |
9636c810b69765d56b8a06b0152aac218b6558fb | 140351f0a75aaaef1949c80ef5ceaa2da22a726f | /pysite/extra_heroku_end_settings.py | f7d143e8000b48ef9182618c4ef18baf8cfd1fc5 | [] | no_license | ashish2/djApps | 69005a2b48d859772fff989ed432d274d113a823 | 4f7f28d130d998a902593602a10fa6723b7305e7 | refs/heads/master | 2016-08-12T03:18:28.009964 | 2016-02-24T12:19:37 | 2016-02-24T12:19:37 | 47,876,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import os
from settings import DATABASES
# Settings at the End
### Settings for Heroku
import dj_database_url
#DATABASES['default'] = dj_database_url.config(default=os.environ.get('DATABASE_URL'))
heroku_pg_url = 'postgres://ivvmabgfrysfgo:hJJ_2qRdime4SRRH9AeiY-GqYz@ec2-50-17-207-54.compute-1.amazonaws.com:5432/df4n... | [
"vickyojha2@yahoo.com"
] | vickyojha2@yahoo.com |
d0f7ae8b7499a9ca59ab3835244c320159fe0290 | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /imagesearch-20201214/setup.py | 3e51f0f9157b6734ebf9de9021339da732085c83 | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
94c384e986f1ff3e417c487c88c6ae0ea86c0df1 | 6651618987136b8c785dd57b8a8152e168114884 | /sci_hrms/models/hr_contract.py | a3e26ae0f5c7f0665ff27d04e9c638e29c067269 | [] | no_license | suningwz/odoo12_addons_qlptn | bece654efa23ddfb4a1f4cfffda7f11f279a436c | 80785cdbbb742d0219e5b98dffc99c347da9b774 | refs/heads/master | 2021-05-17T22:06:55.679158 | 2020-03-03T03:46:05 | 2020-03-03T03:46:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,883 | py | from odoo import fields, api, models, _
import datetime
from dateutil.relativedelta import relativedelta
from odoo.http import request
from odoo.exceptions import ValidationError
import pytz
def canh_bao_tang_luong(i):
exp_date = i.salary_year + relativedelta(years=1)
lst_email_follow = []
if i.employee_id... | [
"lex4vn@gmail.com"
] | lex4vn@gmail.com |
f7f98ad9e65f953b1a284837286cdbdd17a0cbf5 | 9d14c4f796e9d3e10ade17f41ff1d150295b8aa0 | /forms.py | fc4ceb261a7fb2f21f8c45b8add01277a998317c | [] | no_license | chitboon/flaskr2 | e6c2fc7c776fdfa73461c2f65bb093f66ec08db5 | 2834ec4923673d97d666fa2da09ee54711534178 | refs/heads/master | 2022-12-27T23:45:36.915733 | 2021-01-21T03:26:23 | 2021-01-21T03:26:23 | 160,546,330 | 1 | 2 | null | 2022-12-08T03:00:28 | 2018-12-05T16:23:25 | HTML | UTF-8 | Python | false | false | 662 | py | from wtforms import StringField, IntegerField, TextAreaField, SubmitField, RadioField, SelectField, Form, PasswordField
from wtforms import validators, ValidationError
class LoginForm(Form):
id = StringField('UserName', [validators.DataRequired('Please enter your name.')])
password = PasswordField('Password', ... | [
"chitboon@gmail.com"
] | chitboon@gmail.com |
de81742251cf7ecbf57753936bfec1cccd7b5c38 | 1aba70d53d9f2ace50821ead9958e18d23cbfb0c | /app/mysite/models/charts_model.py | 0161f4d89e6dfc72308be90e27ad3ae7e8a05bb9 | [] | no_license | Danny19880402/mysite | 6e567593e47486100f623e99b8dadaa8d0419456 | 5c82810f75360d5ad40bf299a8be12ce7eff2112 | refs/heads/master | 2023-01-06T14:04:29.359774 | 2019-07-06T12:40:34 | 2019-07-06T12:40:34 | 195,534,587 | 1 | 0 | null | 2023-01-04T03:49:04 | 2019-07-06T11:59:49 | Vue | UTF-8 | Python | false | false | 455 | py | from mysite import db
class Chartsmodel(db.Model):
__tablename__ = 'chart_details'
__table_args__ = {'mysql_engine': 'InnoDB'} # 支持事务操作和外键
# 主键
id = db.Column(db.Integer, primary_key=True)
# 价格
price = db.Column(db.Float, doc='价格', nullable=False)
# 数量
volume = db.Column(db.Float, doc=... | [
"duxuede1988@163.com"
] | duxuede1988@163.com |
b56f2969e543d5827dc089cd6dcd23d2f694d788 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_chomps.py | b371d13ce61f330b9635ad464a74c0b37a02a7dd | [
"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 | 231 | py |
from xai.brain.wordbase.verbs._chomp import _CHOMP
#calss header
class _CHOMPS(_CHOMP, ):
def __init__(self,):
_CHOMP.__init__(self)
self.name = "CHOMPS"
self.specie = 'verbs'
self.basic = "chomp"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5388ceee2a8d5ef63ab3028b840380fb21e77d35 | 565c458353f0ec256a0a29e11aa0e2f868875b8d | /tracking_test.py | 8eb858e4d5cbb10af0a249f944b885a799a167ae | [] | no_license | Robo-Sapien/Maze-Perilous-Real-Time-Implemention-of-Dijkstra-Algorithm | 089aff6eeedc51c263ffb8786cb9c94a65111eb7 | 235ae1f0d71beb08f1286938eb8ade59083a4129 | refs/heads/master | 2021-01-17T16:03:06.119636 | 2017-06-26T10:18:32 | 2017-06-26T10:18:32 | 95,433,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread('a4.jpg',0)
# Initiate FAST object with default values
fast = cv2.FastFeatureDetector()
# find and draw the keypoints
kp = fast.detect(img,None)
img2 = cv2.drawKeypoints(img, kp, color=(255,0,0))
# Print all default par... | [
"noreply@github.com"
] | Robo-Sapien.noreply@github.com |
7fa882dc540662fffa8f714c6124767e6bb8b1a6 | 7118862c20c0b503f9e901026e48a809e29f5cf5 | /ar_markers/coding.py | 87df7bd2c25243aa1dfe07fe9b784377cd8a6788 | [
"BSD-3-Clause"
] | permissive | pstraczynski/ar_markers | 964c0405dd7b51ac12f6f4c042626514667f7324 | 408737244ef7a655607858a6852189d5aef02e9b | refs/heads/master | 2022-11-17T22:08:42.885805 | 2020-07-16T11:46:38 | 2020-07-16T11:46:38 | 280,138,112 | 0 | 0 | BSD-3-Clause | 2020-07-16T11:38:53 | 2020-07-16T11:38:52 | null | UTF-8 | Python | false | false | 2,924 | py | # this is all hamming code stuff, no user stuff here ... move along, move along
from numpy import matrix, array
GENERATOR_MATRIX = matrix([
[1, 1, 0, 1],
[1, 0, 1, 1],
[1, 0, 0, 0],
[0, 1, 1, 1],
[0, 1, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 1],
])
REGENERATOR_MATRIX = matrix([
[0, 0, 1, 0, 0... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
a6c223f868e4c11922e97249c425499dc397669a | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/lib/python2.7/site-packages/pymongo/write_concern.py | d16f1d0b8e1ba18818c6bcc891bc21c10cae0f6b | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | # Copyright 2014-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com |
609168f5863476adca41f1821aa9e52272089d4d | 5fef7e0095b57a80ef3672945ac5438db22fcb1f | /AimOffer/SerializeBinaryTree.py | d201f75a031f4a4698c76551af22a379236cf03e | [] | no_license | wbq9224/Leetcode_Python | 0feb8b509ce3ab194fc10a52ed5c90b8bfe12d92 | c1f27c0cec80585095ce98a678ab85079e1a4c46 | refs/heads/master | 2020-03-23T15:02:21.860337 | 2018-09-16T08:48:51 | 2018-09-16T08:48:51 | 141,716,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from AimOffer.ConstructBinaryTree import *
class Solution:
def Serialize(self, root):
# write code here
if not root:
return ['$']
left = self.Serialize(root.left)
right = self.Serialize(root.right)
return [root.value] + left + right
def Deserialize_core(self... | [
"ziwuchui110w@163.com"
] | ziwuchui110w@163.com |
b1971ec4f2d4825a4be4ba3638ca9f7548e9f7d1 | 29d7fd60a06e241068a2217510231c4fadcb338d | /src/patch2021ti10.py | 5b82f99f741a2efe9736325ffd9f22466d5a7f71 | [] | no_license | csj2018/KID_simulator | e633990b8a6f5d29d6861ee15faa067284b1e266 | d165aea8cdfb9b6dc4b549dd2e7c3843c83ffeca | refs/heads/master | 2023-08-27T05:25:57.607943 | 2021-10-07T12:20:38 | 2021-10-07T12:20:38 | 414,289,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | from src.support import *
club_list =[]
#club_list.append(Club('PSG.LGD'))
#club_list[len(club_list)-1].creat_player(['萧瑟', 'SoMnus丶M', 'Old Eleven', 'Fy', 'Xnova'],65,90)
#club_list.append(Club('Alliance'))
#club_list[len(club_list)-1].creat_player(['Nikobaby', 'Limmp', 's4', 'Handsken', 'fng'],65,90)
#club_list.appe... | [
"506300081@qq.com"
] | 506300081@qq.com |
bc7cfbe5d9a28ea6fa5e9f3faf22fbafcb249bd5 | 6472434d4e6d046200b1d5b498db49593806b485 | /jdzc.py | a89db5d8652d9388f60d5527e4141f79f690726d | [] | no_license | shoaly/2rss | a9a70a66f38d9b43f141d9d0bb7eaf4062e0c72f | cfe4a51e365513340bec85d75c5298c765c2c7d0 | HEAD | 2016-09-05T12:36:42.994486 | 2015-02-06T12:26:18 | 2015-02-06T12:26:18 | 29,582,728 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib2
import pystache
import requests
import re
import time
import os
from datetime import *
from pyquery import PyQuery as pq
from lxml import etree
# print pystache.render('Hi {{person}}!', {'person': 'Mom'})
class RSS:
def __init__(self,url,output_file,... | [
"shoaly@qq.com"
] | shoaly@qq.com |
19225bced8ac87070dfd4bf7df8d4fe653fba6af | 0d59fa410624676908e1470fb9105cb8a280525c | /Algorithms/itertools/itertools_cycle.py | 779bb2629e1349e4c5d5978c5e075686ef194ad3 | [
"MIT"
] | permissive | Nobodylesszb/python_module | 122d41e776036dfc61a187e383dda821c35e25c4 | 37d2cdcf89a3ff02a9e560696a059cec9272bd1f | refs/heads/master | 2020-05-31T07:48:57.695494 | 2019-07-29T11:32:17 | 2019-07-29T11:32:17 | 190,173,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #该cycle()函数返回一个迭代器,它重复无限期给出的参数的内容。
# 由于它必须记住输入迭代器的全部内容,
# 如果迭代器很长,它可能会消耗相当多的内存
from itertools import *
for i in zip(range(7), cycle(['a', 'b', 'c'])):
print(i)
"""
output:
(0, 'a')
(1, 'b')
(2, 'c')
(3, 'a')
(4, 'b')
(5, 'c')
(6, 'a')
""" | [
"nobodylesszb@163.com"
] | nobodylesszb@163.com |
bc91b19087d5a7bd6e0122a487b1d95cecab4f5e | 354fe66c120c5902ffc7ddf954ec19cfd0432a99 | /Test Data/base_scripts/example.py | d9d34783c900e9e2d15f969309b8d3a920bde449 | [] | no_license | bartoszirzyk/MachineLearningExperiments | e58f389d7db21cd1be64192c8171a278e1c9cfc0 | 3026e4a0597eb1c835b253e12c35b0096f3a3ee8 | refs/heads/master | 2021-01-21T17:57:10.940984 | 2016-03-12T21:49:32 | 2016-03-12T21:49:32 | 47,024,354 | 0 | 0 | null | 2015-11-28T13:24:00 | 2015-11-28T13:24:00 | null | UTF-8 | Python | false | false | 387 | py | from data import samples
print("There are {} samples.".format(len(samples)))
print("Whois data of 2nd sample (ip: {}):".format(samples[1]["ip"]))
print(samples[1]["whois"])
print("RevDNS data of first ten samples:")
print("\n".join([ repr(s["hostnames"]) for s in samples[:10] ]))
print("Open ports of first 10 sampl... | [
"kacper.b.zuk@gmail.com"
] | kacper.b.zuk@gmail.com |
b3ff2dc9e5cecb1e83a1e6e6cd93011b6a4465a7 | d09ea6c980275f741d607a218fb3d23a9e7184d5 | /happy_tree/solver.py | 9e8298102198fab963c6dddbfa5c19795d6d415c | [] | no_license | galli-leo/tctf2020 | 1aadb5484407ad0e3190d7c01e96b4dc9b40418a | 257ac6cdff3f44068fc9973fc189b6f9c6c365b8 | refs/heads/master | 2022-11-07T21:49:42.770348 | 2020-07-03T15:40:18 | 2020-07-03T15:40:18 | 276,872,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | from numpy import uint32
def check(flag):
loc_7 = uint32(flag)
vals = {}
for i in range(0x186a0):
tmp1 = uint32(loc_7 << 0xd) # 0x56582884
tmp2 = uint32(tmp1 ^ loc_7) # 0x56586f00
tmp3 = uint32(tmp2 >> 0x11) # 0x5657e20c
tmp4 = uint32(tmp3 ^ tmp2) # 0x56586cf8
tmp5 =... | [
"leonardo.galli@bluewin.ch"
] | leonardo.galli@bluewin.ch |
5ccb4dbf3827407afe7f4a7dbc3bc34ea0c28322 | 36da0543e6f3895dd0879e34f63642238400532c | /authorities/urls.py | 118e149e58d03b40750cb2ab3c6c5b5aee31b8fe | [] | no_license | chengfangang/django_auth | 3ecb93cabc50de007c736cfb0961298f19078cc3 | a7846627c34ee50548f17250dc62acefcac1311a | refs/heads/master | 2021-08-08T01:29:38.570387 | 2017-11-07T21:16:24 | 2017-11-07T21:16:24 | 110,074,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | """django_auth URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"chengfangang@etongdai.com"
] | chengfangang@etongdai.com |
c4387e96c598bb7541d03f278120c1dd682176cb | 99d65074c1614eb2966465b145d57e1d80914139 | /Condition.py | f6233a88e58138358d9b9be1a51c64b2f7a43336 | [] | no_license | prtptl/Data-Science | 80db9aafd55a693cab48f1b68906b1936af2b6c8 | 33ff92e19f8d78234e11969147bf9abcf38b006f | refs/heads/master | 2020-04-20T02:35:14.600700 | 2019-01-31T20:14:48 | 2019-01-31T20:14:48 | 168,575,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
import math
#area=input("Enter the area")
# In[4]:
#type(area)
# In[15]:
area=float(input("Enter the area"))
# In[16]:
type(area)
# In[18]:
if area>0:
radius=math.sqrt(area/math.pi)
print("the radius is", radius)
else:
print("Enter positive n... | [
"noreply@github.com"
] | prtptl.noreply@github.com |
90ceac38ceff608f92ae59f32d3a70d07fa83eeb | df30f97d316e899b07b223bc86cfe53345627f06 | /problems/baek/13460_구슬탈출2.py | 865933d4fd8f95d6c035b5044bd340af67f6b81f | [] | no_license | GH-Lim/AlgorithmPractice | c6a3aa99fa639aa23d685ae14c1754e0605eaa98 | e7b8de2075348fb9fcc34c1d7f211fdea3a4deb0 | refs/heads/master | 2021-06-18T17:21:10.923380 | 2021-04-18T03:43:26 | 2021-04-18T03:43:26 | 199,591,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | from collections import deque
N, M = map(int, input().split())
board = [list(input()) for _ in range(N)]
R = (0, 0)
B = (0, 0)
O = (0, 0)
for i in range(1, N - 1):
for j in range(1, M - 1):
if board[i][j] == 'R':
R = (i, j)
elif board[i][j] == 'B':
B = (i, j)
elif b... | [
"gunhyuck11@naver.com"
] | gunhyuck11@naver.com |
5ce0af09173a46398d227ccbc5d3c1eb9b6bb19c | 2a807b5763465b1566bc3f24146d6fd81d8a5bd3 | /python_para_android_ios_win_linux_mac/03_tomada_de_decisao/exercicio12.py | 6c0d125bb2404157d5eab59e4b9e6c58b12c77f8 | [] | no_license | rafaelrsanches/cursos_python | 8fbebf81a84242d762923ff8257f17ec3b2c6ec9 | f52a6df977babd9df01d560f7a3c112d0a3e2b32 | refs/heads/master | 2020-03-25T22:13:10.608625 | 2018-12-14T23:44:12 | 2018-12-14T23:44:12 | 144,211,018 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # Faça um algoritmo que peça um valor numérico. Em seguida, verifique se o número é inteiro ou decimal.
num = float(input("Digite um valor numérico: "))
if num % 1 == 0:
print("O valor é um número inteiro!")
else:
print("O valor é um número decimal!")
| [
"rafael.rsanches96@gmail.com"
] | rafael.rsanches96@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.