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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9498db4276799b71082911df61014f50e9e00ed4 | c879972850bdef6f9c05ec57c964125e4d5d8dfa | /lino/management/commands/qtclient.py | d7596bcdee3da87a45dd2c84f87e0999c0367cd2 | [
"BSD-2-Clause"
] | permissive | forexblog/lino | 845c17f22c6f58fbf0247b084ceacb5e89fba2ef | 68cbd5dd985737b63091b232b9c788a3a9875eef | refs/heads/master | 2023-02-16T02:33:08.387853 | 2021-01-15T09:39:58 | 2021-01-15T09:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | # -*- coding: UTF-8 -*-
# Copyright 2017-2021 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from django.core.management.base import BaseCommand
from django.conf import settings
import sys
from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton,
QMessageBox, QDeskto... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
90c3287c1ab2452a889f97530c327d11886bb7eb | 5740854fe7d878e745cedebca477a540f906f9e2 | /jdac/code/model/bilstm_cnn_attention.py | d0d25b121bd642b2b8ee688afdbb459e92c25101 | [] | no_license | C1122C/Judgement-Document-Analyze | 84c4cb5dcdf591de762a6301d656b6526bdb00c2 | 533be5e3d5a162ce9bd8759c93434a18a54078e0 | refs/heads/master | 2020-04-28T00:48:44.879097 | 2019-04-25T08:25:29 | 2019-04-25T08:25:29 | 174,829,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,888 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import tensorflow as tf
class ModelConfig(object):
"""RNN配置参数"""
def __init__(self):
self.EMBEDDING_DIM = 128 # 词向量维度
self.FACT_LEN = 30 # 事实长度
self.LAW_LEN = 30 # 法条长度
self.NUM_CLASS = 2 # 类别数
self.NUM_LAYERS = 2
s... | [
"763443070@qq.com"
] | 763443070@qq.com |
fbb0c73d69edc8e75064c5da0a675e4a400b0794 | 9a0acd22077c7d16a9329c6282d61a2791c3bde1 | /gfxhatLibrary.py | 449768a435c3b0f8158d9a9e7c0a055be1c3d63e | [] | no_license | panc0046/python_lab5 | 285fa9cf829c96548fa731884147463be8a63de7 | dcf4c1bd4835482a671155307f748ba78b99d134 | refs/heads/master | 2022-02-22T12:47:57.652422 | 2019-10-08T14:21:24 | 2019-10-08T14:21:24 | 213,570,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from gfxhat import lcd
from gfxhat import backlight
import time
import random
# Show vertical line
def verticalLine(x):
y = 0;
lcd.clear()
lcd.show()
backlight.set_all(0,0,255)
backlight.show()
if x < 127:
for y in range(0,63):
lcd.set_pixel(x,y,1)
y = y+1
... | [
"noreply@github.com"
] | panc0046.noreply@github.com |
4c1751fb2d3a0399ea99a7f5da2e06bed708ae9e | 14ecb2115b4bae883afd796522d6d61056439fc1 | /constituency/charniak-test.py | 306ce8caf0480a499fbfbfba3d1abb75fec0a6b2 | [] | no_license | omidkashefi/discourseparsing | 31eaec41a1b7ae08695fcd37ba9b274f9a3e39ac | 624a2254fc9a41d5b7fdbfe31eb51e0b5d09c3b9 | refs/heads/master | 2021-01-12T15:41:08.442440 | 2016-12-13T23:10:03 | 2016-12-13T23:10:03 | 71,850,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from bllipparser import RerankingParser
rrp = RerankingParser.from_unified_model_dir('/home/kashefi/.local/share/bllipparser/WSJ-PTB3')
sentence = "In the 3rd level I would place my little brother in. because my little brother is a very greedy little bot he always wants something."
pcfg = rrp.simple_parse(sentence.sp... | [
"omid.kashefi@gmail.com"
] | omid.kashefi@gmail.com |
662710962b725c877129494280b55276bf0a9f4e | ff4efd66379122b652ed2de5ad83ef847c27bb70 | /main.py | ead993f259a954aa4b687e8c766e194a9470db43 | [] | no_license | Jasonc8901/numpy-challenges | b6c5c1115bf73423e6ccadcd1414df4ecac5578d | 3d81239453d9dd007c7786013b91ff6de752f15b | refs/heads/master | 2023-08-21T14:11:31.034626 | 2021-10-10T21:42:50 | 2021-10-10T21:42:50 | 415,639,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | import challenges
if __name__ == '__main__':
print_hi('PyCharm')
| [
"jasonc8901@gmail.com"
] | jasonc8901@gmail.com |
471ae5a340c42de4d6b95110032dd0ffd6f4f1f5 | 97c2f7cfc034235b556b8ce718cf57b8f9855525 | /backend/acoounts/views.py | 32455c4a8b27779bae877565df28f60bbcde39f3 | [] | no_license | sandesh1352/Full-Stack-Blog-Website | bdf4248504b870a7f11a3569f7571b14a27a70fb | 1c7d5c60be52614e0494125321fe2f1957375cae | refs/heads/master | 2023-03-24T13:05:29.237214 | 2021-03-24T12:52:25 | 2021-03-24T12:52:25 | 351,078,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | from django.shortcuts import render
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework_simplejwt.tokens import ... | [
"kadamsandy34@gmail.com"
] | kadamsandy34@gmail.com |
539a2860468dd43d60eefdb98b7b644ed39a7ea2 | 74ea4f2fc8e06a2964725c3a41d8910315da25c8 | /week03.py | 4563e89362fb5482ac8679a572776cc7f2c38612 | [] | no_license | lina0219/homework | 00622b322c8b1ae6fe27f5047935e26146aecc61 | ec3c6da6c3a0f4cd00ae94ca6d6d948bc5c03e85 | refs/heads/main | 2023-02-11T07:09:30.966498 | 2020-12-28T16:54:14 | 2020-12-28T16:54:14 | 322,292,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import requests
from bs4 import BeautifulSoup
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.dbsparta
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'}
data = requests.get('https://www.ge... | [
"wodms0219@gmail.com"
] | wodms0219@gmail.com |
2bacf773e1d1d158b317e0dd63ccc3eca151bf8e | b5d3e3489cdc216972ee6946bf80a194aed1faea | /app/serializers.py | e8a5c30ff458d6f9ec78a134b30944fa6f08ef1d | [] | no_license | Blobixx/metron_test | c307cd6c01059e5f2c3d109b834a1e2289c5daf9 | be1fe1e02dea0cd1e358317ee58a52a232a6a4eb | refs/heads/master | 2022-04-18T08:33:45.730219 | 2020-04-10T15:02:12 | 2020-04-11T10:33:08 | 254,645,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from rest_framework import serializers
from .models import Character, Hat
class HatSerializer(serializers.ModelSerializer):
class Meta:
model = Hat
fields = ('id', 'color')
class CharacterSerializer(serializers.ModelSerializer):
class Meta:
model = Character
fields = ('id', ... | [
"shane@MacBook-Air-de-juliette.local"
] | shane@MacBook-Air-de-juliette.local |
7c96bfb1e2444a27e10da9fea798535dd9b63102 | 9ab4570fa38c042953a86702d154d072581b328d | /bin/node_modules/jquery/node_modules/contextify/build/config.gypi | 6e97be7513cc478543d57bb7cdc6b850d73549fa | [
"MIT"
] | permissive | daricyang/iiip_crawler | 44756c7f26e3c897a4af56af6e6e08fbffbac669 | 76aa74c9cae09efa1877f6667964ae49d41197f9 | refs/heads/master | 2021-01-20T13:47:55.365859 | 2013-12-15T11:20:05 | 2013-12-15T11:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 46,
"host_arch": "x64",
"node_install_npm": ... | [
"pok@pok-Lenovo.(none)"
] | pok@pok-Lenovo.(none) |
cf8f0a25e99bd7db3374ba8b4a58a0ef68db31bf | f259c292fa0cda89141c3da2c91e69ece3da91ab | /main.py | de703f11fd08da155ef70c086a7052f23245fa70 | [] | no_license | 095anmola/MACRO-PROJECT | 0a500b3bcff407731cda7aa0c84a158d37cfadcf | 590ff81547e524ea369b0c9675012ac9b7b05062 | refs/heads/master | 2021-04-15T09:54:36.270694 | 2018-03-22T10:24:40 | 2018-03-22T10:24:40 | 126,316,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | #opening all files
file1=open("main.txt","r")
file2=open("nametab.txt","w")
file3=open("deftab.txt","w")
file4=open("argtab.txt","w")
file5=open("output.txt","w")
#making nametab
f1=file1.read()
s1=f1.split("\n") #splitting into lines
l1=len(s1) #no. of lines
for i in range(0,l1)... | [
"noreply@github.com"
] | 095anmola.noreply@github.com |
016d1dbc321739c44e65a03a81d5f6c37552b3ff | 2ade357d4121d4f0f895950a082d31552387a0b3 | /Lowercasetoupper_prog.py | 32df56d9684acb02274fe0f3a24e6bf51a65aec9 | [] | no_license | Gilbertsb/Plotting-Garphs-in-Python | c4798f6cd42c63fa3b4e37a3b971e5368adeda43 | dffce0288f4c8e074b906e0c5db3e26845b98bcc | refs/heads/master | 2022-12-27T00:04:55.382029 | 2020-10-07T19:05:35 | 2020-10-07T19:05:35 | 302,131,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | import string #Module for string
import random #Module for random numbers
import numpy as np #Module for advenced list
import matplotlib.pyplot as plt #Module to plot graph
from memory_profiler import profile #Module for memory plofile
import time #Module for time
global comb ... | [
"gilbert121998@gmail.com"
] | gilbert121998@gmail.com |
30ee5b82371e74006e13d114f8f1da5e37e2137d | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/tf_keras_1/transforms/common.py | 9253e05c5cce0e7d2d18e4deaa3832cf3c094726 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 3,810 | py | from monk.tf_keras_1.transforms.imports import *
from monk.system.imports import *
from monk.tf_keras_1.transforms.transforms import transform_color_jitter
from monk.tf_keras_1.transforms.transforms import transform_random_affine
from monk.tf_keras_1.transforms.transforms import transform_random_horizontal_flip
from m... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
652966ea2aacfb48e464403b0ca985373f09bc30 | dfa96a16d010b01de5f5dfd19303e36ddf98393d | /askme/settings.py | 5f11786a43d06a927766c06a57ad5903a5fd0c18 | [] | no_license | mialinx/tt-quack | 280a67d00885c286b214b1f3d25f6aadf676e9e8 | 985b2f3646166ed4257728d810aaa9c35ff34c78 | refs/heads/master | 2020-04-04T14:01:42.849899 | 2018-11-03T13:09:55 | 2018-11-03T13:09:55 | 155,984,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | """
Django settings for askme project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"mialinx@gmail.com"
] | mialinx@gmail.com |
77f2524053eab1b8d882912c642ecfb499f8dea3 | cfbe0d932cd4413792013c27ed0b680fdf7401f2 | /mapillary_tools/edit_config.py | 617da5c72dfcbeb04908b17d22fb78acba4776c6 | [
"LicenseRef-scancode-secret-labs-2011",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | testbalda/mapillary_tools | da127c464f61ea19217c6c8b0adff04fe69903ba | 07c00bb83815e512e1b85f5957b7d1ac9dfdeb0c | refs/heads/master | 2020-03-30T14:11:04.962225 | 2018-10-02T11:31:50 | 2018-10-02T11:31:50 | 151,304,944 | 0 | 0 | BSD-2-Clause | 2018-10-02T18:40:42 | 2018-10-02T18:40:41 | null | UTF-8 | Python | false | false | 2,735 | py | import mapillary_tools.config as config
import os
import sys
import uploader
'''
(re)authenticate
'''
GLOBAL_CONFIG_FILEPATH = os.path.join(
os.path.expanduser('~'), ".config", "mapillary", 'config')
def edit_config(config_file=None, user_name=None, user_email=None, user_password=None, force_overwrite=False):
... | [
"jerneja.mislej@gmail.com"
] | jerneja.mislej@gmail.com |
8c529c07af84d91fd9c4e3012908fb6f78b74f9e | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x01-python-if_else_loops_functions/0-positive_or_negative.py | 7db6d2d5aec2226e9657ea987dac24bd7104128f | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #!/usr/bin/python3
import random
number = random.randint(-10, 10)
if number < 0:
print("{} is negative".format(number))
if number == 0:
print("{} is zero".format(number))
if number > 0:
print("{} is positive".format(number))
| [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
4367cfd86241971d0e1c3c8a466669afdf0fe18b | 2d12dcd5cc9721b6092661cbdcf89e43485c8844 | /hello_world.py | 60a8ab8bac5d04a0d016be24e197fa2fe6aa6535 | [] | no_license | Akram-Khan-dev/GitLearningRepo | 5e0aa95a0cd7f3fea8453da760dbe0a7a5561e1e | b0ac11199d69148f40782d1c2f85d86180fff45b | refs/heads/master | 2022-11-13T02:22:25.238148 | 2020-07-07T14:26:01 | 2020-07-07T14:26:01 | 277,831,963 | 0 | 0 | null | 2020-07-07T14:14:12 | 2020-07-07T13:59:42 | Python | UTF-8 | Python | false | false | 80 | py | print("Hello, world")
print('in dev branch')
print('New change in dev branch') | [
"akramasuspubg@gmail.com"
] | akramasuspubg@gmail.com |
9a7081a6b9d4c4adfd56248282f0ce2637e08d91 | 53724276c33f715745786c163366aacc6a6d7876 | /News_Scraper/News_Scraper/settings.py | 2b178a31b1266319ca0f0c2d1c96170ff865202f | [] | no_license | thipham0502/ScrapyProject | e9bead6277a4da3eb90f4c9a089677e89d4df596 | c1f8047f0c56d83525b0de5446943a1532a5d9d8 | refs/heads/main | 2023-02-28T09:14:47.899382 | 2021-02-08T08:26:33 | 2021-02-08T08:26:33 | 337,003,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | # Scrapy settings for News_Scraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middl... | [
"noreply@github.com"
] | thipham0502.noreply@github.com |
9ea0d53abc6fe76ea844647c939081ba7bef497d | 986a8c5de450fc436897de9aaff4c5f737074ee3 | /笔试题/2019 PayPal实习生招聘编程卷/2_寻找关联用户.py | 9f80fb24348a2f07ea5df09bb989cd129384753d | [] | no_license | lovehhf/newcoder_py | 7a0ef03f0ea733ec925a10f06566040f6edafa67 | f8ae73deef1d9422ca7b0aa9f484dc96db58078c | refs/heads/master | 2020-04-27T18:20:19.082458 | 2019-05-24T15:30:13 | 2019-05-24T15:30:13 | 174,564,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding:utf-8 -*-
__author__ = 'huanghf'
"""
PayPal上海团队一直致力于风险控制,风控需要收集各种信息,有时需要通过地理位置找出用户与用户之间存在的关联关系,
这一信息可能会用于找出用户潜在存在的风险问题。我们记两个用户的关联关系可以表示为:
(1). user1,user2与他们最常发生交易的地理位置分别为(x1, y1),(x2, y2),当这两个用户的欧氏距离不超过d时,我们就认为两个用户关联。
(2). **用户关联性具有传递性**,若用户1与用户2关联,用户2与用户3关联,那么用户1,2,3均关联。
给定N个用户及其地理位置坐标,将用户按照关联性进行划分,... | [
"853885165@qq.com"
] | 853885165@qq.com |
2a7d38a0189ed2b59688b3d0b2c983a2d0a56740 | a1e04688e622c16c32c2b2a856cb745a18278839 | /Main/utils.py | a3cdad71ef9cfefdf212e4c850e964278ed4f5e7 | [] | no_license | Tanmengxuan/ANID | d51c4e9eaa56e4f2b0aee1193077882bbd4d6d5d | e7d84747226fc5df117de8185e8bbb01ceca9429 | refs/heads/master | 2020-04-27T17:03:06.060290 | 2019-07-24T03:18:14 | 2019-07-24T03:18:14 | 174,503,194 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,738 | py | import matplotlib
matplotlib.use('Agg')
import tensorflow as tf
import pdb
import numpy as np
import pandas as pd
from sklearn.metrics import precision_recall_fscore_support, precision_score, recall_score, f1_score, accuracy_score, confusion_matrix
import matplotlib.pyplot as plt
import h5py
import glob
import re
from ... | [
"mengxuan_tan@mymail.sutd.edu.sg"
] | mengxuan_tan@mymail.sutd.edu.sg |
f2fc137cb7f69ce5695244f728fb63925f944e8d | 019100d43c732fd3bbb9971c88953890a73e2a2b | /examples/advanced_operations/add_smart_display_ad.py | 3c29b41bf02ac0f8f6ccd93c8e18044d75f069c4 | [
"Apache-2.0"
] | permissive | HardTom/google-ads-python | 3e9ff61efb439824bce4b79e995d28f146647c39 | 8ed125aa155017a7193b13b3d36d937a245a350e | refs/heads/master | 2023-01-05T09:47:18.647826 | 2020-11-09T19:08:19 | 2020-11-09T19:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,615 | py | #!/usr/bin/env python
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"noreply@github.com"
] | HardTom.noreply@github.com |
8ec00a2885ff2c0923e4c18cbe638639cc34834b | 3bdfd653ad5ff12a6ea24d6a5081496ba1f7259c | /codigo_python/condicionales.py | 4a0dd85d9b39c8f13b67c641492b02fe219f05d7 | [] | no_license | bquillas/Learning-Python | 5f92bfc99962cd922a0c86d98b190f9c04480f8e | 2b157a420c763afc36422ff9e9c647b69345f647 | refs/heads/master | 2022-12-10T12:43:18.822364 | 2020-09-19T00:52:23 | 2020-09-19T00:52:23 | 288,582,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #Shift + alt + A (Para comentar en bloque)
""" edad = int(input("Escribe tu edad: "))
if edad > 18:
print("Ud. es mayor de edad")
else:
print("Eres menor de edad") """
numero = input("Escribe un numero: ")
numero = int(numero)
if numero > 5:
print('Es mayor a 5')
elif numero == 5:
print('Es igual a 5... | [
"bill.system96@gmail.com"
] | bill.system96@gmail.com |
84e6607c8844f6a04b1d98959b10d09db2dde1c1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/pc/rtfcaccbndlgrptofcaggrif.py | 0325546ef5eaa31952748a03f1378eacc3fd4e64 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,000 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
4a371f762e46550eb62fcb37c37d1318b8c1a3b8 | 2dfb84017d2e00a1a43248ad30621151291daed3 | /python-sample/sample.py | c75a3953232609cb5de72c9b809dbdf31c86bae2 | [] | no_license | derrickeckardt/image-processing-for-grading-example | 29f065d4d3e15b4953b8ec3d168b6cd6c15a9a1f | e2f647bd59676150e7f748a4ecbd1b1c2a53967a | refs/heads/master | 2020-11-24T01:44:33.622189 | 2019-03-01T00:53:48 | 2019-03-01T00:53:48 | 227,909,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #!/usr/local//bin/python3
# This is just a sample program to show you how to do
# basic image operations using python and the Pillow library.
#
# By Eriya Terada, based on earlier code by Stefan Lee
#Import the Image and ImageFilter classes from PIL (Pillow)
from PIL import Image
from PIL import ImageFilter
import ran... | [
"djcran@indiana.edu"
] | djcran@indiana.edu |
f2e693e0750ad115e84aa7a2a434e4d9a56566bb | 88a3f23ea1a83bbb35068123129a6e4144b3e098 | /Fordham6210/HWs/a3/utils.py | 07ed87739a1d21d86715ddc94f7154f2f1f31290 | [] | no_license | MarcoXM/NatureLanguageProcessing | 8d9ce5d71bf95fd208fb64a2c81de9ba5a0afe87 | e330d82638069a9c65b09e45b569b98c620a8c90 | refs/heads/master | 2022-04-10T22:27:07.314652 | 2020-03-23T02:41:02 | 2020-03-23T02:41:02 | 198,003,512 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 635 | py |
from bs4 import BeautifulSoup
from urllib.request import urlopen
import numpy as np
import warnings
import os
import re
import pandas as pd
def getCorpus(link,tag):
html = urlopen(link).read().decode('utf-8','ignore')
soup = BeautifulSoup(html, features='lxml')
all_href = soup.find_all(tag)
co... | [
"xwang423@fordham.edu"
] | xwang423@fordham.edu |
346803f16648c9bec0c184074d9bb7e1a024c5d1 | 88b11db4325496449da89c87399eccdaa648fb57 | /mobileBackend/bin/easy_install-3.5 | 9499d242272c67298208e85ed6840e8ed34959da | [] | no_license | Omondimaurine/course | f2391585d7f96eedec76eba35d4123a276d596b2 | ca90fe23903786e74a8c4c4bf044b6b6c7a92ca8 | refs/heads/master | 2020-03-22T15:16:29.204447 | 2018-07-09T11:15:19 | 2018-07-09T11:15:19 | 140,239,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | 5 | #!/home/aphya4/Documents/tests/educa/mobileBackend/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())
| [
"momondi@xelphahealth.com"
] | momondi@xelphahealth.com |
765507bb815248ad51edc9b9ad0a43f342a277f4 | f71e204f4f3d9e494555bbb2590ee95e9d021cbd | /time_decoding_subject_phase.py | a952784fcda3791b05af50c696336eadcb68c1e8 | [
"BSD-3-Clause"
] | permissive | MadsJensen/CAA | f2f35e94f7cdefa4601b854311b4d3adbb2e12c0 | 2a86919f7353a23435079f326d78110cd7249608 | refs/heads/master | 2021-01-10T17:00:40.688794 | 2017-06-06T16:23:22 | 2017-06-06T16:23:22 | 55,672,104 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | import sys
import numpy as np
import mne
from mne.decoding import GeneralizationAcrossTime
from sklearn.externals import joblib
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from my_settings import (tf_folder, data_path, ... | [
"mads@cnru.dk"
] | mads@cnru.dk |
45f7d6d4b996a3f2a68e812954cfa1d7d5296425 | 6c9f234542abf3e3779b9c590fd33930322261c9 | /workd.py | 1c76581262abba6af464ffc608be8aa8d6e37bd0 | [] | no_license | yeongbin08/20200114.txt | 8e4b6639cac90cded7d07cfb9352256d319226dd | ad54205fa0e5a01b90321415dacf40f967a6c8c9 | refs/heads/master | 2020-12-11T06:45:31.810156 | 2020-01-14T08:19:54 | 2020-01-14T08:19:54 | 233,791,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | my_list=["월요일","화요일","수요일","목요일","금요일","토요일","일요일"]
my_list_len=len(my_list)
prd=0
for i in range(0,my_list_len):
print(i)
if i<5:
prd+=1
print(prd)
else:
prd=prd
print(prd)
| [
"oceanap8@naver.com"
] | oceanap8@naver.com |
d4535232c0c077721f13c48f8e7ae8e7b9bbcf35 | b8e08de691fdfb9514335d4de2505909de53dc5a | /alfred/modules/data/eval_coco.py | e03e0bca2ed51ed5a63d3a6c21d6cf63607ba296 | [
"MIT",
"Apache-2.0"
] | permissive | MiaoRain/alfred | 8abfb7916ffecd794fb629d5bef30612ca3bdfc5 | 431bb0fe7f001a8e75a277c31888f56ed650608e | refs/heads/master | 2023-08-15T05:04:51.270397 | 2021-09-10T06:13:53 | 2021-09-10T06:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
send 2 json files contains
instances_gt.json and instances_generated.json
this will calculate a mAP of coco
then output the final result
""" | [
"jinfagang19@163.com"
] | jinfagang19@163.com |
b0ed974e68b6ded97373826ff027914898dba1d7 | 99a280da5f7d838157a7a2b75956622ec9649611 | /multiply_dummy/state.py | 8abb75b15e6ca34989e39c0967de30a155401cfd | [] | no_license | multiply-org/multiply-core | 2e08dc12c49686ebc98688916e643bae9c9cab86 | 1a7b0b1adffbb279d299499b4cf674a6fc03c4a7 | refs/heads/master | 2021-01-25T09:04:23.327450 | 2020-01-21T15:05:10 | 2020-01-21T15:05:10 | 93,776,791 | 3 | 4 | null | 2019-02-06T12:12:43 | 2017-06-08T17:50:36 | Python | UTF-8 | Python | false | false | 286 | py | """
define state vector
"""
class State(object):
def __init__(self, **kwargs):
self.state = kwargs.get('state', None)
assert self.state is not None
class TargetState(State):
def __init__(self, **kwargs):
super(TargetState, self).__init__(**kwargs)
| [
"tonio.fincke@brockmann-consult.de"
] | tonio.fincke@brockmann-consult.de |
d907a95313cb7e129d29eccd522159db7d1a1d66 | 25053fc44e98e193bff287bfcc9fae7a0eeacf9d | /scripts/data/DatatoJS.py | 3969f31045672eed0d32d8c63db3bef091279e2f | [
"MIT"
] | permissive | stevenhussung/citiesproject | bb3af3642e4c4ec2631c683ec8093517f6c24826 | 526e1bcac4f78433bc4d86bd011b9c94d45182df | refs/heads/master | 2021-01-10T19:03:00.990839 | 2014-04-11T13:59:21 | 2014-04-11T13:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | f = open("DataSet.txt")
lines = f.readlines()
#Format into data
data = [i.strip().split(",") for i in lines]
data = [data[0]] + [map(float,i) for i in data[1:]]
f = open("DataSet.js", "w")
f.write("var DataSet = ")
#Edit here!
f.write(str(data))
f.close()
| [
"steven.hussung@gmail.com"
] | steven.hussung@gmail.com |
285805fef3a2ff9e680c5ab423f7d70e47b906fb | 71962596a0693e03e19257f1beb3bdda223ed4ff | /profile_xf05id1/startup/81-saturn.py | f8188b0e760c0e83d75202caca233c3c59ee06b7 | [
"BSD-2-Clause"
] | permissive | tacaswell/ipython_srx | 53561979f27a108063f4851ea314073768098cbb | e3dbb45cfd87c166878e8420654cc7995f772eda | refs/heads/master | 2020-12-25T00:19:11.936763 | 2016-02-18T00:30:51 | 2016-02-18T00:30:51 | 51,659,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,831 | py | from ophyd.mca import (EpicsMCA, EpicsDXP)
from ophyd import (Component as Cpt, Device, EpicsSignal, EpicsSignalRO,
EpicsSignalWithRBV, DeviceStatus)
from ophyd.device import (BlueskyInterface, Staged)
class SaturnMCA(EpicsMCA):
# TODO: fix upstream
preset_real_time = Cpt(EpicsSignal, '.PRT... | [
"klauer@bnl.gov"
] | klauer@bnl.gov |
7e244ab332792a43672980b87a943944bae7057d | e2c52b18b28556b0341d655bbef1147c1e3e5da8 | /module.py | b9070aad442e5306dda8af4ee5fd74cb65ba28a4 | [] | no_license | alitonia/yolov3_face | beb7bc560c0ca96ded1c1aac357e9d2153fcb75a | b50184d8bac2b632c86aec795619199c1627bf61 | refs/heads/main | 2023-05-05T14:13:15.427903 | 2021-05-28T02:04:58 | 2021-05-28T02:04:58 | 366,279,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,266 | py | def module():
from collections import defaultdict
from functools import reduce, wraps
from keras.layers import (Conv2D, Input, ZeroPadding2D, Add, UpSampling2D, MaxPooling2D, Concatenate)
from keras.layers.advanced_activations import LeakyReLU
from keras.layers.normalization import BatchNormalizatio... | [
"leehoang2000@gmail.com"
] | leehoang2000@gmail.com |
9e1167e783a8f0357376fba4b5d93086d17a121f | fcc7c7486ad52d345b7ee2a9dc1a5d7d562c846a | /template/libcombinations.py | 40f57caa91357b91a1e233f642214902b2cb4fc6 | [] | no_license | crg-bioinformatics-genomics/algorithm-omixcore | be00c2c5fc2d91dc24c0315cca1b31d4e9a3dc08 | b9c5c001eea29c8fd604bbd145c29db913375f95 | refs/heads/master | 2021-01-12T13:59:28.373393 | 2020-04-28T10:53:29 | 2020-04-28T10:53:29 | 69,257,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,526 | py | import libanalysis as la
import numpy as np
import yaml
# hardcoded init values
def property_group_init(NO_OF_PROPERTIES, order=False):
# import code; code.interact(local=locals())
group_filename = "./scales/scales_groups_ordered.txt" if order else "./scales/scales_groups.txt"
group_file_path = o... | [
"alexandrosarmaos@dgkqr098gf1l.crg.es"
] | alexandrosarmaos@dgkqr098gf1l.crg.es |
a06d623077ee7cb04677c0593125417be14ea9c3 | d4933c55eb44a9a7282072981e1176095d5a82d1 | /takeNotes/application.py | 9ea8233de9ce327e34146d8fb402e772313df77e | [] | no_license | sugandha27/flask | 838cbce0a0ab3455ecc5bcc61cbf09110553cb83 | 80bfdd507470b035b73a0491942a7c0be36d350b | refs/heads/master | 2022-11-15T13:10:25.915111 | 2020-07-09T18:17:38 | 2020-07-09T18:17:38 | 278,294,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from flask import Flask, render_template, request, session
from flask_session import Session
app = Flask(__name__)
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
Session(app)
notes = []
#global var over web application ie shared ar across different users
@app.route("/", methods=["... | [
"sugandhabhandari2011@gmail.com"
] | sugandhabhandari2011@gmail.com |
109ed03fab482d9afddfcde55fd392d3a3ef54be | 7f56f8cdc96119c9b1a61a500a1379bdfef50050 | /Poker Genetic Algorithms/pypokergui/ai_generator.py | 438cdee3f8766d20d189f616b0117e0f40f441cc | [] | no_license | Caephler/Poker-Bot-with-Genetic-Algorithms | cc8266204001132c34bd0a9f175167645158ed8b | bb245d6436f3519a063b56d2c88ef8bdea3269fc | refs/heads/master | 2020-05-04T21:24:16.912790 | 2018-05-10T19:11:58 | 2018-05-10T19:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import os
import sys
import importlib
from pypokerengine.players import BasePokerPlayer
"""Assert passed script satisfies requirements for PyPokerGUI
ai-generator script must implement "setup_ai()" method which
returns child instance of pypokerengine.players.BasePokerPlayer.
"""
def healthcheck(script_path, q... | [
"luke.melas@gmail.com"
] | luke.melas@gmail.com |
723d1ab3fba8472207d08566888754ff280a6ce1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02622/s420656500.py | ba3844bb33b39a0bd750b8488ba05864255e60b4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | s = [x for x in input()]
t = [y for y in input()]
count = 0
for _ in range(len(s)):
if s[_] != t[_]:
count+=1
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2e75a38c924da072f13c94ed5e1166effaa8a90 | 92473a48a0350069159ebb67f825b6e048fd97ed | /afrigis/tests/mocks.py | 68bdd721b2b6bde70a6050534047a423de954a93 | [
"MIT"
] | permissive | chris-cmsoft/python-afrigis | 867b2bfd81d1b6faa9a56703abb7427e6f98cd1a | 5760c45159116733127ed7d3768cfde495a6bc0c | refs/heads/master | 2020-03-14T23:02:12.686787 | 2018-05-24T12:35:23 | 2018-05-24T12:35:23 | 131,835,023 | 0 | 0 | MIT | 2018-05-24T12:35:24 | 2018-05-02T10:25:51 | Python | UTF-8 | Python | false | false | 2,944 | py | import json
afrigis_geocode_unauthenticated_mock = json.dumps({
'statusCode': 401,
'message': 'Invalid Authentication',
'source': 'SaaS'
}).encode('utf-8')
afrigis_geocode_success_mock = json.dumps({
'number_of_records': 1,
'qtime': 83,
'code': 200,
'message': 'OK',
'result': [
... | [
"chris@cmsoft.co.za"
] | chris@cmsoft.co.za |
0a1a81acb4f37ed769eb3ef4dc88e21f09b9ff58 | f714ed5a8faace1c0d621178479ba613a05b331b | /cryptopals.5.py | 239e9ce042cb6c154032d54759b30fc5536d474e | [] | no_license | poornapragna877/Cryptography | 2738ecb55f0274159684970e1511e5ab06013a77 | e2e34671d396a24427fba979312dfc8904b2c7f7 | refs/heads/master | 2020-08-28T03:44:45.941980 | 2019-12-11T16:55:41 | 2019-12-11T16:55:41 | 217,578,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def repeated_cip(ct, key):
decrypted=""
key="ICE"*((len(ct))//3)
for a,b in zip(ct,key):
decrypted+=chr(ord(a) ^ ord(b))
return(decrypted)
def main():
ct=input()
key="ICE"
print(repeated_cip(ct, key))
main()
| [
"noreply@github.com"
] | poornapragna877.noreply@github.com |
f8da6b86e2b0837a6b9d0d2111be91774e6d22d6 | 3d2bf2c5325f5219516397596e78dcb428df9e35 | /bullet.py | 2766335441f56b325f2feb040b9231b8d1f5519f | [] | no_license | gabriel-wolf/SpaceInvadersGame | eb583f82a3a1d951aa1a4f2b55232b0c5bf6cc3c | d3892715e98347950d7125f079b43de67fa6707e | refs/heads/master | 2020-03-29T20:59:33.117819 | 2018-09-27T17:09:09 | 2018-09-27T17:09:09 | 150,342,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
def __init__(self, ai_settings, screen, ship):
super(Bullet, self).__init__()
self.screen = screen
# Create bullet rect at (0, 0), then set correct position.
self.rect = pygame.Rect(0, 0, ai_settings.bullet_width... | [
"36235487+gabriel-wolf@users.noreply.github.com"
] | 36235487+gabriel-wolf@users.noreply.github.com |
2d501a8abbc046a412a3ea29e5ba6e32f6b13393 | 44396c41cd98a85c1592ba60bee3ddcdebf8c24f | /scripts/04-train_explain_final_models.py | 1cd49246c4d1daf4539d99904fcb93c62df88dc4 | [
"Apache-2.0"
] | permissive | crlero/hidosfaikid-pipeline | ddfb7bc52f3c6af48a326d9af83b85b1999d2a3d | 087d4e98cec89850d82406dddcb3094edb2f0d25 | refs/heads/main | 2023-03-07T18:31:51.853364 | 2021-02-24T14:30:18 | 2021-02-24T14:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,803 | py | import json
import numpy as np
import pandas as pd
import shap
import sys
from sqlalchemy import create_engine
from sklearn.isotonic import IsotonicRegression
from sklearn.metrics import roc_auc_score, average_precision_score, matthews_corrcoef, precision_score, recall_score
from tensorflow.keras.callbacks import M... | [
"benskov@gmail.com"
] | benskov@gmail.com |
a5a82460e16a64d4c8bc84e92d1a63a70264a78e | 73f9a34bd69aaed7658d41a6f9ceb41030400104 | /spotifyrelease/tasks.py | 1480d855d7b6193765965452d15c536000922684 | [] | no_license | martinfaucheux/Spotify-Release | 98d64ae6c8c8534806a404f07e1c076ea538905a | 5e8ead326282412db7bf4ee568e03cef733a784f | refs/heads/master | 2023-08-30T22:57:39.857026 | 2021-10-28T04:33:30 | 2021-10-28T04:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from config import celery_app
from utils.spotify_browser import fetch_new_release_data
from .models import Album, Artist, SpotifyToken
@celery_app.task(bind=True)
def debug_task(self):
print(f"Request: {self.request!r}")
@celery_app.task()
def pull_new_release():
token = SpotifyToken.objects.first()
i... | [
"martin.faucheux@manatal.com"
] | martin.faucheux@manatal.com |
20b549f692809f3c36be35369593b5decb3c1ef4 | 7b1a5db0a067766a9805fe04105f6c7f9ff131f3 | /pysal/model/mgwr/tests/test_sel_bw.py | 856b65aa3b40931bfe9b658f698db76a492733df | [] | permissive | ocefpaf/pysal | 2d25b9f3a8bd87a7be3f96b825995a185624e1d0 | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | refs/heads/master | 2020-06-26T17:13:06.016203 | 2019-07-31T19:54:35 | 2019-07-31T19:54:35 | 199,696,188 | 0 | 0 | BSD-3-Clause | 2019-07-30T17:17:19 | 2019-07-30T17:17:18 | null | UTF-8 | Python | false | false | 9,038 | py | """
GWR is tested against results from GWR4
"""
import os
import numpy as np
from pysal.lib import io
import pysal.lib as ps
import unittest
from pysal.model.spglm.family import Gaussian, Poisson, Binomial
from ..sel_bw import Sel_BW
from numpy.testing import assert_allclose
class TestSelBWGaussian(unittest.TestCase... | [
"sjsrey@gmail.com"
] | sjsrey@gmail.com |
dc4bd84707a8dd1a39545ab1b8da4de638d51831 | 6e17016e71e6a09bf44a4286b12383bd829ed02c | /tf-idf.py | 25f708c8bb05082ef179f29f40daac7f6941cce2 | [] | no_license | kazuyaYX/classification | 0292c8e27844819875e4190a44d7b8f463b0de54 | d7e54cad0bd307eb32937ced9c7a392a447dfcf3 | refs/heads/master | 2021-08-06T16:15:50.499733 | 2017-11-06T12:39:31 | 2017-11-06T12:39:31 | 105,126,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
corpus = [
"我 来到 北京 清华大学",#第一类文本切词后的结果,词之间以空格隔开
"他 来到 了 网易 杭研 大厦",#第二类文本的切词结果
"小明 硕士 毕业 与 中国 科学院",#第三类文本的切词结果
"我 爱 北京 天安门"
]
vectorizer = CountVectorizer()
trans... | [
"554810625@qq.com"
] | 554810625@qq.com |
04b38eb7e5645522167ad76d2153d2103ea6494e | 7f6ca775ff1faecb1cdbbde792af4c0f8c9484f3 | /MergeSortBench/mergeSort.py | c942c0de4dab9eea08f8e75f55f057522fec18f5 | [] | no_license | ethan-mccrary/Micro-Benchmarks-with-Java-CPP-Python | 1277f4c3dd29e1d8183fb753b739ee500a0bc75b | dbb500564212cbe8853f5885ea6717fdc3fde783 | refs/heads/master | 2022-08-09T05:46:48.497102 | 2020-01-27T02:45:06 | 2020-01-27T02:45:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | py | import random
import time
def mergeSort(arr, p, r):
q = int((p+r)/2)
if p+1 <= r:
mergeSort(arr, p, q)
mergeSort(arr, q+1, r)
merge(arr, p, q, r)
def merge(arr, p, q, r):
i, j, t = p, q+1, 0
temp = [0] * (r-p+1)
while i <= q and j <= r:
if arr[i] < arr[j]:
... | [
"ethanjusino@gmail.com"
] | ethanjusino@gmail.com |
a67038ec535cb5841aead7609ffa231fa96dbaaf | b20cc68d01c8524126c9736c0e71b108b610dd1d | /emulator/python/stackmachine.py | ea4e13976dd6bb4089eb98d8995092bb194fb4b3 | [] | no_license | atsmith3/StackMachine | 65f803037bbd0c73f44443394fe93d80bf767ff1 | 6f708dbb346af0064bd8b78a28ca96b81d7cd2e8 | refs/heads/main | 2023-07-16T07:48:47.642711 | 2021-09-02T17:56:29 | 2021-09-02T17:56:29 | 402,515,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/python3
import sys
import os
import argparse
class StackMachine:
def __init__(self,STACK_SIZE=1024):
self.STACK_SIZE = STACK_SIZE
self.pc = 0
self.ir_imm = 0
self.ir_optype = 0
self.ir_opcode = 0
self.ir_nzp = 0
self.sp = 0
self.stack = [0]*STACK_SIZE
self.acum = 0
... | [
"atsmith3@illinois.edu"
] | atsmith3@illinois.edu |
a65856f84aa0ac10a10082eec367b29baf3e1568 | fd9e10e74ce2cf88c025c2d103951318fc27d14f | /lagou/lagou.py | 38bfbe0bc17e62bd1a66591f3f5c06c0b5a565da | [] | no_license | zunhai/spider_example | 3aeb03e79215dc452e2ba0b5f595ca0af0b18386 | 3fc0db19df4a700d2ba10bd7f9004c7979b43c6b | refs/heads/master | 2021-05-16T16:46:02.698850 | 2018-03-09T00:41:12 | 2018-03-09T00:41:12 | 120,057,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # -*- coding:utf-8 -*-
import requests
import json
from urllib.parse import quote
from config import myheaders
from bs4 import BeautifulSoup
from savedata import myexcel
class myspider(object):
def __init__(self,mykey,mycity):
# 自定义一个变量self.i,代表Excel表格的行数
self.i = 1
self.key = myk... | [
"18595456925@163.com"
] | 18595456925@163.com |
edab93621da1a81d1c34608c0856e9dd32a631bf | 96bd99d1d3845be6e907ade4f966b26c0181c7ff | /comm/comm_api.py | f9e60b63bccc6b1987ffee83f6ffc84b830d5c07 | [] | no_license | Lkamanda/ui_aut | ec3a66309472408fa038d85c5ca6011cf2830509 | a2e1063e4109fea93b147458c7d9c9f1d1cabec8 | refs/heads/master | 2020-06-15T05:47:39.910846 | 2019-07-26T08:14:18 | 2019-07-26T08:14:18 | 195,217,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,198 | py | # 客户端连接 appium
from log.logger import mylogger
from comm.element_error import element_error ,element_error_main_chat
from element_api.android_element.setting_city_page_elements import *
from config.myconfig import myconfig
# def get_desired_caps(mobile_config):
# desired_caps = {'platformName': 'Android', # 手机类型
#... | [
"1599200510@qq.com"
] | 1599200510@qq.com |
a168bca740029dde6ade381552f1611bcf4d92a4 | 63cc8c038d0a361ed831135ef76719d68cbf11a3 | /Web/Command/ConsultarCommand.py | 48bc72e2d33a301c373e82f3fcdc8d276d556adb | [] | no_license | Luiz-HSSD/lab_eng_soft | e868c90bc248d6c8f6037158295e65c30e579639 | b892f5fc428d2d67636a3442d0c070b625860f53 | refs/heads/master | 2021-05-16T17:39:05.533615 | 2017-09-15T15:05:39 | 2017-09-15T15:05:39 | 102,975,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from Command.AbstractCommand import AbstractCommand
class ConsultarCommand(AbstractCommand):
"""description of class"""
def execute(self,EntidadeDominio):
return self.fa.Consultar(EntidadeDominio)
| [
"lhenrique_diniz@hotmail.com"
] | lhenrique_diniz@hotmail.com |
74b20f52d9a21dc8809ac896bb4554477c963bc4 | 1e422814402b5d10a1e19183e4587ab2b2557ad1 | /Customer churn prediction using ANN/Customer churn prediction using ANN.py | a1b15c7b224cf03c5003a23f7350f78cdce4680a | [] | no_license | cashgupta6/DeepLearning_Projects | be1ea498c655451201da7200653ad9e7ac14c174 | 717063e3794751041acdae09212a71bcb2e773a8 | refs/heads/main | 2023-08-19T10:53:57.118676 | 2021-09-27T16:00:32 | 2021-09-27T16:00:32 | 410,481,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,583 | py | # -*- coding: utf-8 -*-
"""kaggle.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1wLR3EGV30o4HYiskVgCEZN9C1F48Lq12
"""
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
im... | [
"noreply@github.com"
] | cashgupta6.noreply@github.com |
b90b160a985fac029b28bad5fe6c41cf6795d98a | bcd33ba045b68fe6fba6f7a3a8fd95124106ac16 | /romme/conversion.py | 501ea9747122bf111e23ac7487806e872ca6d813 | [
"MIT"
] | permissive | bfontaine/Romme | 43d9ba2f6cd09f7b24f8916b121854521009cdd0 | affdfb23a6bb882c17da95ec3767710d5bebd59a | refs/heads/master | 2021-03-27T12:29:13.329232 | 2017-06-10T19:42:30 | 2017-06-10T19:42:30 | 93,895,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | # -*- coding: UTF-8 -*-
import jdcal
# These constants as well as the calculation below are based off PHP's
# SdnToFrench and FrenchToSdn functions in ext/calendar/french.c:
# https://github.com/php/php-src/blob/6053987/ext/calendar/french.c
_DAYS_PER_4_YEARS = 365 * 4 + 1
_DAYS_PER_MONTH = 30
_FRENCH_JDN_OFFSET =... | [
"b@ptistefontaine.fr"
] | b@ptistefontaine.fr |
6faf4908d5c3979af37ef8bc0948cb5800b077df | dc06cf1af6e840d890671e7476a9cfe86b7dd493 | /test_model.py | a9c7ebb5835a8d15ec38ce74cd45ba33c64d4b84 | [] | no_license | wojdzi1607/image_embeddings | b1efdb42e53ebdd143f78a2960e1c4a3d8511766 | 90a058bd8a9e439747b56d41133c0f2531f50325 | refs/heads/master | 2023-04-25T20:13:45.039746 | 2021-05-27T11:27:12 | 2021-05-27T11:27:12 | 357,494,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,689 | py | from knn import *
from inference import write_tfrecord, run_inference
import cv2
import time
import random
import warnings
import tensorflow as tf
from pathlib import Path
from tensorflow.keras.applications import MobileNet
from efficientnet.tfkeras import EfficientNetB0, EfficientNetB1
warnings.filterwarnings("igno... | [
"razor8945235@gmail.com"
] | razor8945235@gmail.com |
9325d0f978d23d485287916b9de446aedc1ac833 | ea46c0c5851ecf737c9dd040a055d579879cda00 | /src/salesforce/salesforceClient.py | 74a65d38897813e8f3893380454d8e89a3ecaca3 | [] | no_license | jpltechlimited/BDD | 4d159756a02589c985e78f057d99be423e4e7575 | 9987f92732467a654176c50aa02b307f0a493910 | refs/heads/master | 2020-12-31T22:42:20.953305 | 2020-02-08T02:58:25 | 2020-02-08T02:58:25 | 239,059,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from src.commonClient import CommonClient
class SalesforceClient(CommonClient):
def __init__(self, with_login=False, default_wait_time=10):
super().__init__("salesforce", default_wait_time)
if with_login:
self.__login__()
def __login__(self):
self.driver.get(self.mainUrl)
... | [
"jose@lozano"
] | jose@lozano |
107aaa6770e2f51962dd02dda7ca893d3d38ff58 | 5eb496f5fd77f1493f3d08b1000fd8d476f367b0 | /potnanny_api/apps/setting/api.py | 82902de12ec01459c85e3968d3a0f846b21e5f25 | [
"MIT"
] | permissive | jeffleary00/potnanny-api | 0c1dc34a65a5ca6959a248fc54a8a58ea903b8ec | cb5b5d037b6fd297463633d2d3315c722851161f | refs/heads/master | 2022-02-02T10:45:21.090660 | 2019-07-22T21:27:59 | 2019-07-22T21:27:59 | 99,291,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | import json
from flask import Blueprint, request, current_app
from flask_restful import Api, Resource
from flask_jwt_extended import jwt_required
from potnanny_core.schemas.keychain import KeychainSchema
from potnanny_core.models.setting import (PollingInterval, TemperatureDisplay,
VesyncAccount, PrimitiveWireless... | [
"jeffreyleary@Jeffreys-MacBook-Air.local"
] | jeffreyleary@Jeffreys-MacBook-Air.local |
c2e5a132ed6e231e8b918034a9fce397472e762e | b903853b18ae82c377c1cb397cb6f1eaebc012cc | /EndOfPythonDrills/webGenGui.py | f0f4326df24ec53c97ea82b9d722d48aecc5a50c | [] | no_license | joyzoso/Python | 74ac9eaefb7aed9bedd5f76c6f789de0e9d6a894 | f65488aadf2bd175d66829b531849f20cbf83dfd | refs/heads/master | 2021-01-11T11:21:13.441015 | 2015-09-29T17:24:42 | 2015-09-29T17:24:42 | 40,328,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | from tkinter import *
from tkinter import ttk
from tkinter import messagebox
import os
import webbrowser
class webGen:
def __init__(self, master):
master.title('WebGen')
#master.resizeable(False, False)
master.configure(background = '#A36666')
self.style = ttk.Style()
... | [
"joyrockon@gmail.com"
] | joyrockon@gmail.com |
74612d03df0d217ddea8a2be6fec57fb41f85c27 | bb68c958809899a24ec7d250adacc70c30203b04 | /rti_python/Ensemble/NmeaData.py | 5ca12f52eb8356dbba94010a0c6d4f1277627fc5 | [] | no_license | jjt53/ReadPlotCSV_streamlit | d9e432ec83ec930d3e6aa6b8f07bf3329c8081b8 | 3fddf73033e3648bc86ccbf0c5cce2b7868250d9 | refs/heads/main | 2023-01-29T14:05:35.667192 | 2020-12-09T17:17:23 | 2020-12-09T17:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,745 | py | import pynmea2
from rti_python.Ensemble.Ensemble import Ensemble
import logging
from pygeodesy import ellipsoidalVincenty
from decimal import *
class NmeaData:
"""
NMEA DataSet.
String data to decode.
"""
def __init__(self, num_elements=0, element_multiplier=1):
self.ds_type = 50 ... | [
"rcastelo@rowetechinc.com"
] | rcastelo@rowetechinc.com |
2459a9e36605cc5fcd5c22658d970e084179c16b | 1ab1484fcc7cc88c13ba4d42d866ba3c35f48402 | /maths_plots.py | 7e180cf1c6bf6d06a4fd9f01d2abe6f419f8a855 | [
"MIT"
] | permissive | anas21-meet/meet2019y1lab6 | 592892ba6c77ff8d040bfb151640d16e8037789d | dd73f213b98863411474ce842d3961b476523a2e | refs/heads/master | 2020-06-21T01:57:24.367295 | 2019-07-31T11:31:04 | 2019-07-31T11:31:04 | 197,317,217 | 0 | 0 | MIT | 2019-07-17T04:50:16 | 2019-07-17T04:50:16 | null | UTF-8 | Python | false | false | 95 | py | import turtle
x=0
while x<300:
y=x**2/300
turtle.goto(x,y)
x=x+1
turtle.mainloop()
| [
"anas21@meet.mit.edu"
] | anas21@meet.mit.edu |
99592d880fbc4a1b9c46efe6b6d2efe12bf45549 | 8fc5875b96f897e8bb42baa9d3c84f22aeb53d9f | /trabalho_final_WEB/settings.py | 35da186aa73a3f12bfd24c6668481ecb69453a91 | [] | no_license | FelcoCobel/Trabalho-WEB-Final | fa4b0d0e850e9a8c3f6aa066b5a77d11bf9b539f | cefe0b158d9fffc897fdd71e28edec4568b39dd3 | refs/heads/main | 2023-05-31T02:36:58.079596 | 2021-06-22T02:58:13 | 2021-06-22T02:58:13 | 379,123,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | """
Django settings for trabalho_final_WEB project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
im... | [
"e00873@academico.emge.edu.br"
] | e00873@academico.emge.edu.br |
ea8181be3486f3495b71aed3582a1cd0ce049fb5 | 412d0f01ab87c6b1e96f5f8afc263a3c33188b2f | /plots/fps_bar_chart.py | 1b735fc4f4b009283bc7ea4997f878756bc13cae | [
"MIT"
] | permissive | neevparikh/sample-factory | 7e48a8b4c7d0b534642bd90d28e66677f03b715e | 1b57647a231359ed6794db72bcc39b4ebb01b39e | refs/heads/master | 2023-03-16T05:15:05.945225 | 2021-03-09T02:28:03 | 2021-03-09T02:28:03 | 290,346,928 | 0 | 0 | MIT | 2020-08-25T23:36:01 | 2020-08-25T23:36:00 | null | UTF-8 | Python | false | false | 1,909 | py | import math
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
sns.set()
labels = ['20', '40', '80', '160', '320', '640']
# fps_by_method_10_core_cpu = dict(
# deepmind_impala=[8590, 10596, 10941, 10928, 13328, math.nan],
# rllib_appo=[9384, 9676, 11171, 11328, 11590, 11345],
# ours... | [
"petrenko@usc.edu"
] | petrenko@usc.edu |
bf1afee2dc7d18d07c5d3a4034c862ab733f903e | fdd8e908cb75e3b7c96b4a609e75e536c225e4eb | /Lab_Quiz/maze_nb.py | f7f4587fdef4254186129f93cf8cdb7de619488b | [] | no_license | edgeworthZ/first_year_log | bbaef850a1ccb2a0e3da63461aefc23bf4de19c8 | fba2ecf8c0b1a825f1f77b069a2063ce02880394 | refs/heads/master | 2022-03-06T03:49:47.072042 | 2019-10-28T13:11:36 | 2019-10-28T13:11:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | def printMat(A):
for r in zip(*A):
print(*r)
def diag(x,n,si,sj):
vectorX,vectorY = 1,1
if (si+sj)% 2 != 0:
pattern = reversed(range(len(x)))
else:
pattern = range(len(x))
for i in pattern:
if -1 < si+i*vectorX < len(x) and -1 < sj+i*vectorY < len(x[0]):
... | [
"noreply@github.com"
] | edgeworthZ.noreply@github.com |
cd99c5c4b1cb47999230fedf11bf9d56d4b14c76 | bd5f807161da0a9d3f6f8c5c3b4da073545eaafc | /day_1/print_function.py | 86260c5a4cb8249a92687577759a3a34cc0eb9c8 | [
"MIT"
] | permissive | anishLearnsToCode/python-workshop-7 | a6a497ddb6cf41a2097ac976426710ca4aa41987 | 2d5933be2629600f5f9e8efea58403421737a299 | refs/heads/main | 2023-02-07T21:00:01.308260 | 2020-12-27T08:22:14 | 2020-12-27T08:22:14 | 323,645,763 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | print('i am batman', end='\n')
print('hello world', end='\t\t')
print('this is cool\n', end=' ----- ')
print('i am still here')
| [
"anish_@outlook.com"
] | anish_@outlook.com |
c6bb2dcd097258b5e3502da8567c60c8a6294006 | e2d73d70570178387c1febfad2fa8c38f3fc5242 | /chap4/05.py | 905955178d94e6cd297a3e4530d2e477483314ea | [] | no_license | shun998/crawler2 | 3f4e0a1f540074a493ff190b18d44ed9398d759b | b11c49c00cdee6bb3e1f367f3aecc78c3b0768a7 | refs/heads/master | 2023-06-20T01:27:31.398628 | 2021-07-17T01:15:02 | 2021-07-17T01:15:02 | 384,859,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
# TODO 协程
# @Date : 2021/7/11 13:59
# @Author : layman
import time
for i in range(10):
time.sleep(1)
print(i)
| [
"2290860614@qq.com"
] | 2290860614@qq.com |
c309e2a9864cd30be5529887936b2601507ea206 | d4a758acf7ec3a302530a942f5db71ad8a6580d4 | /PlaylistGenerator.py | bccc167542f4cc3cdc90f35e0e09841b958c3af9 | [] | no_license | jordanMcCarthy/PlaylistGenerator | f2e0e09c031e2ccf29773afd68dd2090f9e4714e | 78ad64e26ef66b1155f7ec14a21c9d78ab38bee4 | refs/heads/master | 2020-06-05T14:49:04.909115 | 2019-06-18T04:16:17 | 2019-06-18T04:16:17 | 192,463,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import sys
import spotipy
import spotipy.util as util
if len(sys.argv) > 1:
username = sys.argv[1]
else:
print("Usage: PlaylistGenerator.py [username]")
playlist_name = "Spotipy"
token = util.prompt_for_user_token(username, scope="user-top-read")
tracks = []
if token:
sp = spotipy.Spotify(a... | [
"noreply@github.com"
] | jordanMcCarthy.noreply@github.com |
91c97f5a62706fe1792ef5a71274a03bd1a97403 | ad42579e5e13ada6122f55f6fa877c1b08e620f0 | /settings.py | e17795dc47e818f2136b05ab0492d87c693e33f1 | [] | no_license | Gyramuur/alien_invasion | 46308db50e54c08f851a84f9aca241f1a9b44cc4 | e7539c6e97c698380125b496906e71f0a807cd22 | refs/heads/master | 2020-12-30T23:46:39.239939 | 2017-03-29T14:11:01 | 2017-03-29T14:11:01 | 86,590,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | class Settings():
"""A class to store all the settings for Alien Invasion."""
def __init__(self):
"""Initialises the game's settings."""
#Screen settings.
self.screen_width = 1200
self.screen_height = 800
self.bg_colour = (230, 230, 230)
#Bullet settings
self.bullet_speed_factor = 1
s... | [
"noreply@github.com"
] | Gyramuur.noreply@github.com |
9a2222854f5cf34881162cdee222723b8dd7793d | c8c855a6ebb3b3101e5c3a80b94514c36b103495 | /semana_3/Calculadora.py | 677552a81732c0ddcb86782beae94726fe52561a | [] | no_license | K-A-R-L-A-Robles/poo-1719110219 | 835965c0e3100c9d6770678eb67920945942fa80 | 7d1fc57cd4157e5b52a153210311821d8290144d | refs/heads/master | 2022-11-03T04:54:42.675869 | 2020-06-15T03:46:42 | 2020-06-15T03:46:42 | 265,970,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | class calculadora:
"atríbutos"
signos=30
botones =30
baterias= 2
led=1
carcasa=1
#métodos
def encender(self):
print("encender")
def apagar(self):
print("apagar")
def __init__(self):
pass
class casio(calculadora):
#atríbutos
color="gris"
longitud= "15cm... | [
"replituser@example.com"
] | replituser@example.com |
b526cd00712b1e789f4b21a256e0942eb34f98d9 | f393c8acd92fa4f8991b809cfd9e2828dc1414b2 | /tests/xlfunctions_vs_excel/xnpv_test.py | e8162511ea3f0ab6bcfa961932b8dd5d23159c91 | [
"MIT"
] | permissive | ffranchina/xlcalculator | 0207fdce09d1fc02d525cf9fdc62b5833b6792a9 | a7927c3c88e9b8c64a384d97a204dfc5494d4127 | refs/heads/master | 2023-01-28T22:06:21.089115 | 2020-12-12T01:22:49 | 2020-12-12T01:22:49 | 344,490,380 | 1 | 0 | NOASSERTION | 2021-03-04T13:50:41 | 2021-03-04T13:50:40 | null | UTF-8 | Python | false | false | 302 | py | from .. import testing
class NPVTest(testing.FunctionalTestCase):
filename = "XNPV.xlsx"
def test_evaluation_A1(self):
excel_value = self.evaluator.get_cell_value('Sheet1!A1')
value = self.evaluator.evaluate('Sheet1!A1')
self.assertEqualTruncated(excel_value, value)
| [
"stephan.richter@gmail.com"
] | stephan.richter@gmail.com |
2fa5487c9c26c2913518898e24ed2e479262961c | f6f16a05d679e85e0ab2c1d188e32ab7cdf42f08 | /1.py | 0e4b1171d0b199244b8c4bafd5310e93899ee4b6 | [] | no_license | max644/matasano | a1b3c1195e8517af82a1f1210654fd0726bb874e | 70e72ffdd49df9fbf2e46e726de9b1ffabfe849a | refs/heads/master | 2022-11-28T21:32:27.292448 | 2020-08-04T07:54:33 | 2020-08-04T07:54:33 | 284,913,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | import utils
B64_CHARSET = ('A', b'B', b'C', b'D', b'E', b'F', b'G', b'H', b'I', b'J', b'K', b'L', b'M', b'N', b'O', b'P', b'Q', b'R', b'S', b'T', b'U', b'V', b'W', b'X', b'Y', b'Z', b'a', b'b', b'c', b'd', b'e', b'f', b'g', b'h', b'i', b'j', b'k', b'l', b'm', b'n', b'o', b'p', b'q', b'r', b's', b't', b'u', b'v', b'w'... | [
"max644"
] | max644 |
9dc4f4ab4cbabe17c77513655e924c5660d809e4 | 142fb95bb876358fd140d136b02dd367ca57625e | /meiduo_mall/meiduo_mall/urls.py | a176ddfbaa919fa7b863b1f21977fca7caf1405b | [] | no_license | Axiejinhao/meiduo | 368acc6d5eadd125ce8efad1a29722f1b11e63ef | 1c27ceb06646dfc2eb82d07314628309b840b674 | refs/heads/main | 2023-08-30T02:11:13.270316 | 2021-11-11T02:24:26 | 2021-11-11T02:24:26 | 411,567,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | """meiduo_mall URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-b... | [
"xjh9836@gmail.com"
] | xjh9836@gmail.com |
204497fb50262cb562540f83828f70204e159bf3 | cd5af87b9554046788f960567b9a356038479f1a | /profiling/errors.py | 623ea390675495f36d188fad4c11a4e002aa094e | [
"MIT"
] | permissive | Normatica/python-profiling | 50de379d4e05c1341b97a231fa04c91c8efd0526 | 6980993abd0b677b3a5302da0cf61a1a10312270 | refs/heads/master | 2020-06-27T03:14:44.115514 | 2015-12-23T20:54:42 | 2015-12-23T20:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | class ProfilingException(Exception):
pass
class ConfigNotFound(ProfilingException):
pass
class ConfigInvalid(ProfilingException):
pass
| [
"laurentluce49@yahoo.com"
] | laurentluce49@yahoo.com |
657b51d419bef4689b2a3a559a1039f993d7a58b | db5684eeac1c7359017a5d109028ce2b8b49d1a7 | /app_rbac/service/AutoFindUrls.py | fbad0d42e31869cebeef14f5a4056828e68f6a7c | [] | no_license | Alan-AW/CrmSys | a4873c52e1f6bb05c45377459b0a040ff7dbbc75 | 95119dd7b96b981a00541e8adcee410eb1fbe865 | refs/heads/main | 2023-08-22T08:04:44.207347 | 2021-10-13T08:08:44 | 2021-10-13T08:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | from collections import OrderedDict
from django.conf import settings as sys
from django.utils.module_loading import import_string # 内置工具,根据字符串进行导入模块
from django.urls import URLResolver, URLPattern
import re
"""
自动发现项目中的url方法
"""
class AutoFindUrl:
def check_url_exclude(self, url):
"""
白名单设置;排除一些... | [
"xcdh560@foxmail.com"
] | xcdh560@foxmail.com |
b41ba3a6a31fab6c7ed42dd38ecc6821786344d5 | a7685d315e6616cc2b6d43587bb19ead4324fb2a | /cci_mailchimp/wizard/extract_results_advertising.py | 4a5fc3227990c4926d43be7d42084fc091237cd3 | [] | no_license | philmervdm/modules_cci_odoo8 | 472ea68de409e876722413afdd873d6a7827744e | 603144219a86e805f7603cfafc0fb05a78166eef | refs/heads/master | 2021-01-09T20:02:58.326569 | 2017-05-06T15:45:03 | 2017-05-06T15:45:03 | 60,332,279 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,732 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"philmer@ccilvn.be"
] | philmer@ccilvn.be |
8267f6160a70f0ec6944ba29ff3452eaa44e3504 | 7076a0f7f2cca6d2d6ab3cf0db11b5e25b30b857 | /Message.py | 463e12e6a56a763dd95f6a7335a060272f6b67d7 | [] | no_license | ikanani/IoT-Auth.-Project | 1d53bb2d0f136fd431f4f79850a9eb90996541f2 | 015dc9112d8dda92b9f6c0d0cd2209785e61663d | refs/heads/master | 2023-05-09T05:08:50.969002 | 2021-05-25T03:01:17 | 2021-05-25T03:01:17 | 370,545,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py |
class Message:
def __init__(self, messageType, resource, issuer, subject, originalRequester=0):
self.messageType = messageType
self.resource = resource
self.issuer = issuer
self.subject = subject
self.originalRequester = originalRequester
| [
"ijkanani02@gmail.com"
] | ijkanani02@gmail.com |
dc83a61491aaa7474ca75f5417cccf54a741e2a2 | 1f7d287ef90041e20468513a26a39e1f3d221289 | /Level-2/s18/guvi-L2-s18-py06.py | 21f5db26fcc71bb3aa20c4faae14685578b46595 | [] | no_license | ksthacker/python | d787d69f954c0e9b59b0cc96a8b8fc5c0594d8a0 | 3a3775e1b9349e313f8c96ea11eade54a7e9bf54 | refs/heads/master | 2021-04-27T16:32:40.923316 | 2019-08-21T04:50:22 | 2019-08-21T04:50:22 | 122,303,461 | 0 | 17 | null | 2019-10-03T14:59:51 | 2018-02-21T07:09:32 | Python | UTF-8 | Python | false | false | 262 | py | import sys, string, math
s1,s2 = input().split()
dic1 = {}
dic2 = {}
for c in s1 :
dic1[c] = dic1.get(c,0) + 1
for c in s2 :
dic2[c] = dic2.get(c,0) + 1
#print(dic1,dic2)
if dic1.keys() == dic2.keys() :
print('true')
else :
print('false')
| [
"noreply@github.com"
] | ksthacker.noreply@github.com |
a0cb32621bf7159b4a8a39ff87bbc9ff60aed77c | 3981f282036eb4adbc670877565c82a9ac9e0279 | /serverless/GetData.py | 35902edfa212c0beabaa2da7a3dabb61ff71483c | [] | no_license | sofiaisha/aws-alexa-talks | 70b0b3e33c8a314d76e5b8fad0d5f965d75b4950 | ff1918901a57985ad93d8639ca846b8b16c241ac | refs/heads/master | 2020-04-07T15:39:33.236795 | 2018-10-22T08:28:47 | 2018-10-22T08:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,474 | py | import boto3
import json
import logging
import decimal
from boto3.dynamodb.conditions import Key, Attr
from botocore.exceptions import ClientError
from datetime import datetime, timedelta
from dateutil import tz
import time
logger = logging.getLogger()
logger.setLevel(logging.INFO)
dynamodb = boto3.resource('dynamod... | [
"boazz@amazon.com"
] | boazz@amazon.com |
cb35a80cad26f45045e6338012de772df07d6b6f | ce11af680a3248064fcd160160814fb33bbd0f57 | /git.py | d76d45d53abd52fb27e82b5f5f515cd5c3305ba6 | [
"MIT"
] | permissive | IotaSpencer/shell-scripts | 75ea8d42c12ba6d132adefaa3f6e035b8b91fc0f | b63958c52afec62729d643d4043ba2cf7d25c1d6 | refs/heads/master | 2021-01-19T00:52:03.408373 | 2017-10-29T22:59:13 | 2017-10-29T22:59:13 | 39,930,192 | 0 | 1 | null | 2017-10-29T22:59:13 | 2015-07-30T03:52:18 | Python | UTF-8 | Python | false | false | 2,685 | py | #!/usr/bin/env python2.7
# PYTHON_ARGCOMPLETE_OK
# -*- coding: utf-8 -*-
#
# pygit
#
# Copyright 2013 Ken Iota Spencer <ken.spencer20@ymail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Founda... | [
"iota@electrocode.net"
] | iota@electrocode.net |
010d835db31f6a76e42a04916bd4a4af607762b4 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D08B/COMDISD08BUN.py | 100dbc7a1d02e66ba3a3780d0077c6f131fd407a | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,035 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD08BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 0, MAX: 9},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'CUX'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
182d2168262ec7674c8bf4e751a64e9843fc0a4d | 9608f41ba6eb30fdae5c93d3265d280b4901046d | /course-2/session-4/class_hierarchy.py | 08bf7103d46cebe076436fe06f0165985f56c65b | [
"MIT"
] | permissive | robmarano/nyu-python | 3d498aed5bdca5ff6cf3c8d1b5021ac570542829 | 4406f157e6d6a63e512ed1595f56dcb65c5d8526 | refs/heads/master | 2021-01-25T09:10:56.243372 | 2017-08-12T20:09:32 | 2017-08-12T20:09:32 | 93,797,311 | 2 | 1 | MIT | 2020-05-18T00:31:15 | 2017-06-08T22:38:10 | Python | UTF-8 | Python | false | false | 1,390 | py | #!/usr/bin/env python3
class Shape(object):
def __init__(self, edge_length=1):
self.edge_length = edge_length
@property
def edge(self):
return self.edge_length
# def __str__(self):
# to_string = 'edge_length = {}'.format(self.edge_length)
# return to_string
class Triangle(... | [
"robmarano@gmail.com"
] | robmarano@gmail.com |
f5379b0a2aa5adf45b6064351c1d5525c316e9c9 | b80a081fc1045e1effeae97a9e90c87494e70dc3 | /earnings_vis.py | 297e69b306946dcf1ea0be4a3397501eb153a146 | [] | no_license | docon92/return_tracker | ca64c2a85d5a96c3ff222d250c7c9c74d2eebe12 | 18a081679f3055d42b49d93af3c1139b168e8dec | refs/heads/master | 2023-03-01T23:11:46.693781 | 2021-02-14T00:20:32 | 2021-02-14T00:20:32 | 289,609,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | # ------ earnings_vis.py ------------
#Pull TFSA, RRSP Data from an Excel spreadsheet and visualize contributions, earnings, etc.
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter
import seaborn as sns
import pandas as pd
import openpyxl
import mpld3
from mpld3 import plugin... | [
"conover.doug@gmail.com"
] | conover.doug@gmail.com |
b36fde109fd9899c304cab1ea4e397ebd906d056 | 36de1a76576ee92faa6ba47514836ba618355d7b | /main.py | d6aa64bf37796b703b266cc2ff86401671e9f5da | [] | no_license | RamonPeek/SleepRobotEpilepsy | 0f41cf93d11190c8f1923d5bdee6e480d7bc63da | eb0ae845a6eed63bb426e78c81f160b40693b4e2 | refs/heads/master | 2023-07-15T17:46:02.159835 | 2021-09-02T09:49:39 | 2021-09-02T09:49:39 | 401,993,077 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,398 | py | import aubio
import numpy as num
import pyaudio
import sys
from AppState import AppState
import time
from pydub import AudioSegment
from pydub.playback import play
BUFFER_SIZE = 1024
CHANNELS = 1
FORMAT = pyaudio.paFloat32
METHOD = "default"
SAMPLE_RATE ... | [
"ramonpeek@hotmail.com"
] | ramonpeek@hotmail.com |
dafbc6f303cb54a88a957ad7b6ca81fe72a58dcf | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GL/VERSION/GL_4_0.py | e71cd5aca4e802fb6dbe967d20d16fbe9ccabd69 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,207 | py | '''Autogenerated by xml_generate script, do not edit!'''
import ctypes
from OpenGL import platform as _p, arrays
from OpenGL.constant import Constant as _C
# End users want this...
from OpenGL.raw.GL import _errors
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
_EXTENSION_NAME = 'GL_VERSION_GL_4_... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
13fb7bd55c6b4c3bcf6151f1231cd06bed96325b | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.12.20/5/1569572839.py | b804973202990b201d8fa526eab461fdb643c04b | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def mysum(zs : list) -> int:
return sum(xs)
## Lösung Teil 2. (Tests)
def test_2():
assert mysum([1,2,3]) == 6
######################################################################
| [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
3d944aac3ebd457c4905cdf68e82d66cda632505 | b277ff2dfdb4cab38b129f5dad99b16106bc38c7 | /pywpyw.py | 19be1ba77c25939446c1b39ba546609243b91ee1 | [] | no_license | dwerle/PywPyw | 176c6f7ba964b367ee372fd1dfb436d59fb55ffd | 577080b0fdfec72c922a6f10f3a19dc6cd36e825 | refs/heads/master | 2020-05-29T21:02:40.363963 | 2015-07-12T09:30:46 | 2015-07-12T09:30:46 | 38,956,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,915 | py | #! /usr/bin/python3
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5 import *
from xutil import *
import subprocess
import itertools
import functools
import math
def regular_divide(rect, cols, rows):
dx = math.floor(float(rect.width()) / cols)
dy = math.floor(float(rect... | [
"dominik@dbsw.de"
] | dominik@dbsw.de |
c3f5696f06cd59d4e5f8d9192c601c4b8bebafd2 | 9bc6179be0043b541a0db39c79118c3a9def94da | /shutterbug/shutterbug/wsgi.py | ae629fda196f9cea5c5af0191e75be650e8d859f | [] | no_license | rajkumar-009/shutterbug | 70013702297c58ce29412050016245ea17bca9af | 0266d76e09ab6146398f1ab189dde16b31fe17b9 | refs/heads/master | 2023-06-20T03:16:10.736714 | 2021-07-17T22:21:54 | 2021-07-17T22:21:54 | 387,045,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for shutterbug project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"rajmummies@gmail.com"
] | rajmummies@gmail.com |
09b921d014f55ec6fa43fd8be2760069158bd007 | 31aa30db1c4ee195deb9a0e1e23835c845407c79 | /czxy/login/forms.py | 5427a3661805bf9425f01166afe0c94e5cc49daf | [] | no_license | tianting12/spider | f18ca229d5dcb5fa68647d7cfee2fbd4ba8048d0 | c1aedea1fd498326910e29d9c8258fd5688cf0e9 | refs/heads/master | 2022-12-17T18:09:02.131969 | 2020-09-10T11:58:03 | 2020-09-10T11:58:03 | 259,941,992 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from django import forms
class UserForm(forms.Form):
username = forms.CharField(label='用户名', max_length=128, widget=forms.TextInput(attrs={'class': 'form-control'}))
password = forms.CharField(label='密码' ,max_length=256, widget=forms.PasswordInput(attrs={'class': 'form-control'}))
class RegisterForm(fo... | [
"1162467606@qq.com"
] | 1162467606@qq.com |
2795c6648d7f1266b7f42b4e91725d9f27268dea | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyedit/pyedit-036/pyedlib/pedfind.py | 3ac9395fb86b64616c888b4a839f6c126b4421a4 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,150 | py | #!/usr/bin/env python
# Action Handler for find
import re, string, gtk, glib, gobject, warnings
import peddoc, pedync, pedconfig
from pedutil import *
from pedundo import *
strhist = []
stridx = 0
myentry = None
# -------------------------------------------------------------------------
... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
418531f55c7ab66d94f01aeca3a0a5e79f077eb0 | c6bc4ec1a4f8152cd30fe2ce52c9673df5cebc38 | /OO-numberGenius.py | eee96b7744c33eed3beb8782a1d29d407270c5a1 | [] | no_license | BillYuga/Number_Genius | 7ede3770832ff4f510a4920e942efdfd440205e1 | 63d1ce9cba64937aaadc5fb7c4785d3cc9ac3d5e | refs/heads/master | 2021-05-02T12:37:32.978198 | 2016-10-03T17:31:41 | 2016-10-03T17:31:41 | 54,766,948 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Object oriented number Genius
class user:
def __init__(self,name):
user.name = name
user.score = 0
user.points = 0
user.gamesPlayed = 0
user.gamesWon = 0
def makeFile(self):
with open(user.name+".txt", "w", encoding = "utf-8") as userInfo:
userInf... | [
"billyuga37@gmail.com"
] | billyuga37@gmail.com |
4060361d56fabf2289f5fa2ad768cbe5b277c2eb | d053d7f98c36bc0d0378dcbb02d6686ddf37b2da | /yabgp/agent/__init__.py | 99d77ca9c1f41738f6ed80b147d48327fa595a4c | [
"Apache-2.0"
] | permissive | c0ns0le/yabgp | 51f79006735462a59115b775664d1f94a2399c85 | 19c6462f313dab5548179bc6009375bbc039d0f0 | refs/heads/master | 2021-01-17T21:22:52.368843 | 2016-02-22T02:08:34 | 2016-02-22T02:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,475 | py | # Copyright 2015 Cisco Systems, 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 requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
1e2b50ee68b95ddae7eeb8945dcad1af2f11d842 | 6f9e4be308e3830446c33a4499b297aa7280be5f | /mouseEvents.py | 451ae31ef59f90fdf7d15dff9a54d8ba1bda9d52 | [] | no_license | mp360/manitab | ca3e464ba8da3d6d2568f3f175b822b229e299e3 | 6a04d9fd6e17da78e3902ea29f1af800849b6a41 | refs/heads/master | 2020-04-05T14:23:09.168930 | 2019-07-05T22:03:15 | 2019-07-05T22:03:15 | 156,926,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py |
import numpy as np
from scipy.stats import norm, lognorm, uniform
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider, Button, RadioButtons, CheckButtons
from matplotlib.patches import Polygon
#####Mean and standard deviation#####
mu_a1 = 1
mu_b1 = 10
mu_c1 = -13
sigma_a1 = 0.14
sigma_b1 = 1.16
... | [
"manan.patel@philips.com"
] | manan.patel@philips.com |
c02916351b0a45c5a075f10e2e989ca093eba8d2 | 8364fe0b387a4b17af4e4245cf127c4bd1ccb20e | /Assignment_code/functions.py | 1fc886d0b134e32db5bc6d98637fada27eca284d | [] | no_license | Snoeprol/stochastic_simulations | 6f4d9dda5c75582ef3d955dc257e5453e95f7ffa | 477af75a234b642e812d8c4f419f8cad3494dc34 | refs/heads/master | 2023-02-02T16:14:05.836716 | 2020-12-18T17:13:29 | 2020-12-18T17:13:29 | 307,722,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | def Zn_1(z_n, c):
"""Calculates next step for
a candidate in Mandelbrot set"""
return z_n ** 2 + c
def sim(c1, c2, lim):
converger = 0
z = 0
c = complex(c1, c2)
while converger < lim:
z_n1 = Zn_1(z, c)
if abs(z_n1) < 2:
z = z_n1
co... | [
"noreply@github.com"
] | Snoeprol.noreply@github.com |
acf0ea73971ed1ae521b37f7efbcb5ada8b1a3f1 | 78f49bb88404a9258caf5b3ac6e6417e0a9f3058 | /TimeToPractice4/2_odd_number.py | 2eb182af0fcaf9011e55067ad7a2d3821a288428 | [] | no_license | Lekuro/python_core | b3d240c4649d97a3f89468adce2b7c4031c69287 | 696013090820e3e9b8d2d7b24f8a5a8d5bee7572 | refs/heads/main | 2023-02-11T14:24:11.654437 | 2021-01-09T14:40:13 | 2021-01-09T14:40:13 | 318,255,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | n = 101
for i in range(n):
if i % 2 == 0:
continue
print(i, end='_')
print()
for item in range(1, n, 2):
print(item, end='_')
print()
print(list(range(1, n, 2)))
print([i for i in range(1, n, 2)])
| [
"lekurot@gmail.com"
] | lekurot@gmail.com |
9deb933676e6f8022a6d68c76123cb045891c191 | 672d535e7586289873fd5167bd9888383aff02e4 | /src/chapter_10/file_writer.py | 05d3024a8efc186caf79a788cbcce915c16e552a | [] | no_license | CatchTheDog/python_crash_course | 889fd151323e48dfbc6754b86132aad3f1d37856 | 148eda5eb96c501060115aad0bfd6e15ccd04c37 | refs/heads/master | 2020-03-29T22:06:32.015096 | 2018-09-29T02:36:51 | 2018-09-29T02:36:51 | 150,402,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | file_name = "..\\test_files\\programming.txt"
with open(file_name,'a') as file_object:
file_object.write("I love programming!\n")
file_object.write("Yes,you are!\n") | [
"1924528451@qq.com"
] | 1924528451@qq.com |
365b2df85c7f4550dfeb8cb9f535ec174b04f35a | d73e73bad3d797bbfa82971ac44e424e7e163fe6 | /utils/config_utils.py | 74557718a2d232f39d2e4e750a3eceff3e1bf92a | [] | no_license | Guiliang/statistical-DRL-interpreter | 80bdd885c1d3029a48654118667c0071f3e4a8d8 | 033d79e45579fb7ddd824c8e04d245d0285741f3 | refs/heads/master | 2023-07-24T21:50:56.323738 | 2021-01-04T05:28:20 | 2021-01-04T05:28:20 | 241,288,171 | 1 | 0 | null | 2023-07-23T06:00:02 | 2020-02-18T06:22:52 | Python | UTF-8 | Python | false | false | 301 | py | class InitWithDict(object):
"""
Base class which can be initialized by reading properties from dict
"""
def __init__(self, init=None):
"""
:param init:
"""
if init:
for key, value in init.items():
setattr(self, key, value) | [
"Guiliang"
] | Guiliang |
d6938327087879a9f4238e51bda9ed19d1500dd6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03261/s340412788.py | 5a6e7ab12a4f437b7b0e143245721a1a5d7f2d38 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | def resolve():
N = int(input())
W = [input() for _ in range(N)]
if len(set(W)) != N:
print('No')
return
for i in range(N-1):
if W[i][-1] != W[i+1][0]:
print('No')
return
print('Yes')
return
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48e3612a39dba70784f10c5924b6252b48f700f5 | 5ad905f26791ed86581da3a7fb1f934c739b59a3 | /text2morse.py | 0731ee0ddc3d61e169d8bdd34f3ad3af480528d4 | [] | no_license | stawel/stats | 7d5d09b63cbdb9b81001ae9280fb04324a92c74e | 495c10ca46ac1b3a58a90b6822f8cf9963a171ef | refs/heads/master | 2021-04-27T10:58:01.510131 | 2018-02-23T00:03:12 | 2018-02-23T00:03:12 | 122,550,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | #!/usr/bin/python
morseAlphabet = {
"A" : ".-",
"B" : "-...",
"C" : "-.-.",
"D" : "-..",
"E" : ".",
"F" : "..-.",
"G" : "--.",
"H" : "....",
"I" : "..",
"J" : ".---",
"K" : "-.-",
"L" : ".-..",
"M" : "--",
"... | [
"stawel+chealiCharger@gmail.com"
] | stawel+chealiCharger@gmail.com |
dbdb13ba10a87bbfed89783b4c564a2642e108a5 | 6fa546367c8cfe51afc366a58afd99594cecec5f | /iot_wand/clients/client/settings.py | 456d811c2dfb7c9b67fa2522dbc6b14722e1a397 | [] | no_license | LoTekkie/iot_wand | 15f0d1e913e98512528c21e6bbf9818ee7711fbd | a24df3efcc673734b867f5c943aca91973d31ce8 | refs/heads/master | 2022-12-31T13:31:12.386414 | 2019-05-05T08:37:30 | 2019-05-05T08:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from iot_wand.settings import DEBUG
import os
DEBUG = DEBUG
DIR_BASE = os.path.abspath(os.path.dirname(__file__))
PATH_CONFIG = os.path.join(DIR_BASE, 'client.yaml') | [
"Sjshovan@Gmail.com"
] | Sjshovan@Gmail.com |
7bb0b9509db055c53732ac141dd5e0394c6ef70b | 2c3f13857d4a915410de5ac9547745eb2769db5f | /eval/e43/compare_text.py | 87358093ffb7d43d225e9232d6c758060c29fa51 | [] | no_license | andrewhead/StackSkim | 43a4cf769645bb70202075f8077fa4d5d7be2a4b | 9ac11705ff82aa978d1a87177059e665f4e5ebef | refs/heads/master | 2020-06-03T16:15:15.127268 | 2016-01-16T17:16:36 | 2016-01-16T17:16:36 | 50,692,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
import codecs
logging.basicConfig(level=logging.INFO, format="%(message)s")
def main():
with codecs.open('javascript_text.txt', 'r', 'utf-8') as js_file:
with codecs.open('beautifulsoup_text.txt', 'r'... | [
"head.andrewm@gmail.com"
] | head.andrewm@gmail.com |
3baff7548c2871fe70a18e5ad3f7bbddcd622e95 | b97e9a9bf84c7ef120a44c425c42610c66c54574 | /jobparser/spiders/hhru.py | 754721d8c7a3a1231c802714753ae66debf3f0fd | [] | no_license | po-stas/GB_scrapy | 30a4f284a3142d69a937f4132ef84f5058ce6d71 | 398742685692e02aaf0db9e6ce1f8c8cb6ad1c15 | refs/heads/master | 2020-11-28T12:12:23.967200 | 2019-12-27T05:35:48 | 2019-12-27T05:35:48 | 229,809,918 | 0 | 0 | null | 2019-12-27T05:41:11 | 2019-12-23T19:17:48 | Python | UTF-8 | Python | false | false | 1,227 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import HtmlResponse
from jobparser.items import JobparserItem
class HhruSpider(scrapy.Spider):
name = 'hh.ru'
allowed_domains = ['hh.ru']
start_urls = ['https://hh.ru/search/vacancy?area=1&st=searchVacancy&text=python&page=0']
def parse(self, res... | [
"pologrudov@gmail.com"
] | pologrudov@gmail.com |
d3ea9f702a651665d2f7f1d3f4dd379e82b548b6 | 14a97a4776f4eb01b0bf8c58df657d23e7b9260e | /dlflow/mgr/errors.py | e8b0d3cc9166207ead6904f4d8f68e031dde6a52 | [
"Apache-2.0",
"Python-2.0"
] | permissive | adalee2future/dlflow | 2d2e67f0729c44f59c14fd6f83baf25bc6cf865a | 6fb974fd800649af82b20c5f4e40aea123559d10 | refs/heads/master | 2022-11-29T07:42:18.164909 | 2020-08-17T16:28:32 | 2020-08-17T16:28:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py |
class BaseError(Exception):
def __init__(self, err_info=""):
super(BaseError, self).__init__(self)
self.err_info = err_info
def __str__(self):
return str(self.err_info)
class InstantiateNotAllowed(BaseError):
pass
class FileTypeNotSupport(BaseError):
pass
class Parameter... | [
"dqw1994@qq.com"
] | dqw1994@qq.com |
6ae04b9881d62f364e49e6dc106b608162252c30 | 5a1bae210f8b7591acb55c9a46a0dace31e0d614 | /app/resources/cast.py | 440fc26d8072e2be1d992ec33c8c817e6107f75d | [] | no_license | christian-de-ornellas/catalogMovies | 52fb1d2bd8e9e0685a0c74e841f8fa57a7b841f9 | 34529a00cb4dd077297072a2c26b2820e43ae100 | refs/heads/master | 2020-05-06T15:19:50.470390 | 2019-04-08T17:12:32 | 2019-04-08T17:12:32 | 180,184,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | from flask_restful import Resource, marshal
from app.models import Cast, Movie
from app.schemas import casts_fields, movies_fields, resource_fields
from app import request, db
from app.decorator import jwt_required
class CastRouter(Resource):
def get(self):
casts = Cast.query.all()
return marshal... | [
"christian@orientme.com.br"
] | christian@orientme.com.br |
c946e0330af298dda3979f43614bf4150c8090ef | d9a4c48b9652563637833b28c9bb07b6711a60a6 | /alhambra_detections.py | ffa70538892a4c6b991cd1f6a79c808e79a7f5e8 | [] | no_license | amolino231/ALHAMBRA | dd097fbecd1e3fc2a2df79983cf9ead631be70d6 | 1a6aac0e3effd53b8c2f9fa3f8d4553f955a15a8 | refs/heads/master | 2020-06-11T12:48:44.418534 | 2019-06-26T20:20:25 | 2019-06-26T20:20:25 | 193,969,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,548 | py | #! /usr/local/bin python
# -*- coding: iso-8859-1 -*-
###############################################
# Functions related with Synthetic Images #
###############################################
import os,sys
# import coetools as CT
import numpy as N
# import coeio as C
import useful as U
import bpz_tools as B
... | [
"noreply@github.com"
] | amolino231.noreply@github.com |
912a0d677973643af9a2fc3b8fad340de84954eb | 4e2452df43966440bb391d5fccb436a26bd8a953 | /start.py | cfddc5ba0da33b79efa568928852c0c9e6713851 | [] | no_license | Bayagin/WBTopicCheckTool | f950343727aa4c29db137cbda0a5412ab8fe03d3 | 4bec0de766a2fd65792be7e595e03bbaa147391c | refs/heads/master | 2023-03-01T07:34:16.702923 | 2021-02-04T09:35:43 | 2021-02-04T09:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import sys
import os
from src.main_ui import run
__author__ = "ReaJason"
__date__ = "2021年2月4日"
__site__ = "https://reajason.top"
__email__ = "reajason@163.com"
sys.path.append(os.path.dirname(__file__))
if __name__ == '__main__':
run()
| [
"1587047405@qq.com"
] | 1587047405@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.