blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
960c42bb96022428399d3f6c90afa9aafe47ae6a | 09e8c92187ff8d7a726727041e2dd80850dcce3d | /leetcode/965_univalued_binary_tree.py | e0da41251305a9165e61a661dbd73b04870d0e67 | [] | no_license | kakru/puzzles | 6dd72bd0585f526e75d026f3ba2446b0c14f60e0 | b91bdf0e68605f7e517446f8a00b1e0f1897c24d | refs/heads/master | 2020-04-09T09:47:31.341475 | 2019-05-03T21:24:41 | 2019-05-03T21:24:41 | 160,246,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | #!/usr/bin/env python3
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x, left=None, right=None):
self.val = x
self.left = left
self.right = right
class Solution(object):
def isUnivalTree(self, root):
"""
:type root: TreeNode
:rty... | [
"karol@kruzelecki.com"
] | karol@kruzelecki.com |
609021985877b887a2b29d318d6e4ee09ffbc4df | 95b9fc9e1a109ee8612583221269aa5eb4f7de4a | /mysitea/settings.py | b82bd4078e0e56e73872ed0b18115c84b22b545c | [] | no_license | Choi0427/mysitea | d3af19cf8cca3e28b13e8c6f8ec9ec1331ad9636 | bda03507ba3f0a5f22ea061811ac13b0afe6bfa4 | refs/heads/master | 2023-01-28T12:57:21.857301 | 2020-12-07T13:04:28 | 2020-12-07T13:04:28 | 319,324,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | """
Django settings for mysitea project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"you@example.com"
] | you@example.com |
a65ad9748193a80ca6ea3a3b9948f43ba7938fbe | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/ComponentModel/__init___parts/DataObjectAttribute.py | fa31cc9ac8a0bb5e911aa72b7329df96aa63c06d | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | class DataObjectAttribute(Attribute,_Attribute):
"""
Identifies a type as an object suitable for binding to an System.Web.UI.WebControls.ObjectDataSource object. This class cannot be inherited.
DataObjectAttribute()
DataObjectAttribute(isDataObject: bool)
"""
def Equals(self,obj):
"""
Equals(self: DataOb... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
237d4c4a57a192116b0989a1faf1b1895c0795f5 | 6242f818537cf4c6f4f3580f1ca79c0683a0dc36 | /Brownian_Movie_Analysis_nodata/EPR_inference/Dissipative_Component_Analysis.py | 8a4e368a4c3e9a4178dccf1b5afcf872aa4944b6 | [
"MIT"
] | permissive | montarou/NonequilibriumBrownianMovies | bbe3b3d765e2e762ec2237110045b7088d2c647e | 748a2d4f90933423fdf119bb1d9b8e783ea7b524 | refs/heads/master | 2023-06-30T23:31:17.671243 | 2020-08-08T17:21:58 | 2020-08-08T17:21:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,451 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.linalg as scilg
from numpy import linalg as nlg
def DCA(X,output_directory):
"""
Performs Dissipative Component Analysis (DCA) starting from Projected data onto PCs. For details please refer to the Supplementary Material (SM) (Sec. IV ).
Retu... | [
"noreply@github.com"
] | noreply@github.com |
ec80910561a64702c69266b5f78a7aef95964ee5 | 3756953b4fbeeb7581e5c18c91f0d96a993f932b | /others/bpi-test-rfid/usr/local/bin/rfid_epc_usb.py | dbbfaf1fd05bc5568c2a60bf55519ef3b0527fcd | [] | no_license | bmk10/BPI-files | 1c17b00c13ada7db0bbbed262dfb6caa6281c642 | 6ea84539846126245da5ec3453bdb2edd16fc697 | refs/heads/master | 2022-12-19T08:47:16.959673 | 2020-09-20T12:29:00 | 2020-09-20T12:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | #!/usr/bin/python
#import jogtek
import serial
import sys
import time
import numpy as np
def crc16(data):
'''
CRC-16-CCITT Algorithm
'''
data = bytearray(data)
byteflag = 0
bytedata = 0
poly = 0x1021
crc = 0xFFFF
for b in data:
if b > 0x39:
b = b - 0x41 + 10
... | [
"lionwang@sinovoip.com.cn"
] | lionwang@sinovoip.com.cn |
91e2b4dcec3ec942698bfbf77e1be3df16cfbb8a | 4b8af906e787ac27cc138201594298f758a02ca5 | /SSD/models/base_models.py | 240fc2ddf2be1e6545c1531b23de46f0db2d373e | [] | no_license | WangDeyu/Stronger-One-stage-detector-with-much-Tricks | 2ea72a29843cfbca51288254ab786f61baa3e40a | 09bc1f5cd0b069731bfe228a386311b2c1bf9747 | refs/heads/master | 2020-11-29T05:27:20.769014 | 2019-06-04T13:37:30 | 2019-06-04T13:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | import torch
import torch.nn as nn
def vgg(cfg, i, batch_norm=False):
layers = []
in_channels = i
for v in cfg:
if v == 'M':
layers += [nn.MaxPool2d(kernel_size=2, stride=2)]
elif v == 'C':
layers += [nn.MaxPool2d(kernel_size=2, stride=2, ceil_mode=True)]
els... | [
"844518133@qq.com"
] | 844518133@qq.com |
4996e301ea38ba37f316c14cfed17c8e1282f1d2 | 5b6190ab59c6a16193a1adb2b4d9651215587235 | /reading_assistant/review/view_review.py | 1dc3079e7cebed89857f8013c00c9f52bb92a569 | [] | no_license | panyzzing/reading_assistant_python | 0b8926783a62593cffbb5ab08a73cc33cb893fd6 | 936e7756a29cc3bc7b4da81390ccf3c03e927caf | refs/heads/master | 2021-01-17T20:25:22.220176 | 2013-11-21T08:19:16 | 2013-11-21T08:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | # -*- coding: utf-8 -*-
'''
Created on 2013. 5. 29.
'''
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from django.template.context import RequestContext
from reading_assistant.models import Book, ReviewForm, Review, BestWord
def insert_form(request):
e... | [
"skytear7@naver.com"
] | skytear7@naver.com |
56aab08d1b6c26fa14b194206cbfa5efc8283483 | 461fd5b3e74493fae216f196a0f4f1e2cfc674d2 | /src/5.1.py | 07ed2cb80d98e0c2d400bf018f307371d2593616 | [] | no_license | xietx1995/python-pdb-intro | 48270548962a4ce92dccd288620a79b7814d7d09 | 99672618c51f03d44d3b60bf4203beaeff5fd3b7 | refs/heads/master | 2023-07-16T21:29:53.983152 | 2021-08-22T04:38:17 | 2021-08-22T04:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | """代码清单 5.1.py"""
import json
import util
def load_info(path):
"""读取json文件"""
with open(path) as f:
return json.load(f)
if __name__ == '__main__':
info = load_info('info.json')
util.print_info(info)
| [
"noreply@github.com"
] | noreply@github.com |
f1340d03564b55084aa43cbf65a62e0069f8210d | e7d5450f6c0a99be41d437eb377e6fee95366c69 | /client/migrations/0002_alter_client_balance.py | 71792b6f948aa28728c710ac5fb43af4a4fc4197 | [] | no_license | SofiaSh/MetaminsTest | ea0f5b31b2473a5d2dba832106870a2a551f1820 | 43518c90a13102c109c6f2ac7231f557220fd965 | refs/heads/main | 2023-04-09T01:51:41.767942 | 2021-04-12T19:07:03 | 2021-04-12T19:07:03 | 356,824,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Generated by Django 3.2 on 2021-04-11 17:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('client', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='client',
name='balance',
fie... | [
"79996200981@ya.ru"
] | 79996200981@ya.ru |
6da658a7cd0fa783707ae8e692a3eebd505ebfec | 92a13acc1316d3cbe60b86bf262cdd1f13b10bc8 | /app/core/C.py | d126dbc2c7f66971cea5ce737abf5dfe4625e902 | [] | no_license | sbhkmndl/flask-autosklearn | 06d86d18d0d964ee88ba0fd51e675736c163d623 | 9859d499824f5814451f2e882e95ad1dba7c3bfd | refs/heads/main | 2023-08-28T12:17:53.944013 | 2021-11-09T04:50:03 | 2021-11-09T04:50:03 | 424,578,604 | 0 | 1 | null | 2021-11-04T13:48:02 | 2021-11-04T11:58:55 | Python | UTF-8 | Python | false | false | 103 | py | import uuid
DATETIME_FORMAT = "%y-%m-%d %H:%M:%S"
def get_unique_id():
return str(uuid.uuid4())
| [
"soubhikmandal@datoin.com"
] | soubhikmandal@datoin.com |
15d66bf881c1a50056be62d9e4df57b8b88c1f1f | 351977b81d80bdbf611a3fe885494bc805b2cdc0 | /geocoder.py | cb18b7086d6f3bd5d6b1b2946fede86932aa7eb0 | [
"MIT"
] | permissive | xyx0826/sea_fires_around_me | 707688dd2dfcf3156fd2eb3c5e3e6032c44076a3 | 81c8240cfeaab724b28b7554459405fb7703959d | refs/heads/master | 2023-04-17T06:39:03.636011 | 2021-04-21T07:05:18 | 2021-04-21T07:05:18 | 359,633,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | # geocoding.py: Geocodes addresses using Google Maps Geocoding API.
from typing import Tuple
import requests
# MapQuest geocoding API
API_ENDPOINT = "https://www.mapquestapi.com/geocoding/v1/address"
# Suffix for Seattle addresses
ADDRESS_SUFFIX = ", Seattle, WA"
class Geocoder:
"""
A MapQuest geocoder th... | [
"xyx0826@hotmail.com"
] | xyx0826@hotmail.com |
400d7622016fcfb492740dda163779cef6503a7d | 0912f9d024a2b1f256237f4c10c794b7afbdc7e2 | /sorts/selection/selection.py | 41587aede39c7ff32cbabe169ea126967e9f5611 | [] | no_license | aleksandragaworska/algorithms | 9f8a444dd60c72e5303454acc73f6a9c4bd63961 | 44aec20fa1d198f52d7f9df66e20d9ed4221345e | refs/heads/main | 2023-07-18T01:03:11.401202 | 2021-08-29T15:29:58 | 2021-08-29T15:29:58 | 399,578,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py |
def selection_sort_recursive(not_sorted):
not_sorted = not_sorted.copy()
def recursive_select(not_sorted, sorted_list):
if len(not_sorted) == 0:
return sorted_list
min_val = min(not_sorted)
sorted_list.append(min_val)
not_sorted.remove(min_val)
return recur... | [
"agaworska@cloudferro.com"
] | agaworska@cloudferro.com |
50a16c67461ce02e724913ae7d872f1247fe0fd7 | 07379959ff4df8b88adf9cadba3406a68247c658 | /src/rc_buttons.py | 926fac902e311d852252914a266fcd7b777b9b27 | [] | no_license | dargo600/ir-server | 212400f6598c8e0aa648eb4553b46f7bc1b1b6dc | f4234a41f6026e36229b607817526d6e15206ef9 | refs/heads/master | 2020-06-07T08:04:06.743609 | 2019-08-12T20:34:43 | 2019-08-12T20:34:43 | 192,968,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,685 | py | """
This is the rc buttons module and supports all the ReST actions for the
RC Buttons collection
"""
from flask import make_response, abort
from config import db
from models import RCButton, RCButtonSchema
def read_all():
"""
This function responds to a request for /api/rc_buttons
with the complete list... | [
"david.turgeon@gmail.com"
] | david.turgeon@gmail.com |
cc1b9a672163c2594baee1485636929c3ba41bf0 | 3955c3f367a3a60f8602dcb4609faec9898438bb | /graylog/apis/systemshutdown_api.py | 255334f55b57fe4bd65f0fe6abe937ca07111116 | [
"Apache-2.0"
] | permissive | MinhKMA/graylog.py | e89c34defa5422d59d0a501355058f5eb2dfe68c | 3118f4a49c91c2cbbd660523b0ab99e56fbfd861 | refs/heads/master | 2021-05-06T21:03:06.946509 | 2016-09-23T04:31:13 | 2016-09-23T04:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.1.1+01d50e5
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you m... | [
"on99@users.noreply.github.com"
] | on99@users.noreply.github.com |
1d0988a109e7416e5983d95d3000c5a379261685 | 6feff4f9560c6f78b2cf86256e301190657b4726 | /Problem 3_6.py | 57d14b512e983e07b2092eb552f334303626786d | [] | no_license | NebiyouSAbebe/Python-Programming. | 6f41fb6173476f1a3f22b3f8bc416e4632428c98 | 97102f16f92440e6d97c5ee212cad7123c59b1af | refs/heads/master | 2021-04-18T20:37:34.230657 | 2018-03-26T20:16:07 | 2018-03-26T20:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | #%%
"""
Problem 3_6:
Write a program (not just a function, but a stand alone program or script) that
reads through a file and writes another file that gives the length of each line
in the first file. If line is the line that you've read into your program, use
line.strip("\n") to strip away the invisible newline... | [
"noreply@github.com"
] | noreply@github.com |
fc8988a55bceef6e1ae0c856c3c021d96b304a03 | ac29c5a593d664ebfcc057cf689ade7ce6c8b3de | /practice/python/ABC180/C.py | 31e7dfba60563a25a73c083abbda44565bc21cf4 | [] | no_license | TakahiroSono/atcoder | 193c186078f3b7240bb630a242d2e339dc6e8d6a | da65bcbf6d11d8d6a4481a708d5e020779f43419 | refs/heads/master | 2023-05-31T15:32:46.732591 | 2021-06-13T11:15:20 | 2021-06-13T11:15:20 | 294,786,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | N = int(input())
ans = []
for i in range(1, int(N ** 0.5) + 1):
if N % i:
continue
else:
ans.append(i)
if i != N // i:
ans.append(N // i)
ans.sort()
print(*ans)
| [
"taka.sono889@gmail.com"
] | taka.sono889@gmail.com |
df61da301719a0bb3bd40237de169034740203a2 | 357eee1fcb340f828a24e988f459771cf1ace57a | /do_sum_proogramming_dud.py | 4f60173f1d4504e2252f6bde0c2249ab6c93b4c0 | [] | no_license | MoonRaccoon/CS101 | 85cfc8e47db2b57fce8c1031157189030e8d2129 | 147edc1b956233fbfcd35fed0ae8d924aeb62827 | refs/heads/master | 2020-05-31T19:19:36.485604 | 2014-10-11T01:47:10 | 2014-10-11T01:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | print 3 - 60
print "I am da best at meth"
| [
"shamoun723@gmail.com"
] | shamoun723@gmail.com |
039b5a5d6166730f71fa8dbae29bca022fb667b1 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/logging/metrics/delete.py | 0fce2d106ce17d119936f16b3a3b14351d2e6cd1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 1,918 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
77cfd36b65d609b44e3fa1b960fbfb54748bfadd | e9172452ed3777653ec7a4c7ef6d2269a2309a4c | /pandasRollingStats.py | 30244426f797b5c72c4db22f9f4bba209db9fc6a | [] | no_license | aiporre/QuinoaMarketForecast | ec7163ea52e7c63c34448c302d4539b96270a3dd | b76bf5380b930859392a7c6c46eade2464a94143 | refs/heads/master | 2021-09-24T09:20:13.704502 | 2016-10-03T06:51:14 | 2016-10-03T06:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py |
import pandas as pd
import quandl
import matplotlib.pyplot as plt
from matplotlib import style
style.use('fivethirtyeight')
def get_zinc_price():
api_key = open('data/myApiKey.txt', 'r').read()
gold = quandl.get('ODA/PZINC_USD', authtoken=api_key)
pd.DataFrame(gold).to_pickle('data/zinc.pickle')
def ge... | [
"ariel.iporre.rivas@gmail.com"
] | ariel.iporre.rivas@gmail.com |
fac205b61649966e510a8828aedfcc3387602619 | c3461b299c8fce34cc99d881631e0023dc95d465 | /Anurag/Database_Feature_Selection/databaseFeatureSelection.py | cb40afb53d939c537315b03a1acd3610e27bd100 | [] | no_license | RawatVimal/internship | 563c1743e41a852cc2be7b94a6c6b712f7baa7c0 | 5993828c654d8f1cdcbd5079569d40e74c6bf976 | refs/heads/main | 2023-05-07T11:09:36.271402 | 2021-05-31T20:34:02 | 2021-05-31T20:34:02 | 317,539,882 | 0 | 2 | null | 2021-05-31T20:34:03 | 2020-12-01T12:51:09 | Jupyter Notebook | UTF-8 | Python | false | false | 2,429 | py | import pandas as pd
from pandas import DataFrame
import requests
top_db_count = 20 # user can change the count to get that many top databases
#===========================getting database names ======================================
df_list = pd.read_html('https://db-engines.com/en/ranking') # this parses all the... | [
"joshianurag144@gmail.com"
] | joshianurag144@gmail.com |
ef4f04aa2147edecf62a633709bacc946ccb5d38 | 60c5173b2fd79afdff613ed980e718f8867015b0 | /15 clone project - blog/mysite/mysite/settings.py | 81be91b26c0f0b0b0e41a16484e93fc8f7544877 | [] | no_license | susan8213/Python-and-Django-Full-Stack-Web-Developer-Bootcamp | bc27e5127d80dfa826503950e475e07e1c868aa4 | 7ead38ec9dbbb60e2213e7ffa85e03293b80a08d | refs/heads/master | 2022-11-29T09:59:24.917236 | 2020-04-12T15:27:17 | 2020-04-12T15:27:17 | 228,852,519 | 0 | 0 | null | 2022-11-22T05:17:25 | 2019-12-18T14:03:51 | Python | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"susan8213@gmail.com"
] | susan8213@gmail.com |
f50a2e2610bbc7e0d8b231d6e7da88dcde121bc8 | 28829fc9f340a731da8a8b5d35dfc5e8c1e981fe | /tiler-deployment/tests/test_api.py | dae7f9e1813c83b31c435c5646a848787a8723d7 | [] | no_license | geohackweek/ghw2019_cog-pipeline | a6750ac23b8304066cbf9dfb3ab75b55d1d5168e | 2fbf15fd50568ca51af36f4ec6476076c5c7b19c | refs/heads/master | 2020-07-24T12:59:43.568979 | 2019-10-09T17:53:33 | 2019-10-09T17:53:33 | 207,936,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,958 | py | import os
import json
import base64
import pytest
import vector_tile_base
from tiler.api import APP
file_sar = os.path.join(os.path.dirname(__file__), "fixtures", "sar_cog.tif")
file_rgb = os.path.join(os.path.dirname(__file__), "fixtures", "rgb_cog.tif")
file_lidar = os.path.join(os.path.dirname(__file__), "fixture... | [
"aimee@developmentseed.org"
] | aimee@developmentseed.org |
71017150041135c6351523ec3d66b81fb131421f | 443c435416376df1cd0ebf9fa6544ebdb23ede57 | /cluster_hiercluster.py | 14584e5c44244358c2a52bbb987e98c2d2de7e89 | [] | no_license | yinchuandong/mycaffe | 2c73fb6d2946f4e702cad40d4f0c07fbbf6b33fe | 0a39c2c7fdd814319b1e5814507426654d02a9d8 | refs/heads/master | 2021-01-09T21:50:14.221839 | 2016-03-21T09:44:27 | 2016-03-21T09:44:27 | 54,076,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | import os
import sys
from PIL import Image
from PCV.clustering import hcluster
from matplotlib.pyplot import *
from numpy import *
# hierarchy clustering
def loadData(path):
imlist = [os.path.join(path, f) for f in os.listdir(path) if f.endswith('.jpg')]
imlist = imlist[0:100]
# extract feature vector (8 b... | [
"yincd520@sina.com"
] | yincd520@sina.com |
70e4497255159185bbd2c4946a1eb958f6f1520f | 4178f2916d2da72cbb45454fbed941dcfe8f6460 | /POM_test/TestCase/Detail_Profile/TC_005.py | a8f7d88a1374eb3444ef223474fdf03a291f71c2 | [] | no_license | maxcrup007/Selenium_Webdriver_Python | 15196cb04ba5cafdc5b776c26d167f0b48fb0e14 | 6be7f0b9f53df1ba592957029e8a4d22e409d1c4 | refs/heads/main | 2023-03-24T21:04:31.976451 | 2021-03-22T09:16:04 | 2021-03-22T09:16:04 | 349,379,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py |
# ทดสอบการเข้าใช้งานของ "ข้อมูลส่วนตัว"
import time
import unittest
import sys
from selenium import webdriver
from selenium.webdriver import ActionChains
from POM_test.login import *
from POM_test.profilePage import *
from POM_test.scrollbar import *
import os
sys.path.append(os.path.join(os.path.dirname(__file__... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
9b30be79b4640fc18d4b5a9fb2f16622061e4b49 | 650a431056d08d2ad431ef7ce88884089eadf884 | /backend/config/wsgi.py | 844432239f5a5cc2588f07a311e7a73eae85a283 | [
"MIT"
] | permissive | krish300/settle | ea36b514d5fcc652b94f6a7fcc400ff536bcfc4c | 9bd8863b54d342a9fe4fafb98397cf8be2620036 | refs/heads/master | 2023-08-04T07:38:37.499353 | 2023-08-02T09:02:05 | 2023-08-02T09:02:05 | 245,692,012 | 0 | 0 | MIT | 2023-08-02T09:02:07 | 2020-03-07T19:23:32 | Vue | UTF-8 | Python | false | false | 174 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
application = get_wsgi_application()
| [
"devlife404@gmail.com"
] | devlife404@gmail.com |
b8f80b76863b79a5fbe498e0238d5dbb929bfd6e | 74fb7288a3bfa7cd2a2e313cc66d631c95cd8d0f | /Practical2/ex4.py | 8c75b093d437ac7937c9df847667eb46e8c5d776 | [] | no_license | jacobwindsor/BIST_SDA_Practicals | 27ed24d293431edcbf7a261956f50fb49bda2119 | 6bce969050be830f3ade72ac559c9ff7dab98a84 | refs/heads/master | 2020-08-31T01:16:22.395792 | 2019-11-27T17:43:54 | 2019-11-27T17:43:54 | 218,543,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | import pandas as pd
import statsmodels as sm
import statsmodels.api as statsmodels
from statsmodels.formula.api import ols
from scipy import stats
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
from statsmodels.stats.multicomp import MultiComparison
from statsmodels.sandbox.stats.multicomp ... | [
"me@jcbwndsr.com"
] | me@jcbwndsr.com |
81a2e919b5687a4a574388dc21d4a0acf316a28e | 61047afc9ebe5f1e4ed0878322a95a1d4e6f71d6 | /test.py | 722a924e55c96ca760c8cb903cab603a5c44b36c | [] | no_license | wesclock777/nlpbuildteam | ce4776c18a403491d24c16c8e0d56363ef1c9b3e | f22b745fa8a3d579e1fe42e9ec41593969069e23 | refs/heads/master | 2020-03-07T02:23:18.307564 | 2018-03-28T22:57:39 | 2018-03-28T22:57:39 | 123,489,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import requests, json
url = "https://7etxwojv97.execute-api.us-east-1.amazonaws.com/prod/message"
auth_header = {'content-type': 'application/json'}
data = {
"to_number": "+15123630687",
"from_number": "+16284000095",
"message": "Hello from Python Requests Test to Prod!"
}
r = requests.post(url, data=json... | [
"wesleyklock@utexas.edu"
] | wesleyklock@utexas.edu |
f0a1c7bf4be3b747a196d83b4498c7e8d69d4a77 | f6e0014ba63fe7c01881420f03d2763a2695ac88 | /learning_logs/views.py | 99ce17e1e80068e277723ccf90ff44b6edaa4966 | [] | no_license | shaobinqiu/learning_log | ab857607decf57d70a05f046f58c260053955034 | da6bfc2a68c522224f03f18c59cf7c1c358ccc57 | refs/heads/master | 2021-07-11T05:17:17.049501 | 2017-10-15T03:39:31 | 2017-10-15T03:39:31 | 106,246,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect, Http404
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from .models import Topic, Entry
from .forms import TopicForm, EntryForm
def index(request):
"""学习笔记的主页"""
return ren... | [
"18814122627@163.com"
] | 18814122627@163.com |
ef02ad50203e98899613e15fe68a62ebf283e4ce | fed6c6bdb6276d195bc565e527c3f19369d22b74 | /selection_bias/bias_check/multi_pole_fit.py | 4baa664a7c606616ae4c495cdcb11ac8dcdde1f8 | [] | no_license | hekunlie/astrophy-research | edbe12d8dde83e0896e982f08b463fdcd3279bab | 7b2b7ada7e7421585e8993192f6111282c9cbb38 | refs/heads/master | 2021-11-15T05:08:51.271669 | 2021-11-13T08:53:33 | 2021-11-13T08:53:33 | 85,927,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,795 | py | import os
my_home = os.popen("echo $MYWORK_DIR").readlines()[0][:-1]
from sys import path, argv
path.append('%s/work/mylib/' % my_home)
import numpy
from mpi4py import MPI
import h5py
from plot_tool import Image_Plot
from Fourier_Quad import Fourier_Quad
import component_fit
comm = MPI.COMM_WORLD
rank = comm.Get_rank... | [
"hekun_lee@sjtu.edu.cn"
] | hekun_lee@sjtu.edu.cn |
c4553e8d45b0af5117b6476b2a45fc654ded335e | c83fe8dacbe9af4bb405432978ec72a53060d508 | /reg_app/migrations/0004_publish_userid.py | 5c64d81ff78619d3ae7d9a024a9c07ba16a77ff0 | [] | no_license | booksandbakes/Tamilan | 1dac0be8adc4dd8af6389048c131fa6cd8ce2068 | 1ed3287d1bbe252a3901257ff2599746bd54c808 | refs/heads/master | 2023-04-13T14:38:16.057816 | 2021-04-29T07:20:20 | 2021-04-29T07:20:20 | 283,239,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 3.0.6 on 2020-07-06 11:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reg_app', '0003_auto_20200706_1335'),
]
operations = [
migrations.AddField(
model_name='publish... | [
"nayaki12112000@gmail.com"
] | nayaki12112000@gmail.com |
2b08130501783bf2507f62e8914005d763912e39 | 5b56cab15932afae603b6530b29ab2f587a69247 | /apps/address/views.py | 825101db76e808b367dfe8c0fd62b8a2270aa20f | [] | no_license | PeterChain/simpleorgs | 409bdc625a1a34339597837af4ff39f6217d5c0c | 0ad694880c867fdda1048497f34784ce5afcdb89 | refs/heads/master | 2021-07-22T08:08:17.345988 | 2017-10-27T17:13:14 | 2017-10-27T17:13:14 | 103,066,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from django.urls import reverse
from django.views.generic import ListView
from .models import Address
class AddressBookListView(ListView):
"""
View class the address book
"""
template_name = 'address/book.html'
model = Address
| [
"pedroc25@msn.com"
] | pedroc25@msn.com |
f633f4a460c8e9563aa1a63e4baa49c7d1cef828 | 151349407fbf68ad184dac80f1928453e68c3841 | /PyEngine2/canvas_classes.py | 92ed4030a642fb8b4265b7e32d8e4319da5d2f9c | [] | no_license | klucly/PyEngine2 | 8fc5b59fcc7f12c24be25547cc29d8508cf17130 | 00ec995760fe73a36b63699581492e72f2159868 | refs/heads/master | 2021-02-27T17:32:12.248163 | 2020-08-18T09:39:21 | 2020-08-18T09:39:21 | 245,623,047 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,793 | py | try:
from PyEngine2.libs import BaseLibrary, math
from PyEngine2.default_classes import DEFAULT, DefaultCanvasObject
except ModuleNotFoundError:
from libs import BaseLibrary, math
from default_classes import DEFAULT, DefaultCanvasObject
class Sprite(DefaultCanvasObject):
def __init__(... | [
"noreply@github.com"
] | noreply@github.com |
7fd118190b92da15e2430f153afa61e73362b00f | ff49399bf418e7d3612155b0eb0139eb1c138d58 | /알고리즘/럭키스트레이트.py | fb28f24f11364d45f4b251a39f9ca5993e990922 | [] | no_license | KOHJeongHwan/TIL | c277efcf03545867aa2b4a7a68cc479839303ec3 | 83a23b97a3b5bc016820ff938f0c5669d26ede24 | refs/heads/master | 2023-03-01T04:31:44.464310 | 2021-02-11T17:25:15 | 2021-02-11T17:25:15 | 295,469,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | """
2021-01-27
123402
LUCKY
"""
n = input()
mid=int(len(n)/2)
left = n[:mid]
right = n[mid:]
L_cnt = 0
R_cnt = 0
for i in left:
L_cnt += int(i)
for i in right:
R_cnt += int(i)
if L_cnt == R_cnt:
print("LUCKY")
else:
print("READY") | [
"kohjohn96@naver.com"
] | kohjohn96@naver.com |
2a1e29bb5786850365a0cf5fca0e7f577085fec3 | 36e593943be060ca5ea74a3d45923aba422ad2c9 | /ThinkBayes/code/dungeons.py | 0df9ed07edd9dfe1089ba8c63d598987c192d448 | [] | no_license | xjr7670/book_practice | a73f79437262bb5e3b299933b7b1f7f662a157b5 | 5a562d76830faf78feec81bc11190b71eae3a799 | refs/heads/master | 2023-08-28T19:08:52.329127 | 2023-08-24T09:06:00 | 2023-08-24T09:06:00 | 101,477,574 | 3 | 1 | null | 2021-06-10T18:38:54 | 2017-08-26T09:56:02 | Python | UTF-8 | Python | false | false | 2,831 | py | """This file contains code for use with "Think Bayes",
by Allen B. Downey, available from greenteapress.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
import random
import thinkbayes
import thinkplot
FORMATS = ['pdf', 'eps', 'png']
class Die(thinkbayes.Pmf):
"""... | [
"xjr30226@126.com"
] | xjr30226@126.com |
9508085aae598fdc4bd2c1dcb0bb97913ef321f9 | 132c4b0643476a5cd1aa78874249cf6c7fde7314 | /tests.py | 05dd98bafc7b277fe35102a9ffe846dd13b886b6 | [] | no_license | fladi/ldif3 | 6aaedbd3b2578917a0d0832c10ee6cc642434f92 | 7b50593d4abd7da45687131ca0233af505d0b07d | refs/heads/master | 2021-01-21T20:22:35.307390 | 2015-05-22T21:31:15 | 2015-05-22T21:31:15 | 37,085,665 | 0 | 0 | null | 2015-06-08T18:42:42 | 2015-06-08T18:42:42 | null | UTF-8 | Python | false | false | 9,855 | py | from __future__ import unicode_literals
import unittest
try:
from unittest import mock
except ImportError:
import mock
from io import BytesIO
import ldif3
BYTES = b"""version: 1
dn: cn=Alice Alison,
mail=alicealison@example.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
cn: Al... | [
"tobias.bengfort@gmx.net"
] | tobias.bengfort@gmx.net |
e443cbc8cd162c6d41caeb459c2a65e30a9bd7ed | a276798900d6f99d0dc79b8e4e66c23973ede4a9 | /blog/migrations/0001_initial.py | aa37c65ebd521970f620498b0c36f5e75b07553b | [] | no_license | Mgarchuk/MyBlog | ad73a06e008f80644b33fba795eb601dead21754 | a2890a347ab4b56f1e703053840c1cdd1dddb5ba | refs/heads/main | 2023-03-07T07:03:32.991927 | 2021-02-24T22:14:07 | 2021-02-24T22:14:07 | 342,049,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | # Generated by Django 3.0.6 on 2020-05-27 16:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"mgarchuk6@gmail.com"
] | mgarchuk6@gmail.com |
9cdb76e81612b5b87a3078f6f2c985f285dbbe6e | be7a79f3c590f0923f1e793c6a36cfebd9ca4d01 | /brocolli/converter/onnx_layers/concat_func.py | 32b54e65699b614aff8c4d4dff1d7f195fd89e83 | [
"MIT"
] | permissive | inisis/brocolli | f255d44dc9148fd2b3bc82f6a21e429a579399b4 | 46a3d8c5e19e481746a9c8a85c5e9a71a49b846c | refs/heads/master | 2023-07-22T09:37:19.480983 | 2023-07-17T14:25:35 | 2023-07-17T14:25:35 | 168,733,444 | 326 | 72 | MIT | 2023-06-04T17:03:43 | 2019-02-01T17:17:22 | Python | UTF-8 | Python | false | false | 905 | py | from loguru import logger
from onnx import helper
from onnx import TensorProto as tp
from .base_layer import BaseLayer
class ConcatFunc(BaseLayer):
def __init__(self, source_node, module=None, auto_gen=True):
super(ConcatFunc, self).__init__(source_node, module, auto_gen)
def get_concat_attr(self):... | [
"desmond.yao@buaa.edu.cn"
] | desmond.yao@buaa.edu.cn |
6cc7f69539c01aef0778bf4e6cddfff154fb5d17 | a2e84ba873c640a8cb8825429e22f86c5236afb4 | /sktps/ps/sample_freeze_restore.py | 82beca23c5e127c423044ef0834aaad8bc1ddca3 | [
"Apache-2.0"
] | permissive | jclee81/sktacc | 6ad336c79824b8197a7e56e2826485018de9e633 | 6f601ce8f61b4e361b17773060ee2544bf35dbe4 | refs/heads/master | 2022-12-09T21:11:23.004557 | 2017-08-11T04:23:43 | 2017-08-11T04:23:43 | 99,192,008 | 2 | 0 | Apache-2.0 | 2022-12-07T23:56:29 | 2017-08-03T04:52:48 | Python | UTF-8 | Python | false | false | 2,126 | py | from __future__ import print_function
import tensorflow as tf
from tensorflow.core.framework import graph_pb2
from tensorflow.python.framework import graph_util
from tensorflow.python.framework import importer
from tensorflow.python.framework import ops
# from tensorflow.python.tools import freeze_graph
from util.log... | [
"sipqko@gmail.com"
] | sipqko@gmail.com |
a8abae70078496d721a757b3549329c99ce74a5b | 87dd09b1e96ab844d9c23f2cada966f6a642eed9 | /IFT6285-A2018-Charles-Ashby-Teo-Orthlieb/evaluation/model_eval.py | c742fb67ea4f7a388f71bb8cced0b89ec07894ec | [] | no_license | charlesashby/nlp_dev_1 | 6a42140660eae6f18f09f3b65fc17a6bb82d1927 | 61c0e13ab207f61a4ce2ab5b195168575dcc9241 | refs/heads/master | 2020-03-29T14:31:03.355269 | 2018-11-15T19:16:21 | 2018-11-15T19:16:21 | 150,021,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | import os
import sys
from evaluation.eval import evaluate, evaluatecrash, test
from evaluation.generate import generate
from models.ngram.ngram_tree_simple import NG_Tree_Simple
from models.ngram.ngram_tree_backoff import NG_Tree_Backoff
from models.ngram.ngram_regular import NG_Regular
# Holds the correct... | [
"charlesa.l@hotmail.com"
] | charlesa.l@hotmail.com |
20942c535dfee4650fc842453a3aeb4bd7d24a59 | 792b6242765b11ae8e6d94e8861ff81ea08cd871 | /Customer/admin.py | 601ede3a21901b6e92a9bccd088e717edd28e3d7 | [] | no_license | vivek-fulldev/spice | 33853763768f0d5aac47074cd054aa48cfc576a2 | 6dc1a3d393ec45ab661548537626af3152f8af14 | refs/heads/main | 2023-05-05T13:08:22.856494 | 2021-05-30T10:32:08 | 2021-05-30T10:32:08 | 372,184,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from django.contrib import admin
from datetime import datetime
from django.forms.utils import ErrorList
from Configuration.models import *
from Customer.models import CustomerProfile
from import_export.admin import ImportExportModelAdmin
def make_active(modeladmin, request, queryset):
queryset.update(active_status... | [
"vivek@ebetainnovations.com"
] | vivek@ebetainnovations.com |
83d88f0242e4c09fd74e8582094347562219cc8d | 1892324f7bcb2273543a5b08d5dbf8a101d67803 | /examples/blending_colors_2.py | be6181beeceee2d281f9d3d7ca3323c7cdb4a543 | [
"MIT"
] | permissive | byewokko/penrose | b5b5266585969d5528e2f04b0a985c150f492e2b | f339a6f0a2c9b0486f0b46a517bb9b8907c4be07 | refs/heads/master | 2023-02-21T11:51:29.732515 | 2020-12-24T23:33:11 | 2020-12-24T23:33:11 | 302,706,319 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import colorsys
import numpy as np
import multigrid
import ntiling
from drawing.pil_draw_simple import Draw
draw = Draw(scale=30, width=3*1280, height=3*1280, bg_color="#ffffff", color_mode="RGB")
draw.line_color = None
index_range = (-18, 18)
grid = multigrid.Pentagrid()
tiling_builder = ntiling.TilingBuilder(grid)
... | [
"byewokko@seznam.cz"
] | byewokko@seznam.cz |
10eb3ff34e111d759aa4124b34648aabc0a84e52 | 5febc7f6386fbe18e8788041c0f8f6be4aabe2af | /lenstronomy/LensModel/Profiles/shapelet_pot_polar.py | 3b22b7118cdf8bb86a63a8d3173136ac9a95197c | [
"MIT"
] | permissive | guoxiaowhu/lenstronomy | 2b3aa10d6c72061edfd179d773948a40d9c2014a | dcdfc61ce5351ac94565228c822f1c94392c1ad6 | refs/heads/master | 2020-04-05T08:10:34.836586 | 2018-11-06T18:34:52 | 2018-11-06T18:34:52 | 156,704,299 | 1 | 0 | MIT | 2018-11-08T12:33:00 | 2018-11-08T12:33:00 | null | UTF-8 | Python | false | false | 9,446 | py | __author__ = 'sibirrer'
# description of the polar shapelets in potential space
import numpy as np
import scipy.special
import math
import lenstronomy.Util.param_util as param_util
class PolarShapelets(object):
"""
this class contains the function and the derivatives of the Singular Isothermal Sphere
"... | [
"simon.birrer@pyhs.ethz.ch"
] | simon.birrer@pyhs.ethz.ch |
1893e38548a1fab8e0f39e6fce7e091246db8d68 | 9cc032fae9ef7c067fb2641da6cd8c2c7b5279d1 | /alien2.py | 94ad747054a59f022a89fb31bd65cbcd7750ac2a | [] | no_license | ursstaud/PCC-Basics | 5be4efa324f07d0f64a0c9bb39b57fb1b5ac83c3 | 036ec4976efb2d23945564cdd7ec61cd3ae0f373 | refs/heads/master | 2022-08-07T03:25:56.639987 | 2020-05-23T06:11:26 | 2020-05-23T06:11:26 | 266,267,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | alien_0 = {'x_position': 0, 'y_position': 25, 'speed': 'medium'}
print(f"Original position: {alien_0['x_position']}")
#move th alien to the right
#determine how far to move the alien based on its current speed
if alien_0['speed'] == 'slow':
x_increment = 1
elif alien_0['speed'] == 'medium':
x_increment = 2... | [
"noreply@github.com"
] | noreply@github.com |
a0a83028a3a6053fbf17d8665c12eeb4ad4e51ef | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /test/test_passwords_object.py | f302c422a7a0449e34de00837f7cdeffa116807f | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import con... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
9d4a67d6299821b89898ef186710b151e47a3692 | 89c0a9ca66aa1c7e5cdf2bf4bc1fb453d5b7832a | /Retrieval.py | fbdc5625e0464a5896be533296df01929ea5ba53 | [] | no_license | ARenomX/EuroFinance | 9d0a5d56ecc01dc52fbc840b30ae85d413b47fcd | c9abf9c2fd857af327d0b5e8e79942f62f8f0ee1 | refs/heads/master | 2021-01-05T19:54:45.642523 | 2020-02-25T10:41:46 | 2020-02-25T10:41:46 | 241,122,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # Data retrieval
import pandas_datareader.data as web
import yfinance as yf
def stock(stock,starts,ends):
#Retrieves stock closing values between start and end dates
return web.DataReader(stock, start = starts, end = ends ,
data_source='yahoo')['Close'].values
... | [
"56108524+ARenomX@users.noreply.github.com"
] | 56108524+ARenomX@users.noreply.github.com |
08f4778c0cbe11f6f0bdbfad4d498ba643ef669b | c88617c762f4620dde62fcefe6875dc247dbe3c3 | /solved/CheckIo2.py | 62b9888832860e2054c13e7a6329344f890392e2 | [] | no_license | alexe1ka/CheckIoSolutions | fd755f1431e56612cc5e0d2c5fdf39914254e3c9 | 36f26217265d95778e6a7aa1ee785480e911765f | refs/heads/master | 2021-03-30T20:43:31.632360 | 2018-05-14T22:05:10 | 2018-05-14T22:05:10 | 124,941,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import re
def say_hi(name, age):
return "Hi. My name is " + name + " and I'm " + str(age) + " years old"
#####################################################
def correct_sentence(text: str) -> str:
"""
returns a corrected sentence which starts with a capital letter
and ends with a dot.
... | [
"leshka_09@bk.ru"
] | leshka_09@bk.ru |
969ba7ae2cf7f49718fd98a7c15ee047084e9def | 710d04753e75bfcb3b011b45fe6cfebac73497ea | /timer.py | 696e8d63b0419364893ec97ab0c18dac7e49ab04 | [] | no_license | AlliAmbrose/ArtemisBots | c9e3b1d9d544a43513243334ee09c740651f2ef6 | 0082a416d4f248d5275f70b6070811ad5e680a89 | refs/heads/master | 2021-05-06T11:32:38.778755 | 2017-12-16T04:59:22 | 2017-12-16T04:59:22 | 114,296,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from Myro import*
import time
init("com4")
setForwardness("scribbler-forward")
def timer(t):
while t >= 0:
##print(t)
forward(1,1)
t = t-1
if t == 0:
turnBy(90)
forward(.5,1)
break
def followLine():
while True:
[l,r]=getLine()
... | [
"noreply@github.com"
] | noreply@github.com |
c8993adf076834d6a94ce21bf48e6a96c2f6d088 | c452914f5ee176ec0306d6b1cd8300f27f251d90 | /a_Python3.6Essentials/0.9 - working with numbers/working-with-numbers-02.py | 97b03895db29a55e1d66865f3fde5cefe1891160 | [] | no_license | cgmoganedi/PythonBasics | 201cccc40122cdda58cbe2a0b157768fe0f759df | e881f72514b6ed2c3427eaa79945f9d5e5073c0f | refs/heads/master | 2020-03-26T22:12:35.850508 | 2020-01-22T00:29:00 | 2020-01-22T00:29:00 | 145,440,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | #floats
a = 1.0
b = 2e2
print ("a = ", a, "b = ", b)
| [
"cgmoganedi@gmail.com"
] | cgmoganedi@gmail.com |
7bb7a1b5c5952f038f77e6f02148dddc3d85693b | 6323dcaac51889d4a490efbe04c348f993dab89a | /generator/views.py | bcfdc61213db7979d9c8a06801a7fe97f7acec8a | [] | no_license | Kingghost0519/PassGen | 6d9bffdbf319dc2d82c7fa8a0a4213e31f511041 | 0a5b2095256684031ac220b5b034c436ed772295 | refs/heads/master | 2022-06-17T22:08:07.918912 | 2020-05-08T19:11:19 | 2020-05-08T19:11:19 | 262,291,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from django.shortcuts import render
from django.http import HttpResponse
import random
# Create your views here.
def home(request):
return render(request, 'generator/home.html')
def about(request):
return render(request, 'generator/about.html')
def password(request):
characters = list('abcdefghijklmnopqr... | [
"kingghostsh@gmail.com"
] | kingghostsh@gmail.com |
11a15bc4a6c19b4e324aab79401dcb1d0b247012 | cf904ac377911e2f826455d6a2a26e3c954fe191 | /chat2seq.py | 37ffaf4c64c123b35184f46ec8f5ad7e8814ba36 | [
"Apache-2.0"
] | permissive | arhumzafar/seq2chat | 07362ad390e338b7e30bbaf7fadbb169ab12a895 | 1ce793691dab5b400b1b1b5cf7db51a180f9d2b3 | refs/heads/main | 2023-07-13T07:57:27.699905 | 2021-08-22T16:35:53 | 2021-08-22T16:35:53 | 398,099,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | # Arhum Zafar
"""
import watermark
watermark -a -t -d
"""
from tensorflow.keras.models import load_model, Model
from tensorflow.keras.layers import Input, Concatenate
import tensorflow as tf
import os
from tensorflow.python.keras.layers import Layer
from tensorflow.python.keras import backend as K
import pickle
imp... | [
"arhum10@yahoo.com"
] | arhum10@yahoo.com |
cf73b2cdd146109296beefc05d7bab706ede4929 | d8b8ff78310d874434d58dc36b452149c0ffcf09 | /dictionary5.py | b377b6e36711e52e15e302a314a4219f13e49830 | [] | no_license | Manas2909/Python-Stuff | 6133a14cc1539feac6e5f6bb67d2184ad2c0f0e8 | c222c76b977e4499d9d906e15e56143a1b967574 | refs/heads/master | 2020-09-15T04:01:17.208827 | 2019-12-03T07:27:25 | 2019-12-03T07:27:25 | 223,343,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 26 13:35:10 2019
@author: Manas
"""
num_key=int(input("enter total number of keys"))
d=dict()
for i in range(1,num_key+1) :
key=int(input("enter key "))
value=input("enter values ")
d[key]=value
print(d)
largest=0
for i in d.... | [
"noreply@github.com"
] | noreply@github.com |
f510be9f877cf397ceb2bf6817365f456d8d5106 | 6490638f15a2dfbe0cec9725186f9784d57c92f0 | /SCOS/__init__.py | a6e179ad6b3b0a273223cde1aa960d4a7e93d834 | [
"MIT"
] | permissive | khawatkom/SpacePyLibrary | af9c490ef796b9d37a13298c41df1fb5bf6b3cee | c94415e9d85519f345fc56938198ac2537c0c6d0 | refs/heads/master | 2020-05-14T21:52:39.388979 | 2019-04-17T17:06:04 | 2019-04-17T17:06:04 | 181,970,668 | 1 | 0 | null | 2019-04-17T21:26:44 | 2019-04-17T21:26:44 | null | UTF-8 | Python | false | false | 1,145 | py | #******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redistribute it and/or *
... | [
"korner-hajek@gmx.at"
] | korner-hajek@gmx.at |
7db291f72352b9ac3132ffa7526c7298011977a9 | aeb98195376b048127cab333398124da5981f07e | /pavement.py | 6daaec062384625c6bbe8b350e6836d8fc302942 | [] | no_license | tchenuag/csppython | 928baad5890d174053392663ad7ac2193953a32b | aae18129d41709085d51951a67bb13809723a044 | refs/heads/master | 2021-01-18T03:16:58.628518 | 2016-04-30T20:28:46 | 2016-04-30T20:28:46 | 68,535,412 | 0 | 0 | null | 2016-09-18T17:09:23 | 2016-09-18T17:09:23 | null | UTF-8 | Python | false | false | 1,075 | py | import paver
from paver.easy import *
import paver.setuputils
paver.setuputils.install_distutils_tasks()
import os, sys
from sphinxcontrib import paverutils
sys.path.append(os.getcwd())
home_dir = os.getcwd()
master_url = 'http://127.0.0.1:8000'
master_app = 'runestone'
serving_dir = "./build/csppython"
dest = "../.... | [
"timmy.i.chen@gmail.com"
] | timmy.i.chen@gmail.com |
2526646d885e61e524121648c742613bef3af8ee | 29d0a088e1bd92c4f383d0515e14249892798261 | /diemthpt2021/middlewares.py | b5bea5aaebbe85968407f1935f8522998868b244 | [] | no_license | bang98ptit/thpt2021 | 7413aa33852f3e692afb7c28b0940b1604984c97 | 5cf1bcd0471f612c1286d6655167f3fb777737a9 | refs/heads/master | 2023-08-21T11:04:22.875350 | 2021-11-01T09:27:52 | 2021-11-01T09:27:52 | 422,858,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class Diemthpt2021SpiderMiddleware:
# Not all methods need to be defined. If a method is not defined,
# scrapy ac... | [
"bang98ptit@gmail.com"
] | bang98ptit@gmail.com |
8bdf85ae22c647c63942ba7386de93b7ac56216a | 41a0e73f70c763396afb9448ff599dc5daefbc04 | /Main.py | a8b87da2fccc7685dd3c45c44f7b829d453232fc | [] | no_license | astroboi-SH-KWON/get_guide_fr_R1_barcode_fr_R2_then_check_Guide_Barcode_pairs | caf0bea9e24f6e6919fcad5e6d31f22d2fc40c67 | a71703c21fc819abfc7c2e3f3d90501292eea650 | refs/heads/master | 2022-11-30T16:39:56.148002 | 2020-08-03T08:35:33 | 2020-08-03T08:35:33 | 284,590,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import time
import os
import Util
import LogicPrep
import Logic
############### start to set env ###############
# WORK_DIR = os.getcwd() + "/"
WORK_DIR = "D:/000_WORK/KimNahye/20200803/WORK_DIR/"
PROJECT_NAME = WORK_DIR.split("/")[-2]
INPUT = "input/"
OUTPUT = "output/"
FASTQ = "NGS_READ/"
Guide_barcode = "Guide_bar... | [
"terry007x@korea.ac.kr"
] | terry007x@korea.ac.kr |
a00977ae7b9fc224137b8000972d35669de9010e | 15bf2e6a831bfe9215a81d25def26187c49bf2ca | /AESCipher.py | 8f6ab9bc7940304e4c02b50261e5e597561b0d89 | [] | no_license | dvopsway/csv_encrypt | a832f5484a073ce9598a3660f80c1e599dfe406b | aa8676f593bd108b9c692e9b482d5cd7fa3a64ba | refs/heads/master | 2021-01-17T18:16:03.475242 | 2018-08-28T08:38:23 | 2018-08-28T08:38:23 | 37,268,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | import base64
import hashlib
from Crypto.Cipher import AES
from Crypto import Random
class AESCipher(object):
def __init__(self, key):
self.bs = 32
self.key = hashlib.sha256(key.encode()).digest()
def encrypt(self, raw):
raw = self._pad(raw)
iv = Random.new().read(AES.block_si... | [
"padmakarojha@gmail.com"
] | padmakarojha@gmail.com |
37e3d7c64cf6e4b0c8868b0f9292d97c967c4294 | 6036b23309c2b4c74c8bac64b05ba1ed3d052bff | /app.py | 48c4e91031b3a178573482b0aa0dff61bbf27cdf | [] | no_license | juvanthomas/whatsap | f1e1e5e2979fc7562c56f0e844c7dddb87d36c98 | 56c6d40923d153beb6235467a564b2ace29a227f | refs/heads/main | 2023-08-24T04:24:37.127743 | 2021-10-18T11:50:02 | 2021-10-18T11:50:02 | 417,138,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,792 | py | from flask import Flask, request
from twilio.twiml.messaging_response import Body, Media, Message, MessagingResponse
import requests
import uuid
from flask import send_file
# data of the url of views
dashboard_urls = {
'promotion': "https://ask.beinex.com//api/3.9/sites/908f81e2-cb30-43a2-a7d0-461879aa9016/views/... | [
"noreply@github.com"
] | noreply@github.com |
987de59ca525a3d629142cda7edaf824dcbc5083 | d238ec65e3e008cc269a92d0c0bc9388248bce58 | /creature_spawning/spawn_creature_test.py | dfdd2b6e0d75f13131bffce3173f3eb955c305b3 | [] | no_license | rwill128/evo-sim-cuda-python | e9b5dc26d701b1a893350f089490fde69bd5ad0e | c83ef18149f392986b9ae3a2a08e232e59cdb83f | refs/heads/master | 2023-01-21T11:27:11.341990 | 2020-11-25T20:24:20 | 2020-11-25T20:24:20 | 304,350,049 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | import unittest
class SpawnCreatureTest(unittest.TestCase):
def test_something(self):
self.assertEqual(True, False)
if __name__ == '__main__':
unittest.main()
| [
"rwilliams@casenetllc.com"
] | rwilliams@casenetllc.com |
4223e6af16f292854ac2a9c6c4fcd62bc5aaab47 | 90bb39887282a5e7d9c3c8f47f2c4e3d2c56604b | /graphapi/utils.py | 4e048d7fb65542d714a05fa41eacceb29c5f547c | [] | no_license | ashoksiri/facebookapi | d4f85b6e9cb1369c6f0ab83da7f3db9d66dfc5f3 | 641aa407abe63e15fece1f7ba91391f4a33371bf | refs/heads/master | 2022-12-14T16:27:15.909345 | 2017-11-03T15:05:49 | 2017-11-03T15:05:49 | 109,138,857 | 0 | 0 | null | 2022-12-08T00:38:30 | 2017-11-01T14:04:57 | Python | UTF-8 | Python | false | false | 2,127 | py | import six
import datetime
from decimal import Decimal
_PROTECTED_TYPES = six.integer_types + (
type(None), float, Decimal, datetime.datetime, datetime.date, datetime.time
)
def is_protected_type(obj):
"""Determine if the object instance is of a protected type.
Objects of protected types are preserved a... | [
"ashok@msr-it.com"
] | ashok@msr-it.com |
5231b1176e669d8aa95fff862a57be460421e78e | ae2695f60480aa9dbe2acf68309d7918b67c6954 | /alembic/versions/aca6937e73_committee_summary_te.py | d71879fcec60efa04167e13acbb5c7c1a6ddbb46 | [
"MIT"
] | permissive | mgax/mptracker | 0853dd11a7b15bce8d535eb86f65c1e37596a4e6 | e8d3c489aed36c70f81e89626f02e735e5890435 | refs/heads/master | 2023-02-22T03:53:26.481927 | 2020-08-19T09:25:58 | 2020-08-19T09:25:58 | 11,983,896 | 4 | 6 | MIT | 2023-02-02T07:16:26 | 2013-08-08T18:52:45 | Python | UTF-8 | Python | false | false | 278 | py | revision = 'aca6937e73'
down_revision = '58f2cb9046f'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('committee_summary',
sa.Column('text', sa.Text(), nullable=True))
def downgrade():
op.drop_column('committee_summary', 'text')
| [
"alex@grep.ro"
] | alex@grep.ro |
e4ce7e967120ec413c360cfb38e9419d4965a57c | 5abf069ff84cb7ea465069c258c144460649da35 | /desktop/toolkit/qscintilla2/actions.py | 813c39c4e18bf77a3179ae66180e0b5080e6f9a0 | [] | no_license | poyraz76/Packages-Systemd | 7628cf6f6a8808f8766735551956e3dd8da9a2a9 | a515ea0275dc0d8ec38fb6eaacc85904dde9f286 | refs/heads/master | 2021-01-09T05:51:48.542336 | 2017-02-04T10:25:22 | 2017-02-04T10:25:22 | 80,849,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pi... | [
"ergunsalman@hotmail.com"
] | ergunsalman@hotmail.com |
47c23f65420d56807a4e91bb39696a8fc37c5d88 | 703fc4b6cce01eee98c0604a275574d2925f92ef | /cpe101/homework4/data.py | 5ce2acc0610ee763b203d6a406dee7e2ecd41633 | [] | no_license | aleksvetushko/C-l-P-ly | f020c4e65cd05fd3d57c133828a2916ab5778f99 | 879a3bd2905613abea4773a371e783a6c35fce91 | refs/heads/master | 2021-01-25T06:24:25.981493 | 2017-06-12T23:26:49 | 2017-06-12T23:26:49 | 93,557,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | import utility
class Point:
def __eq__(self, other):
if utility.epsilon_equal(self.x, other.x, epsilon=0.00001) and utility.epsilon_equal(self.y, other.y, epsilon=0.00001) and utility.epsilon_equal(self.z, other.z, epsilon=0.00001):
return True
def __init__(self, x, y, z):
self.x = x
s... | [
"alexvetushko@icloud.com"
] | alexvetushko@icloud.com |
bcc0cf6b29a4efd04c84ec9f456335e0199607db | d580371108f0b60e675ab61d1b7cea856eab7540 | /MaMomeDashboard/venv/bin/jupyter-trust | 61652ad4053080b2fd18ce9af2b164b704828693 | [] | no_license | lynetteshaw/MaMome_summarize | a2b2419a5b9f6fbbc5d04ff1a221877b15c03964 | dc24b4416bc0b494ce4ad1dcc5dcdbd8dbfb9e76 | refs/heads/master | 2023-01-01T23:02:29.556193 | 2020-10-27T05:07:41 | 2020-10-27T05:07:41 | 300,387,668 | 0 | 2 | null | 2022-12-20T22:39:57 | 2020-10-01T18:43:50 | Python | UTF-8 | Python | false | false | 314 | #!/home/shawla/Documents/GitHub/MaMome_summarize/MaMomeDashboard/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from nbformat.sign import TrustNotebookApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(TrustNotebookApp.launch_instance())
| [
"alt.shawla@gmail.com"
] | alt.shawla@gmail.com | |
d7c281e7d4a49c4396ef1c0d09009eb8a3e8b47f | 5cccd576070ec78f254bd3d1dff774a96d21fce5 | /app/user/tests/test_user_api.py | 7db5dff838423e456fc7dfe3a5efdb9d81a1fd3b | [
"MIT"
] | permissive | astepe/recipe-app-api | 14a2461bebf22dd0594668a33369ce6696537765 | 0f277fe7d7c06039faf7838dc24b646b07fbf708 | refs/heads/master | 2020-05-15T14:24:44.275854 | 2019-05-28T16:32:20 | 2019-05-28T16:32:20 | 182,335,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,317 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
# test framework for making requests to our api and check responses
from rest_framework.test import APIClient
# contains status codes in human-readable format
from rest_framework import status
# constant ... | [
"arisstepe@gmail.com"
] | arisstepe@gmail.com |
bb0064bac911eeca385697eb7bb59e527553579f | 14522f0116c5b74c115a4193f92976f4bb5c5c09 | /Python/Combinatorial Search/Programming Selection/prog.py | cc2b3e49202bbb0d56feffb27160bae07df6dbd8 | [] | no_license | Lykaos/Programming-Under-Pressure | c7099b0113ee2d9b9cc543eaad6b3bb547a3757b | a205c236567a181dc2e833073afc48c8e826d7aa | refs/heads/master | 2020-06-03T20:55:46.644753 | 2019-06-13T09:22:12 | 2019-06-13T09:22:12 | 191,727,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | ############################################################
# #
# DD2458 Problem Solving and Programming Under Pressure #
# Hw 9 - Programming Selection #
# Eduardo Rodes Pastor (9406031931) #
# ... | [
"dragon11_r@hotmail.com"
] | dragon11_r@hotmail.com |
457511baa39c93fcb58cbf7a167deb248fbf97f0 | 8deef5778d0104682d9e1c25d5ef8fc9a2e63feb | /PyInstaller/hooks/hook-h5py.py | 449c848a3ec3624f6dc9d192bc3d65a5ea3ac1ff | [
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Weeeendi/Picture2Text | a2715a9c0f2d4749eab4768dea16f9720567557e | 1919d99327b4360291b111fc8c122fffdce7ccc5 | refs/heads/master | 2022-07-03T06:30:55.664995 | 2022-06-03T13:01:35 | 2022-06-03T13:01:35 | 195,062,567 | 0 | 3 | MIT | 2022-06-03T13:01:36 | 2019-07-03T13:47:27 | Python | UTF-8 | Python | false | false | 535 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2013-2018, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this s... | [
"wendi1078771091@gmail.com"
] | wendi1078771091@gmail.com |
8379d136bb7ffb1733dc7ce6e2af8e4a941d0241 | a30591ba0a14c905f28c10a7d64aa2e05ff7ed25 | /howdoi/practice.py | b57e435df9a5e4760ce4eaf4d71bcbd0da0ff507 | [] | no_license | oceanumeric/Reading_Great_Code | 21f97f9a7038349efe80c334a2393e4e369a1a08 | 2e879888ca3d0bcfe46cafea34e3777a34385068 | refs/heads/main | 2023-08-07T20:22:12.204386 | 2021-09-22T16:42:53 | 2021-09-22T16:42:53 | 403,096,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | import logging
import os
import requests
import sys
from urllib.request import getproxies
from urllib.parse import quote as url_quote
BOLD = '\033[1m'
GREEN = '\033[92m'
RED = '\033[91m'
UNDERLINE = '\033[4m'
END_FORMAT = '\033[0m' # append to string to end text formatting.
USER_AGENTS = ('Mozilla/5.0 (Macintosh; ... | [
"numerical.ocean@gmail.com"
] | numerical.ocean@gmail.com |
a46e60ebdf24c5dc1a7a082a563e503deea9c428 | 9977e4a5cb94760b380bd0de0faab9c04a3d94db | /examples/plot_simulation2d.py | 84f7ae9dcd7f6be0d65082772180cb538387b9ec | [] | no_license | vishalbelsare/mtw | 82e76826f1382b9602eadad835a9b6355923505c | e15e918774bb5b1e020c5b87572004a552eb571e | refs/heads/master | 2022-11-28T18:57:55.045921 | 2019-08-07T21:55:16 | 2019-08-07T21:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | """
====================
MTW synthetic images
====================
This example generates 3 synthetic sparse images (as regression coefficients)
which are fed to random gaussian matrices X. Increasing the Wasserstein
hyperparameter increases consistency across regression coefficients.
"""
import numpy as np
import ma... | [
"hicham.janati@inria.fr"
] | hicham.janati@inria.fr |
8e75b88201a1a9c29a76c8dbb9c96749e65847cc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenAppOpenidBatchqueryResponse.py | 852a2cc617b5cca9294234c0928fbc32c01da61e | [
"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 | 1,574 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.OpenIdValue import OpenIdValue
class AlipayOpenAppOpenidBatchqueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenAppOpenidBatchqueryRespon... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
0bd8731be622f07deac0afac701ca77b88318204 | 53d85f09655e2e9ebc8df1efe5db3854eb3826c8 | /epcnn/epcnn_alerts.py | e9fe176514a4588dd75ffed720503817e2b982b0 | [] | no_license | LinZou2018/reptile | 403353fec6be1fb2d8063f45dc0061d7a22df170 | 1ca08ef2db164af1413fd1d9f72bba87851c28ef | refs/heads/master | 2020-03-25T06:35:19.665704 | 2018-09-18T08:34:16 | 2018-09-18T08:34:16 | 143,511,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | import re
import headers
import requests
from lxml import etree
from error_document import mistake
from mongodb_news import storageDatabase, rechecking
def storage(number, title, author, timeout, source, texts, label, classify, statement, img):
dicts = {
"_id": number,
"title": title,
"aut... | [
"Zou_Lin_1341@163.com"
] | Zou_Lin_1341@163.com |
5e39eb8955dc1dd950f8be5ec30e52c4a34ae3a7 | b5e253dfaf85ce5c8d449976785d33dafe379e14 | /python/triangle/triangle.py | a68bbcc33a9a08398467e68cc1c3ec109e5e39f2 | [] | no_license | JaydevSR/exercism.io | c18d41c0bb7b5877a42840c427667023050fcd9c | 5d319d4cdac2265c0423f1170887058dfdd0422a | refs/heads/master | 2023-05-29T08:00:17.420386 | 2021-06-06T06:26:34 | 2021-06-06T06:26:34 | 274,627,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | def equilateral(sides):
return congruity(sides) == 1
def isosceles(sides):
return congruity(sides) in (1,2)
def scalene(sides):
return congruity(sides) == 3
# Helper
def congruity(sides:list):
sides.sort()
side_set = set(sides)
is_valid = sides[0] + sides[1] > sides[2]
if len(side_set) in... | [
"jaydevsr7701@gmail.com"
] | jaydevsr7701@gmail.com |
3cab6450b02dc38ade17099a750607d0f894bdac | f856ad2e96263a38a6c717eca995f8a3f66b3f2f | /tools/blade/src/blade/configparse.py | 990831306a2c5afb20c271405663fa07f004250c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | xiake-1024/Pebble | befaee5868905fb804c50d895e80d3489d464200 | 283310f67f5b30adaed5a21df97f706560b3617f | refs/heads/master | 2022-12-09T14:24:51.785830 | 2020-09-26T03:05:05 | 2020-09-26T03:05:05 | 296,327,254 | 0 | 0 | NOASSERTION | 2020-09-17T13:00:05 | 2020-09-17T13:00:04 | null | UTF-8 | Python | false | false | 8,253 | py | """
This is the configuration parse module which parses
the BLADE_ROOT as a configuration file.
"""
import os
import sys
import traceback
import console
from blade_util import var_to_list
from cc_targets import HEAP_CHECK_VALUES
# Global config object
blade_config = None
def config_items(**kwargs):
"""Used ... | [
"chexiongsheng@qq.com"
] | chexiongsheng@qq.com |
578c603c700507c4432334a4b884cf285d91ef14 | c956a50ecbfa9afa4ece21384c499bef0f95d503 | /VideoInfo/asgi.py | f50a42af787471e61d9829cd5d6020adf62928bc | [] | no_license | RenZihou/VideoInfo | 4bf3460f9f91676e9cdf1cab8924ae27c6d0faed | 6a3272108f459554b2c7c514506ed26d43c4d04b | refs/heads/main | 2023-07-25T18:21:31.841003 | 2021-09-07T08:02:21 | 2021-09-07T08:02:21 | 401,346,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for VideoInfo project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"renzihou.bj@gmail.com"
] | renzihou.bj@gmail.com |
e88e9f76f48b5d5cb02126cb89512c89157825a7 | c515560b515019d984dca3dfb65e292d0741369e | /apprest/migrations/0001_auto_20190123_1156.py | 6aef802cfedc1e494c05f4c301d5d6a1297fbf80 | [
"MIT"
] | permissive | Calipsoplus/calipsoplus-backend | 37ec443b9947b6e496434efca7ecbb29bfc43b53 | 3f6b034f16668bc154b0f4b759ed62b055f41647 | refs/heads/develop | 2022-12-11T23:29:53.143566 | 2020-09-09T09:13:09 | 2020-09-09T09:13:09 | 153,811,662 | 4 | 10 | MIT | 2022-12-08T02:26:16 | 2018-10-19T16:27:31 | Python | UTF-8 | Python | false | false | 546 | py | # Generated by Django 2.0.2 on 2019-01-23 11:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('apprest', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='calipsoexperiment',
old_name='serial_number'... | [
"acampsm@cells.es"
] | acampsm@cells.es |
18e94dc2803689c51398a27a1ee6c5b57c7d566c | 9ee54d71d4648b10c9c66d53a29a891c4a035390 | /src/portfolio/blog/apps.py | 3f45c6e25f55ab7deb7424494a70d91f32cc364a | [] | no_license | saurav389/portfolio | 4913625ea734b01fc6cbc15ccc6c482a0750ed9d | 5d9e2484155335519af1d8c85734354d4530f15a | refs/heads/master | 2023-06-20T20:55:42.905580 | 2021-07-21T16:41:11 | 2021-07-21T16:41:11 | 385,015,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'blog'
# def ready(self):
# import users.signals
| [
"sauravkumar5star@gmail.com"
] | sauravkumar5star@gmail.com |
f5a4640726561393b9f539c6d0b0824e4756d89f | 2e152e7b1da721ffb9c001db805455f78bcdbd3e | /code/删除链表的倒数第N个节点.py | 7a584c840a028df016aba31a946ccf3c3852cf59 | [] | no_license | fxyan/data-structure | ecb092f17464e4e272035358c8016528f4430374 | aa2088aac635625cd61b7250387dedf584826257 | refs/heads/master | 2020-03-27T03:20:32.571375 | 2019-05-06T07:14:35 | 2019-05-06T07:14:35 | 145,855,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | """
给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。
解法 设置一个key,遍历链表每次k-1如果k>0那么说明没有要删除的节点
如果k <= 0 那么从新遍历链表每次k+1找到k=0的节点就是要删除的节点
"""
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def removeNthFromEnd(self, head, n: int):
... | [
"1350821504@qq.com"
] | 1350821504@qq.com |
1a310d12e5d6aca3b58eccea94976393c70dcc33 | 836d5f7190f6b4503e758c87c71598f18fdfce14 | /2-Veri-Tipleri-ve-Değişkenler/Float-Veri-Tipi.py | e16df4bfbc907194105af1f6be9ca54d54325f37 | [] | no_license | S-Oktay-Bicici/PYTHON-PROGRAMMING | cf452723fd3e7e8ec2aadc7980208d747c502e9a | 22e864f89544249d6309d6f4570a4104bf47346b | refs/heads/main | 2021-11-30T00:19:21.158084 | 2021-11-16T15:44:29 | 2021-11-16T15:44:29 | 316,716,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | a = 3.5
print(a)
print(type(a))
b = 2.1
print(b)
print(type(b))
d = 3
print(d)
print(type(d))
z = 3.0
print(z)
print(type(z))
t = 10/5
print(t)
print(type(t))
# // işlemi ile float çıkacak sonucu integer hale getiriyoruz
t = 10//5
print(t)
print(type(t))
#işlem gören sayılardan biri float ise sonuç da float olur
... | [
"noreply@github.com"
] | noreply@github.com |
db5be71bb1edca1717adeff59eaa6b2e222facf3 | 0588f17dc28db5a32d5b6a502693d732bb2f962d | /Recursion/turtles_first.py | 36d2bc40f975da2ceed13c54d648a5d647b7167e | [] | no_license | drsjb80/CS2inPython | 012a9e6f939480b0670c7be54d6c7efcad0539b7 | 8240d81b8b6c3e6517006545b544e2e42d52ec76 | refs/heads/master | 2020-04-06T21:57:13.872523 | 2018-06-30T00:10:30 | 2018-06-30T00:10:30 | 50,789,214 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from __future__ import print_function
def how_many_turtles(level):
if 1 == level: return 4
hmt = how_many_turtles(level-1)
return hmt * 4
print (how_many_turtles(1))
print (how_many_turtles(2))
print (how_many_turtles(10))
| [
"drsjb80@gmail.com"
] | drsjb80@gmail.com |
dcba46ce4d521117daba7969c01cc4d44dbe4026 | b7a0ae80f296f0a337014e6f5e345807315fe4fc | /auction/migrations/0004_auto_20180315_1715.py | cf3e4d0c5f211bac5c123cc105b5329ae988a8c0 | [] | no_license | RODJER200586/auction | 3f3b698c6e166c0d92e49af0add62f892482c44f | 1c838eaac21e6412f33881f43a5416d75bd4a9f1 | refs/heads/master | 2022-12-13T01:29:48.173803 | 2018-03-18T06:54:47 | 2018-03-18T06:54:47 | 123,966,908 | 0 | 0 | null | 2022-12-08T00:55:25 | 2018-03-05T19:18:22 | HTML | UTF-8 | Python | false | false | 2,329 | py | # Generated by Django 2.0.2 on 2018-03-15 17:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auction', '0003_auto_20180314_1053'),
]
operations = [
migrations.AlterMod... | [
"rodjer200586@gmail.com"
] | rodjer200586@gmail.com |
c7719ed1ad900b90c84ac39a07805bc5a3df9dd5 | f89ae5f9815ef65e10231a22b15594e50ba4a68f | /venv/bin/pip3.7 | e5e2534a0743af0a91725cbf1dac3c7ea7e6a458 | [] | no_license | shilpahosur25/Weather_App | 92acfd9e11042241516e7b14b8cc835ecb183b64 | 15a8ca5a77a3b52ca4afe7c2aad3191faaeb0f54 | refs/heads/master | 2022-12-17T16:56:09.560363 | 2019-06-16T20:39:22 | 2019-06-16T20:39:22 | 192,234,462 | 0 | 0 | null | 2022-12-08T05:16:27 | 2019-06-16T20:34:49 | Python | UTF-8 | Python | false | false | 410 | 7 | #!/Users/shima/PycharmProjects/sh_weather/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"shilpahosur25@gmail.com"
] | shilpahosur25@gmail.com |
6fa613cc5ab6c61f64fdbdea15ce0918990aa03f | 20007cbd0280251d21f70bf1f0edbb776a81b438 | /starbucks/starbucks/settings.py | 2e3bd9b0c24748d00307ca3437d6b77b82030260 | [
"MIT"
] | permissive | Zhaominxin/MyProject | c2af53449efdac9343850635780a7cf4731b0d13 | cb0156a3379724a8d3ed8d6d742fd6969250bf39 | refs/heads/master | 2021-01-01T19:05:54.307040 | 2018-07-17T14:14:25 | 2018-07-17T14:14:25 | 98,508,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | # -*- coding: utf-8 -*-
# Scrapy settings for starbucks project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/late... | [
"343428523@qq.com"
] | 343428523@qq.com |
f67d4b03a9a181a346b2a8fdaaed22e022001e21 | 107b555b0021b300975053eb630458763ae463cc | /Dietmanager/settings.py | ca89016b7da73883f3a0254ba852fd983f7302eb | [] | no_license | GTytoniak/dietmanager | 096f11322160484ea5c7b235b7176f92675329d2 | a09a1916c1a8f0b248dbee86153d9f6ba5a502d1 | refs/heads/master | 2021-01-15T19:59:53.716794 | 2017-08-09T17:50:28 | 2017-08-09T17:50:28 | 99,837,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | """
Django settings for Dietmanager project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"tyto@poczta.onet.pl"
] | tyto@poczta.onet.pl |
058fc6c307680b8132797732d1c2935f208e2cff | 71e43068e82c91acbb3849169d1723f1375ac27f | /test/test_login_params.py | c5ace7940a02f5cf97942e6a18680162679dbcb8 | [
"MIT"
] | permissive | talon-one/talon_one.py | aa08a1dbddd8ea324846ae022e43d441c57028f6 | 917dffb010e3d3e2f841be9cccba5bba1ea6c5c3 | refs/heads/master | 2023-05-11T18:50:00.041890 | 2023-05-03T20:17:39 | 2023-05-03T20:17:39 | 79,575,913 | 1 | 7 | MIT | 2023-05-03T15:10:14 | 2017-01-20T16:29:46 | Python | UTF-8 | Python | false | false | 2,115 | py | # coding: utf-8
"""
Talon.One API
Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-... | [
"noreply@github.com"
] | noreply@github.com |
d3f234039f84b458010466dbe11c5863b26dc687 | f307f05c0c96222073942a7ea97698d933a68677 | /app/utils/conditions/operation_mode.py | a0626a0ab70ff4a17a2ce2c45d146dfbdc0a31e0 | [
"MIT"
] | permissive | travelteker/flask_api | 758996710f7eb39e41f4efdc8f9f4d99bbf24bce | 7bd91e62937aee3c555993491aad96a619ef1bbb | refs/heads/master | 2023-04-23T18:02:54.173129 | 2021-05-10T15:14:06 | 2021-05-10T15:14:06 | 365,323,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from os import getenv
from sys import exit
class OperationMode:
@staticmethod
def trigger_action():
"""Method to validate exits value MODE_DEFAULT before start application Flask
:return: None
"""
mode = getenv('ENV')
if mode not in getenv("WHITE_LIST_MODE").split(','):... | [
"devjpozo@gmail.com"
] | devjpozo@gmail.com |
2ac98ecb6790ac1efcbd27dfc11b18c994694e7c | ee58ff8dd90b17a044d5d4d60550bd688942df0f | /webapp/controllers/rest/parsers.py | 0270c1f2a9445f924eb39ed45e9fa09cc1a3c12e | [] | no_license | assqingt/Flaskblog | 49294fbcb34eb01dc927ec9a5199750a74fa83ac | 7dda5dc0ffc9fdac52f5f2ca8826ababec7763bb | refs/heads/master | 2021-06-14T02:30:15.186678 | 2017-02-18T01:02:15 | 2017-02-18T01:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask_restful import reqparse
post_get_parser = reqparse.RequestParser()
post_get_parser.add_argument(
'page',
type=int,
location=['json','args','headers'],
required = False
)
post_get_parser.add_argument(
'user',
type=str,
location=['json','args','headers']
... | [
"assqingt@gmail.com"
] | assqingt@gmail.com |
b16e2e9a66be9969b417d12be51b37b00ed3b38c | 6cc50a15672155f7d66e88830ad1baec6a061077 | /processing/legacy/icetop_llhratio/python/globals.py | 515a24a58ef19c6d8f525f718693f26293ddc978 | [
"MIT"
] | permissive | jrbourbeau/cr-composition | 16b29c672b2d1c8d75c1c45e35fe6bb60b53ffe2 | e9efb4b713492aaf544b5dd8bb67280d4f108056 | refs/heads/master | 2020-06-24T21:48:21.784277 | 2018-11-01T21:30:56 | 2018-11-01T21:30:56 | 74,618,907 | 0 | 1 | MIT | 2018-08-23T21:01:03 | 2016-11-23T22:31:01 | Jupyter Notebook | UTF-8 | Python | false | false | 3,420 | py |
# -*- coding: utf-8 -*-
#
## copyright (C) 2018
# The Icecube Collaboration
#
# $Id$
#
# @version $Revision$
# @date $LastChangedDate$
# @author Hershal Pandya <hershal@udel.edu> Last changed by: $LastChangedBy$
#
import numpy as np
logEnergyBins = np.linspace(3,8,26)
logEnergyBins=np.array([logEnergyBins[i] for i... | [
"jrbourbeau@gmail.com"
] | jrbourbeau@gmail.com |
d8ff75f7f2b6d46085e4237bee2ae770867c47ee | dc02e1d3bc3794ee03b2ce916b6e8134b2541d07 | /1061/1063.py | d1d4519f7f7fb05efbe2c89ca4e2eb51dbfedc34 | [] | no_license | dddooo9/CodeUp | 2e2a342f4aba98e828af7294898241dc000cfe82 | 3390c41b8e7e5ceec0ab549faa62038fda1929da | refs/heads/master | 2023-08-05T08:29:14.932202 | 2021-09-22T10:02:19 | 2021-09-22T10:02:19 | 325,982,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | a, b = input().split()
print(int(a) if int(a) > int(b) else int(b)) | [
"dlaehdus99@naver.com"
] | dlaehdus99@naver.com |
9bbcc0c16ede6b46e150e8675a790033d34e559b | d73de5a4d84e892ef885d4fe7a27b0409253bb12 | /pyspider/libs/mycommon/selenium_spider.py | 2051414ec251408ea8a9d3a6612a57c260db7277 | [
"Apache-2.0"
] | permissive | mannuan/mypyspider | 957de1b4f3b74b39db848e7d264eee1ac44c263f | 6f8cbdc725052a10fd8b365e8b78c21f6df4b3ff | refs/heads/master | 2021-09-16T03:04:47.654265 | 2018-06-15T09:27:39 | 2018-06-15T09:27:39 | 108,707,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 54,565 | py | # -*- coding:utf-8 -*-
import sys,logging,os,time,random,re,json,inspect,traceback,StringIO
reload(sys)
sys.setdefaultencoding('utf-8')
from selenium import webdriver
from pymongo import MongoClient
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from log... | [
"1271990125@qq.com"
] | 1271990125@qq.com |
0557fa2ffa1cf6df52973e1d2ce00043da40e3a7 | 970c539c033f3f6e9c993c0cbbe3e84614185e6b | /Rule_modification/RAM/Wildcard Increasing Priority/auto_sh.py | 790dd033a90e6bed7e82d4953ccdf0d2b19dbed5 | [] | no_license | fmmazz/SDN-table-update | cce9663e896fd1f5fbc16e5714204fac1a5dce95 | 30bf0d867ed9841a18b0333a2674f64977dc02d4 | refs/heads/master | 2020-03-07T23:25:52.023362 | 2018-04-12T18:06:55 | 2018-04-12T18:06:55 | 127,781,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import os
import time
import sys
import subprocess
packets = sys.argv[1]
initial_rules = sys.argv[2]
number_repetitions = sys.argv[3]
ipv4_src = "192.168.10.1"
#cmd = 'sudo python pktgen-v3.py ' + str(packets) + ' ' + str (ipv4_src) + ' 45678 &'
os.system('sudo python file_changer.py modify_increasing_priorityv3_sh... | [
"fmmazzola@inf.ufrgs.br"
] | fmmazzola@inf.ufrgs.br |
477e9b6444672e436d32d11dc46f7b782779e802 | 1a5c29faa360851cb3a6f3efade56b6b8d482004 | /read_old_data.py | 7228694134eba4e9d2fb6f3a5e4511fe5273cf8b | [] | no_license | 294486709/Youtube_Analyzer | 8d3b84159a602dee1ffce2652a2810fa428504d5 | 66ac2307455f2eea56617af2fedcf43e0a5213de | refs/heads/master | 2020-04-04T08:59:32.890931 | 2018-12-13T02:31:31 | 2018-12-13T02:31:31 | 155,802,294 | 4 | 3 | null | 2018-12-11T22:01:34 | 2018-11-02T02:17:28 | Python | UTF-8 | Python | false | false | 690 | py | import nltk
from vocab import Vocab
import os
import codecs
import numpy as np
import random
import pandas as pd
import multiprocessing as mp
from gensim.models import Word2Vec
from gensim.utils import simple_preprocess
LENGTH_TRAINING = 80
TESTING_PERSENTATGE = 0.10
num_features = 100
MAX_LENGTH=19
def read_from_file... | [
"jedzhang@bu.edu"
] | jedzhang@bu.edu |
7b0597275393a4e60df88ff6dabff13ca0bfa6f1 | 61bc53ec90d92aece91753ec5ec9d25e0879a1e2 | /content/pythia/pythia/legacy/top_down_bottom_up/unittests.py | d1f24d7a35974cc3ea42778088b753406f23a637 | [
"BSD-3-Clause"
] | permissive | aluka1994/textvqa | 08a16c9b21ea9c5eca05f5d4d1763c190d2d7275 | 694cb2be08def519ba73be78e34664afa2c607b5 | refs/heads/master | 2021-05-26T23:44:21.973827 | 2020-04-08T22:05:58 | 2020-04-08T22:05:58 | 254,190,630 | 0 | 0 | MIT | 2020-04-08T20:14:11 | 2020-04-08T20:14:10 | null | UTF-8 | Python | false | false | 4,467 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import unittest
import numpy as np
import torch
from torch.autograd import Variable
from global_variables.global_varia... | [
"anandkumar@instance-1.us-central1-a.c.andromanit.internal"
] | anandkumar@instance-1.us-central1-a.c.andromanit.internal |
bdc14ed51f22263f092152c8eb153cafeab0a246 | 25089e415a3975a94dafb8fe8281cf1ba5576324 | /src/xmpp_transport.py | 63dbb36526a27d83944180d05b01fe69d834ade7 | [
"MIT"
] | permissive | hogrewe/uniblab | 9211e444fbf203c4db7daed51a39d20221d2f693 | 5286644582efeff89f379945f3f553c72d71e1b6 | refs/heads/master | 2021-01-01T15:41:22.112361 | 2012-08-11T16:07:12 | 2012-08-11T16:07:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | from twisted.words.xish import domish
from twisted.words.protocols.jabber import jid
from twisted.internet import reactor, protocol
from twisted.application import service
from wokkel.xmppim import MessageProtocol, PresenceClientProtocol, RosterClientProtocol
from wokkel.xmppim import AvailablePresence
from wokkel.clie... | [
"jhogrewe@channelinsight.com"
] | jhogrewe@channelinsight.com |
d579dd284d9927a5d3d431bf5e5f440c71ef6bdf | 61a3d8eab8eee2eccdadeab0c0804144c8aeca82 | /outPlan/data/__init__.py | 64793bbc91c007e52ea4d2127fb44d16bd384a02 | [] | no_license | gurongrong0329/Python3_project | f9f06b9e1502c4d6a1f4854254131fddf77a8bd3 | 2a34c7a3db040d1edf64bdd391ac30d20cfb359f | refs/heads/master | 2020-03-22T19:09:51.909862 | 2018-12-17T03:48:49 | 2018-12-17T03:48:49 | 140,510,090 | 0 | 1 | null | 2018-12-17T03:48:50 | 2018-07-11T02:18:56 | Python | UTF-8 | Python | false | false | 91 | py | # -*- coding: utf-8 -*-
# 作者: admin
# 时间: 2018/7/27 11:06
# 文件: __init__.py.py
| [
"gurr@kalamodo.com"
] | gurr@kalamodo.com |
0b5a319eaa0d9131a0c7a6bb4a2ed8fe8b6499ec | 7064bcec6fc7a8370be99921212998da481d9c0b | /tweetontime/tweet_on_time.py | f02b3f969572f46392674d8c882abd1048dcabd6 | [] | no_license | zachdtaylor/tweet-on-time-flask | e5bdce1e78ed2fce4d6a0ce6e58424212988dae2 | 3ace1f8c59b35fef05319794a740b5aef81311cc | refs/heads/master | 2022-12-16T08:42:58.515467 | 2020-09-18T01:59:57 | 2020-09-18T01:59:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | import json
import requests
import urllib
from apscheduler.schedulers.background import BackgroundScheduler
from datetime import datetime
from requests_oauthlib import OAuth1
from .settings import API_KEY, API_SECRET_KEY, ACCESS_TOKEN, ACCESS_TOKEN_SECRET
auth = OAuth1(API_KEY, API_SECRET_KEY, ACCESS_TOKEN, ACCESS_TO... | [
"zachtylr04@gmail.com"
] | zachtylr04@gmail.com |
a5ea4acde43bd227278705b853ff815836a465f3 | 6e3dca7de6921ba90d7f5b798664d2fa5d62b0f8 | /api/scholarship/migrations/0012_auto_20210114_1429.py | bbba735451cec78bd0404081f0fd51c985f5ab73 | [] | no_license | Zasugh/dsch | 2d41bf4b33d1d3ee197d4be72516187dfa0f43d0 | e946542edced015560bf905ac57ee1e45def9210 | refs/heads/main | 2023-03-27T07:41:41.874638 | 2021-03-31T15:01:18 | 2021-03-31T15:01:18 | 353,392,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Generated by Django 2.2.12 on 2021-01-14 20:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scholarship', '0011_auto_20210114_1428'),
]
operations = [
migrations.AlterField(
model_name='scholarship',
name='f... | [
"joselealcasique@gmail.com"
] | joselealcasique@gmail.com |
bbe03901b46f486d869c324fceb2ecf87ab9fb6e | 8a1665f8e534e5903c454605f0105aaf62a04fe0 | /weather/urls.py | 8b6ed775076990a52b9497da48cb0593b131732e | [] | no_license | ShadePy/weather_app | 3125e24e7db47415ce5696c029ace28a8de73cd5 | 349ce8af46567464a4bdaf59996c96857879537e | refs/heads/master | 2022-04-06T03:43:32.344395 | 2020-02-09T00:00:29 | 2020-02-09T00:00:29 | 239,221,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path("", views.index, name="home"),
path("delete/<city_name>", views.delete_city, name="delete"),
]
| [
"serezhasoroka@hotmail.com"
] | serezhasoroka@hotmail.com |
c50c0e9005ec170abfa46abc1f26c3c35a8a774c | a99a44aee5cfc5e080f6d83d2bcc1c3d273a3426 | /htdocs/plotting/auto/scripts/p98.py | fce3feefb062bd6cee36902c4ba30cf7d0d5e9f0 | [
"MIT"
] | permissive | ragesah/iem | 1513929c8bc7f254048271d61b4c4cf27a5731d7 | 8ed970d426bddeaa3e7ded593665d22f0f9f6e87 | refs/heads/main | 2023-08-20T20:01:15.480833 | 2021-10-12T15:44:52 | 2021-10-12T15:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | """Day of month frequency."""
import calendar
import numpy as np
from pandas.io.sql import read_sql
from pyiem import network
from pyiem.plot import figure_axes
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.exceptions import NoDataFound
PDICT = {
"precip": "Daily Precipitation",
"snow": "... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
a900aa027ffb014e1aba09385256e017ad548f62 | 9a5f3d1bacc497b0f4d90b4f9d99564479a94261 | /comments/views.py | d9639a8548955b370e04c8b699f0e103045799de | [] | no_license | cerikzhan/tancho-blog | d9f6546f4ba4f085fd205a2a31cfd0cf165a3f59 | 7c7e4baeaf00da32188c93fe2e7f6b4c401ff7ae | refs/heads/main | 2023-08-23T11:54:20.655057 | 2020-11-17T10:57:48 | 2020-11-17T10:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | from django.contrib import messages
from django.shortcuts import render, redirect
from .models import Comment
def inactive_comments(request):
comments = Comment.objects.inactive()
comment_id = request.POST.get('comment_id')
if comment_id is not None:
try:
comment = Comment.objects.get... | [
"serj_navii@mail.ru"
] | serj_navii@mail.ru |
908aafa15644f2c0975c55354fc11158d00ceb4f | 18ada29f4730e8d7718422044c465f5e5c6ea7fe | /Parcial 2/Sub_ventana - copia.py | af6abacc4a4e35a5c3d4435a52e9e05ea95fecea | [] | no_license | horacio2307/Programacion-Avanzada | 3bb0eef2ce076a66bf1ed0e678500cde0f721286 | af2cf57f47c738b45409d6b670ea5d494533f192 | refs/heads/main | 2023-07-29T07:44:32.158189 | 2021-09-10T18:29:20 | 2021-09-10T18:29:20 | 336,617,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from tkinter import*
global sv
def sub_ventana():
global sv
sv=Toplevel()
b2=Button(sv,text="Cerrar",command=cerrar)
b2.grid(row=0,column=0)
def cerrar():
global sv
b3=Button(vp,text="Reabrir",command=abrir)
b3.grid(row=0,column=1)
sv.withdraw()
def abrir():
global sv
sv... | [
"horaciopena07@outlook.com"
] | horaciopena07@outlook.com |
53cf228cb14fcd7ded5594923581c4fea8dd0d31 | a7c26b903d5ddc0b3fe71c641b6fa3413f68868b | /class_html.py | b8f8bf1ffac5f590f56bb0ef9afac5306234c128 | [] | no_license | trickre/site-maker | 191d1407fce9839055e06982afb66099e828ca2a | e0e9955580ba424678641afbb4b8bad8bc3b75dd | refs/heads/master | 2020-03-22T13:09:01.274276 | 2018-11-28T12:08:21 | 2018-11-28T12:08:21 | 140,087,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | #coding:utf-8
import sys
"""
Usage :>python main_module.py [target file] [option...]
Output :"target file.html"
"""
class HTML_Object(object):
def __init__(self):
self.content = []
self.tag_start = ""
self.tag_end = ""
def print_tag_start(self):
return (self.tag_start)
... | [
"ogino.ktai@gmail.com"
] | ogino.ktai@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.