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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e4cbbd2980dac7c117589a28b37290feb5d35735 | 0711d57f9b37bd0d81bb1d1b8d8343138b9a0160 | /ZMXtoPhosim.py | fa0202b9e29716a334aed5cbb41be02c63a26ee6 | [] | no_license | enhsin/phosimMisc | 3caa6bc8804681cfbde7e1444a1da0c61b4bf649 | 2cae50188d44aac47f09bce69344f1cd13944987 | refs/heads/master | 2020-12-24T08:38:07.135015 | 2017-04-19T19:08:08 | 2017-04-19T19:08:08 | 33,961,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,603 | py | #!/usr/bin/env python
"""
@package phosim
@file ZMXtoPhosim.py
@brief python script to convert a ZEMAX file to phosim optics_*.txt
@brief Created by:
@author En-Hsin Peng (Purdue)
@warning This code is not fully validated
and not ready for full release. Please
treat results with caution.
Usage: p... | [
"epeng@purdue.edu"
] | epeng@purdue.edu |
c194fbf7d416ceff9fd41fd0ca591c32334fc62f | b7989be541601205ee32ef62d5a7e086a55d91fb | /test/experimental/test_with_asset.py | a9be86d81b0c99eb9d65c98dfb7572076a3af5ed | [
"BSD-3-Clause"
] | permissive | zhangguanheng66/text | 3a9f8253817dc2e013c819ca309ecae6887c382a | 735d5e7127083314409bb57dfc58a387a5bafc9d | refs/heads/master | 2021-06-18T12:10:50.977261 | 2021-03-11T18:27:08 | 2021-03-11T18:27:08 | 189,424,677 | 1 | 0 | BSD-3-Clause | 2020-10-13T17:51:08 | 2019-05-30T14:05:35 | Python | UTF-8 | Python | false | false | 13,349 | py | import torch
import torchtext
from test.common.torchtext_test_case import TorchtextTestCase
from ..common.assets import get_asset_path, conditional_remove
from torchtext.experimental.transforms import (
sentencepiece_tokenizer,
basic_english_normalize,
VocabTransform,
PRETRAINED_SP_MODEL,
sentencepi... | [
"noreply@github.com"
] | zhangguanheng66.noreply@github.com |
9598d1935919df05c2f5723be86bc84c23c5a217 | 38af02f6703f376d08def08d85bad802ed7825f8 | /stock_provider.py | d5fd943c0985501dd2fa8b3ed3b37dfecd2253ce | [] | no_license | kiwigod/GPU-check | b809adde3c68f8be917c97550d389892dbeed830 | 7f1bd9cfa5ad707b75f5901f442ae71cbe9afded | refs/heads/main | 2023-03-06T06:02:33.122501 | 2021-02-12T21:54:35 | 2021-02-12T21:54:35 | 338,057,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import re
from request_options import RequestOptions
class StockProvider(object):
def __init__(self, url: str, request_options: RequestOptions):
self.url = url
self.request_options = request_options
self.name = ''
self.iid = ''
self.source = ''
self.extracted = list... | [
"amissier@pm.me"
] | amissier@pm.me |
efd7b08ceb81999fdb1eeaf6ff9ed3870f205af8 | e06c651628c7614b51f76831e783f5c72d178581 | /team/forms.py | 22a24b85643e392ed782053eaf69342817b7658c | [] | no_license | juliosantacruz/Bienes_Raices | fa6f11db3ee5c2a3109ea811f551f9f3c97fea9d | 07a04c5a92ec4015934e82736959767f44f1f77d | refs/heads/master | 2023-05-05T05:15:15.111165 | 2021-05-27T05:11:42 | 2021-05-27T05:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django import forms
from django.forms import ModelForm
from team.models import *
class PerfilForm(ModelForm):
class Meta:
model = Asesor
fields = '__all__'
exclude = ('user', 'nombre', 'apeido', 'apodo', 'email')
#widgets = {'foto': forms.HiddenInput(),}
labels = {
... | [
"aram.jsh1@gmail.com"
] | aram.jsh1@gmail.com |
6d18cbe38eee616d5462100561105c64e781a985 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02959/s005038203.py | 72072b6b09a863006aae80c7da70edb873d1591c | [] | 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 | 243 | py | n = int(input())
a = [int(i) for i in input().split()]
b = [int(i) for i in input().split()]
cnt = 0
for i in range(n):
dm = min(a[i], b[i])
b[i] -= dm; cnt += dm
dmn = min(a[i + 1], b[i])
a[i + 1] -= dmn; cnt += dmn
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ee4c3fe497c236a93beff8da80c41af918eabd5c | 1cd37c59751344c0f89fe9102e25121e50f4cdfa | /python/ZvvHbb13TeVmacros/launchFakeMET.py | 8255ef80ffa75f80954f890b1646c569a6eb13c5 | [] | no_license | jmduarte/Xbb | 7bd2f919c320e4cda1306c0282f1d4c0df220b05 | 2f23c163b81c0d4d3f979369b86690ddfb7920fd | refs/heads/master | 2021-01-12T16:57:59.009289 | 2016-06-15T09:43:41 | 2016-06-15T09:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import sys
from doFakeMET import *
#from doFakeMETStupid import *
try:
fileNames = sys.argv[1]
outName = sys.argv[2]
print
print "Launching doFakeMET with:"
print "fileNames:", fileNames
print "outName:", outName
print
except:
print
print "example:"
print "python launchFakeMET.py tree_100_*... | [
"silvio.donato@cern.ch"
] | silvio.donato@cern.ch |
70f6b6eb5392ec25a14fb88fb4dfd1df56a424c9 | 7e4199bc07c6c2cebc81554db09f85e30b8d7f3f | /server.py | 5039bf36b9c5bcfd5f53a8f6af55aff66f7a246c | [] | no_license | sreejithr/DriverForms | 087fa65ffafad7cc0d4abe64c2eb1f9b56f87d4e | 62caa13082f7fc8fe63feb1eed2ddc715ba61088 | refs/heads/master | 2020-06-11T00:40:29.337099 | 2016-12-07T12:03:52 | 2016-12-07T12:03:52 | 75,832,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from flask import Flask, render_template, request
from flask_socketio import SocketIO, emit
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
@app.route('/')
def hello_world():
return render_template('index.html', async_mode=socketio.async_mode)
@socketio.on('message', namespace... | [
"sreejith.r44@gmail.com"
] | sreejith.r44@gmail.com |
2e052e77c9fab9325e9c38cec76978f5bb2e125d | 77a21ad5f5e54a591029369144527a3c8d7af6d8 | /bitcoin_clustering.py | e09f28bbeaac99c326cdc2965ae9c7594e07a3da | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | c0indev3l/Bitcoin-price-forecast | e849eb22cfa65607b9bc2beb0b9472a6edec114b | 5ca831ce5ba4d487aa3a94331db0d6dd6a1b67b3 | refs/heads/master | 2023-04-01T00:07:18.173624 | 2019-12-18T01:14:14 | 2019-12-18T01:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | #!/usr/bin/python
#Hierarchical clustering and dendrogram CynthiaKinnan
from matplotlib import pyplot as plt
from matplotlib.dates import datestr2num
from scipy.cluster.hierarchy import dendrogram, linkage
from scipy.cluster.hierarchy import cophenet
from scipy.spatial.distance import pdist
import pandas as pd
import ... | [
"noreply@github.com"
] | c0indev3l.noreply@github.com |
00ba2c5e58fbbd552d621a85c00c7f6b45dba5cd | c6d285f08b3d037a0016b32ea95ce67850fb24f2 | /day12_p2.py | 88dd9f2162999a0ae4cbde4f0fba1b3aa7ff53e0 | [] | no_license | FranzEricSchneider/advent-of-code-2020 | 78260b58229607858bb9cb09cdf0ae16b61f0067 | d40f9524a064b8ee2a990467a5ba611cb442a3c4 | refs/heads/master | 2023-02-19T17:40:58.901251 | 2021-01-24T12:27:57 | 2021-01-24T12:27:57 | 332,510,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import numpy
DIRECTIONS = {
"E": numpy.array([ 1, 0]),
"W": numpy.array([-1, 0]),
"N": numpy.array([ 0, 1]),
"S": numpy.array([ 0, -1]),
}
# Sign of the turn around z axis
TURN = {
"L": 1,
"R": -1,
}
def Rz(angle):
# Comes in as degrees
angle = numpy.deg2rad(angle)
return num... | [
"franz.eric.schneider@gmail.com"
] | franz.eric.schneider@gmail.com |
fa171766c4e20c15c63242874b215331ef1bf458 | a280799a6199ee98ad1558d041cebfd357b2a5da | /mockstagram_crawler/src/api_crawler.py | bc3cf25cf614df14e7fd632b8853a0e3e5a7e569 | [
"MIT"
] | permissive | rahulzomato/Mockstagram | 240104aa006d3778269b797e8e3aba0d45104009 | 2287980b34313401e725e50d96fe5300723c4311 | refs/heads/master | 2022-12-09T05:18:54.703231 | 2020-02-04T08:48:42 | 2020-02-04T08:48:42 | 160,041,496 | 0 | 0 | MIT | 2022-08-23T17:28:10 | 2018-12-02T11:43:10 | Python | UTF-8 | Python | false | false | 2,682 | py | import requests, json, datetime
from mongoengine import *
from celery import Celery
from celery.schedules import crontab
from configs import settings as Settings
from celery.utils.log import get_task_logger
from models.influencer import Influencers, InfluencerData
celery = Celery(broker = Settings.CELERY['BROKER_URL']... | [
"rgosain@expedia.com"
] | rgosain@expedia.com |
33a0f4c7df1680909f27f4eddaafe6686da34c3e | 121d17ac763414842a8af254ee85faf5dfd8e36b | /backend/our_groceries/migrations/0001_initial.py | 30f6791543c1cd2061229c2524af6577fd4c379b | [] | no_license | BlueGhost147/OurGroceries | bf7f4a484bf7183d139cbbcbe8412aa5554fec82 | 1508d5af2710ee29095abd55c97f119b6044aa1c | refs/heads/master | 2023-01-09T11:54:06.784128 | 2020-01-26T18:11:08 | 2020-01-26T18:11:08 | 216,790,188 | 1 | 2 | null | 2023-01-07T11:44:58 | 2019-10-22T10:48:57 | TypeScript | UTF-8 | Python | false | false | 3,458 | py | # Generated by Django 2.2.8 on 2020-01-09 12:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"andreas.raith@edu.fh-joanneum.at"
] | andreas.raith@edu.fh-joanneum.at |
497d66dcf01b11b9909a339deca57962563163b7 | 2a6f89c7306d256c4330b45841dd7f1cd297f214 | /junk/lab1mk2.py | d209f948df0da8db5a0d2655ca2eff10504d6ab6 | [] | no_license | JingoBongo/diplomGraphs | c18590ebad4ad72be64c17babb946c8e05168b7e | 4ad6d303c39689fe480824beea3aa1963cdf1d83 | refs/heads/master | 2023-05-27T06:35:09.374828 | 2021-06-14T20:04:59 | 2021-06-14T20:04:59 | 350,116,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,451 | py | # Here is representation of data that will be given to the system. All the data
# is structured in the table where column represents attribute field and rows
# represent rules.
# For correct understanding below is also represented "table" and how it looks like
orientirs = []
race1 = ['nose', 'common skin', 'com... | [
"justfortoma1607"
] | justfortoma1607 |
42aad590822766d10b9a0566a1a9faf1aa65cdfa | 6d3ba1fb659904399457b6adb6154d3bf9eb507d | /src/utils/logging.py | a7c7f272da35580eaa593f6a5a76e884f105c52f | [
"MIT"
] | permissive | nuguziii/MI | 2d8720b7a5f1dc12ed6a0db06ff7ef94c204a84b | b35c5c0b3ba25d31be560197a22d78d61e7c5645 | refs/heads/main | 2023-07-08T12:16:10.046336 | 2021-08-06T04:25:57 | 2021-08-06T04:25:57 | 321,569,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | import logging
import time, os
from pathlib import Path
import torch
def create_logger(output_dir, description, phase='train'):
root_output_dir = Path(output_dir)
# set up logger
if not root_output_dir.exists():
print('=> creating {}'.format(root_output_dir))
root_output_dir.mkdir()
fi... | [
"nuguziii@naver.com"
] | nuguziii@naver.com |
02b416950ddfd3b299c53e74d7637fb6d807c0db | 8bfa5aa80e2a071db974863672a7739dfcf47a33 | /bin/5_Memory_user24_B9D97diQcoWUxXF.py | 22b52ddfa42633c68ef2fe153aa728fc367a2647 | [] | no_license | dljvandenberg/coursera_python | 5da0b3482b494183e573a1089b5dcbfcdb2c9cdd | 83a279c95fd8da6ab0aa267bdcef88dd59adf796 | refs/heads/master | 2021-01-13T00:16:30.744811 | 2015-11-16T11:23:15 | 2015-11-16T11:23:15 | 46,269,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | # implementation of card game - Memory
import simplegui
import random
# parameter for debugging
DEBUG = False
# define parameters
CARDRANGE = range(0, 8)
# CARDRANGE = ['P', 'Y', 'T', 'H', 'O', 'N']
CARDWIDTH = 50
CARDHEIGHT = 2 * CARDWIDTH
TEXTSIZE = int(CARDWIDTH)
# helper function to initialize globals
def ne... | [
"dljvandenberg@gmail.com"
] | dljvandenberg@gmail.com |
5d998f493967c90a3650233a89f538c2e68314a7 | 63662ac7c071ef4526fe28156a35f3ae74bcbcbc | /gem_soft/yowsup-master/yowsup-cli | 9e7d55c961bad8216c12b8e7e282a2731d5a73ca | [] | no_license | PyUnchained/fish | f1fe0576813a6e7326bf82ffb1aee8a6fbc5f3ac | a55bd38a42339eca7ab047a8a2a5177c71261639 | refs/heads/master | 2021-03-13T00:04:33.208478 | 2015-01-19T08:04:46 | 2015-01-19T08:04:46 | 29,014,132 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,381 | #!/usr/bin/python
'''
Copyright (c) <2012> Tarek Galal <tare2.galal@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use,... | [
"tatendatambo@gmail.com"
] | tatendatambo@gmail.com | |
864caf90e1baee8f519c896c8212eb0d3e3e2ae8 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/rsctxprofiletoregion.py | f5884b03f3bd5c4ccb68561a4aa42a56060d1fcf | [] | 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 | 9,817 | 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 |
fd523fde041332892483a22967c55de452b4df0a | 5564397ed29e5b34ce3809b275244bba05377e10 | /src/fuse_kafka_umounter.py | 7041955b8dddae836eeff3c3dad5b0e3b01b4ee9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yazgoo/fuse_kafka | 09bb0e6b34a35c4567025007147be2798b7c7053 | bb460870b8cc5212faca778e94dc731ab01be96b | refs/heads/master | 2021-01-10T20:44:12.299940 | 2015-08-26T08:58:29 | 2015-08-26T08:58:29 | 23,967,714 | 25 | 3 | null | 2014-10-21T17:04:45 | 2014-09-12T16:16:21 | Python | UTF-8 | Python | false | false | 3,359 | py | #!/usr/bin/env python
# chkconfig: 2345 12 87
### BEGIN INIT INFO
# Provides: fuse_kafka_umounter
# Required-Start:
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Short-Description: run fuse_kafka_umounter
# Description:
### END INIT INFO
""" @package fuse_kafka_umounter
Startup script for fuse_kafka_umou... | [
"yazgoo@github.com"
] | yazgoo@github.com |
2045f838ced5cbb44e3acff6b5588a986d821932 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2153/60634/269290.py | 4a9e1e2f2528705a00fe22bb4edfda1efd0a27a3 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def over(num):
result = 0
while num > 0:
result *= 10
result += num%10
num = int(num/10)
return result
num = int(input())
if num < 10 and num >= 0:
print(num)
elif num < 0:
print(-1*over(-1*num))
else:
print(over(num)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8bb50c3a3ea0f17e4946a42cd2f7922915047603 | 726a4b006c30753a0af653339e61b8e1ab6df252 | /percentage.py | e11beb272e1c5459fe89e86f6ae013ff80ee3ad1 | [] | no_license | meysiolio/the-percentage | 5820725f653698a4dd6ba259787855c3ff5c2fc5 | 47164f0c9a730930ea5269a7fc44d03f4606572e | refs/heads/main | 2023-07-26T12:30:51.868061 | 2021-09-06T21:12:16 | 2021-09-06T21:12:16 | 403,759,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | if __name__ == '__main__':
n = int(input())
student_marks = {}
for _ in range(n):
name, *line = input().split()
scores = list(map(float, line))
student_marks[name] = scores
query_name = input()
mean_name = sum(student_marks[query_name]) / len(student_marks[query_name])
pr... | [
"noreply@github.com"
] | meysiolio.noreply@github.com |
197b9db76c59137f0f91a08b2598f82450d10337 | 91e1aeb60f923b57f9f03f88223ed2fadce31f95 | /test_phonebook_pytest.py | 935955c36a2d90ab6dd350cd62253f2746209b47 | [] | no_license | amrable/Testing | 3852dc63414b455e246a5852dcd3935d953758ae | 9ccdfac100318e33274eb6a679174158cb8b8e57 | refs/heads/master | 2023-07-27T07:37:28.631919 | 2021-09-17T17:08:13 | 2021-09-17T17:08:13 | 255,318,350 | 0 | 0 | null | 2021-09-17T17:08:14 | 2020-04-13T12:22:13 | Python | UTF-8 | Python | false | false | 220 | py | from phonebook import PhoneBook
import pytest
@pytest.fixture
def pb():
pb = PhoneBook()
yield pb
pb.clear()
def test_lookup_by_name(pb):
pb.add_contact("Amr", "123")
assert "123" == pb.get("Amr")
| [
"amrfahhassan@gmail.com"
] | amrfahhassan@gmail.com |
0c987d57742fe1efb009a98b09bfb5e98156663e | d801ed0e62842132f42d957e3bf1d2da5a1ecadc | /TCS7.py | f04120d716660369212fd63a34c14516f1a75bd7 | [] | no_license | deepakrajvenkat/dhilip | 2f5bf182e4d6a3ecea73c572be58b0b1e023dbf7 | efd3c3fecd2a9eeddd3a7e191849b4832c1fb4d3 | refs/heads/master | 2020-04-20T04:55:54.157340 | 2018-11-02T16:20:15 | 2018-11-02T16:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | n=input()
l=[]
while(n>0):
if(n%2==0):
l.append(str(0))
n=n//2
elif(n%2==1):
l.append(str(1))
n=n//2
l=l[::-1]
s="".join(l)
print(s)
| [
"noreply@github.com"
] | deepakrajvenkat.noreply@github.com |
3e8dffaa5ccc97b67d5f0e16d390c21f3adb42dd | 03a50359d9e2ebef21e8ad2330955cebf0209f7a | /portmanteau.py | cd618bd081cb74e294ecd58ba93305d2aa91e2c9 | [] | no_license | thecapacity/languagetoys | 9b44ec6bfec5923662ccf5e0bde60a5da6a65a7c | daa726a645c5159a0027482ed0c9f7785bea2d4d | refs/heads/master | 2021-01-16T13:44:14.776967 | 2009-04-24T20:39:23 | 2009-04-24T20:39:23 | 449,577 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,839 | py | """
Let's find pairs of words that blend nicely, like
book + hookup --> bookup
Usage:
$ python portmanteau.py >output
Takes around 40 seconds on a 2008-vintage laptop.
Alternatively:
$ python portmanteau.py my-dictionary-filename >output
Strategy: given a wordlist, first remove generative affixes like un-
and -ly. Fi... | [
"darius@66-214-130-138.dhcp.gldl.ca.charter.com"
] | darius@66-214-130-138.dhcp.gldl.ca.charter.com |
f4b133dfa4518b57d970d94f8664216fb8ab56cc | da3ec6440506806d8de38c12fe42adeac5e989e3 | /transactions/manage.py | c74860a2f068bda82f09a0ba4f0474ea825ff976 | [] | no_license | nickzuck/loco-contigo | 4f6934ec1e1dd00b9bd6bd292b100c7c40f0fe10 | 594277216fa2663615dae69895513f2c608fc04b | refs/heads/master | 2023-06-26T22:53:18.227444 | 2021-07-26T04:57:04 | 2021-07-26T04:57:04 | 389,366,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'transactions.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"nikhil.singh@innovaccer.com"
] | nikhil.singh@innovaccer.com |
e97e2648f03a2b000541078198a7bd237e410cbf | 780b6cca690a213ac908b1cd5faef5366a18dc4e | /314_print_names_to_columns/save3_nopass.py | 9877032426300f773ec84c56b3d2a2c1653a6085 | [] | no_license | katkaypettitt/pybites-all | 899180a588e460b343c00529c6a742527e4ea1bc | 391c07ecac0d92d5dc7c537bcf92eb6c1fdda896 | refs/heads/main | 2023-08-22T16:33:11.171732 | 2021-10-24T17:29:44 | 2021-10-24T17:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from typing import List # not needed when we upgrade to 3.9
def print_names_to_columns(names: List[str], cols: int = 2) -> None:
name_list = [f'| {name:{10}}' for name in names]
output = ''
for i in range(0, len(name_list), cols):
output += ' '.join(name_list[i: i + cols]) + '\n'
prin... | [
"70788275+katrinaalaimo@users.noreply.github.com"
] | 70788275+katrinaalaimo@users.noreply.github.com |
178c4bee5b3cce6305c9e2042928cd6cfad94fae | d95a140b5bddcf5350fb77b53a28bd9b6033c6a6 | /lib/models.py | 7675d44a8d070f39480c5981935193a50aa9b3c2 | [] | no_license | hjpcs/django_demo | 91277b5871c53276a1cc8e4cc992570c47e3ed59 | 1bcf41071745038ea2ea99b83537d15d8f1a4c23 | refs/heads/master | 2020-12-26T18:14:45.378208 | 2020-02-04T06:44:24 | 2020-02-04T06:44:24 | 237,591,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from django.db import models
# Create your models here.
class Book(models.Model):
name = models.CharField(max_length=200)
author = models.CharField(max_length=100)
pub_house = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
| [
"jinpeng.he@shopee.com"
] | jinpeng.he@shopee.com |
0c2600cc84c3fef03ef968c4b5b2ed0ec958c516 | ebe361f9389052f10c01e0a7e363bd574375982f | /489_ Convert Array List to Linklist.py | cad3783e34214b1db74d23ce6a4f200c37df6a92 | [] | no_license | JaneCS2018/Algorithm_Practive-Lintcode- | c50133ab6b1f6a1ffc27093840022dfb5c4ef43c | f9d1603402824317d09fc47e78df8dafd58cbe62 | refs/heads/master | 2022-04-22T08:48:31.587813 | 2020-04-22T06:21:23 | 2020-04-22T06:21:23 | 257,800,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
@param: nums: an integer array
@return: the first node of linked list
"""
def toLinkedList(self, nums):
# write your code here
... | [
"noreply@github.com"
] | JaneCS2018.noreply@github.com |
7730f1f3ef95b2a073245c9d59a4677aec661b7e | 55768c92ebd1c3e0cb406e707d72ba648eb1e7b0 | /proxy_client.py | 778d178ea5724735d7ff02afc222d3cf9de240e4 | [] | no_license | yixianLu/CMPUT404-lab2 | e6d1e029a903759f91f3aab74f1e89973e30070d | c4f35a2f3e80228bf4eb8437717fe244e77e8aef | refs/heads/main | 2023-02-17T08:07:24.180148 | 2021-01-21T04:33:32 | 2021-01-21T04:33:32 | 331,159,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | #!/usr/bin/env python3
import socket time sys
HOST= ""
PORT= 8001
BUFFER_SIZE = 1024
payload = "GET / HTTP/1.0\r\nHost:www.google.com\r\n\r\n"
def connect(addr):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(addr)
s.sendall(payload.encode())
s.shutdown(socket... | [
"43053645+yixianLu@users.noreply.github.com"
] | 43053645+yixianLu@users.noreply.github.com |
faab1c482e32b5c647b4346936b0d8d6292d0d7d | a31bb4bb77fb3a40b00ac6b3e4cdaf3bb4fa54d7 | /day1/Define_var.py | ff34ec4ae85c6eaeaceee3ab56d78343f421e2da | [] | no_license | lin790292154/python_note | 457069a5d0adc6991321f5eb4644e1c91c597fff | 3b35a3087117aadc0b8b63a260ef55e5b20f5e96 | refs/heads/master | 2021-08-31T19:58:15.775229 | 2017-12-22T17:14:40 | 2017-12-22T17:14:40 | 110,909,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # Write by kratos
name = "kratos"
name_2 = name
print("My name is ",name,name_2)
name = "Rookie"
print(name,name_2)
_name = "Mr. Yang"
| [
"lin790292154@163.com"
] | lin790292154@163.com |
6389ae7f7ca29afb705e07a81152cab72a876da8 | 467f34dd25a93fc97fefe0fedc9004ca6c8a0805 | /mothmusicplayer3/gui_builder.py | b6c0e830d0b2baf8ae1d8fe0006e86a71e02c169 | [] | no_license | marco-hrlic/mothmusicplayer | 6c82b75d00b761ab05ca71e6d866e5a689a0d0bd | edf591b6b85f0c8aa440f23c86c17508dcf65996 | refs/heads/master | 2016-09-06T21:39:36.984151 | 2014-09-15T07:39:45 | 2014-09-15T07:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | #!/usr/bin/env python
import gi
from gi.repository import Gtk, GObject, Gdk
gi.require_version('Gtk', '3.0')
import os
from mothmusicplayer3 import mediaInfo2
from mothmusicplayer3 import configuration
from mothmusicplayer3 import playlist_gui
from mothmusicplayer3 import filechooser_gui
from mothmusicplayer3 import me... | [
"marco@arch.lan"
] | marco@arch.lan |
961463af7f72a271cabbeb12200888b42613eece | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02820/s467587633.py | fa3163e453745247ba7d8f8b2cd48d58de4cc18e | [] | 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 | 750 | py | n,k=map(int,input().split())
R,S,P=map(int,input().split())
T=input()
t=""
count=0
for i in range(n):
if i>k-1:
if T[i]=="r":
if t[i-k]!="p":
t=t+"p"
count+=P
else:
t=t+" "
if T[i]=="s":
if t[i-k]!="r":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6a9568826846185af0883e9596dd5f43a5fbabd1 | a2af85d9ab17803117381fc1976c6f8d56f54dc2 | /etna/insights/migrations/0018_replace_pubdate_with_duration.py | 573d7a6253cba3f5c91c7b2f750e2a838eabae07 | [] | no_license | jacobtoppm/ds-wagtail | e64a046d0ce940c146cbe608415dbe20b806b1b6 | c839ab7c15c2d37e4f0337ef9abbf087ff525664 | refs/heads/main | 2023-09-02T22:59:15.088839 | 2021-10-27T11:09:51 | 2021-10-27T11:09:51 | 422,595,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,960 | py | # Generated by Django 3.1.8 on 2021-08-12 14:27
from django.db import migrations
import etna.insights.blocks
import etna.media.blocks
import etna.records.blocks
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
import wagtail.snippets.blocks
class Migration(migrations.Migration):
... | [
"craigwood@numiko.com"
] | craigwood@numiko.com |
471330e5ad2da22349a59a5f020a4fa6509c86eb | a292d1c5e218fb09c187d87a5ba4941bc4261a85 | /core/spec_sim.py | 68660f588c3560b7db3f70926f88988f86f6074c | [] | no_license | filipjs/Simulator | f8939eaba2430e6db58af78762f0178b439e0f9f | 59ce7f9125de3de29238bbd022c1704f9eb41fab | refs/heads/master | 2016-09-05T16:40:33.524754 | 2014-09-03T22:47:02 | 2014-09-03T22:47:02 | 15,078,729 | 1 | 0 | null | 2014-08-27T09:25:36 | 2013-12-10T14:04:16 | Python | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
from simulator import GeneralSimulator
class VirtualSimulator(GeneralSimulator):
"""
A specialized version of the `GeneralSimulator`.
Only keeps track of the virtual campaigns.
"""
def _real_first_stage(self, period):
pass
def _next_force_decay(self):
... | [
"fs237772@students.mimuw.edu.pl"
] | fs237772@students.mimuw.edu.pl |
48af4553c0bfb02406747b0fe07d0fe16863977a | 57eabb2bbaa107e101f74475d6be3024e47fc3fd | /test/common/__init__.py | db2427f36ed56eaa6a4443775209dbc91a861dd3 | [] | no_license | seecr/gustos-common | c44f9e531b145bcd337563793c286f321cfa09bd | dbf4f29ca6da670501a6d4b2baea90646f84bc91 | refs/heads/master | 2021-06-21T09:13:36.874698 | 2021-02-03T14:36:12 | 2021-02-03T14:36:12 | 162,483,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | ## begin license ##
#
# "Gustos" is a monitoring tool by Seecr. These are the open source parts used in different projects.
#
# Copyright (C) 2012-2014, 2018 Seecr (Seek You Too B.V.) https://seecr.nl
#
# This file is part of "Gustos-Common"
#
# "Gustos-Common" is free software; you can redistribute it and/or modify
# ... | [
"thijs@seecr.nl"
] | thijs@seecr.nl |
ce90234dd5bd90c0c905564f84711408740df270 | 0afbc34b0128c792d28694d72920359728dd9633 | /core/admin.py | a9ea38ae22667d1ac9ae55706eb02e153e995f48 | [] | no_license | shevchykH/analitics-app | 6bc2a2750d7e24b5e7fa3c772af4713b251627e5 | 3ccbb8e4673b2dbcd92e8cdbd93e8c9ff7b68be0 | refs/heads/master | 2021-09-23T10:35:34.129044 | 2020-03-06T10:01:46 | 2020-03-06T10:01:46 | 245,372,065 | 0 | 0 | null | 2021-09-22T18:40:36 | 2020-03-06T08:55:07 | Python | UTF-8 | Python | false | false | 110 | py | from django.contrib import admin
from core.models import WorkerSettings
admin.site.register(WorkerSettings)
| [
"shevchyk.g@gmail.com"
] | shevchyk.g@gmail.com |
af882d1b83dd010ffd9f09441110ffdfee871e36 | b429c0067a1e3f891c803d0c673d714fbae0e7a6 | /01 接口测试/WoniuBoss_Requests_Test/case/F_DeliverResource_Test.py | ab6880cb6b65a1363d6fc26e8c8353d0045e0ac1 | [] | no_license | SuperTestOne/WoniuBoss2.5 | bcefb3bf48ca21a90d5393e4078770ddbc160f75 | 1fc65394dd6df45dd4ac8325b569630c9f61f916 | refs/heads/master | 2022-10-02T04:59:23.765962 | 2020-06-01T07:06:48 | 2020-06-01T07:06:48 | 261,996,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | import unittest
from parameterized import parameterized
from WoniuBoss_Requests_Test.tools.util import Util
from WoniuBoss_Requests_Test.tools.service import Service
from WoniuBoss_Requests_Test.lib.F_DeliverResource_Action import DR_Action
class DR_Test(unittest.TestCase):
#获取查询数据
query_contents = Util.get_js... | [
"2258775358@qq.com"
] | 2258775358@qq.com |
57eec54276bfc43dafbc8ae5863191e8b93e1d67 | 072a972c072e70064d3a10e07243113bad58ad66 | /program_to_interface.py | 233f3a1d8d94fb66d90bb20fce35e83a51b3442d | [] | no_license | RiteshAgrawal/design-pattern-101 | 4bad6188cca3c431af8d516c55d4a3c77de80555 | 37ceaf35b3fdac5687ca98af6678913b7fcacaa0 | refs/heads/master | 2020-08-01T06:01:37.328267 | 2019-09-25T15:29:45 | 2019-09-25T15:29:45 | 210,891,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from aws import boto3
from file_uploader import S3FileUploader, AzureFileUploader
def save_user_details(user_details_dict):
# .
# .
# Save first name, last name etc.
dp = user_details_dict['dp']
b = boto3()
b.upload_file(dp)
def get_file_storage_service(name):
service_to_obj_map = {
... | [
"ritesh@cyware.com"
] | ritesh@cyware.com |
7bcbd0be44e4a736ccb7b5c0258108a807ddf83b | c53f522c209930321715db6932fd66da1e194015 | /venv/bin/pip3 | 0c7570255269c98f65f19ad7ff49c1bcfa883e20 | [] | no_license | jeremylumanbailey/data_science | 4be441a0ad451254e5907b579ee0b905313054de | 4ead4d58f82836957bfff3671000107f8b3a008c | refs/heads/master | 2020-07-25T13:47:11.759912 | 2019-10-23T20:53:08 | 2019-10-23T20:53:08 | 208,311,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | #!/home/jeremy/PycharmProjects/data_science/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"jeremylumanbailey@gmail.com"
] | jeremylumanbailey@gmail.com | |
f4d53b2d1922d4e11750a91cff5c64b292843372 | 1b140bc5f841bee42cbb34b945ddee47b013f21b | /raspberrypi_IoT_hub/couchdb/network/IP_test.py | dd0a2bd3df794b49e9b6f04518dc0dcb78d2455d | [] | no_license | CUBigDataClass/funul | 174f705e472eda8adf3a8e7da584e38f4c2ef4cc | 7d6ad864b5501c51a8c5da202331de68bd75688b | refs/heads/master | 2021-03-27T10:36:04.826706 | 2017-12-01T02:51:45 | 2017-12-01T02:51:45 | 81,886,754 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from subprocess import check_output
print check_output(['hostname', '-I']) | [
"drew.meyers@colorado.edu"
] | drew.meyers@colorado.edu |
8b0985b727b07f4e9edcdad5e49a1494dd16acfc | 81c734eb21542765f98f1450632d3737887bd9db | /model_3/model_utils_TF-version-0302.py | 911b9b32b9e3c2dffd880020b57efc7d5346e476 | [] | no_license | neoTCR/cu-tsp | 8eab2284565b13ac8fc440a969eb5114b9a14f07 | 07475d117243a0a15d67b5cda6c387481e7ff633 | refs/heads/master | 2022-04-05T17:31:41.709918 | 2020-02-20T04:55:40 | 2020-02-20T04:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,423 | py | import os
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow.keras.layers import *
from geom_ops import *
# U-Net layers
def conv_block(x, n_channels, droprate = 0.25):
""" for UNet """
x = BatchNormalization()(x)
x = ReLU()(x)
x = Conv1D(n_channels, 3, padding... | [
"noreply@github.com"
] | neoTCR.noreply@github.com |
d3dd6489b740b800a768d3e485717a92b2f5f0ff | 00aeca868814c3df7336678fcfa1e10a40846b12 | /tim/plot2-3.py | c2a2e9a156bbf344d94da7c2cfa16ccd117acdd1 | [] | no_license | tg4gg/tcsmcs | d8c25216fb5156ec3934fa53afdb49c8a9c75c9d | 764843fdad5875a4323546bbf49476150decd774 | refs/heads/master | 2021-07-14T02:17:15.845548 | 2020-05-22T17:10:14 | 2020-05-22T17:10:14 | 132,718,408 | 0 | 1 | null | 2020-04-20T11:12:37 | 2018-05-09T07:26:23 | Python | UTF-8 | Python | false | false | 5,763 | py | """
Hardcoded path for testing
and plots also the following error
"""
import numpy as np
import numpy.ma as ma
import matplotlib.pyplot as plt
import datetime as dt
import pandas as pd
import sys, os, fnmatch
import pickle
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
import pdb... | [
"rcardenes@gemini.edu"
] | rcardenes@gemini.edu |
2cbdd474fd49a45db76fca7a3c0d87f5e0efc174 | dd2f16ca87ca8da33bcb7ad5811f33b4168534b4 | /results/probing_8s/cpu_plot.py | 8a520be21b103247f91cd2570b16ee4f86254de4 | [] | no_license | efcastillo7/intelligentProbing | 05bb8f0b24955307f2b1c68d88a5df5e32561cae | e5eec4227ca80e9bcfbb2435ea4b5b56af0b222c | refs/heads/master | 2021-07-22T21:26:56.096005 | 2020-04-16T17:14:02 | 2020-04-16T17:14:02 | 141,356,754 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import sys
sys.path.insert(0, '/home/efcastillo/ryu/ryu/app/intelligentProbing/tools/')
from bytes_to import *
import matplotlib.pyplot as plt
from os import scandir, getcwd
import os.path as path
import numpy as np
from numpy import *
import csv
x = []
y = []
z = []
with open('cpu_usage_1.csv','r') as csvfile:
p... | [
"efcastillo@unicauca.edu.co"
] | efcastillo@unicauca.edu.co |
22c698c113f3ae7508b6f36b20fd4c54db3ee487 | 60ab0c50a338ae5f444bbb1210f5f840419851f3 | /zqz_tmp/build/atomic_configure/kalibr_camera_focus | e529315a9fa060e0f8070b34921a521b0260a548 | [] | no_license | zhang-quanzhe/NvidiaNX_SLAM | df9789a230bf5b9ebcb888a8db8bd8fdba498b08 | c7a7cf8c460a7fe53c0e90d9fb699263681033fc | refs/heads/master | 2023-07-09T16:37:41.249915 | 2021-08-21T07:59:55 | 2021-08-21T07:59:55 | 398,501,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/nvidia/zqz_tmp/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_camera_focus'
with open... | [
"zhumingjie0206@163.com"
] | zhumingjie0206@163.com | |
42635debbf7945a451a22bd94a608c95abf9464b | a60d90192f23197b6f24e40068c637a15f802114 | /src/maze_solver/utils/geom_utils.py | c0fc9337f7702b521233966b4f25ef3bc56c4338 | [] | no_license | sportdeath/maze_solver | 2357f591807dbe613fa414d7aac85941ba30176b | 0f5b781e70662f577da3a6f99c89063ac4cf0dad | refs/heads/master | 2020-03-08T16:09:28.455601 | 2018-06-01T19:42:57 | 2018-06-01T19:42:57 | 128,232,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | import numpy as np
import tf
from geometry_msgs.msg import Quaternion
class GeomUtils:
"""
Useful methods for geometry in 2D.
"""
@staticmethod
def quaternion_to_angle(q):
"""
Convert a quaternion ROS message into an angle in radians.
"""
x, y, z, w = q.x, q.y, q.z... | [
"tfh@mit.edu"
] | tfh@mit.edu |
b4d71cbd9222d51470dd154f85cbec6495bd4db4 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/prefixSums_20200729113651.py | f9d6c16ff0f9dc4d781e07a32e438e70210e2a34 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | def prefix(A):
n = len(A)
p = [0] * (n+1)
for k in range(1,n+1):
p[k] | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
491b221c3a1e154c199a0b938cfbdbf8fa85a2cd | f813857c702f66e0b29d56398ab87764ec3f0125 | /app.py | 8d4a592f29a47fd5454d146cc42d00b573c93c1f | [] | no_license | zhmsh1992/zms1992 | 4986040f61ba39df8e1d31d8a5be82bb8dc399f2 | 9ff98965e45d1f385e63433ea018923c3fe40116 | refs/heads/master | 2020-06-05T05:09:28.935505 | 2019-07-22T04:56:08 | 2019-07-22T04:56:08 | 192,323,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from flask import Flask,render_template
from serv import content
from serv import get_set_anthing
from serv import user
from serv import devices
from serv import friend
from serv import chat
app = Flask(__name__)
app.register_blueprint(content.content)
app.register_blueprint(get_set_anthing.gsa)
app.register_blueprint... | [
"731948455@qq.com"
] | 731948455@qq.com |
320588077a9f70d6444751783bb3c54e23696683 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4051/826004051.py | c80b8f5999f99f8b050d0f6bd2743ff2c9af953f | [] | 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,776 | py | from bots.botsconfig import *
from records004051 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'TI',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BTI', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 99999},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
e5ea9b1ddf5e93da6d0a8e8a1c2d4abac86bd9bf | 441b37974ac5f999001a773caa3fbf7584f82cc8 | /Walmart Trip Type Classification/walmart_cv.py | 208e036fd9d80b50bb13c7b6c0a95cddc512663d | [] | no_license | lvraikkonen/Kaggle | bcdb653c774c211ae9e5a35fdacdb1205e81bebe | dbeac80d645619dc519819d4ed2c45f383dd1206 | refs/heads/master | 2021-01-23T03:33:17.804886 | 2016-09-03T11:51:11 | 2016-09-03T11:51:11 | 24,451,963 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | # -*- coding: utf-8 -*-
import numpy as np
import xgboost as xgb
from sklearn.metrics import log_loss
from hyperopt import fmin, tpe, hp, STATUS_OK
# These functions define the metric which we are trying to
# optimize.
def objective1(params):
print "Training model1 with parameters: "
print params
watch... | [
"claus.lv@hotmail.com"
] | claus.lv@hotmail.com |
592a3bbd21adba08fea95cfcc5db91ad10ec771d | 65528102ccb5cb7a7427941253d1822d2b6a5d64 | /spark_server/new_customers.py | 166003c2d076150286d78fef3e8d442e5716c104 | [] | no_license | chipmyersjr/flask_rest_api | 2a354ca954d1f5f8b57788aba03be4ff6405e4fa | dc737f15eaad555186127c4c3fe81ba0c6fa179d | refs/heads/master | 2020-04-12T22:01:19.127130 | 2019-07-22T00:50:29 | 2019-07-22T00:50:29 | 162,779,129 | 0 | 0 | null | 2019-10-30T23:51:52 | 2018-12-22T03:40:58 | Python | UTF-8 | Python | false | false | 1,547 | py | from pyspark import SparkContext
from pyspark.streaming import StreamingContext
from datetime import datetime
from spark_utils import *
def main():
sc = SparkContext(appName="new_customers")
ssc = StreamingContext(sc, 3)
ssc.checkpoint(SPARK_STREAMING_CHECKPOINT_DIR)
sc.setLogLevel("OFF")
custom... | [
"chip.myersjr@gmail.com"
] | chip.myersjr@gmail.com |
2e83ec6d1e2949ecaaf7d1bb3de03ea892f66966 | 1c6e5c808c1a3e6242e40b15ae711574e670c3b6 | /food_management/views/update_meal_schedule/request_response_mocks.py | c10259d419f9263a235901ef89852547ecc07f81 | [] | no_license | KatakamVedaVandhana/smart_food_management-vandhana | dbe195994c110471d0ae7a5a53adef1441e86466 | 19e410a2aa792b22889a2dfed599312ba6b5a7ad | refs/heads/master | 2023-07-09T05:43:17.491313 | 2020-06-15T06:44:00 | 2020-06-15T06:44:00 | 269,609,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
REQUEST_BODY_JSON = """
{
"meal_type": "Breakfast",
"date": "string",
"items_list": [
{
"item_id": 1,
"meal_course": "Half-meal",
"quantity": 1
}
]
}
"""
| [
"vandhanakatakam@gmail.com"
] | vandhanakatakam@gmail.com |
ddeaaac0854029b27684147871b34f81acd44ca6 | a53d0bf6edf871726c926524d8bb7ae25720c7af | /online-version/online/urls.py | ca9bd3c5e1c328fd2e8a3b4195475cf81891f6f8 | [] | no_license | GavinAF/Fire-Scraper | 42f59f01d7e80ac266a8c2b5b0e69a50d038ee64 | 6d9106f6c2a0aea0c0682e2a44af81a06f55b6a0 | refs/heads/master | 2022-12-23T09:01:46.770734 | 2020-10-21T00:44:50 | 2020-10-21T00:44:50 | 202,859,644 | 0 | 0 | null | 2022-12-11T02:26:45 | 2019-08-17T09:11:40 | Python | UTF-8 | Python | false | false | 885 | py | """online URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-based ... | [
"gavinafoutz@gmail.com"
] | gavinafoutz@gmail.com |
d902aec595850296e6bec4d0503d83ff76ce22ea | 3b0246a503d2bdbc9cd6bf13f44371d0be99c924 | /og4_to_vg4/model/main.py | 41e0ca7bfbbe19de2e2d348e7c08be85f1a5be18 | [] | no_license | Bocabbage/HvvG4-workflow | e4834464a59186f9079054a8da019831560340d1 | ba9fba732cfde2a22a7e5e2be21fc31da67f9660 | refs/heads/main | 2023-08-26T17:50:18.977680 | 2021-10-27T09:12:51 | 2021-10-27T09:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | #!usr/bin/env python
# -*- coding: utf-8 -*-
# Script: main.py
# Description: MAIN function of the VG4-predictor
# Update date: 2020/4/11
# Author: Zhuofan Zhang
from xgboost import XGBClassifier
import matplotlib.pyplot as plt
import joblib
import os
import pandas as pd
import numpy as np
... | [
"378066505@qq.com"
] | 378066505@qq.com |
4fdf5b55ca8b34dbe7b97e293d8dace35dd2c25c | ce13eba2d3d1e7267b44cd322d309c0e1f3e6785 | /pb_file_generation.py | 26d7bf10581c85f22b12aec9ff2e341b9465e57b | [] | no_license | parthnatekar/Brain-tumor-segmentation | fdfc9ba41d410a3618947c0b6d784ff013ded4a7 | 88aecfea58bf551457c2c8622cc23e74e48db7e7 | refs/heads/master | 2022-02-22T03:31:28.981931 | 2019-08-30T06:53:16 | 2019-08-30T06:53:16 | 192,159,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | import tensorflow as tf
import keras.backend as K
resnet_model_path = 'trained_models/U_resnet/ResUnet.h5'
resnet_weights_path = 'trained_models/U_resnet/ResUnet.15_0.491.hdf5'
resnet_pb_path = 'trained_models/U_resnet/resnet.pb'
sunet_model_path = 'trained_models/SimUnet/FCN.h5'
sunet_weights_path = 'trained_models... | [
"koriavinash1@gmail.com"
] | koriavinash1@gmail.com |
3dcf93313868e6a333acf59112cec9cc100db628 | 20db5a27f2a8b2d324085f5e1ec6c46ad7c1e8c3 | /djangoMovie/wsgi.py | bd36ec73a578e75dac2e61871a123692e83408c3 | [] | no_license | mortadagzar/djangoMovie | dae326fc83a31e485792b1ee42fa89b7d681049d | e83904c0c1ecc45992eed7516cb483bd2c97590b | refs/heads/master | 2020-04-01T22:32:28.246877 | 2018-10-19T02:41:22 | 2018-10-19T02:41:22 | 153,713,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for djangoMovie 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"mortadagzar@gmail.com"
] | mortadagzar@gmail.com |
9ebd82bf8c429ae45db8a0b7274c6f8d6b9d6a89 | f16f7f169e1db571eeac3d3600d30a206255f22c | /MLOfc/test3backend/backN/backN/settings.py | 8200535e2118a7093bb4ad43b670e1d0fbd2deb3 | [] | no_license | MeSarita/MLbackend | b5ee8e1bc5405b06326e58d3d6610d7b4074dfe0 | 45e8958b1266cc110361f126a089f899a60719d9 | refs/heads/master | 2020-08-22T02:03:05.596767 | 2019-10-20T04:45:40 | 2019-10-20T04:45:40 | 216,294,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | """
Django settings for backN project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"sarita.yadav1590@gmail.com"
] | sarita.yadav1590@gmail.com |
b4963b47254d15bd0ca7571ad4b4a6d0f5c28c9d | 2cf9024fb450440fbaaffc4eb9613fa2e32950f0 | /tripadvisor_crawler/utils.py | 0f5a5113265b4b8ec3034d447220bf9f6584aceb | [] | no_license | borisghidaglia/tripadvisor_crawler | b1ad88c93838cb40f7e19a00ab7c55e3a0361aa5 | c37db6d8ba50c3dc68535868c94dded116393f1f | refs/heads/master | 2020-04-09T03:12:25.236919 | 2019-01-01T14:27:10 | 2019-01-01T14:27:10 | 159,973,669 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | import pymongo
import json
# Databases management
class DatabaseMongo:
def __init__(self, db_name):
self.db_name =db_name
self.client = pymongo.MongoClient()
self.db = self.client[db_name]
class TripadvisorMongoDB(DatabaseMongo):
def __init__(self, *args, **kwargs):
super()... | [
"borisghidaglia@gmail.com"
] | borisghidaglia@gmail.com |
ac8755687782be9a19c5c6e6b897340db5ea5330 | d9464e9da00c219ed0b95636db27997572a5ae45 | /venv/bin/wheel | 5b0a5b8410d57828f1cae22eec3c1e4026d6c9bc | [] | no_license | goldenglitch/image_similarity_search | ba0121b9071b90ede5e905199864c81f4883bcbc | 21b0ec334f119ee443d45f01ccee673f2a7c86c9 | refs/heads/master | 2022-10-18T07:43:44.904143 | 2019-05-23T13:01:34 | 2019-05-23T13:01:34 | 188,233,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/Users/shreya/Documents/img2vec/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shreyadwivedi15@gmail.com"
] | shreyadwivedi15@gmail.com | |
b71d7aa393c84575c8be1fe5d77788cc479b4e6a | 818b6d644fb7a9ef094212f3b90e097f6956920a | /venv/Lib/site-packages/xyaml.py | 26c7786cec2108318a733c3728dfa35007be04db | [] | no_license | tany-92/FocusApp_Autotest | 023cf7e972d44d9eebc6f3dec14f552f2cfdcd23 | cec5448b2292ffd414ac5dff01e931f985f2ebb8 | refs/heads/master | 2023-01-12T07:38:17.774098 | 2020-11-17T08:15:03 | 2020-11-17T08:15:03 | 312,505,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import logging
import os
import sys
from copy import deepcopy
import yaml
__author__ = 'Marco Bartel'
LOG = logging.getLogger(__name__)
class XYaml(object):
@classmethod
def merge(cls, a, b, path=None, update=True):
if path is None: path = ... | [
"1187452302@qq.com"
] | 1187452302@qq.com |
221f6c9b0954b8344fd3da185ce8cc6156cf3cba | b7e52fa16942ab6dd9c794a06775615789f82b6b | /Tutorials/General_Tutorials/PhysicsApplications/visualizingwaves.py | c395e03aaebe0de27a4b0ba3f81459b1663ee848 | [] | no_license | fusionby2030/Uni_Work_SS20 | 7e89c1ce77bd5494acf8d8219c9665ea38763136 | deddf380105d960bd7c1843631a64de98b4a1aaf | refs/heads/master | 2022-12-31T12:30:50.026845 | 2020-10-27T15:58:26 | 2020-10-27T15:58:26 | 256,388,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | import numpy as np
import matplotlib.pyplot as plt
plt.style.use('dark_background')
pink = '#F08080'
green = '#96f542'
gold = '#ebdb34'
domain = np.linspace(0, 10, num=500)
A_x = 0.5
A_y = 0.5
omega_x = 1
omega_y = 1
phi_x = 0
phi_y = 0
x_domain = np.linspace(-2, 2, num=50)
y_domain = np.linspace(-2, 2, num=50)
X, Y = ... | [
"adamkit11@gmail.com"
] | adamkit11@gmail.com |
bcb367c3193fb6279777f68018673dbfb7dd1416 | 1158b9ea4704092c123dcc48d0e72f402be83554 | /tests/test_user_model.py | f6148f96071b8156149b00386f95a9cc638669da | [
"MIT"
] | permissive | jieunyoo/hangulapp | 4ddb818e181937a9c23a3910d41247b20e9d201b | cff6b253da5c31633f86740dcd5906e08992a1b7 | refs/heads/master | 2021-12-14T23:41:10.646910 | 2017-06-26T17:35:29 | 2017-06-26T17:35:29 | 94,943,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | import unittest
import time
from datetime import datetime
from app import create_app, db
from app.models import User, AnonymousUser, Role, Permission, Follow
class UserModelTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
... | [
"jieunyoo@protonmail.com"
] | jieunyoo@protonmail.com |
b25c43f73fee8a4c212ebced56c16089e47d918b | a37505371408e327fd3b0f9ffccc9f39d913788f | /arrays/remove_elements_fast_slow.py | 95a5862265bec9fb2cc134bc84402dd99892ec1d | [] | no_license | jcohen66/python-sorting | ccbe54e8913a85a4f2c6edc04f1e19ca3c439cf0 | d5ef4572e8f94edc6e4d871702605a9e1b7ae61d | refs/heads/master | 2023-03-17T08:33:23.982201 | 2021-03-11T22:06:32 | 2021-03-11T22:06:32 | 332,294,311 | 0 | 0 | null | 2021-02-16T23:19:09 | 2021-01-23T19:45:05 | Python | UTF-8 | Python | false | false | 457 | py | class Solution(object):
def removeElement(self, nums, val):
"""
Time: O(n)
Space: O(1)
>>> s = Solution()
>>> s.removeElement([3,3], 3)
0
>>> s = Solution()
>>> s.removeElement([3,2,2,3], 3)
2
"""
slow = 0
for fast in r... | [
"jcohen66g@gmail.com"
] | jcohen66g@gmail.com |
308ea4dfce5b0857543183153beb933f958db6c8 | 922496d9cd4377f858a47fbd9468a08e455a6321 | /Tools/Blender_tools/BlenderTools_2.80_81/MH_Community_for_blender_280/MH_Community/operators/snaponfingerrig.py | 0b0e668ef43d7d070d4fd1d006c6aecb44dc1f35 | [] | no_license | SyedShaQutub/VPS_System | b92b90975987aad7f9b5cf8d1880505a0d7f9746 | 32c0cd1157e93069628c7340b6dd09754971c558 | refs/heads/master | 2020-09-26T21:37:11.752715 | 2020-03-23T15:27:08 | 2020-03-23T15:27:08 | 226,346,930 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import bpy
from ..rig import RigInfo, FingerRig
class MHC_OT_SnapOnFingerRigOperator(bpy.types.Operator):
"""Snap on finger control bones.\nNote an IK rig is always added with .ik in bones names, regardless of imported with MHX or Collada."""
bl_idname = 'mh_c... | [
"syed.qutub@intel.com"
] | syed.qutub@intel.com |
c687180e562e5f48c0fd7e886718336245d0d3d6 | 093e942f53979299f3e56c9ab1f987e5e91c13ab | /dev-tools/release_notes.py | c1e053a2d9b0ebb4a5c07afe95a0ba5b39bb31da | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | Whale-Storm/Whale | 09bab86ce0b56412bc1b984bb5d47935cf0814aa | 9b3e5e8bffbeefa54c15cd2de7f2fb67f36d64b2 | refs/heads/master | 2022-09-26T10:56:51.916884 | 2020-06-11T08:36:44 | 2020-06-11T08:36:44 | 266,803,131 | 3 | 0 | Apache-2.0 | 2022-09-17T00:00:04 | 2020-05-25T14:39:22 | Java | UTF-8 | Python | false | false | 5,672 | py | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lice... | [
"798750509@qq.com"
] | 798750509@qq.com |
36b24562ceb35e154615e4d670d7cca5b62ae702 | b5c961e08daafc616f115ee8229db6608f5fdee0 | /models/qanet2/modules/functional.py | 382592a2c15d874a3bc0bdf5b28c6f06349459ab | [
"MIT"
] | permissive | arpadtamasi/cs224-final-squad | 0fa9f8a0140e3d33f9659997c3414b6a3c5a4dfd | 9962747725d226c645fe82780b3df43b1af3f47f | refs/heads/master | 2023-03-18T21:26:00.727161 | 2021-03-13T12:37:57 | 2021-03-13T12:37:57 | 342,046,865 | 0 | 0 | MIT | 2021-03-13T12:18:39 | 2021-02-24T21:58:05 | Python | UTF-8 | Python | false | false | 181 | py | import torch
def mask_logits(target, mask):
mask = mask.type(torch.float32)
return target * mask + (1 - mask) * (-1e30) # !!!!!!!!!!!!!!! do we need * mask after target?
| [
"arpad.tamasi@gmail.com"
] | arpad.tamasi@gmail.com |
da128a25d5e24b614b0306918706fa1992a57764 | 247d4252cf5697e37f52ab0b1dd50c38dcf98f5b | /somarecur.py | 5915f0751398387e116bea91d4bfe667251f5334 | [] | no_license | Moreth768/Aprendendo-Python | 3c30c09e808fd8d38a0d2c5a73263f662b22af43 | 58c475d6d745a41c62621bd3f85653a2f5857087 | refs/heads/master | 2022-12-01T23:47:15.514954 | 2020-08-12T13:23:09 | 2020-08-12T13:23:09 | 285,584,564 | 0 | 1 | null | 2020-08-06T17:29:32 | 2020-08-06T13:54:33 | Python | UTF-8 | Python | false | false | 128 | py | def soma_lista(lista):
if len(lista) == 1:
return lista[0]
else:
return lista[0] + soma_lista(lista[1:]) | [
"popo1078@hotmail.com"
] | popo1078@hotmail.com |
3a7ab99531285135c76dc756fbc5cf643925f8ee | 8af2980e852fe35a13d88ba3e49d8110ffc9ac3f | /analysis_tiktok.py | 5abaa08adbd8905c3788936ae9f1a2f8ef042034 | [] | no_license | nicolelizabeth/Text_Analytics_Project | 836ef586cbc55c0d95a89e1622f88f3bf73fd65d | d764751e24ebe9fad28c9d739385b0e9647eab1b | refs/heads/main | 2023-08-22T11:20:22.222877 | 2021-10-18T21:06:48 | 2021-10-18T21:06:48 | 417,296,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import datetime as dt
scored = pd.read_csv('C:/Users/jackm/Documents/analytics/fall2/text/scored_reviews.csv')
scored["posted_date"] = pd.to_datetime(scored["posted_date"])
mask = (scored['posted_date'] > '2018-1-1')
scored = scored.loc[... | [
"noreply@github.com"
] | nicolelizabeth.noreply@github.com |
48774ba94ffa456eca920cab6ef2295aa6a30cfc | df23188d00d1425ccabd753a92549bb2ade56f0d | /node/node_modulesfr/uws/build/config.gypi | 352659615b926bdb310c9d727004cdcd8718eabf | [
"Zlib"
] | permissive | rajinder-mohan/contestsite | 37d989e39c37feca832fe0c4f192255885ff012f | 10a94efa903626f9386392a1506757a39b08a6f2 | refs/heads/master | 2020-03-25T06:32:32.114523 | 2018-08-04T07:40:47 | 2018-08-04T07:40:47 | 143,508,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | 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": 54,
"host_arch": "x64",
"node_install_npm": ... | [
"pksharma341989@gmail.com"
] | pksharma341989@gmail.com |
606d4366f99252e9418e1579582edebba8b119a6 | 3bcc4672eee17ed7bef7e1be454961bd68a7f636 | /permutations.py | 6a2e477fcb04094b5a0caefdd5689ba67b8149ad | [] | no_license | Milan-Chicago/ds-guide | 092ffa5c6a6df5ff0aad0674c38e994bdf92e444 | fbaae4bdbb2017ee43b0d1a3f23137a75f7ea2c1 | refs/heads/master | 2023-08-19T21:52:30.707802 | 2021-09-17T12:53:51 | 2021-09-17T12:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | """
Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.
Example 1:
Input: nums = [1,2,3]
Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
Example 2:
Input: nums = [0,1]
Output: [[0,1],[1,0]]
Example 3:
Input: nums = [1]
Output: [[1]]
Ap... | [
"kuchandr@blr-mpw2v.bangalore.corp.akamai.com"
] | kuchandr@blr-mpw2v.bangalore.corp.akamai.com |
c1358a09da4d19555e5577774a08e66956911de3 | 8dbe9c94291ac7ebd4630af6ec83c245d3b3ae5e | /codeTest/beautifulSoup.py | abd7fa36d6e8c60b046f1b1fd944069e745303de | [] | no_license | stooorm521/SeleniumChromium | 2c4940f2480bb895f07092fb80e91aaf9bc66263 | 7ad118075c8aea05ad6959d09da522865bddc385 | refs/heads/master | 2020-03-14T05:10:06.215797 | 2018-05-03T00:02:38 | 2018-05-03T00:02:38 | 131,458,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # -*- coding: utf-8 -*-
#http://www.qiushibaike.com/8hr/page/1?s=4603425
import urllib2
from bs4 import BeautifulSoup
import time
if __name__ == '__main__':
page = 1
xiubai=open(r'xiubai.txt','w+')
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = {'User-Agent': user_agent}
for... | [
"748657719@qq.com"
] | 748657719@qq.com |
167cc51a3936397768ccd70fde5f0982663c46bc | dc245db07b769059c2ea22459116eb29f4bcc6ac | /R2.py | d2555945e65075c5854f3c3677ffd7ca5e74ed98 | [
"MIT"
] | permissive | neonio/Reptile101 | e9e63759d3eddf8e42d3a855de2f845ba3fa6bcd | a8721dc0020cb3174fe9816f5c4f4a7cfaf835ea | refs/heads/master | 2020-03-27T19:29:42.960596 | 2018-09-04T08:54:47 | 2018-09-04T08:54:47 | 146,992,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.common.exceptions import TimeoutException, NoSuchElementException
... | [
"neonai@foxmail.com"
] | neonai@foxmail.com |
014374fb47fbef4af2557c6fe2dfcee90f611fac | 195497594843604634a9beaed80d9bc3346eedf1 | /ournewproject1/wsgi.py | c0902b7e3b53af64f9919c986e777bc5d6e37611 | [] | no_license | EzeXavier01/django-frame | 4c028c37eebf4872b20104dcbfcdfc3535b987e8 | fb5ba2de093913b5533692e600455604fee51e7a | refs/heads/main | 2023-04-16T18:23:06.758806 | 2021-04-21T12:28:36 | 2021-04-21T12:28:36 | 360,161,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for ournewproject1 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('DJANG... | [
"75840548+EzeXavier01@users.noreply.github.com"
] | 75840548+EzeXavier01@users.noreply.github.com |
273b3d5bdf3e8b7ce0cffb9a434b870bf27e23eb | 068d1a9de577c9b0e6806f1c6f4d1371e587a176 | /lipanampesa.py | 4b683f21bfcb3670a9acd280595bb5ccae6d300a | [
"MIT"
] | permissive | reinbarasa/Daraja | 934dc9765fa90913dfdd5fb8075e4fcfe7a6cd82 | ec350d8934f29d05c99ffece9a6919cca14f6518 | refs/heads/master | 2020-12-10T06:28:06.835075 | 2020-01-13T06:53:19 | 2020-01-13T06:53:19 | 233,524,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py |
a = 5
print(a) | [
"burudinthn@gmail.com"
] | burudinthn@gmail.com |
a0a9f01578d0557f276aee5bc979f39d9ee8570e | f15df8f7ebdb77ca4ad2525e51b3259195bdf01b | /econ/common_services/views.py | a93baa5ebf08bfdbec539e31426bbdfe1bd9504b | [] | no_license | naveenmotpuse/knanalytics | 474d74ed4699655a3801f4254a307cf86dfe36ff | e355927950545c810aa3eab35309d7c41f1ccf65 | refs/heads/master | 2020-03-28T17:00:11.683442 | 2018-09-26T06:22:15 | 2018-09-26T06:22:15 | 148,749,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,363 | py | '''
Created on 15-Apr-2016
@author: naveen@knowdl.com
'''
import os
import json
import requests
import _csv
#import urllib2
import datetime
from gldata.models import SessionData
from django.http.response import HttpResponse
from econ.utils import CorsHttpDecorator
from econ.common_services.models import FredUSRegConGa... | [
"naveen@knowdl.com"
] | naveen@knowdl.com |
3dfeb5c61ec286191fe10d7a608e8bb131535b04 | 0de400bcdc0c7cf20ef83428a0044e2d4b9119bb | /curriculum_algorithm/migrations/0003_auto_20190527_2141.py | 8a5c78663868b206837aacc73915edebef4ff752 | [] | no_license | Joshuacruzc/CurriculumAlgorithm | a961f857a03a1e27d6d1207d5ffc75fde3231705 | 04713113ce141d7e12a2ddb9e85aac5e50388f80 | refs/heads/master | 2022-11-24T03:55:09.902111 | 2020-07-23T02:19:19 | 2020-07-23T02:19:19 | 179,868,171 | 1 | 1 | null | 2020-07-23T02:19:47 | 2019-04-06T17:58:16 | Python | UTF-8 | Python | false | false | 562 | py | # Generated by Django 2.2.1 on 2019-05-28 01:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('curriculum_algorithm', '0002_auto_20190527_1338'),
]
operations = [
migrations.AddField(
model_name='curriculumcourse',
... | [
"joshua.cruz15@upr.edu"
] | joshua.cruz15@upr.edu |
016f142fbb09daf43f5feeb03bd08f1a32783e55 | 478071aed3612b8eefb5dc521b8fe18f95eaffdd | /Existing paper reading/model/GATA.py | 105813c869a5edc310f98773b833ce8591293d86 | [
"MIT"
] | permissive | leiloong/PaperRobot | f913918671d758ae7e9d4098fe42cad19fbbbc6d | 070972dc1548571c28d89d2c54fb379e87d172c7 | refs/heads/master | 2020-05-30T11:39:11.814416 | 2019-07-18T08:25:00 | 2019-07-18T08:25:00 | 189,710,771 | 0 | 0 | MIT | 2019-07-18T08:25:01 | 2019-06-01T08:47:51 | Python | UTF-8 | Python | false | false | 1,782 | py | # --------- Link Prediction Model with both TAT and GAT contained -----------
import torch.nn as nn
import torch
from .GAT import GAT
from .TAT import TAT
class GATA(nn.Module):
def __init__(self, emb_dim, hid_dim, out_dim, num_voc, num_heads, num_ent, num_rel, dropout, alpha, **kwargs):
super(GA... | [
"dalewanghz@gmail.com"
] | dalewanghz@gmail.com |
f86c5455ad8c4a2c08122a157609b5b9dc975e49 | 6c2c560964c32f8c7412e77668291714d1a8704a | /Docst/__init__.py | 5a3d223fe6aa1508777b609270a3eddc5605173b | [] | no_license | mulac375/calum_kirk_set09103_cw1 | 62394044e9686ec9d0824fa9c950109c83c37330 | efe3fd8c484fae31e078ab6738134e809bc97084 | refs/heads/master | 2023-01-19T15:30:02.981981 | 2020-11-28T16:46:56 | 2020-11-28T16:46:56 | 297,415,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | from flask import Flask # import flask functions
from flask_sqlalchemy import SQLAlchemy # import sqlalchemy for database
from flask_bcrypt import Bcrypt # import bcrypt functions
from flask_login import LoginManager # import login functions
from flask_mail import Message, Mail # import email functions
mail = Mail(... | [
"noreply@github.com"
] | mulac375.noreply@github.com |
6b978e0dc946990c17a8c9fb8c15af9dd6441e33 | 9101a7f87171fa33fc0567e94148f9a46326badd | /tcl/startPage/start_page_support.py | 74c28c5dc3bd4ccd428792942ef049512d108f58 | [] | no_license | adiaharoni/yudbetProject | c0bad8fc72be13743a0f2613a7bd1888a6b1b713 | 4e04262bddf7a57b307d980d17faa522dca9b6a2 | refs/heads/master | 2021-01-13T21:57:31.944082 | 2020-02-27T07:37:20 | 2020-02-27T07:37:20 | 242,507,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import sys
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
py3 = False
except ImportError:
import tkinter.ttk as ttk
py3 = True
def startOpenPage():
sys.stdout.flush()
sys.path.append('..\openPage')
import openPage
openPage.create_Toplevel1(r... | [
"adiaharoni100@gmail.com"
] | adiaharoni100@gmail.com |
81500922d96e1dcf88f6749557790f570cda92ca | cf1431d3d4843fda317ec9c1d39cceaa0cbe69e2 | /gewittergefahr/gg_utils/time_periods.py | 102edab472e111ff3dd03896c662b6a0a7d926a4 | [
"MIT"
] | permissive | theweathermanda/GewitterGefahr | 9dad0f5d4595db647d511a7b179b159201dff4f2 | b8bcbf4c22457b3aa4613ff2c07b32a6e71068e2 | refs/heads/master | 2020-04-26T02:20:40.434434 | 2019-02-17T03:42:31 | 2019-02-17T03:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py | """Methods for handling time periods."""
import numpy
from gewittergefahr.gg_utils import number_rounding as rounder
from gewittergefahr.gg_utils import error_checking
def range_and_interval_to_list(start_time_unix_sec=None, end_time_unix_sec=None,
time_interval_sec=None, include_endpo... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
9469ff7eb2848c96ea8746c0ecaacf4bc0b3b4cb | 8a0bc79a1c668624ac2c52ec14c5e84a4ec123da | /project/api/tasks.py | 3d352b3942b562d241c0586f96e4487d2ec9bc80 | [] | no_license | ammeitzler/conduent-facial-recognition-server | 0d7f4fe14d4b1c538c6595d6cdf28d79ac949165 | 82c2008aa3d14556114a14295fefba8af3f04a2b | refs/heads/master | 2022-12-11T23:27:09.305114 | 2019-11-01T10:21:17 | 2019-11-01T10:21:17 | 218,963,145 | 0 | 0 | null | 2022-11-22T03:36:47 | 2019-11-01T10:19:53 | Python | UTF-8 | Python | false | false | 2,789 | py | from project.api.serializers import *
from .models import *
from rest_framework import viewsets, status, generics
from rest_framework.response import Response
from rest_framework.decorators import detail_route, list_route, action
from django.utils.decorators import method_decorator
from django.views.decorators.cache ... | [
"ammeitzler@gmail.com"
] | ammeitzler@gmail.com |
50ac7d9499d215fdeee98e4acab4c2ba61d65aa5 | a704c91ba38fb9f733102506f3bbf1325ab0e73b | /loans/asgi.py | e0a7f28c0e79d8818c407d48e9c27dbbbb8509f2 | [] | no_license | Nyakinyua/Loans- | e2b69ef00118ab2831df5b12a9e9987944bd23a2 | fd9d9d51cfb02905001921f7c989ea11be0f68e4 | refs/heads/master | 2023-04-03T03:12:29.134845 | 2021-04-13T09:26:44 | 2021-04-13T09:26:44 | 348,429,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for loans 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"wanyakinyua968@gmail.com"
] | wanyakinyua968@gmail.com |
002a987d59a86033782462afb2eaf54c7bd1721c | c448652212609cc55007d4e3cff3bc2fd94b1712 | /corvapy/assets/well.py | d4ef04ef133542d2a9f656b5864fe9b4249ce7c7 | [] | no_license | bthornton191/corvapy | 4fee35d07f5a2156473d37d30ab3f840c7f91648 | 4e04bf3eced9fde0f76f2ff774da4473fa85feed | refs/heads/master | 2020-08-08T20:35:14.023895 | 2019-10-10T19:40:40 | 2019-10-10T19:40:40 | 213,912,371 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | """Module containing the Well class
"""
class Well():
"""Class containing data about a corva well
"""
def __init__(self, params, corva):
self.name = params['name']
self.rig = params['parent_asset_name']
self.casings = self._get_casing(corva)
self.surveys = self._get_survey(... | [
"ben.thornton@mscsoftware.com"
] | ben.thornton@mscsoftware.com |
4b4b97c33e554a7922e57e099a4f18a5e9e0f444 | ff04496e4c69c47e43934ade6e6b28e47eea5a1f | /train.py | 950a9c1e3229be8939ce04ebc1499e11a841bf3e | [] | no_license | adeelz92/Barcode_code | 332f7dd4097df51176ee41665fbd48cc6981729a | 6fc3257b88c589fa7bca3e77be73e82ae07d45c8 | refs/heads/master | 2020-04-02T09:09:39.624360 | 2018-11-15T02:26:07 | 2018-11-15T02:26:07 | 154,278,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | from keras.models import Model
from keras.layers import Input, Conv2D, MaxPooling2D, Concatenate
from keras.layers import Dropout, Flatten, Dense, BatchNormalization
from keras.callbacks import ModelCheckpoint
from keras.preprocessing.image import ImageDataGenerator
import keras.optimizers as opt
from keras.optimizers ... | [
"adeelz92@gmail.com"
] | adeelz92@gmail.com |
8bb8e12fbb2f372f4631fe6a8cdf351b7b848367 | d6b31eb2ac554467ca72bba567640e5d4264b9e8 | /src/dataset/raw_image.py | 08ef58e234a2acff8ca114f6e7f8a85823c08319 | [] | no_license | datomi79/cresi | 2057e708a779c3b1a6b2551a5424242362040b07 | 985f1a33bdd65a8b8988bf9ffc68cf8d910513c3 | refs/heads/master | 2020-07-18T20:00:46.257806 | 2019-07-25T12:51:52 | 2019-07-25T12:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | import os
import scipy.misc
#from scipy.misc import imread
import skimage.io
import numpy as np
from dataset.abstract_image_type import AbstractImageType
from other_tools import apls_tools
class RawImageType(AbstractImageType):
"""
image provider constructs image of type and then you can work with it
"""... | [
"adam.van.etten@gmail.com"
] | adam.van.etten@gmail.com |
cda754c843996deb186c2e23dde533e8fee2c7e6 | 4a6ee62745aaad67326bf6e3bb2001f5ef84b8ab | /music/admin.py | a2ccca151a409e344792bd5071c78414ad43b21b | [] | no_license | sandeep201451066/MusicAlbum | 437c79599fa56a6b21354e3d376a21d0b48f47a9 | bb3b1c176eb2f2bccdd88547fc1f04ee8262ac28 | refs/heads/master | 2021-01-12T02:36:59.740581 | 2017-01-07T06:57:05 | 2017-01-07T06:57:05 | 78,078,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib import admin
# Register your models here.
from music.models import AlbumList, SongList
admin.site.register(AlbumList)
admin.site.register(SongList)
| [
"you@example.com"
] | you@example.com |
49f6372be4dbd4d5b5afa73800df88ec46448170 | e035e042c425b7abbaee50b8f331b1d4ebcbd388 | /test/testapikeyfilegenerator.py | 4447a5f57529b553266526308950cbab3a2cfe21 | [] | no_license | Archanciel/C2 | 6ae2589c23c1499db3ca3d362459afecb52283ed | 8abf29d6798743d06d1949e22ff5c4bece2cd85d | refs/heads/master | 2020-03-21T11:19:38.298586 | 2018-09-01T10:23:50 | 2018-09-01T10:23:50 | 138,500,734 | 0 | 1 | null | 2018-07-28T18:33:25 | 2018-06-24T17:09:59 | Python | UTF-8 | Python | false | false | 1,318 | py | import inspect
import os
import sys
import unittest
import pickle
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
sys.path.insert(0,currentdir) # this instruction is necessary for successful importation of util... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
7c76eb80c29eade93325aedd9df6a6696a102335 | 4a9749d6eadd7bc0eac5e63647d49656bd7e4d4d | /Ajiself.py | 3166c83d6f301e28b7c14aaa9c7d95e0dd5da2e4 | [] | no_license | PutraRandy/Bot6-8 | da3e9b0bd4273efb75059e0b5e36bc0b57b2efaf | f2be6dd221b861e7cf9a45015670afef838aca8c | refs/heads/master | 2021-09-04T00:34:18.043029 | 2018-01-13T11:05:19 | 2018-01-13T11:05:19 | 112,493,805 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135,502 | py | # -*- coding: utf-8 -*-
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
# from imgurpython import ImgurClient
import time,random,sys,json,codecs,threading,glob,re
cl = LINETCR.LINE()
cl.login(token="EnFFw83lKCRm8HT72GP4.x6EvjLE74Nmu1Wo4pafGra.dcOZJ56wSLmaVuGKfv6dkSv58jj49J... | [
"noreply@github.com"
] | PutraRandy.noreply@github.com |
f9d21c082971d24ac6b391cc5207c371827eb3e0 | 56ba070d08b813141b24d39c87dfbcc8a48d207b | /catalog/migrations/0050_auto_20210610_0935.py | 60495ba4a0dd3e182bc4fa4f745105ba0a63b523 | [] | no_license | vongocchinh/ecommerce-django | 5870efe7679ea547e28c8238469321e93886ab19 | 28bdc7cc386c25f2b544b5ba5ef4b0bb47b48c0e | refs/heads/master | 2023-05-10T15:12:36.299319 | 2021-06-11T08:51:20 | 2021-06-11T08:51:20 | 369,414,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # Generated by Django 3.1.7 on 2021-06-10 02:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('catalog', '0049_auto_20210610_0935'),
]
operations = [
migrations.RemoveField(
model_name='bill... | [
"{ngocchinh1410@gmail.com}"
] | {ngocchinh1410@gmail.com} |
1b2beebcfce2d6669e1ab5bf05f8a9f49f94fa6b | a7b07e14f58008e4c9567a9ae67429cedf00e1dc | /lib/jnpr/healthbot/swagger/models/device_schema.py | 1952a7576fcf36a41d947010eca0a51bf076602f | [
"Apache-2.0"
] | permissive | dmontagner/healthbot-py-client | 3750d8375bc4fa7bedcdbc6f85f17fb812c19ea9 | 0952e0a9e7ed63c9fe84879f40407c3327735252 | refs/heads/master | 2020-08-03T12:16:38.428848 | 2019-09-30T01:57:24 | 2019-09-30T01:57:24 | 211,750,200 | 0 | 0 | Apache-2.0 | 2019-09-30T01:17:48 | 2019-09-30T01:17:47 | null | UTF-8 | Python | false | false | 11,136 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from jnpr.healthbot... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
fc9a91f8832a9e9583dfed7a9b8dbfdde0d1adee | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/counter/counter_vtep_stats.py | f46f33a278bb54b92bf117eca714b56cd163fb28 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 8,169 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class Stats(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param rx_bad_inner_ipv4_len_pkts: {"description": "Packets received with Bad Inner IPv4 Payload length", "format": "counter", "type": "number", "oid": "34", "... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
28212f362a4f92bed33573a6494c969cc195eedd | 5312378828735d1b509b694d608d50882030fd25 | /Logical_opera.py | 4436c9a17e2893963ddf2c7fddc6413b92b71695 | [] | no_license | Ravi-Nikam/Python-Programs | bfa3061da333e58b7d5fe71716452ee1d883bb4b | d91e784e9f7d1465ea7061b61d386592499a7df6 | refs/heads/master | 2022-11-19T22:19:05.396739 | 2020-07-21T18:03:44 | 2020-07-21T18:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #Logical operators: Logical operators perform Logical AND, Logical OR and Logical NOT operations.
a=(input("Enter the no1:"))
b=(input("Enter the no2:"))
# Print a and b is False
print(a and b)
# Print a or b is True
print(a or b)
# Print not a is False
print(not a)
| [
"noreply@github.com"
] | Ravi-Nikam.noreply@github.com |
a6f3acb6b119c6a7b83bda654ccc2e610af29885 | af4eb8204923b5848fce3158c6f8a89a480ea1d8 | /script/AGNSS/AGNSS_Test_0084.py | afe06efc62851c32680c7b868f5dba30c5625c8c | [] | no_license | wanghaoplus/gatog | 4ab0c77d4f9eb93da136ad3933a68cbf0b5c5bca | 8935e20a426638462cd1cc7bc048a16751287a2f | refs/heads/master | 2022-04-10T21:36:20.395304 | 2020-03-26T10:09:28 | 2020-03-26T10:09:28 | 248,264,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # -*- coding: utf-8 -*-
# @Time : 2020/02/21 22:14
# @Author : wangdelei
# @Site :
# @File : AGNSS_Test_0084.py
# @Software: PyCharm
from aw.LbsTestCase import LbsTestCase
import time
from aw.core.Input import *
import threading
class AGNSS_Test_0084(LbsTestCase):
def __init__(self):
super(AGNS... | [
"418816179@qq.com"
] | 418816179@qq.com |
856cfd06d92357b4bc69a5ffd34cfdb638597415 | 5375899dbf84b68b6c03ae1ca32b7276a5b45bed | /Python3网络爬虫开发实战_崔庆才/scrapy框架/btmovie/btmovie/pipelines.py | 62483d43789b2399c4ba19ff5bf7939306d7fcd9 | [] | no_license | Katherinelove/teacher_liao | ae1ed30ec5734699e797b3872142fcc86b7b4a67 | 8dba099c23dc930f9e542da1a5c8f89fd4e0722f | refs/heads/master | 2020-06-03T10:56:34.557149 | 2019-06-12T09:35:37 | 2019-06-12T09:35:37 | 191,541,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import logging
from pymongo import MongoClient
class BtmoviePipeline(object):
def process_item(self, item, spider):
... | [
"15281857366@163.com"
] | 15281857366@163.com |
596976fda6a42f23d13b1d6e33d45142d68a285a | f565bb7c87bdecc21746ef7030dfb86263b5edc3 | /hw_2/constants.py | 557c733f33fc13d33da69b26fa6743847281e2be | [] | no_license | nbutcher/butcher_phys239 | 232edb82ffa698523b15f74269b27482e00b317a | a28b2aebcc5d90c53e385a1a770c62df02678480 | refs/heads/master | 2021-01-12T17:47:05.367916 | 2016-12-08T21:58:11 | 2016-12-08T21:58:11 | 69,390,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #This file contains useful physical constants and unit conversions to be used in homework 2
#Unit Conversions
pc = 3.0857e18 #pc in cm CHECK THIS
year = 31557600 #year in seconds
#Physical Constants in cgs units
c = 2997924.58
| [
"butchernate@gmail.com"
] | butchernate@gmail.com |
a074f5ca113dcf316aea9d846b7627ad4ff1dda5 | e4abac625b72077e96396ded8cf9784b5fb9e186 | /01 學習區/xgboost_with_python/code/chapter_04/first_model.py | 09fc3af624a782389e3a641bbde8f95a6b0afb33 | [] | no_license | kent1224/Learning | cc9d30c5c971af74f07e7dfe8198244ebb5b0b79 | 5b2c56dfd7f784ad670839752e61d36f657f2525 | refs/heads/master | 2021-05-16T14:57:28.846934 | 2018-01-26T02:21:09 | 2018-01-26T02:21:09 | 118,734,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # First XGBoost model for Pima Indians dataset
from numpy import loadtxt
from xgboost import XGBClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
# load data
dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",")
# split data into X and y
X = dataset[:,0:8... | [
"noreply@github.com"
] | kent1224.noreply@github.com |
e91444a32219889c3874d26dc56e05dd5eedf9ca | e4e9370bfb5b5ad5c8a2c9fbbc4bbfab6ed1f434 | /ecommerce/store/migrations/0021_auto_20210409_1533.py | 054a685617117cdafbca626ad86829a7402ee059 | [] | no_license | unsw-cse-comp3900-9900-21T1/capstone-project-3900-w18a-let-s-chat | efc5c9bede823f33209474475d8047c7c246e1ad | e45cf4414ed62dc679e26804dae45af5e61cbf63 | refs/heads/main | 2023-04-10T10:44:08.592759 | 2021-04-23T09:07:12 | 2021-04-23T09:07:12 | 343,309,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 3.1.7 on 2021-04-09 05:33
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('store', '0020_auto_20210409_1525'),
]
operations = [
migrations.AlterField(
... | [
"78832179+ilze3e3@users.noreply.github.com"
] | 78832179+ilze3e3@users.noreply.github.com |
201cb18806e64a90eab4c2b766ae1aae7d263ec3 | 598548d1364ea8e4810404d6aa17d5a6653b4d1c | /torba/client/basetransaction.py | a022bfa2ba10da401397daa64c9763199ed493c5 | [
"MIT"
] | permissive | productinfo/torba | 844d362ac8791715bcb16e883f994b5b5ed67109 | 45669dad336f7b74dd7c04d3f826620ed2f777c7 | refs/heads/master | 2020-04-19T18:33:44.480802 | 2019-01-29T17:51:59 | 2019-01-29T18:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,238 | py | import logging
import typing
from typing import List, Iterable, Optional
from binascii import hexlify
from torba.client.basescript import BaseInputScript, BaseOutputScript
from torba.client.baseaccount import BaseAccount
from torba.client.constants import COIN, NULL_HASH32
from torba.client.bcd_data_stream import BCDa... | [
"lex@damoti.com"
] | lex@damoti.com |
b919d9c0d29ca46b3bc5fc729c1194993effc7e6 | e55ac35349d0c4a306b4fc16cdee5998f2019276 | /lengthOfLongestSubstring.py | 14ee597b5d60360c0c21cea5db14704ac60a2f7c | [] | no_license | xeroxzen/Coding-Challenges | c6b740091ab684c855fd4f773c54a1b9e7ca96d0 | c68044c018c78f0180042f0462106bee02518249 | refs/heads/main | 2023-05-28T10:57:09.465868 | 2021-06-11T02:55:37 | 2021-06-11T02:55:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | """
Longest Substring Without Repeating Characters
----------------------------------------------
# Source: https://leetcode.com/problems/longest-substring-without-repeating-characters/
- Given a string s, find the length of the longest substring without repeating characters.
# Example 1:
>>> Input: s = "abcabcbb"
>>... | [
"legendaryanoldb@gmail.com"
] | legendaryanoldb@gmail.com |
d78c74a89a2d825092214a06c0b507e9f7cd2602 | 2d3aa5a8e14230c1c64f97c951cff74df7fbd305 | /accounts/migrations/0002_auto_20210212_1107.py | 074c01fb3acb72ca2cd06179462a837735f1e1f5 | [] | no_license | AcaoAngel/Oth | 8ed8e66cb63499bb0c01d6c7d92237238e6fce47 | 264f77142fd5896c7fa79152693e69294c1ec4fa | refs/heads/master | 2023-03-21T13:39:46.668779 | 2021-03-21T19:56:56 | 2021-03-21T19:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # Generated by Django 3.1.5 on 2021-02-12 09:07
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account_value',
name... | [
"angel.acao92@gmail.com"
] | angel.acao92@gmail.com |
d1bd38d846bba7c4f5d34cc464f4dabfaad0e668 | f3925f09a3e8b0ab6bb73d51cb95864b31701637 | /pylib/tests/test_history.py | 9cd31ea8052e322a6ced7b61771ef5924939cd80 | [
"MIT"
] | permissive | timlardner/SteamieBot3.0 | 88c40a36450f43e85fa7eba4b4c5f77189d00af4 | d18e701cc454c5087dac537b43f0c3b803a1b494 | refs/heads/master | 2023-06-14T05:29:15.838963 | 2021-07-12T20:35:04 | 2021-07-12T20:35:04 | 382,972,650 | 4 | 0 | MIT | 2021-07-06T20:57:36 | 2021-07-05T00:13:10 | Python | UTF-8 | Python | false | false | 124 | py | from post_components.history import History
def test_history():
h = History()
text = h.get_body()
assert text
| [
"timlardner@gmail.com"
] | timlardner@gmail.com |
8d43c7651b50f3a0c96f3f843c17662d2e42a204 | c7d7cfed89bdff66893896dd2c26310a9112fa20 | /helloworld.py | 73ce05f889fa44817cbe284614f729ef90c62c16 | [] | no_license | rnaredl/hello-remote | 509b5ea0158d2926bd39e349b60ba887b15ef7e8 | 1920e4c0ac9490eb1f133ca8f17d51c47e7923d7 | refs/heads/main | 2023-09-02T17:52:27.053709 | 2021-11-18T05:50:43 | 2021-11-18T05:50:43 | 429,305,383 | 0 | 0 | null | 2021-11-18T05:50:44 | 2021-11-18T05:15:56 | Python | UTF-8 | Python | false | false | 54 | py | import sys
print("Hello world!" .format(sys.argv[1]))
| [
"nrsreddy86@gmail.com"
] | nrsreddy86@gmail.com |
4cd0e47d8b15d665841ab5e45666807243eefdd0 | 923a75c5288bd4174e0df59cde83c6cfbe695ed3 | /nirob1.py | e66e0f930bbba2fa8850fa0fff5dff7b7cf23810 | [] | no_license | Owhab/Python-Codes | d3aaed6c4a55ca5c33f6b3c0c4b2175b9ae6b3f4 | eda42fb5d0be4d0e445bccd4212afeaa1fa22616 | refs/heads/master | 2022-02-01T01:11:17.086688 | 2019-07-20T06:25:47 | 2019-07-20T06:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
c = int(input("Enter the value of c: "))
if a > b and a > c:
print("a is larger")
elif b > a and b > c:
print("b is larger")
else:
print("c is larger")
| [
"noreply@github.com"
] | Owhab.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.