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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9468f8e04cd8b22575a8e8a5cb5f2154b120d75d | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12315011.py | 1eaf65a06d4accb4b62d4c0891406e399fbd51c4 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12315011.py generated: Wed, 25 Jan 2017 15:25:15
#
# Event Type: 12315011
#
# ASCII decay Descriptor: {[B+ -> K+ pi+ pi- e+ mu-]cc,[B+ -> K+ pi+ pi- e- mu+]cc}
#
from Configurables import Generation
Generation().EventType = 12315011
Generation().Sample... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
ac7af3346135a9ae97de4096ffcd46a752e893cb | 9a778afaf523880ecc7e00d1f5faf5245f4a26e5 | /Testing/Unit/Python/sitkExternalViewerTest.py | 4559b6d2b63531a1016413325b87aac532007fe8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pieper/SimpleITK | 596a2bf941e9cd66243c40ad2349b85f2f74d4ac | d1608da70729ccfd592b117913f53d3f838ddb5a | refs/heads/master | 2022-12-15T15:31:13.182239 | 2020-09-04T23:40:29 | 2020-09-04T23:40:29 | 293,871,473 | 0 | 1 | Apache-2.0 | 2020-09-08T16:48:47 | 2020-09-08T16:48:46 | null | UTF-8 | Python | false | false | 3,560 | py | #! /usr/bin/env python
# ==========================================================================
#
# Copyright NumFOCUS
#
# 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
#
# ... | [
"dchen@mail.nih.gov"
] | dchen@mail.nih.gov |
d6b59fae9fd74d38808180d116e63ace28017931 | 02d93b1f5abbbc7c6c132be5f7978fd614dcf070 | /level.py | 8d3665842116cfd83e069c108a91fafd204ec86f | [
"BSD-3-Clause"
] | permissive | reneklacan/kivybomber | ad3e183fe67e54f805bfcbda15bb5aa03f173de4 | 32e870b5c97d8413bfd8e4537a8676bfed748201 | refs/heads/master | 2020-04-13T15:13:48.108268 | 2013-05-23T20:13:29 | 2013-05-23T20:13:29 | 10,232,294 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,783 | py |
from threading import Timer
from kivy.logger import Logger
from kivy.uix.floatlayout import FloatLayout
from constants import *
from monsters import *
from map import GameGrid
from player import Player
from bases.sprite import SpriteGroup
class LevelBase(FloatLayout):
name = 'Did you forget to override name? :P'... | [
"simpliplant@gmail.com"
] | simpliplant@gmail.com |
56182c17aa3e165f9099d98085286b7510a86e18 | d2bb2a65a42017b403157228ce3ca98755a7b305 | /data-visualization-matplotlib/Bar Plots And Scatter Plots.py | 160294925f3abaa9d4141119fbd9b64386ac425b | [] | no_license | vinayvinkumar/Data-Science-Numpy-Pandas-Matplotlib | e64233d273dc5747fcb53daf41f28561b83fe0cc | 5d2fb635abc2bac7b4c0546dd3848ab00a10c7c8 | refs/heads/master | 2021-01-18T23:35:56.284931 | 2017-03-09T02:29:12 | 2017-03-09T02:29:12 | 84,381,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | ## 2. Introduction to the data ##
import pandas as pd
reviews = pd.read_csv("fandango_scores.csv")
norm_reviews = reviews[['FILM','RT_user_norm','Metacritic_user_nom','IMDB_norm','Fandango_Ratingvalue','Fandango_Stars']]
print(norm_reviews[0:10])
## 4. Creating Bars ##
import matplotlib.pyplot as plt
from numpy impo... | [
"vinayvinkumar@gmail.com"
] | vinayvinkumar@gmail.com |
43a0a2baacf739f5476a27098b0be5267c405665 | 7d3ce053a3309660839efb0572af1972bc37e178 | /utils.py | 520098004d1d344e4b0bd427eb120caae0bc44b4 | [
"Apache-2.0"
] | permissive | GauravSarkar/BERT-CRF | fe408af564e19cf1674da70cb7fb012801b15630 | 649c4f5fce7b887f3db9a9303e938d90c4b87677 | refs/heads/main | 2023-06-23T19:03:28.346345 | 2021-07-27T18:34:11 | 2021-07-27T18:34:11 | 388,681,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | import os
import random
import logging
import torch
import numpy as np
from seqeval.metrics import precision_score, recall_score, f1_score
from transformers import BertConfig, DistilBertConfig
from transformers import BertTokenizer, DistilBertTokenizer
from model import JointBERT, JointDistilBERT
MODEL_CLASSES = {
... | [
"noreply@github.com"
] | noreply@github.com |
53a8a9e183fa9a77980773bf2a86af27e815b452 | fb7ed3cfe2432d1eab4840e350c2c0e336ee50a4 | /data/split_train_test.py | 5f8f7e559dac78a4e57cec217365867e9ff21aa4 | [] | no_license | Rahgooy/emphasis | 23b7cba7dfd4d4281d9d1ec187b8bfc8337a6542 | f554c67d5842808f4f79f5266d0977864af189cf | refs/heads/master | 2021-07-13T15:33:26.975707 | 2019-12-19T02:23:06 | 2019-12-19T02:23:06 | 212,677,893 | 2 | 0 | null | 2019-12-19T02:23:08 | 2019-10-03T20:52:06 | Jupyter Notebook | UTF-8 | Python | false | false | 874 | py | from sklearn.model_selection import train_test_split
import codecs
with codecs.open("train.txt", "r", encoding = "utf-8") as f:
dataset = f.read()
def get_sentences(dataset):
dataset = dataset.split("\n")
sentences, words = [], []
for word in dataset[1:]:
if len(word) == 0:
senten... | [
"mostafarahgouy@gmail.com"
] | mostafarahgouy@gmail.com |
4a545d3987f19872f2751c758877948c8612fc9f | 7760926144835909e82830885666907f8f9fcc69 | /mysite/settings.py | dfd50c4b147689286fb1c97830828a2243d58312 | [] | no_license | idofishler/django-dbx | 17df237439bda5e40f33015924f21c17e46a5dc3 | 1335eaf00c5b2f3b88772c51665e409a69446c29 | refs/heads/master | 2021-01-10T21:31:17.704927 | 2013-11-27T14:21:29 | 2013-11-27T14:21:29 | 14,749,032 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"idofishler@gmail.com"
] | idofishler@gmail.com |
85dcc5969e56bb08a2daeb27e23d432d34c58286 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02718/s147463629.py | e093f018cdb275a578db1fcc576e49cebc099eb6 | [] | 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 | 166 | py | # 161 B
N,M = list(map(int, input().split()))
A = list(map(int, input().split()))
list.sort(A, reverse=True)
print('Yes') if A[M-1] >= (sum(A)/(4*M)) else print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
96453a0bd8e8846ce642936379bffff7e3bfe0f1 | c0876ec280253d9fbcde972a16ab0a44b7af8049 | /wechat/TC_tc/TC_order.py | 3dd45a4bc02a1e40da07fb6670703b88a60e6205 | [] | no_license | yedada-wei/SameCourse | 858fb6b6f9d7daad64c9b444d4624003f0319b12 | 20aaf4f5ac4d7f6dad8784142e398d163f8852cd | refs/heads/master | 2023-03-17T08:49:41.983478 | 2020-05-17T02:56:46 | 2020-05-17T02:56:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,543 | py | import time
import random
import requests
import urllib3
urllib3.disable_warnings()
class Order(object):
def __init__(self, params):
self.params = params
self.flight = params.get("flight")
self.price = params.get("priceInfo").get("adtPrice")
self.ua = "Mozilla/5.0 (Linux; Android ... | [
"47801176+DaHMao@users.noreply.github.com"
] | 47801176+DaHMao@users.noreply.github.com |
a58152dcbe56b9cb20b0d17b50119ed0c2e9d34f | 458e4f64af117466761518e21c461b994ccbeea0 | /lorelei_utils/get_all_vecs.py | da9959f002b8f1c894a9dffea997ddad0e13c8f7 | [] | no_license | akashb-cmu/safehouse | 8e5d8d2d86efdfd630df9d55a1ebe445c9dd3ca7 | ebb48ea06aabda87e2b1e2036e2f63baf3148e50 | refs/heads/master | 2021-05-31T21:21:45.053879 | 2016-05-21T21:29:20 | 2016-05-21T21:29:20 | 58,785,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,168 | py | import pylab as pl
import sys
# CONLL_FILE = "./conll_generated_files/turkish_splits/turkish_all.conll" # For include suffix case
CONLL_FILE = "./conll_generated_files/turkish_splits/turkish_suffix_exclude_all.conll"
# VEC_FILE = "./conll_generated_files/vecs/turkish/turkish_ner_thresh_2_nonner_thresh_2_vecs.txt" # F... | [
"akash.bharadwaj92@yahoo.com"
] | akash.bharadwaj92@yahoo.com |
087df7a1afc7ff107d18896bb278fa05d94a7c47 | 90d52feb53634adb5b4998df7c1cf2533a4f4c01 | /projeto_faq/projeto_faq/urls.py | 5290f7fb4ef7307b1024e64cd61b087d0a8edf6b | [] | no_license | fcsegre/FAQ | 4800451751d11b68c3393d234661963b6078a414 | 2cfda945e79f8e27fc948543debc17004b6d80e6 | refs/heads/master | 2021-01-10T18:46:16.841760 | 2015-02-27T14:01:58 | 2015-02-27T14:01:58 | 31,379,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^FAQ/', include('FAQ.urls')),
url(r'^admin/', include(admin.site.urls)),
)
| [
"erich.rodrigues@znc.com.br"
] | erich.rodrigues@znc.com.br |
dfc5b44950539139c220bd8097aff816495001f8 | 4129fab746d16b213fd5c0fa391603cc9b38dfce | /winch.py | 49e1333f9010826cb725b505df4c49515b6a09c9 | [] | no_license | donnellythomas/Winch | 7a9e4221376aca0ee1bff5812bf04bc021df74f5 | 37ce07b01c03407bb9aa7acebe77bb6234171302 | refs/heads/main | 2023-06-23T20:49:57.356101 | 2021-04-30T17:01:07 | 2021-04-30T17:01:07 | 361,224,262 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,711 | py | # Allow for program to be run outside of a raspberry pi
try:
import RPi.GPIO as GPIO
sim = False
except:
sim = True
from context import Context
from states import *
from timer import Timer
class Winch(Context):
# Simulation flag
sim = None
# Sequence of states that are to be executed
st... | [
"donnelly.thomas21@gmail.com"
] | donnelly.thomas21@gmail.com |
bae0764475189d7c5ca7362cf63a7e328637ed2b | 30ec1a9149aaa4e2f0b4164dbd9138f6d02fe906 | /chapter7/_partial.py | 828312c576aecf2e034c689fcba2b98e3b8b3462 | [] | no_license | Humhunter/cookbook | 6c1e65daa0ca66fba05d68b13bd18234b9349a66 | e6009ba3f80180663925bf3a668b2985f898892a | refs/heads/master | 2021-07-24T00:20:05.221443 | 2020-06-15T13:03:25 | 2020-06-15T13:03:25 | 186,728,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# author: JinSong.xiao(61627515@qq.com)
# time: 2019/7/15 17:40
from functools import partial
import math
def spam(a, b, c, d):
'''
可以看出 partial() 固定某些参数并返回一个新的 callable 对象。这个新的 callable
接受未赋值的参数,然后跟之前已经赋值过的参数合并起来,最后将所有参数传递给
原始函数
:param a:
:param b:
... | [
"61627515@qq.com"
] | 61627515@qq.com |
56f90968d21193259e7380f76afdf099ca987434 | 64a4b891bf7b50afc594132e044e23ef8bd9e3ac | /Python/Experiment_Analyse Git Commit Data/analyseGitCommitData.py | d27e7bf0d0fdcd68a089149123b29cd7a3241546 | [] | no_license | aamreeta/Dnerys | 8fad5f7e658b692b250e509a4da090e49c92f1a7 | bbb6abb740c3e2a6e3cc68586d4c824d1b2c8413 | refs/heads/master | 2021-01-10T14:45:11.974864 | 2016-03-14T20:14:42 | 2016-03-14T20:14:42 | 48,515,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py |
# coding: utf-8
# In[3]:
import pandas as pd
import matplotlib.pyplot as plt
#get_ipython().magic(u'matplotlib inline')
from time import gmtime, strftime
# In[2]:
#Analyses commit statistics of d3.js codebase in git
df = pd.read_json('d3CommitLastyr.json')
# In[4]:
df['weekFormatted'] = df['week'].map(lambda x:... | [
"aamreeta@grantawish.foundation"
] | aamreeta@grantawish.foundation |
4a4a0b1f3ecfd4e41e328ad8fac2613fb5d4dd66 | 934c8d47e875c3b362dd88df857b2c208a0991c2 | /script/classifiers/plotEstimate.py | a792091e985b2d21968a7697f04108e35528727b | [] | no_license | Songcoming/AppFingerprint | 68b3c0a64e635db765c922da9c5ebcfec75746ad | f1281de3b62817cc165e13c96ce88bbfcb59279e | refs/heads/master | 2021-05-14T03:39:40.352580 | 2020-02-20T02:59:57 | 2020-02-20T02:59:57 | 116,622,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 2018-01-09 by r4mind
import matplotlib.pyplot as plt
import numpy as np
from sklearn.preprocessing import label_binarize, binarize
from sklearn.metrics import accuracy_score, precision_score, recall_score
class plotE:
def __init__(self, pro_res, test_y):
... | [
"songcoming@gmail.com"
] | songcoming@gmail.com |
eab2caeb4895f41758003e18fdf8ef3f77eb9fb2 | 5f3ba91c2476a4735d8d31c3c9f5399070e32c09 | /Python/testSerial.py | e780bceb10dcb4beb5acf27726d32ddde42f6e46 | [] | no_license | MadeByOzzy/copper | db825e8323411193bd912731fa9d393896891b82 | 9a5617af1833e1bb998ba6c9266aa6d3122ce1d7 | refs/heads/master | 2023-06-23T01:51:47.549920 | 2021-07-26T04:17:44 | 2021-07-26T04:17:44 | 290,682,778 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | """
MadeByOzzy
Support:
Bitcoin
1P4kBPyFoR6xa4sy2hnHL3oY6sg4PrXn6M
Digibyte
DMgbQqZ9Vr7KrCxd7LrPJE5kWYHZX7DTTW
Monero
46NQaqW3ZNvUt3DCSxLLLyHpaVMSbwLqS3tHmhVLrafXU3K2crb12qK4PfN7kaHkaLcSTs9cCX1NMPsaCnSMhkRACWzxmax
Contact:
madebyozzy@gmail.com
"""
import serial
# open serial ... | [
"o.enriquez89@gmail.com"
] | o.enriquez89@gmail.com |
6c5cd79681f2a8d118e3317988a3e27d20cd98f0 | 580e35b907ec6a19f276af279b30d5f5d3d98acc | /models.py | 64bd3ad21be36081dd141a3f32f8fa66905b924b | [] | no_license | LordAle/ModularWorld | dd0e1f1362886de7dccb8785e6052827ba676ebd | 581426f803ac229d0c837b25cb23447e1c6bd616 | refs/heads/master | 2021-01-19T23:00:38.449359 | 2017-05-08T18:16:00 | 2017-05-08T18:16:00 | 88,906,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import sys
from PyQt5 import Qt, QtCore, QtWidgets, QtGui, QtSql
class StringListModel(QtCore.QStringListModel):
def __init__(self):
super().__init__()
class ItemModel (QtGui.QStandardItemModel):
def __init__(self):
super().__init__()
class ValueListModel(QtCore.QAbstractListModel):
... | [
"lordale29@gmail.com"
] | lordale29@gmail.com |
1f6f383024cba613d8e1f172dab3ca6c85fe62b6 | 7d5bc6b0512c263a890f0b7e4716df52340f8c70 | /no_display_game.py | a15df21c71e28e626ace482f9a0e1f717e5da922 | [] | no_license | ccs-computing-w19/tetris_ai | 33aa603119ca9288807e1f53d83f75ae8721cfa3 | 20d6125b14e192f8f63d5d2707fea2891f5b0296 | refs/heads/master | 2020-04-16T21:53:19.670498 | 2019-03-19T12:07:19 | 2019-03-19T12:07:19 | 165,944,117 | 1 | 0 | null | 2019-03-05T01:55:03 | 2019-01-16T00:17:04 | Python | UTF-8 | Python | false | false | 742 | py | #!/usr/bin/env python3
from tetris.tetris import Tetris
import pygame, sys
from math import pi, sin
import random
MAXCOLORS = 1
N = 500
def main():
avg = 0
for i in range(N):
p = playGame()
print(f"{i}: {p}")
avg += p
print(f"Average: {avg / N}")
from ai.ai import AI
from ai... | [
"bdarnell@2018.kehillah.org"
] | bdarnell@2018.kehillah.org |
c2c20dd056484c14e69169a7ae4148565fa0de4a | 2fd93ac743fcb157188c0aad099a6fa08f632a90 | /db_utils.py | 26e230bb310a593cd8397ffad3110dc874926bd0 | [] | no_license | gmitiy/fiksik | 067475aae6f3892fd7434d3ccf13301f022688b2 | bdf6898bfe9f36091917cc8cd5932a28555ab589 | refs/heads/master | 2023-08-10T00:39:31.714548 | 2023-04-05T22:28:08 | 2023-04-05T22:28:08 | 217,368,244 | 0 | 3 | null | 2023-08-02T01:34:26 | 2019-10-24T18:34:26 | Python | UTF-8 | Python | false | false | 1,723 | py | from pymongo import MongoClient
from pymongo.collection import Collection
from simplecrypt import encrypt, decrypt
crypto_password = 'KNzf5XsV0DTtHKruIkWD76IvCqXnEIdp5iMS6Lh4'
class Database(object):
def __init__(self):
self.client = MongoClient()
self.db = self.client['fixik-db']
def upsert... | [
"Muravyev.D.Yu@sberbank.ru"
] | Muravyev.D.Yu@sberbank.ru |
43eca989968d899a3043e2ccaeac248d488dc58f | 4aac43c99199230a59959b22f0f59c74e4292fae | /office/urls.py | 806f03ce44194c079ead0aa43b0dee67bbf8b389 | [] | no_license | feden2906/djangoDRF | 36e118c0274aa0222e0b81e370714128f61860a0 | 175085ad91ce4c0e5feddc2c48c8b3c9af3161ea | refs/heads/master | 2023-05-01T16:16:39.854355 | 2021-04-25T09:16:46 | 2021-04-25T09:16:46 | 359,487,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.urls import path
from .views import MyApiView, ReadUpdate
urlpatterns = [
path('', MyApiView.as_view(), name='myApiView'),
path('/<int:id>', ReadUpdate.as_view(), name='ReadUpdate')
]
| [
"feden2906@gmail.com"
] | feden2906@gmail.com |
cbec7e327298f16a3858479629050aec0b057742 | 277130ea1174a27aefd301b2171f455a3b439d31 | /API/api.py | c87aefc739c9ed1f089f4f496cd288ead0483aee | [] | no_license | epifaniofrancisco/Conversor-de-Moedas | 199b8828272d6edbb5fbe3e27af8566b1784677b | 15bfdb29eb123e11149eaa214cfb565f92c14d6e | refs/heads/master | 2023-06-08T10:46:37.933222 | 2021-06-27T19:59:59 | 2021-06-27T19:59:59 | 350,720,959 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | import os
import sys
import requests
import socket
import json
def conectado():
try:
socket.create_connection(("www.google.com", 80))
return True
except OSError:
pass
return False
def pega_api():
response = requests.get('https://economia.awesomeapi.com.br/json/last/'
... | [
"epifaniofrancisco03@gmail.com"
] | epifaniofrancisco03@gmail.com |
b221ad4641f6d3b0f304e77820b72eeb21327c1a | f4bf81d4e80468331a09401dbaeef12465aca853 | /lib/python/helpers/profiler/run_profiler.py | d1054a5f28c84804105642bc0bdc2a81ea369adb | [] | no_license | nottyo/intellibot | 45c41d673608a0a1291c6387f9d33ef449f18837 | 0547d987deaad90260abe33db5284eae9704eb9b | refs/heads/master | 2020-12-30T23:59:29.795725 | 2017-04-10T07:53:59 | 2017-04-10T07:53:59 | 86,574,980 | 1 | 0 | null | 2017-03-29T11:37:54 | 2017-03-29T11:37:53 | null | UTF-8 | Python | false | false | 5,121 | py | import os
import sys
import time
import traceback
from socket import AF_INET
from socket import SOCK_STREAM
from socket import socket
from _prof_imports import ProfilerResponse
from prof_io import ProfWriter, ProfReader
from prof_util import generate_snapshot_filepath, stats_to_response, get_snapshot_basepat... | [
"traitanit.hua@ascendcorp.com"
] | traitanit.hua@ascendcorp.com |
a0a705b21ce347f6c0912d0c78384de49ba70851 | c64d549d0b3e92556ce56a4d78444d8f866d092f | /MaxineFolder/footballdata.py | 964db0b004525f2766eae42204fb603e9f0f4159 | [] | no_license | w1ldweasel/LittleDonkeyRepo | f87198bf7f4fa532db32865588a932fbd147a8ae | d100b68706b9143c07488098c9ed2293b7a2505b | refs/heads/master | 2023-08-17T12:26:21.489483 | 2022-08-25T08:51:13 | 2022-08-25T08:51:13 | 163,674,638 | 4 | 7 | null | 2023-08-15T03:05:52 | 2018-12-31T14:20:31 | Python | UTF-8 | Python | false | false | 2,746 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 16 20:38:25 2019
@author: maxinemcfarlane
"""
import json
import requests
from google.cloud import firestore
import os
import config
#function to set up API call and get data
def main():
sdate = '2019-08-10'
edate = '2019-08-10'
... | [
"maxinemcfarlane@yahoo.co.uk"
] | maxinemcfarlane@yahoo.co.uk |
ae51b463c8c8fc793cfe75141ee0b703b7fcef75 | 3b5e934d1b57f316b63778e77f13b5fc77bb0fa3 | /examples/example4_connect_colors.py | 3bcc093250cd5a07f804a8dd958ed96cdb054d15 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | fourstix/Sparkfun_CircuitPython_QwiicTwist | b95a5476a6166f90c3cfeabfd23bbf85d56e9be4 | 1ed88be07e9637c3eb5115f092047aca803036fe | refs/heads/master | 2021-12-23T02:10:46.830891 | 2021-11-15T17:37:30 | 2021-11-15T17:37:30 | 192,611,810 | 5 | 4 | MIT | 2021-11-15T17:37:31 | 2019-06-18T20:59:19 | Python | UTF-8 | Python | false | false | 2,226 | py | # SPDX-FileCopyrightText: Copyright (c) 2019-2021 Gaston Williams
#
# SPDX-License-Identifier: MIT
# This is example is for the SparkFun Qwiic Single Twist.
# SparkFun sells these at its website: www.sparkfun.com
# Do you like this library? Help support SparkFun. Buy a board!
# https://www.sparkfun.com/products/15... | [
"fourstix@gmail.com"
] | fourstix@gmail.com |
58607a41e7276b047ff598a27091b51e3dee0155 | 906305216f66d5e8388b7c0c6da6b1ff4d941417 | /screencontrol/apps.py | 0794ee15a1f6aaf64db72d3b315f2f90e8eed0f3 | [] | no_license | alegend4u/RemoteControl | 197bfd27ffc19e5c201ddfda5fd93694364acf83 | 027db239441f17b11f992c50f01aff259c15dd20 | refs/heads/master | 2023-03-01T07:59:40.795323 | 2021-02-07T06:05:28 | 2021-02-07T06:05:28 | 336,509,908 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class ScreencontrolConfig(AppConfig):
name = 'screencontrol'
| [
"rishabh.prajapati0@gmail.com"
] | rishabh.prajapati0@gmail.com |
63f26a8db8b11444b2c37dda05f8b04c536308c0 | 5fe709d0643394168dd919bbc721adabebe60a97 | /profiler/translation/seq2seq/models/gnmt.py | b3bc9147c44775f20a46b6cbce1d24d4ee9b4917 | [
"MIT"
] | permissive | vibhatha/pipedream | 8232b67366a0dd84e41fd496c9b2e8b86dbfdd89 | af6b811f5d01a68e9eb91065e5242fc1a075f279 | refs/heads/master | 2020-12-20T18:21:35.337352 | 2020-07-06T04:54:23 | 2020-07-06T04:54:23 | 236,167,878 | 0 | 0 | MIT | 2020-01-25T12:34:04 | 2020-01-25T12:34:03 | null | UTF-8 | Python | false | false | 2,830 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import torch.nn as nn
from mlperf_compliance import mlperf_log
from seq2seq.utils import gnmt_print
import seq2seq.data.config as config
from seq2seq.models.seq2seq_base import Seq2Seq
from seq2seq.models.encoder import ResidualRecurren... | [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
d41cd5bb1e95d28920059a5bf47df25dd148c27a | ab1075529d280a0644287aa20e8b55f738d3bd14 | /src/polygon_builder.py | 4a90b3fd7259d90cd5c95c18512646d9c8103bc6 | [] | no_license | gardzielb/polygon_editor | 51e72c9d2b6a0e1ab96fa3db3fb281dd09829242 | 851086fa0271ac9d544b997d544faa9724a84d88 | refs/heads/main | 2023-01-22T01:26:52.266293 | 2020-10-24T14:50:58 | 2020-10-24T14:50:58 | 302,644,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from typing import List, Union
from PyQt5.QtCore import QPoint
from src.geometry_drawer import GeometryDrawer
from src.polygon import Polygon, Vertex
class PolygonBuilder:
def __init__( self ):
self.vertices: List[Vertex] = []
self.is_finished = False
self.floating_vertex: Union[Vertex, None] = None
def a... | [
"bartosz.g.1999@gmail.com"
] | bartosz.g.1999@gmail.com |
1e21acec2110266a609612328d221ff317740237 | fff80cdaf12712704f36038479f50418253f42f3 | /redex/tools/python/file_extract.py | 51555fbbeb5606571a2b01d6e5c97431b3c873f0 | [
"MIT"
] | permissive | rudolfkopriva/Facebook | 1ea0cfbc116f68ae0317332eeb9155461af5645a | 56e4c6a83f992bb01849ad353004b28409e53eef | refs/heads/master | 2023-02-14T01:54:36.519860 | 2021-01-05T02:09:26 | 2021-01-05T02:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,013 | py | #! /usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import binascii
import re
import string
import struct
import sys
from io import BytesIO, StringIO
SEEK_SET = 0
SEEK_... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
8bc50b24e9b75524309e1ba2a0c6eb73205023fb | 37ccec1e5de3ce8e0c0eb1b5c14cfa85ab64f855 | /scraping_projects/budget/budget/settings.py | 16925c730204c6021f8f70558580d14f2b9c7abc | [] | no_license | skickham/Projects | 36e27c0791ed85a95d2d3fca4e90cefdda7fe4e9 | ea48d72b709bb294352eb48a58c7bd6985286a91 | refs/heads/master | 2021-01-20T13:55:56.274199 | 2019-03-23T16:16:14 | 2019-03-23T16:16:14 | 90,538,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | # -*- coding: utf-8 -*-
# Scrapy settings for budget 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/latest/... | [
"skickham@gmail.com"
] | skickham@gmail.com |
56ad2a96753d6c4b99812e35b0e42c5c56e59cb3 | 34d0bd4f05bc308d6e55ab279c7a3003a079a20a | /customer/migrations/0002_auto_20180314_1758.py | aef9c9d1f729ed503dccc44d185ac8c73a00bdcc | [] | no_license | avinashchinna/Digimarketing | 5fc18f6094354d2ef805a358c43893de51350477 | 93f75c59a1e13cc1086e4a1890669859b6d1994a | refs/heads/master | 2020-03-08T00:50:54.831265 | 2018-04-06T21:45:41 | 2018-04-07T05:31:44 | 127,815,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-14 17:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"avinashdec12@gmail.com"
] | avinashdec12@gmail.com |
66e127882aa5f7aef38500c3d4fe9c4904f7d2f9 | 22507af90452c0cdf4201faa55759578f278042b | /2017真题/1-背包问题.py | 885f00917ce38fa4eadad3c35f87572ba5c426ac | [] | no_license | amberhappy/-offer | 5b47d31dccf16fe6a677ac1fd25237ecbefc3bd4 | 1caae928cc63e4311f9d87178d2285d6869bc65d | refs/heads/master | 2020-03-30T03:32:43.092133 | 2018-10-08T09:15:01 | 2018-10-08T09:15:01 | 150,694,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | #用动态规划来解决。n=5是物品的数量,c=10是书包能承受的重量,
# w=[2,2,6,5,4]是每个物品的重量,v=[6,3,5,4,6]是每个物品的价值,先把递归的定义写出来:
def bag(n,c,w,v):
res=[[-1 for j in range(c+1)] for i in range(n+1)]
for j in range(c+1):
res[0][j]=0
for i in range(1,n+1):
for j in range(1,c+1):
res[i][j]=res[i-1][j]
if j>=w[i-1] and res... | [
"noreply@github.com"
] | noreply@github.com |
b245e5a377d716fee5f8ef9bf18f03d9f9c80076 | a0050eef9dc66e5c9cef1f86c9fbc6e88e1a9efe | /detail.py | 35703cdd10a37a49fefc0b1d4688945c1deb0b75 | [] | no_license | 1ap1ace1/dota_draft_analysis | dd6bbeca165617f28cb99f00ece21d08420723e4 | f5157e990bd4700f8242a4751166375d48a3abf4 | refs/heads/master | 2022-11-29T05:24:50.493416 | 2020-07-31T09:11:35 | 2020-07-31T09:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | # -*- coding: utf-8 -*-
import sys
# reload(sys)
# sys.setdefaultencoding('utf8')
# 爬取每个英雄队友的英雄和对手的英雄
from lxml import etree
import urllib.request #引入urllib库
headers = {'User-Agent': 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Saf... | [
"noreply@github.com"
] | noreply@github.com |
c39db10d808258af284f28ff896b0a2a773d6731 | b75d293d9d86c0ef51b7f073a737ab9a04dd012d | /graphcontracter.py | 02f8baf479d89bca08e4ff01a2aa63abb00a175a | [] | no_license | SirFloIII/MustererkennungLVA | aaf297902c67a07c74f5bd18cdb37568801985d7 | 34b4ae31e2d2182c59eb16e7f3df1bf77ff59436 | refs/heads/master | 2020-08-17T02:05:13.741059 | 2020-04-29T20:00:33 | 2020-04-29T20:00:33 | 215,589,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,368 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 9 00:11:25 2019
@author: Flo
"""
import numpy as np
import networkx as nx
import PIL
from matplotlib import pyplot as plt
from tqdm import tqdm
def weightedAvg(a, a_w, b, b_w):
a_w, b_w = a_w/(a_w+b_w), b_w/(a_w+b_w)
return a*a_w + b*b_w
def weightedColorAvg(... | [
"sirfloiii@gmail.com"
] | sirfloiii@gmail.com |
a04d75858ba2844d6951959f99a414fb463a09f1 | 0dc30fdbaf01ef3abce44ec346b79bd7ae3e8d21 | /reactcrud/customers/serializer.py | a8e16078d5a8f4ded101cbbdb194ec0fe100bf22 | [] | no_license | graham-arnold-uw/djangoapps | 99cd5af0738a35827f6657dbaadf35d202f31d59 | 57a806583b4c92e6636bfae1c4fb9c6fda493b66 | refs/heads/master | 2023-06-21T09:45:30.118113 | 2021-08-03T03:01:38 | 2021-08-03T03:01:38 | 261,330,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from rest_framework import serializers
from .models import Customer
class CustomerSerializer(serializers.ModelSerializer):
class Meta:
model = Customer
fields = ('pk','first_name', 'last_name', 'email', 'phone','address','description')
| [
"graham.arnold.uw@gmail.com"
] | graham.arnold.uw@gmail.com |
09ab9b6f06d698b594a818c4af35c32bc7edc2b3 | b03cea0b969c85ff0bf9fff812455fcee1eb6b4a | /Final/wsgi.py | e4b0e8e428e0b5dc18dec23d136963756e2f69f0 | [] | no_license | aidint/RaspFinal | d336c002ed08d020d02ed40167b2da2ac7b72c1f | 0d6b81939dbecafe7711d790b5996528bc58b4ad | refs/heads/master | 2023-05-30T06:08:32.386735 | 2023-03-31T14:36:02 | 2023-03-31T14:36:02 | 145,028,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | """
WSGI config for Final project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"at.aidin@gmail.com"
] | at.aidin@gmail.com |
061fe972ecdad1ec51120da0860d9de898343e24 | 4e8aea41721c55f5a2116ff45d070de98a14c43e | /python_git/raspi/pcf8591.py | df4df5b678a9bfd8ba855e5308041fa249a8e3fe | [] | no_license | joh1n/python_lcn | 2237aa85a8d5d83aa8602b4300e157e4e23c08df | 308a0efeec0355629f0d7e8841eac5febd9e4cbc | refs/heads/master | 2021-05-15T03:59:14.727967 | 2018-03-05T09:50:06 | 2018-03-05T09:50:06 | 120,183,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | #!/usr/bin/env python
# encoding: utf-8
'''
import smbus
import time
address= 0x48
cmd = 0x 40''' | [
"q1304852625@live.com"
] | q1304852625@live.com |
5b705490604db0a1a4ae401173e84131a9f30d0e | 30143fd5eca0c3f284aa2b8d6525744d5904897e | /src/invoices/apps.py | 9afcfbf1d21ddfdb264a29ff597577935396ae92 | [] | no_license | PierreKimbanziR/Company_administration | 94816322cd2a160ef73f0f54223f816f598b6aa6 | 4a07eaed179729d3b8ee2d300d10cf08ff55e7ac | refs/heads/master | 2023-02-02T10:11:25.726698 | 2020-12-15T21:15:25 | 2020-12-15T21:15:25 | 306,632,465 | 0 | 0 | null | 2020-12-15T20:34:43 | 2020-10-23T12:38:23 | JavaScript | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class InvoicesConfig(AppConfig):
name = 'invoices'
| [
"kimbanzip@gmail.com"
] | kimbanzip@gmail.com |
9148568363f1d78ebb5512b98c068bc272dba15f | ee6c4c1136a420eda5ca2530a223d7c480cb856a | /Part 2 - Regression/Section 9 - Random Forest Regression/practise.py | 6e205775e60dd67fd75cc974736c6303f21ca778 | [] | no_license | rohitmahor/ML-Python3 | 9b2022f3c01375c759f8a49186134544cd07ce3a | c98d5c6bd6bb61c38542da0a26287ad05f957bb9 | refs/heads/master | 2021-09-16T10:12:53.855389 | 2018-03-14T14:07:33 | 2018-03-14T14:07:33 | 119,412,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# importing dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
# Fitting random forest regression
from sklearn.ensemble import RandomForestRegressor
regressor = RandomForestRegresso... | [
"rohitmahor09876@gmail.com"
] | rohitmahor09876@gmail.com |
2e2d2bddd854b9e7b669284c8523b6c90a82101c | 6b5d6690678f05a71837b85016db3da52359a2f6 | /src/tools/perf/benchmarks/robohornet_pro.py | a835c4a0e28d47001e2aa0d97a71e998e9552dd9 | [
"BSD-3-Clause",
"MIT",
"GPL-2.0-only",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/MQUIC | eda5477bacc68f30656488e3cef243af6f7460e6 | 703e944ec981366cfd2528943b1def2c72b7e49d | refs/heads/master | 2022-11-22T07:41:11.374401 | 2016-04-08T22:27:32 | 2016-04-08T22:27:32 | 282,352,335 | 0 | 0 | MIT | 2020-07-25T02:05:49 | 2020-07-25T02:05:49 | null | UTF-8 | Python | false | false | 2,360 | py | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs Microsoft's RoboHornet Pro benchmark."""
import os
from core import perf_benchmark
from telemetry import benchmark
from telemetry import page as p... | [
"junhuac@hotmail.com"
] | junhuac@hotmail.com |
ae31c6e804ed9f4340a0f5bf2a517d01e927d895 | 02dc024f1fb66bd57e18d184df701ba3c423e0ec | /sync.py | b1aed2879e772d4f7a20ddcb8c0629ae8ad0ac3c | [] | no_license | Z3376/Radio-Data-Analysis | 77b1bba516548b45cf2f0ec65376a91ec97e8e11 | ef14f18ae9f8e0ceb78c38bb02edf54cdc72f8d5 | refs/heads/master | 2020-05-21T15:47:24.298296 | 2019-05-11T09:31:03 | 2019-05-11T09:31:03 | 186,099,846 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,538 | py | #!/usr/bin/python
from os.path import getsize
import numpy as np
import matplotlib.pyplot as plt
import sys
import pyfftw
def trans(a):
if(np.abs(a[0]-a[1])==1):
return 1
else:
return 0
if(sys.argv[1]=='-d'):
file_name_1 = 'raw_ch01_B_P_20170714_042859_009.mbr'
file_name_2 = 'raw... | [
"noreply@github.com"
] | noreply@github.com |
fa1c1acb5f660571bc40e66b8b1f729a4d7a836f | 42ba1ebb6ed31affb6d94797acd7fd20e0398b59 | /venv/lib/python2.7/site-packages/zappa/core.py | d71fd00e569da14458abfa3fff87862998b942be | [] | no_license | jonschwadron/mysite-zappa | 72cb8f8e609300b8a8cd559fb370f97bc895dcc4 | de4c8615e768d22c2c4ce9fb69158df5a04292de | refs/heads/master | 2020-12-30T11:59:49.218261 | 2017-05-16T16:58:33 | 2017-05-16T16:58:33 | 91,481,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,152 | py | from __future__ import print_function
import boto3
import botocore
import glob
import json
import logging
import os
import random
import requests
import shutil
import string
import subprocess
import tarfile
import tempfile
import time
import troposphere
import troposphere.apigateway
import zipfile
from builtins impor... | [
"jonschwadron@gmail.com"
] | jonschwadron@gmail.com |
257d9c5993e931be92ff8bd92ceacd54ed6c9727 | 3869cbd5ee40e2bab5ca08b80b48115a7b4c1d5a | /Python-3/basic_examples/strings/string_expandtabs.py | c31cbcf03990c262555129f083b6bf6e26bbd25b | [
"MIT"
] | permissive | Tecmax/journaldev | 0774c441078816f22edfd68286621493dd271803 | 322caa8e88d98cfe7c71393bcd2a67cf77368884 | refs/heads/master | 2020-07-08T04:05:03.028015 | 2019-08-12T09:17:48 | 2019-08-12T09:17:48 | 203,559,030 | 0 | 1 | MIT | 2019-08-21T10:13:47 | 2019-08-21T10:13:47 | null | UTF-8 | Python | false | false | 559 | py | s = 'A\tB\tC\tD'
print(s)
print(s.expandtabs())
s = 'ABCD\tE\tF'
print(s)
print(s.expandtabs())
s = 'ABCDEFGHIJK\tG'
print(s.expandtabs())
s = 'ABCDEFGHIJK\t\tG'
print(s.expandtabs())
s = 'ABC\tD'
print(s)
print(s.expandtabs())
print(s.expandtabs(tabsize=0))
print(s.expandtabs(tabsize=1))
print(s.expandtabs(tabsiz... | [
"pankaj.0323@gmail.com"
] | pankaj.0323@gmail.com |
fbcb4acfd6d0163d863b823f892f70619a4ffc1c | b11515cf64a6bfd3df24a7493b9e25794007b16d | /Week 4/4.10.py | d18df7dd24ecc9a4b802ff25cf71b36d01e7ce59 | [] | no_license | G00sen/infa_2020_Apishev | 76f2b7b7577226ef76f2cd3a2a7cc2efbf1e3329 | 8e2399a8dc15022003eae82bb0e57ab3ae28454e | refs/heads/main | 2023-02-02T03:39:44.909917 | 2020-12-21T21:26:58 | 2020-12-21T21:26:58 | 311,772,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | def sum_seq(a):
a = int(input())
if a == 0:
return 0
answ = a + sum_seq(a)
return answ
a = 0
print(sum_seq(a))
| [
"sultanapishev8@gmail.com"
] | sultanapishev8@gmail.com |
4af53565126e9ef7cdc6efbda1ee5a71aebc33ad | 0f076585eb00327746c100a09e73f62f550c86ea | /pretty.py | 490e33fa065748e6d75f2e16071d85ed2a502f87 | [] | no_license | mdoakley1/beautifulsoup | 0e61d5b6c501ebe0662eb98adf7b198e1ccd688d | 229e36e14037212a9aaa06b962492776e27784c5 | refs/heads/master | 2022-11-22T09:12:17.802883 | 2020-07-21T16:54:48 | 2020-07-21T16:54:48 | 255,233,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/python3
'''
Simple script to read a web page and create a file with the corresponding
formatted ("pretty") html. Example:
./pretty.py http://google.com
'''
import sys
import requests
from bs4 import BeautifulSoup
import lxml
try:
url = sys.argv[1]
except IndexError:
url = in... | [
"moakley.email@gmail.com"
] | moakley.email@gmail.com |
a72bf1e2b39f2476cd8b658a62118d236cf164a7 | 4f026ddcf8f058d884f15259f0e42c2178eb2157 | /roomlistwatcher/common/messaging/filters.py | 787b395ad5017aa059aacbf980e915a82a2ffff0 | [
"MIT"
] | permissive | dnguyen0304/roomlistwatcher | afd95e5f601f77fc8d7c4cd4307e60f36b53162c | 7ac4d5172de22dd8906662da521995c8e06c2617 | refs/heads/master | 2021-01-20T22:55:04.289589 | 2017-11-16T04:09:49 | 2017-11-16T04:09:49 | 101,829,306 | 0 | 0 | null | 2017-11-16T04:09:49 | 2017-08-30T02:38:56 | Python | UTF-8 | Python | false | false | 382 | py | # -*- coding: utf-8 -*-
import abc
class StringFilter(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def filter(self, string):
"""
Parameters
----------
string : str
Returns
-------
str
If the data should not be filtered. O... | [
"dnguyen0304@gmail.com"
] | dnguyen0304@gmail.com |
0132677785832594e83767b96f638ba32776b722 | 62f3608b4829827443d15980f9fef6625e9ae1ea | /03_List/magicians.py | db7b3661284e5512a97500570c765c95fe58684b | [] | no_license | lxxxc/Python | a77ea705e9485a849b02fcef157cde6495791225 | 26d1e21792d4baeac1de2e9f9a837a78691b8ec5 | refs/heads/master | 2021-10-18T23:56:26.618066 | 2019-02-15T15:21:04 | 2019-02-15T15:21:04 | 111,987,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #for循环
magicians = ['alice', 'david', 'carolina']
for magician in magicians:
print(magician)
print(magician.title() + ", that was a great trick!")
print("I can't wait to see your next trick, " + magician.title() + ".\n")
print("Thank you, everyone. That was a great magic show!")
| [
"lxc115@126.com"
] | lxc115@126.com |
6b7bfcc4c5ed112a62ffd6e64d0bb6fd9464fd1f | 6c7d80dcecd91dbdceae068835e7c75b1005d84a | /Sorting Algorithm/selectionSort.py | efb8aff11654fa0f426d7d081628dd11c39420a7 | [] | no_license | harkaranbrar7/Algorithm-Python | bb47abd60c63373d9b0126b6dfb07824ac8c2e5d | 58ccd6974838784b5a0c64ea5f7067433d4e2037 | refs/heads/master | 2022-04-08T16:26:49.445074 | 2020-03-18T17:26:28 | 2020-03-18T17:26:28 | 233,134,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | def selectionSort(self,arr):
# Trraverse through all elements of list
for i in range(len(arr)):
min_idx = i
for j in range(i+1,len(arr)):
if arr[min_idx]>arr[j]:
min_idx = j
# Swaping
arr[i],arr[min_idx] = arr[min_idx],arr[i]
return... | [
"harkaranbrar7@gmail.com"
] | harkaranbrar7@gmail.com |
289bc61f6ef65463fb629addb44ad0eb0a078c97 | 609d0984c62da6f695553bc1c3f1a9189e0cb220 | /models/visual_eval_rels.py | 68ee1888c96ecbea6cea0b4295516d366263be3d | [
"MIT"
] | permissive | Kenneth-Wong/het-eccv20 | 84823a9626425c1e6f55ad8b0df71d11c35e2c89 | 9324f518e04fbd3b4c81357c1ae9a5e12f1157a3 | refs/heads/master | 2022-11-17T12:10:10.007919 | 2020-07-20T00:58:22 | 2020-07-20T00:58:22 | 279,321,885 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,881 | py | from dataloaders.visual_genome import VGDataLoader, VG
from dataloaders.visual_genome200 import VG200
from dataloaders.visual_genome200 import VGDataLoader as VGDataLoader200
from dataloaders.visual_genome200_keyrel import VG200_Keyrel
from dataloaders.visual_genome200_keyrel import VGDataLoader as VGDataLoader200_... | [
"wwb@wwbdeMacBook-Pro.local"
] | wwb@wwbdeMacBook-Pro.local |
36bfb31de761465220d111f7ed041193f26787ca | fc289413f28930d1e205ed2fc3bbf8b5cf5b55b7 | /src/model/Cell.py | 79763a14e47a34178fc94fb95a9627b88d16b5e9 | [] | no_license | rockcor0/the-program-123-game | ccd3970dc3ca5857ba17b1acae046cafff836ede | fa2d58247ed3affecad0d1a1fe79af2bbf310719 | refs/heads/master | 2023-02-25T05:39:47.196579 | 2021-02-09T01:57:47 | 2021-02-09T01:57:47 | 317,264,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from src.model.Item import Item
class Cell:
def __new__(cls, *args, **kwargs):
print('Creating cell - new')
return super(Cell, cls).__new__(cls)
def __init__(self, x_coord, y_coord, z_coord):
print('Initialize cell - init')
self._x_coord = x_coord
self._y_coord = y_co... | [
"ridel007@gmail.com"
] | ridel007@gmail.com |
e54de02e976647aa74f068b06084f0e6aa09524f | 0e60ed9251cd6e2ccc9645c45783a53fdabc22aa | /backend/home/migrations/0003_auto_20200613_0652.py | 3f900f39b9ebe293952dd7350fd52cfd4ad1297b | [] | no_license | crowdbotics-apps/mobile-13-dev-5964 | 7b522691afd94b4e7662ba5244abb1a8ab6768a3 | dee9594b7a96748c4c729d77145a01c592339e01 | refs/heads/master | 2022-10-22T08:47:30.634185 | 2020-06-13T07:29:34 | 2020-06-13T07:29:34 | 271,942,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # Generated by Django 2.2.13 on 2020-06-13 06:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("home", "0002_load_initi... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
befc4c4bc0557b2f64e6afd8c0b7503466c1d9fa | 2a575a4b797c9f4b20b5ced1581f2a449abb99cb | /etc/crawling_test/yeni/naver_title_content.py | 6b08dc3db8d280d4b71e1278b7bc332043662c96 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | alswhd20/elk | 076d88207029487476c875a62081fb6adcc5f82e | 9487d66ba9f7e4bb2db9f0e7c17effd5daf74d5b | refs/heads/master | 2023-01-07T04:23:12.233252 | 2020-11-15T04:44:03 | 2020-11-15T04:44:03 | 312,959,005 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from requests_html import HTMLSession
import urllib.parse as url_parse
s_urlenc=url_parse.quote("랜섬웨어")
session = HTMLSession();
r = session.get('https://search.naver.com/search.naver?where=news&query='+s_urlenc)
tag_sel='body > #wrap > #container > #content > #main_pack > div > ul.type01 > li'
#Get News Title
for n... | [
"alswhd20@gmail.com"
] | alswhd20@gmail.com |
b23f2e5fe1e974e3f9b11f5b20f431a35ee516d3 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/nlp/FairSeq_Transformer_ID0496_for_PyTorch/fairseq/models/fconv.py | 3d524589bb9294a89f9681571921b19673ccb18c | [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 29,338 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
fab47508ab22dd44c8784237b6afad4654108197 | 7bd2fcb1c68962d82624275440e019908de93143 | /amberapi/asgi.py | e18fe56a477e8ecc77555c94feb887ebed94f4f3 | [] | no_license | istimons/projectAmber | 5d4bd6a91d3fe94ccaaf550eb4f38f7a8e125c9a | 933ae6f8fa7b9c663dcb9a886affb54c67902ef4 | refs/heads/main | 2023-06-06T17:12:31.120477 | 2021-07-03T20:38:10 | 2021-07-03T20:38:10 | 382,703,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for amberapi 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"istimons@gmail.com"
] | istimons@gmail.com |
69276d011f32a9b2e6c55fc30ffcafe1c8777932 | a510d132d5c9eee393a56a91f94cc97baac61500 | /qtmodels/usermodels.py | e5358e7e68aaaf2a3a7b80b88c4a8acd4e74ec8e | [] | no_license | SolomonN/stdm_plugin | e8447d34849aa889ce53afee4f782011553d168e | 2c5a0ae410bae4b7b6f834f3f7019017bdd8ed48 | refs/heads/master | 2020-12-13T19:43:30.320851 | 2014-06-03T07:33:05 | 2014-06-03T07:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,401 | py | '''
Created on Mar 28, 2014
@author: njogus
'''
from PyQt4 import QtGui
from PyQt4.QtCore import *
class listEntityViewer(QAbstractListModel):
def __init__(self, list=[], parent=None):
QAbstractListModel.__init__(self,parent)
self.__list=list
def headerData(self,section, ori... | [
"gkahiu@gmail.com"
] | gkahiu@gmail.com |
c114e6efc5da233c6beb6e766a4c357811dc7129 | f8e3a036a347d54b409e8e3c3fa0e782ebcbdaf3 | /user/migrations/0004_userpro_person.py | 2abe82db74a8f7f61f8df3ff0fe738acc78aa56b | [] | no_license | h-y-t/testdoc | 0dc5751c9917ffd48b2487ed5333c92fcfea3b90 | bde5922321ce8f5719a9b2f98e2212baf32866e0 | refs/heads/master | 2022-01-10T22:40:04.285662 | 2019-05-14T11:51:49 | 2019-05-14T11:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2019-04-06 08:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20190403_2104'),
]
operations = [
migrations.AddField(
... | [
"chai7712@foxmail.com"
] | chai7712@foxmail.com |
b2cabb130229e4e382cfa1823337df5c24f5f9f0 | 70832556652b7d1cbf68213cbb7a5b89045b8290 | /for_conference/sb_vlos_pdf.py | dd3264bc8075a8255aee5d8d54542125cf0006b9 | [] | no_license | rajsekhar33/HD-setup-analysis | 478c928e2f62ae63c56381baa8d996e2b251db85 | b7489d4732b8c0f373ae3de307056357e719fa0b | refs/heads/master | 2021-01-06T20:42:09.531955 | 2020-07-30T05:16:37 | 2020-07-30T05:16:37 | 99,543,903 | 0 | 1 | null | 2017-08-07T06:44:48 | 2017-08-07T06:24:00 | null | UTF-8 | Python | false | false | 4,659 | py | import numpy as np
import matplotlib.pyplot as plt
import pylab as plot
from scipy.optimize import curve_fit
#plt.style.use('classic')
params = {'legend.fontsize':16,
'legend.handlelength': 1.0}
plt.rcParams['axes.linewidth'] = 1.0
plt.rcParams['xtick.major.size'] = 16
plt.rcParams['xtick.minor.size'] = 8
pl... | [
"prateek0sharma@gmail.com"
] | prateek0sharma@gmail.com |
d510263951757835304d890a1e90951d006f02e5 | a1319a495d7c397c1ce59c1c3afd46914070c597 | /mathOperators/mathOutline.py | 7c4a0e733fa9e28056ea1891cd6ab406116db0d1 | [] | no_license | FranciscoN12/Python-Workspace | 94b64402f827a23051507fc76535ddd4ac032256 | 4e0f515c6cd2d88ad9c5e36b9761aee5366e036a | refs/heads/main | 2023-04-07T14:06:16.065794 | 2021-04-09T01:49:23 | 2021-04-09T01:49:23 | 299,793,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | '''
This outline will help solidify concepts from the Mathematical Operators lesson.
Fill in this outline as the instructor goes through the lesson.
'''
#1) Make two string variables and use the + operator to combine them into
#one new variable.
y = "name" + "your"
print(y)
#2) Make two int variables and use the + op... | [
"72116239+FranciscoN12@users.noreply.github.com"
] | 72116239+FranciscoN12@users.noreply.github.com |
76950567499f25a761480d17cfaa528a71dd1eda | 522f4b1b18416443062ec53157340fb2d6f43b1b | /ch4/automate_possible_keys.py | 028d5a70faf14dc5253f9c385bc41c6c444e2c5d | [] | no_license | thewchan/impractical_python | fd3f3d82c6f45d1fd0dea55611bc8d5369c8982c | 9963df374b7de5b3eb1faa58e45de7857c3fc792 | refs/heads/master | 2021-05-22T00:41:05.491349 | 2020-04-04T02:18:16 | 2020-04-04T02:18:16 | 252,884,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | """
Pseudo-code
ask for length of key
initiate possible integers
get sum of positive integers
get negative integers
merge into 1 string
get permutation
loop through permutation and sum up abs values
eliminate those with sum not equal to sum of positive integers
print out list of tuples
"""
from itertools import permut... | [
"thewchan@gmail.com"
] | thewchan@gmail.com |
90931b8e1c3784481c946401a320cd2f6f119177 | 8039b466773d172d19333802e24da374ac256e93 | /data-types/t-shirtts.py | 45083f64881f42cc6bbef12e48aaa861ad9ebc27 | [] | no_license | etzi71/devops-python | 5e50cecba4ad94cf9d96067b0c509f984114302d | 8e7d6d23bda3120d9d2fc880062d4724af888bb9 | refs/heads/master | 2023-01-29T10:02:15.999929 | 2020-12-03T11:19:44 | 2020-12-03T11:19:44 | 315,362,663 | 0 | 0 | null | 2020-11-30T16:09:18 | 2020-11-23T15:44:59 | null | UTF-8 | Python | false | false | 425 | py | ## T-shirts with list comprehension
colors = ['black', 'white']
sizes = ['S', 'M', 'L']
for color in colors:
for size in sizes:
print((color,size))
print ("Let's create now list of tuples:")
tshirts = [(color, size) for color in colors for size in sizes]
print ("List of tuples:")
print (tshirts... | [
"lev_epstein@gmail.com"
] | lev_epstein@gmail.com |
14c6f0e45e2e4b526697b7f796763eeebcf24ebd | a456df7d6b3d4decc2d67666980ca1855345b1b0 | /orders/migrations/0004_productinbasket_session_key.py | efbe78a9640b2f3d7bd6d3cfcb4a4e3847003f0b | [] | no_license | bokemski/django_shop_teach_app | 8b399f83b4d173a23a3dfb7417ff5f37f0f0482a | 82fd6b165bdec4a662dedaaabcb885e6b4aea385 | refs/heads/master | 2021-07-05T22:56:51.533947 | 2017-10-01T14:41:27 | 2017-10-01T14:41:27 | 105,447,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-19 13:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0003_productinbasket'),
]
operations = [
migrations... | [
"noreply@github.com"
] | noreply@github.com |
c870d7cc78e83e5a01af29e950d803b3179f836e | 694a8bf0462cbbbf0600d3e1729488647c467298 | /venv/bin/easy_install-3.5 | 76916ccdc89bb300b7a85efa9668718297a95e44 | [] | no_license | NormanBrandon/Programas-Python | 9f6d47933d85b5d84fb326467ff29154b8d5048a | a45d64b14574c64eafdf4741e8aad1d54695744f | refs/heads/master | 2020-03-12T02:52:31.077580 | 2018-04-20T20:55:05 | 2018-04-20T20:55:05 | 130,412,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | 5 | #!/home/nbrandons11/PycharmProjects/ProgramasPython/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"saldananormanbrandon1iv18@gmail.com"
] | saldananormanbrandon1iv18@gmail.com |
f91b0902af7a0ff954f0b53ddceda2fdbfb5cc05 | b2bb741f43d1cced2ca4b56ad178ec90213d48fe | /food/views.py | 3b583f6045d22e14bbbd1c7643ba5c10948c4247 | [] | no_license | visitphanikumar/django-azure-demo | b19c288082bb25374d71721adabf941ba355ad3e | ecd74bc0185de838cdda6b5ad4697626ab483b9e | refs/heads/master | 2023-08-15T19:57:43.262650 | 2021-09-11T07:06:15 | 2021-09-11T07:06:15 | 403,394,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # food/views.py
from django.shortcuts import render, redirect
def index(request):
return render(request, 'food/index.html', context=None) | [
"vipulappseries@gmail.com"
] | vipulappseries@gmail.com |
dfb5039d76388d0ca22ae58a137310e8788dca7a | 420aec9110944e534e3722ceb3815ba2a8c02771 | /peach-3.0.202-source/3rdParty/waf/waflib/extras/gccdeps.py | 94fc3a2ce30bf70c7722653bb3b28e721f915d9b | [
"MIT"
] | permissive | loverszhaokai/peach-bupt-paper | f63b25757a6e1e5b5b70e88a525587d67884b8d1 | 32f9ad02fd86746424c4d1681efcb8603a52f969 | refs/heads/master | 2016-09-05T09:52:20.217495 | 2015-01-23T02:56:25 | 2015-01-23T02:56:25 | 26,848,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008-2010 (ita)
"""
Execute the tasks with gcc -MD, read the dependencies from the .d file
and prepare the dependency calculation for the next run
"""
import os, re, threading
from waflib import Task, Logs, Utils, Errors
from waflib.Tools import c_preproc
from wa... | [
"loverszhao@gmail.com"
] | loverszhao@gmail.com |
61031c04da4a9ca217f3eb6d162d693fa5ae5309 | 79d9aa64575d7fde5f38f4f3daaf42417ba89414 | /GAN/model.py | e68369e8d15fd9069fe21bcd0699df7803c02fc1 | [] | no_license | lucasmllr/AI_lecture | 29489290a0474f1ea5ba1c18897aae1e79059310 | ed3c4cdbd6e1f7acf7f6589fd3069d4668da1ead | refs/heads/master | 2021-05-07T00:40:00.277221 | 2018-01-28T21:57:15 | 2018-01-28T21:57:15 | 110,177,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import torch
from torch.autograd import Variable
import torch.nn as nn
class Generator(nn.Module):
def __init__(self, z=100, h=28, w=28, n=1):
super(Generator, self).__init__()
out_size = h * w * n
self.z = z
self.generator = nn.Sequential(
nn.Linear(z, 128),
... | [
"lucasmoeller@me.com"
] | lucasmoeller@me.com |
1b319fe7dbf25e6d5d7dc958e3d07682a0c4d6f1 | 5070018e26f67c25883e7ae31a44043ce5e5b8e4 | /exercicio4.py | fd5a1a866986be75dc7ee2939c1fea0073ffe574 | [] | no_license | Raquelhoma/Python_BancodeDados | 86d1ae7b87db663e0384e365fe2651b5a97ef790 | 59af4866f77da226d44383c24fa9570b83073238 | refs/heads/main | 2023-04-20T15:48:53.924276 | 2021-04-28T00:48:49 | 2021-04-28T00:48:49 | 362,292,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | '''4.Escreva um script que LEIA os dados do arquivo
texto gerado na questão anterior e exiba no console
apenas os nomes dos alunos concatenado com a frase
a seguir, baseado em sua regra:
I.“em fase de adaptação” (escore menor do que 6),
II.“familiarizado com o curso” (escore entre 6.0 e 7.0 –intervalo fechado... | [
"noreply@github.com"
] | noreply@github.com |
a5846c31c6b2366554d3e964fe1fab8ed55f1bb7 | f228b0cbe141d23ad918f9fe7a40674ca8d7c963 | /First_project.py | c59b3f5d3eea312d6cae46c1d93c796c070a73e0 | [] | no_license | Vazimax/My_first_project | a990996e753a979f8bc0393ce97837be55e84418 | 36b8c61a9e05ed9b35b5364521f79c906036415d | refs/heads/main | 2023-01-23T06:04:43.082815 | 2020-11-24T18:47:02 | 2020-11-24T18:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | def odd_even_project() :
number = input("Enter a number :")
while number != "x":
try:
number = int(number)
if number%2 == 0 :
print("It's an even number =)")
else :
print("It's an odd number :)")
except ValueError:
... | [
"aboubakr.elhabti@gmail.com"
] | aboubakr.elhabti@gmail.com |
e5418a6e01abd44bbbb52f519d1e1d05859f3414 | 26ff7c11cb0a07db227564cb27ce6ca8f1c3ea6a | /common/aws_client.py | 9a32ed32524d7e3251d1318546992c3d4363c7a7 | [
"MIT-0"
] | permissive | aws-samples/swing | 5c441fcd18fc54d5d3a9c870098822f8f934a3e8 | 106fa7aa6874372cd3c81d9d7128f50cbbb97017 | refs/heads/master | 2023-01-06T18:55:52.231217 | 2020-11-10T08:30:17 | 2020-11-10T08:30:17 | 311,589,507 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import boto3
def new_session(option=None):
return boto3.session.Session()
| [
"liuzhiya@amazon.com"
] | liuzhiya@amazon.com |
060fa4140faea1c4043528d936272244ebde195d | 5b6698c7b88ea12ef40bf881d3e53cfda03ec98a | /ieeexplore/pipelines.py | 393f009d455c3d7c752e43f0bc6d1132be81880d | [
"MIT"
] | permissive | yy404/Spider_IEEE-Xplore-Digital-Library | 6286f457903b0ff0eaa93c0ff96b2f73c7466c9b | 81929986388d6534f0ddc32af1bc12a1be278405 | refs/heads/master | 2021-08-15T17:45:03.623880 | 2017-11-18T01:34:58 | 2017-11-18T01:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class IeeexplorePipeline(object):
def process_item(self, item, spider):
return item
| [
"noreply@github.com"
] | noreply@github.com |
26ad7487b6b814064588a17b42f8a7cdfc458921 | 8b92aee83dc8912995cb23eabede43e9b0d74040 | /life/views/views.py | 16fd43c40c6d0edc7ad19af3aa752cc2f0d1c129 | [] | no_license | niuyb/myweb | 096c4c54a2aeb77d4cd3e9123c868ba40466af11 | b72dcbb84f72a1f05847bc0f7f304f7482182635 | refs/heads/master | 2023-02-01T10:42:18.404537 | 2020-12-22T06:35:41 | 2020-12-22T06:35:41 | 275,487,992 | 4 | 0 | null | 2020-07-01T09:19:36 | 2020-06-28T02:06:06 | JavaScript | UTF-8 | Python | false | false | 475 | py | from django.http import HttpResponse, JsonResponse
from django.shortcuts import render, redirect
def life_page(request):
return render(request, "life/life_page.html")
#
def life_copy(request):
return render(request, "life/life_page_b.html")
def infos_api(request):
# 生活记录最多1200字
result={"data":[],... | [
"niuybKsar4@163.com"
] | niuybKsar4@163.com |
3043443962b3a5b7a9d7322aef5f7cbec614a8db | 018a6d250cd4df099e546394b9402868782321ed | /SinGAN_C_typeC/SinGAN/functions.py | c7fa62e86787b7ebb7f4460f428148714fcdba72 | [
"MIT"
] | permissive | NTHUCVProjectgroup3/CVFinalProject | 2d3252d218d495776e21feef102673389d6f92f9 | 22ed52c2ad1c5a87a2f32abeecb636d0cd6efb9e | refs/heads/master | 2022-12-04T06:07:01.065363 | 2020-01-09T03:41:41 | 2020-01-09T03:41:41 | 231,867,878 | 0 | 1 | null | 2022-11-22T08:05:14 | 2020-01-05T04:38:33 | Python | UTF-8 | Python | false | false | 14,380 | py | import torch
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import numpy as np
import torch.nn as nn
import scipy.io as sio
import math
from skimage import io as img
from skimage import color, morphology, filters
from skimage.transform import resize
#from skimage import morphology
#from... | [
"hhcs9527@gmail.com"
] | hhcs9527@gmail.com |
deb9e24ebb50ca4b2a45e647d06b8dff930156ef | 1e7024830e6e22e4be1f36af9299d7f151bddaf6 | /Embedding_Bert.py | 7474cb4cdd5724f7605578d07953b226070afe67 | [] | no_license | tardisblue9/Final-Year-Project | ffcd0d0431ae55e4af431ea1183dfd61417abacc | cd9a50262627d0a5ea0d537c1ba9eb26021f3420 | refs/heads/main | 2023-04-02T02:52:31.864797 | 2021-04-13T08:50:24 | 2021-04-13T08:50:24 | 357,472,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #encoding=utf-8
import numpy as np
import gensim
from gensim.models import KeyedVectors
import torch;
import re
import tensorflow as tf;
import torch;
import transformers;
from transformers import AutoModel, AutoTokenizer
def split(word):
return [char for char in word]
def divide_text_by_sentence(text):
te... | [
"noreply@github.com"
] | noreply@github.com |
81d412fd3979a0ce9e0b8cae0658a8cfba668778 | 0466eb0494c733d590d396250c6dc7d1d10f2227 | /Python Tuples/Ejercicio 50.py | 33e8cdd635c79d8b612fafe1c1ef2408e975f21e | [] | no_license | JoshuaRomanV/W3school-Python | 678774773decdbd0a4d0fb667ecd721cef79f2cf | 65e734cf97c6c20f392535e5e973e962495f284e | refs/heads/master | 2020-12-21T01:48:51.289627 | 2020-02-08T07:43:02 | 2020-02-08T07:43:02 | 236,270,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # Utilice la indexación negativa para imprimir el último elemento de la tupla.
frutas = ("manzana", "plátano", "cereza")
print(frutas[-1])
| [
"60124665+Willowy7w7@users.noreply.github.com"
] | 60124665+Willowy7w7@users.noreply.github.com |
57bfe5c87abb2352670b336fe2d51f70d755e8f1 | c63683d7e15e43b7b684390d57d4e4e6654edf8f | /soloist/reformat_decoded_outputs.py | fa288392d765ff1cdfdea6a8eea64cff82ce2e0a | [
"MIT"
] | permissive | wise-east/soloist | 956548f20339d50964c3d84d30fadff7302df4a9 | 963ef715f173c179859a6aea1097cd6699fe41d8 | refs/heads/main | 2023-08-14T03:19:56.643493 | 2021-09-17T06:10:37 | 2021-09-17T06:10:37 | 406,437,702 | 0 | 0 | MIT | 2021-09-14T16:10:15 | 2021-09-14T16:10:15 | null | UTF-8 | Python | false | false | 470 | py | import json
from argparse import ArgumentParser
parser= ArgumentParser()
parser.add_argument("-fn", "--filename", help="file to reformat such that we only keep the belief states")
args = parser.parse_args()
with open(args.filename, "r") as f:
data = json.load(f)
# just need to drop the first item
data = [i... | [
"jcho@isi.edu"
] | jcho@isi.edu |
416028c8780dd01160c0b6dd3d29eb7302eda7ca | 3b5ee9aa584bfca56dabc19d75717f6104c0dc95 | /gaia/compute_synthetic_decam_fluxes.py | c4888f1d885e08e3fbaada340ff8434fa33f40ce | [] | no_license | rongpu/desi-misc | 95690ca99962940fd4a793d523edf4d2ce68b4c3 | c700344ebf8f74391fcce69a47e4ca57fc4b34f8 | refs/heads/master | 2023-09-01T00:49:07.399914 | 2023-08-11T17:10:40 | 2023-08-11T17:10:40 | 173,173,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | # Convert the files from .csv.gz to .fits
from __future__ import division, print_function
import sys, os, glob, time, warnings, gc
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import Table, vstack, hstack, join
import fitsio
from multiprocessing import Pool
from gaiaxpy import generate, Photo... | [
"rongpu.zhou@gmail.com"
] | rongpu.zhou@gmail.com |
27214fe0b08f18cc505e1aa1b03d2a2493ae4500 | defac1a31326e2a318fce403aebb18f73335ade8 | /course_1_assessment_11.py | a8d4bbc24ac800073c66913d16a721abdcb0212b | [] | no_license | CoralieHelm/Introduction-To-Python-Basics-Course-University-of-Michigan | 7ab2a8bca0a5dc4d01b7f7dc3bed3726b14e6446 | a9a38a6f869e18eeacdb71e17dbd820e5ef81d5e | refs/heads/master | 2022-09-16T03:23:41.052073 | 2020-05-27T00:39:39 | 2020-05-27T00:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | #May 26 2020
#course_1_assessment_11
#seqmut-1-1: Which of these is a correct reference diagram following the execution of the following code?
lst = ['mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', 'pluto']
lst.remove('pluto')
first_three = lst[:3]
#I. ✔️ Yes, when we are using the re... | [
"helm.coralie@gmail.com"
] | helm.coralie@gmail.com |
76c636adc6a52dcef38e9fc2977e6afa5a920185 | a0de3a09c857fab7281e4ca4a70a256a4a3575cb | /als.py | b35a28e27cad3706c3bcf527164858c394b50fad | [] | no_license | poker-HuDL/machine-learning | 16fcda0ef7221f6d534b1fa929550894bc775c8a | 8cfae1e944faa67244f18d03d10ca7dd7323be19 | refs/heads/master | 2022-02-27T01:03:19.122602 | 2019-11-07T09:56:16 | 2019-11-07T09:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,658 | py | #coding=utf-8
from collections import defaultdict
from random import random
from itertools import product, chain
from time import time
def load_movie_ratings():
f = open("boston/movie_ratings.csv")
lines = iter(f)
col_names = ", ".join(next(lines)[:-1].split(",")[:-1])
print("The column names are: %s... | [
"1182563586@qq.com"
] | 1182563586@qq.com |
167e0aa64ce2767420af626e5aa6e2b676c439ca | 7c74e87d80ef98f9758eda322a00209e7cb493ae | /leader/src/main/market/utils/QuitContainer.py | 4aa38f2d1b09ec560235078f356e2f230a209832 | [] | no_license | rorymcstay/car | f95e8623b34e1f36078b1aa789d46d6fc0897c36 | b1640253d06b165b999af47b889a07b865b9809e | refs/heads/master | 2020-05-07T16:03:40.158430 | 2019-09-15T13:15:49 | 2019-09-15T13:15:49 | 180,664,010 | 1 | 0 | null | 2019-04-23T23:24:42 | 2019-04-10T21:07:06 | Python | UTF-8 | Python | false | false | 92 | py | """
Contains methods for cleaning up containers
"""
def quit_container(container):
pass | [
"rory@rorymcstay.com"
] | rory@rorymcstay.com |
81fd23aeb78ec7412c745cd309674aee82513e97 | 51fb0a0562e4b7a21c0dcc683d6a7501d26d2d12 | /test_product_page.py | b273e5aabfaa6d238cd4d7933049a3f70c161025 | [] | no_license | co0ll3r/stepik_selenium_autotest_final_task | e8c28e38552fd1a232c0e822cf808ea364e0413f | 2db341c60bee84c0f35a34026c53f8df86ede246 | refs/heads/master | 2020-08-11T21:31:55.957934 | 2019-10-15T21:13:56 | 2019-10-15T21:13:56 | 214,631,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | import pytest
from .pages.product_page import ProductPage
from .pages.basket_page import BasketPage
@pytest.mark.skip()
def test_guest_can_add_product_to_basket(browser):
link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/?promo=newYear2019"
product_page = ProductPage(browser, link)
... | [
"Kostychik97@gmail.com"
] | Kostychik97@gmail.com |
de2d34ed27bcaa9ce455909ecbcea0ae428b73c4 | e8ddc883c8ea08cc26765afcf3807b77bd5cbfe3 | /CursoEmVideo/Aula07b.py | d3696f2c1b38a6f3bbf9322abcdfceff786609a1 | [] | no_license | Igor-Felipy/Exercises | a31168a01e97115f3176f980a7cdf2c956cf9923 | 1530b43bb221adb7110ac9a3de6b7444ecca601a | refs/heads/master | 2022-07-23T22:13:57.265171 | 2020-05-23T23:07:05 | 2020-05-23T23:07:05 | 258,843,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Faça um programa que leia um número inteiro e mostre na tela o seu sucessor e seu antecessor
n = int(input('Digite um inteiro: '))
print('O antecessor é: {} e o sucessor é {}'.format(n - 1, n + 1))
| [
"igor.felipy123@gmail.com"
] | igor.felipy123@gmail.com |
52ac7d3a6a00fbd8eea5b4570a5935f778432d27 | 340c3cc7f742cd7c0dfd5c259cdea4e2455efde2 | /videoscript/google.py | c98452f54977da5743f7e26071c46a9395d20d1d | [] | no_license | vta/vtatour | 78cda87ca02fe8d9a6a6b13536ba96d80a974d00 | 369615535956019370fb73b77a87cf0b54e921d0 | refs/heads/master | 2020-12-30T15:22:17.855697 | 2018-08-03T03:33:46 | 2018-08-03T03:33:46 | 91,134,617 | 1 | 0 | null | 2018-07-09T18:14:43 | 2017-05-12T22:40:13 | JavaScript | UTF-8 | Python | false | false | 4,497 | py | import google_streetview.api
import os
import glob
from natsort import natsorted
from moviepy.editor import *
from flask import Flask
import math
import datetime
#import requests
import jsonlib
from pprint import pprint
from flask import jsonify
from flask import request
from flask_cors import CORS, cross_origin
#from ... | [
"contactsiva.spc@gmail@gmail.com"
] | contactsiva.spc@gmail@gmail.com |
7bd9eeb8b27a78a63b5220ecf681565143644cef | 39d057f162d5374c367394b038292d3239e31fc7 | /project/snapshot_dashboard/test/test_snapshot_dashboard.py | ed1b61c0004de36e6f28ac47721d87f52da9879b | [] | no_license | vs2018/PFPCS_Application_Source_Code | 37d49faabb397cf41bf81ff9a33bf865117b42ce | 31e473cf070cc7ccd05c65a7faaf69b57951d014 | refs/heads/master | 2022-02-24T20:39:43.764282 | 2019-08-27T15:27:34 | 2019-08-27T15:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,811 | py | # [1] Pytest library is used to write the unit and integration tests using @pytest.fixture and the in built python assert statement, URL: https://docs.pytest.org/en/latest/
# [2] Pandas library used for creating a DataFrame, URL: https://pandas.pydata.org/pandas-docs/stable/
# [3] Plotly library - Graph Object to creat... | [
"vsh1819@gmail.com"
] | vsh1819@gmail.com |
e458ef1faaead57266eae4efb0fe37e7a0b06bb6 | 5a5aac283da98dcd124cbdb9d3490387de7b962a | /server.spec | a779ee0fcff9a998c7d73538d9d3c42c72962c81 | [] | no_license | zanzo420/CataclysmLD | 1a76c56f01fea1c7ac8a4e66a0ed51eb37d0594b | d3da1ef0e39c2f007516f18a08e41ef91d5a5673 | refs/heads/master | 2023-08-17T10:22:54.543090 | 2018-09-08T10:04:15 | 2018-09-08T10:04:15 | 142,428,876 | 0 | 0 | null | 2018-09-08T14:03:04 | 2018-07-26T10:58:43 | Python | UTF-8 | Python | false | false | 1,155 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['server.py'],
pathex=['D:\\Dropbox\\Dropbox\\Projects\\CataclysmLD'],
binaries=[
('.\\img\\','.\\img\\'),
('.\\data\\','.\\data\\'),
('.\\tilesets\\','... | [
"enjia2000@gmail.com"
] | enjia2000@gmail.com |
3ddd3f2313bfae89fda07b64d7d4064708546f30 | 9ac4182a27626caf5f1883ef8f596d39e1f2d658 | /test_flask.py | e6db3fe80f6f5ec9167d0081c2579ab511db3d9e | [] | no_license | yashua4V/pyashua | 275bee9449b225f38490809d8d868768200b5b46 | 1f4375eb8190aaddc3c1068cad3526322b4b988c | refs/heads/master | 2020-05-19T14:53:57.957534 | 2019-06-18T08:57:46 | 2019-06-18T08:57:46 | 185,071,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | #!/usr/bin/python3
#-*- coding: utf-8 -*-
#@Time :2019/6/18 14:20
#@Author :yashua_4V
#@FileName: test_flask.py.py
#@Software: PyCharm
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route('/',methods=['GET','POST'])
def home():
return '<h1>Home</h1>'
@app.route('/signin',metho... | [
"yashua@qq.com"
] | yashua@qq.com |
4fc5e231e1ec84dadbd1c8d24d626f8ac12a7694 | cfdec6fc2e8becd6d3f0a062231dbe286a4460da | /0x16-api_advanced/0-subs.py | 00fbf498ffbbac467b9b80624c42a84a04bc50cf | [] | no_license | shefaabdu/holberton-system_engineering-devops | 78834b81b8c1f4c24dd874d07d820f5a57e88119 | d5af57614a80b0102776285a6063f706709abe48 | refs/heads/main | 2023-08-11T04:09:32.505428 | 2021-10-08T00:46:17 | 2021-10-08T00:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/python3
"""function that queries the Reddit API and returns the number of subscribers
If an invalid subreddit is given, the function should return 0"""
import requests
def number_of_subscribers(subreddit):
"""function that queries the Reddit API and returns the number of
subscribers. If an invalid ... | [
"rodrigobriones54@gmail.com"
] | rodrigobriones54@gmail.com |
c3aee63d69780a12d1f3f049b0185fab2a488aa7 | 34169012e8624547cf16f27f2438ec899701ff46 | /models/EURACE_Model/branches/Experiment_setup_linux/Experiment_single_parameter/exp13/gendb.py | a2841f4393678bbab4540667cb75fd91e97289e8 | [] | no_license | lnsongxf/EURACE | 455088f7bec3610143dde1d4eb78182aec9df580 | 59e22d0656558ea00ef52bd215f44075253cb15c | refs/heads/master | 2020-05-22T07:06:46.045790 | 2012-12-21T10:31:44 | 2012-12-21T10:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,617 | py | #!/usr/bin/env python
# $Id: gendb.py 2005 2009-07-31 14:14:48Z lsc $
#
# Copyright (c) 2009 STFC Rutherford Appleton Laboratory
# Author: Lee-Shawn Chin
# Date : July 2009
#
# NOTE: This is a proof-of-concept implementation. It was not designed for
# production use but merely to explore what is possible
# ... | [
"11057058+svdhoog@users.noreply.github.com"
] | 11057058+svdhoog@users.noreply.github.com |
f3769f931378e8330c229d6ab540f6add662665c | 1f2494e856352873edba6dd24dcd5736a6c05351 | /ResearchGate/ResearchGate/middlewares.py | b5eefc9f81ca3ee446d976609e621f7650ab3239 | [] | no_license | namvh145/Nam-Scott | c0f5ae4b2e0e9cabe7b7896d5a2153ac2b5e7cbc | a9c7c84f85bb3cecd622ec07f44e05efdf955c50 | refs/heads/master | 2021-07-04T06:54:24.790942 | 2021-05-11T09:36:02 | 2021-05-11T09:36:02 | 234,663,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | # 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
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class ResearchgateSpiderMiddlewar... | [
"noreply@github.com"
] | noreply@github.com |
39c77f8b7e07e29c1722d0d4526092164b07dd72 | 662bcf4a4654782ae2ff2d26247626623e67d22d | /point.py | 7b894e91b341817d0d44a971e38e6c7e8fe58585 | [] | no_license | victimoftrap/nstu-modern-math-problems | 37816951eea2e7456f9135f9957e6b94b7d73958 | eb1823b1e0b4dfd00c7ffb6536b37fc90a61f77c | refs/heads/main | 2023-01-01T01:02:10.743239 | 2020-10-24T13:52:38 | 2020-10-24T13:52:38 | 302,274,708 | 0 | 1 | null | 2020-10-24T13:52:40 | 2020-10-08T08:17:49 | Python | UTF-8 | Python | false | false | 683 | py | from collections import namedtuple
from math import sqrt
Point = namedtuple("Point", ["x", "y", "z"])
Point.__doc__ = """Именованный кортеж, описывающий точку в трёхмерной области. Point[X, Y, Z]"""
def distance(point1: Point, point2: Point) -> float:
"""Рассчитать расстояние между двумя точками.
:param poi... | [
"monsquizo@gmail.com"
] | monsquizo@gmail.com |
734a6592e796430167c57f69e0cac391cb05b897 | 26b23e0353cf4d993b7472d007f8911ea6e31434 | /ghibli_requests.py | 596c05c2a8210455d6cd2173e616e9f6da360bce | [] | no_license | AlexJM119/AniWeb | 18e7618b7412944d783ff86f5dd38176c5e6a264 | 5210315aed66c6074e68af860c430d2243af32c6 | refs/heads/master | 2023-07-09T12:11:51.158623 | 2021-08-09T17:24:33 | 2021-08-09T17:24:33 | 392,489,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import requests
import json
Ghibli_BASE = "https://ghibliapi.herokuapp.com/films"
sentiment = 'http://text-processing.com/api/sentiment/'
def display_all():
r = requests.get(Ghibli_BASE)
print(r.status_code)
r = r.json()
print(r)
def get_title(query):
r = requests.get(Ghibli_BASE)
r = r.js... | [
"ajmorrison119@gmail.com"
] | ajmorrison119@gmail.com |
17a8820fe5e40d1cc5d1151862145d3058ab604d | eaede30f3fc231768e6aaa4d27ba33640eb88cc3 | /batch_rl/fixed_replay/train.py | 749520ed893f2a4b1a15e186d8922fe082f12ff5 | [
"Apache-2.0"
] | permissive | tangbotony/batch_rl | 6307627135b7b99397cd3f79118b49dfc1e7e66f | 9c3d07ac91dd604132c209bca9dfbe0d71b74cb7 | refs/heads/master | 2022-04-22T13:17:02.266264 | 2020-04-23T08:14:12 | 2020-04-23T08:14:12 | 258,134,865 | 0 | 0 | Apache-2.0 | 2020-04-23T08:02:50 | 2020-04-23T08:02:49 | null | UTF-8 | Python | false | false | 3,321 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"rishabhagarwal@google.com"
] | rishabhagarwal@google.com |
16c119f54f2264d169dc7c2f07b131d64908f831 | 9e5bf5e7d0bdfa4ff2aca65ac306ed801d146608 | /python-26-pydb/pydb_07_blob.py | 6afad0b37eb1f44b3fb571eef749d6f9edb40632 | [] | no_license | AuroraBoreas/python_advanced_tricks | 90b07967789960beec381de676459c1e84b95860 | ba0940e25eda52345a27cf9ddffed9d18fa2a031 | refs/heads/master | 2022-11-27T19:09:45.666017 | 2020-08-11T17:33:11 | 2020-08-11T17:33:11 | 275,083,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | import os, sqlite3
def convert_to_bytes(file):
with open(file, 'rb') as f:
data = f.read()
return data
def convert_to_file(data, filename):
with open(filename, 'wb') as f:
f.write(data)
return
def create_table():
db_path = os.path.join(os.path.dirname(__file__), "blob... | [
"noreply@github.com"
] | noreply@github.com |
e416336d439593067d22424d13f85170c6189faa | 1d8af2c439420f9bbfb5444996441886476f82eb | /thesis-visuals/probability_fusion_comparison.py | cd22947b59e8b3724670c32a6329012cb93f5ce6 | [] | no_license | Kelvin-Hsu/ocean-exploration | f7070686218fd44a68e4a2bc26b30fef66291eba | 985e45b173a20c8d99f6e5b40c707a496343a43e | refs/heads/master | 2021-03-22T04:24:07.752434 | 2015-11-25T03:01:52 | 2015-11-25T03:01:52 | 33,475,560 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,381 | py | """
Demonstration of simple exploration algorithms using generated data
Author: Kelvin
"""
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import cm
from computers import gp
import computers.unsupervised.whitening as pre
import sys
import logging
import shutil
import nlopt
import t... | [
"Kelvin.Hsu@nicta.com.au"
] | Kelvin.Hsu@nicta.com.au |
74039f87a612a65381e0ed6e6eed92f1022e8968 | 4e0ff785b993b6bae70745434e61f27ca82e88f0 | /289-Game-of-Life/solution.py | 0c90ed85355a13a6e97b67dbdb013dde336eef3d | [] | no_license | NobodyWHU/Leetcode | 2ee557dd77c65c5fa8ca938efb6de3793b4de261 | d284fa3daab02531e5300867463b293d44737e32 | refs/heads/master | 2021-01-23T14:05:28.161062 | 2016-09-23T11:51:51 | 2016-09-23T11:51:51 | 58,898,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | class Solution(object):
def live_nbrs(self,board,i,j,m,n):
ms=max(0,i-1)
ns=max(0,j-1)
me=min(m,i+2)
ne=min(n,j+2)
count=0
for i1 in xrange(ms,me):
for j1 in xrange(ns,ne):
if board[i1][j1]&1:
count+=1
return cou... | [
"haohaoranran@126.com"
] | haohaoranran@126.com |
0c0b62f6266aab1d890fe4d7d07d06120fad7782 | 9fcd6a91132fd12731d259fe7d709cdf222381bb | /2022/14/foo.py | f620615c11d7f8917af8cb384035406dd2be5cb9 | [] | no_license | protocol7/advent-of-code | f5bdb541d21414ba833760958a1b9d05fc26f84a | fa110cef83510d86e82cb5d02f6af5bb7016f2c7 | refs/heads/master | 2023-04-05T15:33:26.146031 | 2023-03-18T14:22:43 | 2023-03-18T14:22:43 | 159,989,507 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import sys
from itertools import *
from util import *
def parse(line):
return chunks(ints(line), 2)
xs = list(map(parse, sys.stdin))
d = set()
for row in xs:
for (x1, y1), (x2, y2) in zip(row, row[1:]):
for x in diffrange(x1, x2):
for y in diffrange(y1, y2):
d.add((x, y))
... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
9c02dc62f602510747899eb39aee845fb58c418f | 905be655573e551febfbad9bf68b690f0b40cc69 | /QGISprocessing.py | f165278d3a40efb4ea49c853c17613b1e1040ef0 | [] | no_license | sheyril/cesium-bisag | 0ff4bb00ecfae252fa14a7ed085eb2dc5d613f53 | 8c8a497b6cb60a05e7ff20b6a9b4b898a844c8b9 | refs/heads/master | 2020-06-16T23:48:49.054487 | 2019-07-08T06:19:21 | 2019-07-08T06:19:21 | 195,735,958 | 0 | 0 | null | 2019-07-08T04:22:38 | 2019-07-08T04:22:37 | null | UTF-8 | Python | false | false | 6,883 | py | #Everything is stable here
from qgis.core import *;
import PyQt5.QtCore;
import PyQt5.QtGui;
from PyQt5.QtGui import QColor;
from qgis.analysis import QgsNativeAlgorithms;
import sys;
from pathlib import Path;
import glob;
class QGISwrapper:
def __init__(self):
QgsApplication.setPrefixPath("/usr", True);
... | [
"hariom2711@gmail.com"
] | hariom2711@gmail.com |
e42222439cae23f5147a01df166ec8da65f2e33b | 4de0c6d3a820d7669fcef5fd035416cf85b35f23 | /ITcoach/爬虫课件/第五章:requests模块高级/CodeClass.py | 74cf4cb614e8aae221e9f0d2e98fadb407dfbb64 | [
"AFL-3.0"
] | permissive | ww35133634/chenxusheng | 5e1b7391a94387b73bcd7c4d12f1247b79be8016 | 666e0eb3aedde46342faf0d4030f5c72b10c9732 | refs/heads/master | 2022-11-12T03:46:47.953680 | 2020-07-02T20:50:56 | 2020-07-02T20:50:56 | 275,168,080 | 0 | 0 | AFL-3.0 | 2020-07-02T20:58:37 | 2020-06-26T13:54:48 | HTML | UTF-8 | Python | false | false | 3,265 | py | import http.client, mimetypes, urllib, json, time, requests
######################################################################
class YDMHttp:
apiurl = 'http://api.yundama.com/api.php'
username = ''
password = ''
appid = ''
appkey = ''
def __init__(self, username, password, appid, appkey)... | [
"82516351@qq.com"
] | 82516351@qq.com |
a66c311e76471d10a18b24d38ee0b141c5bd637e | 678fba3745942ce2ff31ab07ea35fec8bb36d350 | /openlibrary/listas_contr.py | 45f4f89d12860737b5cbf70528e52801c35bf108 | [] | no_license | danilochilene/mongo-exem | e15adabcd976d4394979c7f079167c3ab46a5c8b | 5e46e903d8c97b8427f3049b8754c5db00b780ec | refs/heads/master | 2021-05-28T05:36:49.064346 | 2012-05-16T01:00:00 | 2012-05-16T01:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/coding: utf-8
from mongo_util import conectar
from bson.code import Code
from pprint import pprint
db = conectar('openlibrary')
for res in db.editions.find({'contributions':{'$exists':1}, {'contributions':1}):
pprint(res)
| [
"bicofino@gmail.com"
] | bicofino@gmail.com |
d4f48a70ecf3ae87af021116d62c44cd8a0dac42 | 49d9fe8a1c83699e41b9cd4e6764e640e69243a8 | /ekd_documents_stage.py | 7fd8bb338614c646298456ea7da30a8793837927 | [] | no_license | postcoder/ekd_documents | 11945361052e2052848aa71e6f425c5d9bb92802 | 083e1d37e39803aa9dde69b596bbb9305ec35d7b | refs/heads/master | 2020-12-11T07:39:35.646593 | 2011-03-31T05:25:03 | 2011-03-31T05:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # -*- coding: utf-8 -*-
"Document Stage"
from trytond.model import ModelView, ModelSQL, fields
from trytond.transaction import Transaction
class DocumentTemplateStage(ModelSQL, ModelView):
"Document Template"
_name='ekd.document.template.stage'
_description=__doc__
_order_name = "sequence"
templa... | [
"k-dmitry2@narod.ru"
] | k-dmitry2@narod.ru |
267521e02f2d3c2757c7d8920140fe62c0a61288 | c286b5aac9f141a718cf8aae4e884c14a9a05d7e | /right-to-left.py | d7a05b5a6b154f0c478a28de12f8afcc675ee46f | [] | no_license | Chizhezvskaya/checkio | 329f0ddc6d37746ec5e00644f704db1a1208c4d7 | 825b3de1aad9a4cd1adebf40592301cce52646f2 | refs/heads/master | 2020-04-05T23:20:04.408642 | 2015-05-06T19:53:39 | 2015-05-06T19:53:39 | 33,951,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | def left_join(phrases):
return ",".join(phrases).replace('right', 'left')
| [
"nastenka112004@mail.ru"
] | nastenka112004@mail.ru |
eafeeb516c5fafc2b835f5bea1e9249314229c8e | 08c7bd54aaf09643fa4753cdee2327644173f79f | /app.py | e5689526016f809b9b81029e71e074564d31a2ec | [] | no_license | PoorviShetty/tldr-generator | 79922caeb2c85450d1a9f60634421f03c76e460a | 45dc6d7f681dde355127245fb6ce144b6ab3f264 | refs/heads/master | 2023-07-25T12:32:31.739892 | 2021-09-06T17:33:20 | 2021-09-06T17:33:20 | 403,707,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | from flask import Flask, request, render_template, flash, redirect, url_for
from collections import Counter
import spacy
app = Flask(__name__)
app.secret_key = "super secret key"
nlp = spacy.load('en_core_web_sm')
def smmry(text):
# 1) Associate words with their grammatical counterparts. (e.g. “city” and “cities... | [
"65484904+PoorviShetty@users.noreply.github.com"
] | 65484904+PoorviShetty@users.noreply.github.com |
34de7d882788e8d0e722724b3209d07a4e5bc3ee | 1c63de16686564415566474f43f16c3bd6e42df6 | /1-10.py | fe5724be4dd70ae534ae01bb0f207e1f1a82b9d6 | [] | no_license | MaXoU7798/test | 6ffca1a86aedc30238bceda1e3390d0473ca51ce | fc4e615345d91d7dbb71144abe491ae7f1135fef | refs/heads/master | 2021-01-10T21:13:06.622060 | 2014-06-09T11:33:45 | 2014-06-09T11:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | list = ["1","2","3","4","5","6","7","8","9","10"]
for x in list:
print(x)
| [
"webermaximilian7798@gmail.com"
] | webermaximilian7798@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.