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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d89209a3d3672ced21426f09daa1161fbfdb1fd8 | 29bd73412c29845d98b339e347be7a7f98b0be03 | /prep_data.py | cf377f06c8dee1407cf804210a598cd9a650ceba | [] | no_license | prasathk11/SNA | b5b0ac1c074757011be794dcdada555fd873b365 | 1e88d2117c048d07e62df15a008b2db5cea57470 | refs/heads/master | 2022-12-05T02:37:22.598043 | 2020-08-11T17:14:29 | 2020-08-11T17:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import sqlite3
from tqdm import tqdm
from functools import partial
sql_queries = []
row_counter = 0
def create_database(db="drugs"):
con = sqlite3.connect(f"./DB/{db}.db")
return con
def transaction_builder(connection, cursor, sql):
global sql_queries
sql_queries.append(sql)
# print... | [
"noreply@github.com"
] | prasathk11.noreply@github.com |
d39e94f2a1e94d9283cba2a9137de76c89be04c4 | 7b77ca25963ae591d68f4abb5725f9fbc18e9ddd | /manage.py | 6e91a6e2cc9a226686ece7ece1a59fe439e32354 | [] | no_license | GabrielMartinez007/Empleados | 30b0f8676f9f432fa12d054b3c991974c4ce936a | 6f51398396fda42fc0939461c6efc4fc13a6b212 | refs/heads/main | 2023-02-27T17:42:20.410044 | 2021-02-02T18:54:29 | 2021-02-02T18:54:29 | 335,373,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | 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', 'projecto01.settings.local')
try:
from django.core.management import execute_from_command_line
ex... | [
"lugiazekrom43@gmail.com"
] | lugiazekrom43@gmail.com |
a3425828cef4d1b489f57edc08a623ac2165099f | fdbf5b3097959da0bb5df52c3c65f4d1d5c70de3 | /pyshellrm.py | 66affa8a0d0805262cbf5cc599d499abe46b02b4 | [] | no_license | nbulischeck/PyShellRM | a6935d8e94779eff096938fb910149ea008e1a5d | b41d0e9e1df2f1b7d399431f0a67a4a812f7355b | refs/heads/master | 2020-07-03T01:18:40.035827 | 2019-08-13T05:04:31 | 2019-08-13T05:04:31 | 201,738,842 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,340 | py | import argparse
import requests
from pathlib import Path
from riposte import Riposte
from ruamel.yaml import YAML
from pypsrp.client import Client
from requests_ntlm import HttpNtlmAuth
try:
from requests_kerberos import HTTPKerberosAuth
HAS_KERBEROS = True
except ImportError:
HAS_KERBEROS = False
try:
... | [
"nbulischeck@users.noreply.github.com"
] | nbulischeck@users.noreply.github.com |
88798ec9b37914cd55c18776dafe2c6d64684513 | 9897b9ac9cbb6d800a4c94958ba8fa09ca0c8af1 | /d_wechat_getyueduyuanwen.py | 65996112346746cb30e6a107948251c4c847ca38 | [] | no_license | Mikicomeon/wechat_offical_account | 11029ed53cf88cb398177feec494fc8cd9719d64 | 7b1f6a1675a0bddb7071046b3557ccbdb682dd3c | refs/heads/master | 2021-01-20T16:36:14.210278 | 2017-05-11T04:35:32 | 2017-05-11T04:35:32 | 90,844,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import re
import requests
import time
from lxml import etree
from public.mysqlpooldao import MysqlDao
mysql_dao = MysqlDao()
import urllib2
import httplib
import pymysql
if __name__ == "__main__":
conn = pymysql.connect(host='172.16.1.... | [
"mikicomeon@163.com"
] | mikicomeon@163.com |
5d335e38dd01e98f2b992f74c954b99f23baf15f | fba4953fcbc141c7ef2a28fb79b7b5eb9deef848 | /docs/conf.py | b1f70bfa40c90b85f89a60d6e13703ba33933c28 | [
"MIT"
] | permissive | smeggingsmegger/flask-wkhtmltopdf | 5f8529a380f77cb2aa91aeba54aaae7b813281ea | edfd64f0dc7851ecacfea2ca68c23e397d57f710 | refs/heads/master | 2022-03-14T03:50:46.541598 | 2022-01-25T14:14:48 | 2022-01-25T14:14:48 | 451,904,363 | 0 | 0 | MIT | 2022-01-25T14:13:45 | 2022-01-25T14:13:44 | null | UTF-8 | Python | false | false | 9,992 | py | # -*- coding: utf-8 -*-
#
# Flask-WkHTMLtoPDF documentation build configuration file, created by
# sphinx-quickstart on Tue Nov 24 20:15:20 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autoge... | [
"cwg23@georgetown.edu"
] | cwg23@georgetown.edu |
ef36c68858168d3d10a47080abe34ca2921e9ee5 | 166afec603e1fbc477cef933baad8ad227ae01ca | /ClassSeparatorModule.py | 49127f8dcb11575d7b6b87abf885fbab50f69ae4 | [] | no_license | yaxarat/Protein-Classifier | 6bcbdb729be0aa748c2bc694cf793dadfc4fd4e8 | d72c4412c112d6cf3c44b5f30e7f616ca13261a1 | refs/heads/master | 2022-11-17T16:53:22.309932 | 2018-12-16T04:35:02 | 2018-12-16T04:35:02 | 277,012,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | import os
from tqdm import tqdm
classes = ['DNA', 'RNA', 'DRNA', 'nonDRNA']
os.chdir('./output')
filename = 'pseudo_dataset0.0.1.csv'
# read in the original, full dataset
with open(filename, 'r', encoding='utf-8') as scrape:
fileContents = scrape.read()
dataset = fileContents.split('\n')
# change dir to output di... | [
"ya.atajan@gmail.com"
] | ya.atajan@gmail.com |
7ee57c45281d9fded0d414c120410f18cdcc907e | d4a17e5ee54a70cdb7ce93b48f78c6cc0bc99d61 | /chat/tests.py | 578da7cec41f66abddccc64eea5288ca60b2b812 | [] | no_license | skashok1/django-channels-Chat-Application | fdce5a5adee280e7f24b01ed073369027884caa9 | bc45771fa5428b4894fd7f0ef387d2d6640bb077 | refs/heads/master | 2022-11-20T04:28:36.771553 | 2020-07-10T08:09:26 | 2020-07-10T08:09:26 | 277,738,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | # chat/tests.py
from django.test import TestCase
# Create your tests here.
from channels.testing import ChannelsLiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
class ChatTests(Channels... | [
"ashoksh.8786@gmail.com"
] | ashoksh.8786@gmail.com |
a4b3b8af1b9fcd2577ef459da1b058e657b608aa | a4323cc4efad4dc83c5b1b95f6bb9f90dd216da5 | /slearn/process/build_states/from_inc.py | 059e2b28d9cb49f410505d80c2881a7f390ca077 | [] | no_license | mzoll/slearn | b319c0031d1b7494040afba7e44ed6864848182d | 0de5c01d97531c2d835733f01dded9852c5015d3 | refs/heads/master | 2021-06-17T00:08:58.075277 | 2019-02-26T17:18:08 | 2019-02-26T17:18:08 | 149,782,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,669 | py | """
Created on Jan 30, 2019
@author: marcel.zoll
"""
from slearn.state_building.constructor import StateConstructor
from slearn.state_building.session import SessionTrigger
ROUTING_KEY = 0
class IncidentProcessor(object):
""" Processes an incident to a State
Parameters
----------
stateBuilder_list... | [
"marcel.zoll.physics@gmail.com"
] | marcel.zoll.physics@gmail.com |
1bd88a834785157b2fe2bcf4233f02c43859ddbf | 13fe834fc89c425a80d111542f25c53eab39839b | /app/api_1_0/__init__.py | b595d892aa54de7a73bad7cf864517333045d46b | [
"MIT"
] | permissive | EverestYAO/new-flask | b93bd22cab5415c2d3a960ec9a0f2ad7866427de | c370c1277c87fdd20a554fe5e62d32dfb42395c8 | refs/heads/master | 2021-01-16T23:10:19.049336 | 2017-04-18T04:00:38 | 2017-04-18T04:00:38 | 72,334,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from flask import Blueprint
api = Blueprint('api', __name__)
from . import authentication, posts, users, comments, errors,diary
| [
"zaojue405@aliyun.com"
] | zaojue405@aliyun.com |
3e8bb017340b71f38e2ecbf7002956d5aaf5c396 | 6820a71abc97344cce66bbb578bd044605fee404 | /first_app/views.py | 263ebc332304bc831ffb5e73435d6eecad2e83f4 | [] | no_license | chix08/mydjangosite | 46a55f65d44574ff9b03e3a51a6f926ccf34b5bd | 0532b711c4a598ee684df33a1f80e0ed1bfb50a8 | refs/heads/master | 2020-04-24T02:37:04.662382 | 2019-02-27T11:00:52 | 2019-02-27T11:00:52 | 171,643,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | # from django.shortcuts import render
# from first_app.models import AccessRecord
#
#
# # Create your views here.
#
# def home(request):
# web_list = AccessRecord.objects.order_by('date')
# web_dict = {'access_record ': web_list}
# # my_dict = {"var": "Template", "num": "123"}
#
# return render(requ... | [
"user@user-V520-15IKL"
] | user@user-V520-15IKL |
63bb8cfeb317f62af40c54d6d6ba604724dc264e | 691d3f3e04d354e11772335064f33245e1ed8c28 | /lib/galaxy/datatypes/indexers/coverage.py | 2bfec91c25fb05f513831206a3471b71db5749ea | [
"CC-BY-2.5",
"MIT"
] | permissive | dbcls/dbcls-galaxy | 934a27cc13663549d5208158fc0b2821609399a8 | 6142165ef27f6a02aee42f26e0b94fed67ecc896 | refs/heads/master | 2016-09-05T22:53:27.553419 | 2009-09-09T06:35:28 | 2009-09-09T06:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | #!/usr/bin/env python
"""
Read a chromosome of coverage data, and write it as a npy array, as
well as averages over regions of progessively larger size in powers of 10
"""
from __future__ import division
import sys
from galaxy import eggs
import pkg_resources; pkg_resources.require( "bx-python" )
import bx.wiggle
f... | [
"h-morita@esm.co.jp"
] | h-morita@esm.co.jp |
624f9ac70390eb2b0177c09ce025a3b00a2bd5ec | 87a66fbed380353955cc6160c8fffe56dee785be | /bert2bert.py | 3ff4c7f15e16f72c1b0e7a7ec1fec8f221d33179 | [
"Apache-2.0"
] | permissive | JngHyun/2021-BOAZ-bert2bert | ca84e8f4ad444f27a31ac8f74469826adefe3a19 | 63e95cc87b231ebf344950df80a43abc1139cb7d | refs/heads/main | 2023-03-27T01:13:35.747955 | 2021-03-25T07:17:39 | 2021-03-25T07:17:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | from typing import List
from transformers import (
EncoderDecoderModel,
BertConfig,
EncoderDecoderConfig,
BertModel, BertTokenizer,
)
from transformers.modeling_bart import shift_tokens_right
from kobert_transformers import get_tokenizer
from lightning_base import LightningBase
import torch
class Bert... | [
"pjh09890989@gmail.com"
] | pjh09890989@gmail.com |
930a7c8af2747feaec497bd9dfff5eb5653c019a | ebda5a2142bcb417cb669c43d2165bad384ea799 | /qa/rpc-tests/p2p-acceptblock.py | 1d000a24193c055e04d4195b71e0452d492101e7 | [
"MIT"
] | permissive | MrSlosh/NewYorkCoin-AuxPow | d97500f14b8de81fd65c8dcbb7abd2bfc780f9d8 | 6be95a4a870e4301b8b0c341f1255a4afe82f541 | refs/heads/master | 2021-07-11T03:46:39.065886 | 2018-06-02T22:00:56 | 2018-06-02T22:00:56 | 135,212,875 | 1 | 1 | MIT | 2018-07-04T03:59:41 | 2018-05-28T21:58:20 | C++ | UTF-8 | Python | false | false | 9,418 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
from... | [
"jason@blackboxrealities.com"
] | jason@blackboxrealities.com |
d2c05eac3b043fccb0c34fc6492034919e8044bb | f34922193376c31e86f2bdfe82bb8ca68ac7d653 | /investment.py | 0f3bcd3d9dc75f68eed60b28b0dccca906ebeb95 | [] | no_license | ishraqalhadi/Python-CS3101 | 144a61bd08b9ee5b88926f0478d8d562b555d70d | 56d56e218f5951fe4d7ebaa176eb7e47a1309da5 | refs/heads/master | 2020-04-25T22:13:56.890134 | 2019-05-16T11:19:43 | 2019-05-16T11:19:43 | 173,104,679 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 231 | py | while balance < 1000:
interest = balance * 6/100.0 # use 100.0 to ensure float division
balance = balance + interest
years = years + 1
print "It will take", years, "years for your investment to reach £1000"
| [
"noreply@github.com"
] | ishraqalhadi.noreply@github.com |
56aa4459f8b73c62740c2cfc637b445cb21e28d3 | 854ff2669f35d037c8eb8937e976a5e7df581be6 | /NUBER/migrations/0001_initial.py | 558fbdd39d3a377a70845b63da4f06d9cdc00aa1 | [] | no_license | Regista/NUBER | 77572feeb2ae2449c483ab39379e1471b458ac73 | a93f4adf8d805abad22dc0538c2c03b38e2c8af6 | refs/heads/master | 2021-01-22T01:11:12.231919 | 2017-09-02T15:56:12 | 2017-09-02T15:56:12 | 102,206,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,318 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-17 14:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operation... | [
"subiyanto.slc@gmail.com"
] | subiyanto.slc@gmail.com |
9d2e8cb9a861e5eca6985a4863854e371cb2d989 | 3a34fff3f8a2887cfe0f2d2b4bdf1602c08da6f7 | /app.py | dac9bea2325994decc76a35c6f6f4184733114d4 | [] | no_license | samuelgambs/falcon-api | bedd117c4680d0bdb8410ceea90abaaae3b0eab4 | 9c2f317f65ded80763f947620097277411442a1f | refs/heads/master | 2020-04-30T19:03:57.094098 | 2019-03-21T21:39:02 | 2019-03-21T21:39:02 | 177,027,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | import falcon, json, requests
from mysql.connector import MySQLConnection, Error
from python_mysql_dbconfig import read_db_config
import datetime, time
from queries.SelectModuloRastreado import modulo_rastreador
from queries.SelectConjuntoRastreado import conjunto_rastreado
from queries.SelectLayoutRastreamento import ... | [
"samuel.dias@visaointuitiva.com"
] | samuel.dias@visaointuitiva.com |
cad859d418ce2e7f4caf5b06ea68e3865b327913 | 199145122c35976fbfc22f2d709458bf67772f95 | /apps/hosts/urls.py | 8d52a9078d69ec7982ad7b9679e2e9841d265abf | [
"Apache-2.0"
] | permissive | yhgnice/toolsvb | 6109adbce89dd645da342d619acbcaca31b11efa | 35f9d27ee2439d134cab160a7cf930ea13a31d26 | refs/heads/master | 2020-05-24T05:15:40.112999 | 2017-03-14T06:32:23 | 2017-03-14T06:32:23 | 84,824,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Nice... on '2017/3/9 20:32'
from django.conf.urls import url
from .views import RebootServices
urlpatterns = [
# 主机工具
url(r'^tools/$', RebootServices.as_view(), name="tools"),
]
| [
"123"
] | 123 |
4a6fc9b102de91177084184513bc4c3a4c650026 | 0ead41dd7323e054c50c21c17bc0858bfc8ce7d3 | /bidboard_api/blueprints/sessions/views.py | 39fa41f80248aa138da15b5bc038385466c7dbf8 | [] | no_license | arsm100/bidboard | d7c0926dfb8a71af2db101e8db0ea8305d955db9 | 15b2317b9f97c1ab2ba3aa9de2c85f2859c31521 | refs/heads/master | 2023-08-10T02:54:25.859198 | 2022-02-25T06:44:13 | 2022-02-25T06:44:13 | 163,170,786 | 0 | 0 | null | 2023-08-10T01:00:24 | 2018-12-26T11:07:12 | Python | UTF-8 | Python | false | false | 1,173 | py | from flask import jsonify, Blueprint, request, make_response
from bidboard.users.model import User
sessions_api_blueprint = Blueprint('sessions_api',
__name__,
template_folder='templates')
@sessions_api_blueprint.route('/login', methods=['POST'])
... | [
"ahmedramzy160@yahoo.com"
] | ahmedramzy160@yahoo.com |
2beb5a9ca0b208f66b18b9b86dfdf1fe835c37a2 | f20579a647f3a0308cd03f449d771fabf233c6a3 | /tests/processes.py | b47b9b8f3767c10798cf6927b828d83e9e38bcc6 | [] | no_license | jonathanchancey/wunbot | b4179bbf7a13627f4d9a531bb7c3374123a7ab49 | ed417dbe0ab6ba86d8102464f38c1aecdeb101f9 | refs/heads/master | 2023-08-17T10:23:41.368160 | 2021-08-06T17:34:01 | 2021-08-06T17:34:01 | 105,359,149 | 0 | 1 | null | 2021-08-06T17:34:02 | 2017-09-30T09:29:38 | Python | UTF-8 | Python | false | false | 285 | py | import psutil
for proc in psutil.process_iter():
try:
pinfo = proc.as_dict(attrs=['name'])
except psutil.NoSuchProcess:
pass
else:
# print(pinfo)
# print("coolio")
if "chrome.exe" in pinfo:
print("found chrome") | [
"jonathan22711@gmail.com"
] | jonathan22711@gmail.com |
eeba69110bb6fc6321417596b9a429c40f10910e | 06534559e82b41963c62a50d23783c9a3184ec30 | /python/depth/receiver.py | afd6d413ea98bd1fce659bfec18caef5b36439ee | [] | no_license | markkorput/DepthStream | 716b3711250a3fc49dfb1c10e0ed5d4099a42d1b | 7f5f73dce01659389bfd0456e19a64beb492fc00 | refs/heads/master | 2020-12-19T02:21:27.628388 | 2020-05-05T11:02:09 | 2020-05-05T11:02:09 | 235,591,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,412 | py | #!/usr/bin/python
import logging, sys, cv2
from threading import Thread
from time import sleep
from time import time as getSysTime
from optparse import OptionParser
from discover.socket import createClientSocket, ClientThread, PacketStreamInfo, appendPacketsIntoList, PacketReader
from discover.packet.Buffer import Buff... | [
"mark.korput@gmail.com"
] | mark.korput@gmail.com |
0042ca91b39b2b86022ac9bc913b347ab174bb78 | 5966449d2e29c9b64351895db2932f94f9de42da | /catkin_ws/build/polly_speech/catkin_generated/generate_cached_setup.py | 5e0cad45e5c1737bb42a7d7059d9ff24b74321b6 | [] | no_license | godaeseong/GoHriProject | 8cbce6934485b8ba3253fc7b6c5b5b59397b4518 | 425e70b7c91b6215f5477fc2250d2b0ac96577be | refs/heads/master | 2021-05-11T22:11:56.099580 | 2018-01-15T02:20:43 | 2018-01-15T02:20:43 | 117,484,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"bigdream0129@naver.com"
] | bigdream0129@naver.com |
de56d67c167bbb03f85ccf7e115bf5e569018234 | 8b4ab2468c831fdd2c1303e279220b3b70b9a7fa | /socket_server.py | e49e97367455d27d5d5f77479edb10914eecf5b9 | [] | no_license | guilhermebotossi/pythonics | ed53216c102d9c3a2d7fa78b71f9bd1ef1814e4c | 0b5494bec1591db1bb754fd55eb6adc24b78ebff | refs/heads/master | 2020-05-14T12:22:42.310876 | 2019-09-14T01:40:08 | 2019-09-14T01:40:08 | 181,792,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import socket
import sys
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the port
server_address = ('localhost', 10000)
print >>sys.stderr, 'starting up on %s port %s' % server_address
sock.bind(server_address)
# Listen for incoming connections
sock.listen(1)
w... | [
"guilherme.botossi@gmail.com"
] | guilherme.botossi@gmail.com |
aa5ad0a5045753fc57b1083cc7045dfdbed8480e | 14025641dae6e1c54360e22a0e82918341f10038 | /galaxy_importer/finder.py | 26d4d9a786821a1b0d0b42d937acd7a778f3b764 | [
"Apache-2.0"
] | permissive | bmclaughlin/galaxy-importer | 87c2b5226d51b461ca180514c42f1a616b26552b | e97cf457f0a7a3018330fc941e1e5fb9f593cf46 | refs/heads/master | 2023-08-17T12:25:47.721131 | 2020-08-05T17:23:53 | 2020-08-05T17:23:53 | 215,554,786 | 0 | 0 | Apache-2.0 | 2019-10-16T13:26:31 | 2019-10-16T13:26:31 | null | UTF-8 | Python | false | false | 3,685 | py | # (c) 2012-2019, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
... | [
"noreply@github.com"
] | bmclaughlin.noreply@github.com |
5cfa790509b6e3541d708aaadc1ec90a3d865cc9 | 997b4268d71db634d1dfd5cca61f1175a955e8b0 | /Database_Python/just_review.py | 2d42d0a97e5eb58329d4673a9ce46af9b6a159b3 | [] | no_license | kaushikamaravadi/Python_Practice | ec04b7756cd54cf0411d4558f4ca0ef10910c5e6 | f6e1c8b72ede73bc42b89d0f5693be2b16765090 | refs/heads/master | 2020-04-06T03:55:34.208816 | 2017-06-26T03:49:59 | 2017-06-26T03:49:59 | 83,100,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | from bs4 import BeautifulSoup
import requests
from afinn import Afinn
afinn = Afinn()
path = 'http://www.imdb.com/title/tt0848228/reviews-index?start=0;count=1731'
page = requests.get(path)
soup = BeautifulSoup(page.text, 'html.parser')
head = []
for tabs in soup.find_all(class_='reviews'):
for info in tabs.find_a... | [
"kaushik.amaravadi@gmail.com"
] | kaushik.amaravadi@gmail.com |
2edd47bcedbd2d1290b65af3551936e532fc7c93 | f39dfb5b634410851f276b065c926b4cf42ae078 | /figuras/PycharmKayStatisticalReport/kalman_filter_orthogonality_innovation.py | 1741afb6f4043f7c278b0a61e98d9f74d4edf86d | [
"MIT"
] | permissive | santoshmore85/estudiando_el_kay | 9fc57d2bbd884a4188a93a15a00436947d60338f | 787f9b2599efeea93c1cf67408edcf1fa199c9b7 | refs/heads/main | 2023-08-26T23:05:00.701166 | 2021-10-29T21:49:08 | 2021-10-29T21:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,015 | py | import matplotlib.pyplot as plt
from matplotlib import rc
from matplotlib import rcParams
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=True)
rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"]
# colors
lgray = "#dddddd" # ligth gray
# range of x and y axis
xmin_ax = -1
xmax_ax = 2
ymi... | [
"bor9net@gmail.com"
] | bor9net@gmail.com |
607c473b42712149c56ebae6342712cfda2c7ff2 | a289ad8df7840045a659db4f0f936b09494243b3 | /gruvi/error.py | d0483517992c9c2b8de1ea8e0e33f2443658ca33 | [
"MIT"
] | permissive | tijko/gruvi | a29414bc757f9b19cfc457df36e270c5fefef183 | 558faa181390dfac83cd42fdcafb1850008e4ac5 | refs/heads/master | 2020-12-11T05:34:23.897520 | 2014-01-04T06:59:29 | 2014-01-04T06:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # This file is part of Gruvi. Gruvi is free software available under the
# terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
#
# Copyright (c) 2012-2013 the Gruvi authors. See the file "AUTHORS" for a
# complete list.
from __future__ import abs... | [
"geertj@gmail.com"
] | geertj@gmail.com |
c094262a052c4e75a6bd214bb910836b332899c3 | 6bbf10f03b5a1c735667199ceffc922abeca83bc | /commands/common/reset_discovered.py | 634176b343e37ef0bb5b4e27de7604092540baa4 | [
"MIT"
] | permissive | Seagate/SystemsRedfishPy | b5279b622879af924da6795fa8350740a6d45997 | fc6d05dab1ac187a4d89ee9906453c3a083db29c | refs/heads/main | 2023-08-11T10:31:17.984519 | 2023-04-11T20:20:48 | 2023-04-11T20:20:48 | 228,225,303 | 8 | 6 | MIT | 2023-09-07T15:40:48 | 2019-12-15T17:42:38 | Python | UTF-8 | Python | false | false | 2,413 | py | #
# Do NOT modify or remove this copyright and license
#
# Copyright (c) 2019 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
#
# This software is subject to the terms of the MIT License. If a copy of the license was
# not distributed with this file, you can obtain one at https://opensource.org/licens... | [
"joseph.skazinski@seagate.com"
] | joseph.skazinski@seagate.com |
82cbf15cb149b4e72ab5811f65c9fee2d676ee8d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy959.py | a9b2211c27ba41c3a2a043b44c15010fd25e7f71 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=23
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
069ee9027ed6856191fa45b15d209a9f42c424ee | fe4b857258647320d6d3b76c7fe18191fc814994 | /geo/admin.py | a190dbfcc190fedf35616286090ac29c62d38ac3 | [] | no_license | AlexUndead/spbstu | a526cb004aea0bbb5941facdf28080e0c2dc71cb | d8abf669d28e7a8a513f0d912161b74af42b8574 | refs/heads/master | 2021-03-06T13:16:34.741524 | 2020-03-10T03:48:28 | 2020-03-10T03:48:28 | 246,202,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.contrib import admin
from geo.models import Country, City
admin.site.register(Country)
admin.site.register(City)
| [
"Alex_Neha_92@mail.ru"
] | Alex_Neha_92@mail.ru |
fa77b6986935f53efa1361c850aea7407b349cd8 | 7c66431fd3ebd2cb5836dcbd483a8edc91ca1753 | /GMM_var_inf_Bishop/variational_gmm_analytic_GD.py | ab233bd6a0eb57f4d9cf22e1f3f57f8463892507 | [] | no_license | BenGutteridge/4YP | c109c738b575f77ae7e0b87d717c173b8cc74051 | 8ded4c1ea952bd1f50ed18af301b79e74546bac8 | refs/heads/master | 2023-05-06T23:52:10.944871 | 2021-06-02T14:40:56 | 2021-06-02T14:40:56 | 318,235,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,715 | py | # -*- coding: utf-8 -*-
"""Variational GMM.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1JrLIbMR4OrrBDVjIrJX8tKpMRhM-_8Wd
This notebook is based on Chapter 9 (?) of Bishop, and aims to replicate the 'variational mixture of Gaussians' example w... | [
"gutterboyben@gmail.com"
] | gutterboyben@gmail.com |
5619a4adf02a9b08451d700a96ea87582094e5bc | f54ddf9bc560e2c91e2a175de19e93b4cce4fe84 | /script.py | 1e70936373c28f3560e17af12422075dfe15d884 | [] | no_license | MHR1985/ufo_matrixfun | c3f77998dd890db6766463d11a34deabb4341dc9 | 524760f206ff256b05da69bbfe699d249751e4bb | refs/heads/master | 2023-03-21T18:58:01.864270 | 2021-03-15T17:50:31 | 2021-03-15T17:50:31 | 348,069,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 15 17:07:12 2021
@author: Martin Høigaard Rasmussen
"""
import numpy as np
from numpy.linalg import inv
A = np.array([[ 3, 1 ],[ 2, 6]])
B = np.array([[ -1, 4 ],[ 3, 8]])
print("Task 1")
print("a)")
print(A.T)
print("b)")
print(B.T)
print("c)")
print("@:")
print(A@B... | [
"cph-mr221@cphbusiness.dk"
] | cph-mr221@cphbusiness.dk |
428a4ac554e97365b5975fed5031462ef01f802e | 9e5dc36b50c644ea2cc94e3f8f227d20be06bc40 | /Main.py | 721e9f1339199c899e90a4a54a2ee8a662107db7 | [] | no_license | Akashid17/Print_Number_Range_2 | 34af5212d19722675af8788858bc8f297196860a | bb9c586faf5d697c1b305394855e97df6c07af17 | refs/heads/main | 2023-07-25T10:25:14.424889 | 2021-09-03T06:31:28 | 2021-09-03T06:31:28 | 402,669,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py |
def DisplayRangeEven(iNo1, iNo2):
if iNo1 > iNo2:
print("Invalid Range")
return
for x in range(iNo1,iNo2+1):
if x % 2 == 0:
print(x,end=" ")
print()
def main():
iValue1 = int(input("Enter First Number\n"))
iValue2 = int(input("Enter Second Number\n"))
... | [
"noreply@github.com"
] | Akashid17.noreply@github.com |
71dd332b9eda8416825675e91c8179b51a12382b | 81e93fb1d651b8afc6291ba3f97c286e1c7a28d2 | /human_ai_robustness/analyse_optimise_agents/sample_tom_params_metropolis.py | 1d53455ced4448450b56b0f8693eb5a35403a2af | [
"MIT"
] | permissive | Lucky666123/human_ai_robustness | c4cba7d5a900dc3736f1b5b3701a1bb7a2a96f39 | c9a5f78f97ccf9373f79c1ff6624b5ca1ea78027 | refs/heads/master | 2023-04-25T04:07:04.018905 | 2020-07-15T07:06:18 | 2020-07-15T07:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,900 | py | import time
from argparse import ArgumentParser
from human_aware_rl.human.process_dataframes import get_trajs_from_data
from human_ai_robustness.pbt_hms import ToMAgent
from overcooked_ai_py.mdp.overcooked_mdp import OvercookedGridworld
from human_ai_robustness.agent import GreedyHumanModel_pk
from overcooked_ai_py.pla... | [
"paulk444@hotmail.com"
] | paulk444@hotmail.com |
7e76ac25f75b4ff5af0ca1bc40e71313ace9afdc | 767ae5d38e0448584b798144d767f9e666e39523 | /ex043.py | cfa19e351219ca5f04388af9e300578a50e3c950 | [] | no_license | Leonardo-Reis/Meu-Curso-Python | b39d20ef745b81bcbae15705b47a8ec6b9ca2531 | 3fbfbd9c5b5785c03cd6be17bc34e3c15d59715d | refs/heads/main | 2023-06-17T08:57:59.140204 | 2021-07-19T12:11:35 | 2021-07-19T12:11:35 | 387,449,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | pes = float(input('Seu peso em Kg: '))
alt = float(input('Sua altura em metros: '))
imc = pes/(alt**2)
print(f'Seu imc é {imc:.2f}')
if imc < 18.5:
print('Abaixo do peso.')
elif 25 > imc >= 18.5:
print('Peso ideal.')
elif 30 > imc >= 25:
print('Sobrepeso')
elif 40 > imc >= 30:
print('Obesidade')
elif im... | [
"leonardocarlosreis@gmail.com"
] | leonardocarlosreis@gmail.com |
e8c3964474cfeb5ea5c464e9c6f587fc63db453c | aae437f5ed21d82838286057e663f22b9d51fb3d | /cookbook-code/notebooks/chapter01_basic/csvmagic.py | 1e55e1f5a2df51845fa13af620ee2a6b52c4709d | [
"BSD-2-Clause"
] | permissive | mplihal/iPython | 33960015e850c31b1f9627aaf828f35570d49c9c | 79613b95527ae354c2a0016942bca716dda33933 | refs/heads/master | 2022-07-12T00:55:23.787172 | 2022-06-25T20:44:19 | 2022-06-25T20:44:19 | 115,786,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | import pandas as pd
#from StringIO import StringIO # Python 2
from io import StringIO # Python 3
def csv(line, cell):
sio = StringIO(cell)
return pd.read_csv(sio)
def load_ipython_extension(ipython):
"""This function is called when the extension is loaded.
It accepts an IPython InteractiveShell inst... | [
"mplihal@gmail.com"
] | mplihal@gmail.com |
811cdb6ddce1914be2cac31d05f6188207690198 | 036048e2bfc3585bc0bd0c5366504a2f759b769c | /Week_1/Day_2/temptrack.py | 64b11929bad2a43e45fd8be53fc1ef7050ab22bc | [] | no_license | VignanThota/Competitive-Programming | d16b558070f63c77d05980542fa40f9d593dd904 | 4969ed436baf627b747c91ab87b5f85143391a4a | refs/heads/master | 2020-03-21T15:26:20.334593 | 2018-07-19T06:46:38 | 2018-07-19T06:46:38 | 138,712,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,619 | py | import unittest
class TemperatureTracker(object):
def __init__(self):
self.TempList=[0]*200
self.tempCount = 0
self.minTemp =200
self.max = -1
self.total = 0
self.mean = None
self.maxFreq = 0
self.mode = None
def insert(self, temperature):
... | [
"noreply@github.com"
] | VignanThota.noreply@github.com |
4523e4efe62db4005d9e09b9fa8e5f20b548ef81 | 173063dd48d3fb2e3a4f54c07fde0141c0c50307 | /practice/practice_problems/shortestPath.py | 050a6329fd7ebe4af324c954590b171e54020616 | [] | no_license | grebwerd/python | bfd56021b080bc58d0d4db93fc1c9076b2e0df36 | f0ab7cb09bb4e1c3a1be2b8ab2c093347df5a571 | refs/heads/master | 2021-06-24T19:55:55.293078 | 2019-07-05T02:17:55 | 2019-07-05T02:17:55 | 146,226,952 | 0 | 0 | null | 2019-07-05T02:17:56 | 2018-08-27T00:21:30 | Python | UTF-8 | Python | false | false | 1,021 | py | def bfs_paths(graph, start, goal):
queue = [(start, [start])] #queue is a list made up of a tuple first tuple is a start and the second tuple is a list
while queue:
(vertex, path) = queue.pop(0)
for next in graph[vertex] - set(path): #for each next adjacency node not in the set already
... | [
"grebwerd@gmail.com"
] | grebwerd@gmail.com |
4f0ed701e5f9fc81b15e8550d01102e7412e4ae4 | 3665e5e6946fd825bb03b3bcb79be96262ab6d68 | /jc/parsers/df.py | 817f0a21bbaf233bfe3351eeefdabda7f96d9361 | [
"MIT",
"BSD-3-Clause"
] | permissive | philippeitis/jc | a28b84cff7fb2852a374a7f0f41151b103288f26 | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | refs/heads/master | 2021-02-16T05:03:03.022601 | 2020-03-04T16:30:52 | 2020-03-04T16:30:52 | 244,969,097 | 0 | 0 | MIT | 2020-03-08T21:10:36 | 2020-03-04T18:01:38 | null | UTF-8 | Python | false | false | 5,176 | py | """jc - JSON CLI output utility df Parser
Usage:
specify --df as the first argument if the piped input is coming from df
Compatibility:
'linux', 'darwin'
Examples:
$ df | jc --df -p
[
{
"filesystem": "devtmpfs",
"1k_blocks": 1918820,
"used": 0,
"available": 19... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
f3cefa820f7d87519dd7143afdfc396ded071075 | 141698c24225f305d1fdbba438dfed9f5686b708 | /hospital_crawer/bin/crawer_xwhosp.py | 5aa26c4691f3d8b3adf9af6ffdd4e4481057c4ff | [] | no_license | guoliang1992/project | de6920c05c2d988d07d1c520285493a44acef128 | 1f7c3740dd517d66b331dfccb6cc5301f3c61371 | refs/heads/master | 2021-01-11T10:04:52.981614 | 2017-04-19T08:18:15 | 2017-04-19T08:18:15 | 78,085,911 | 0 | 0 | null | 2017-04-19T08:18:16 | 2017-01-05T06:24:23 | Python | UTF-8 | Python | false | false | 2,131 | py | #!/usr/bin/env python
#coding=gbk
import requests
import os, sys, time,socket, urllib, urllib2, socket, gzip, StringIO, re
from bs4 import BeautifulSoup
#set default timeout
socket.setdefaulttimeout(30)
def crawer_page(original_url, retry = 3):
time.sleep(1)
t = 0
while t < retry:
try:
data = requests.get(or... | [
"510264954@qq.com"
] | 510264954@qq.com |
98fec9d462bddd72670a04334f87c6d271dabb16 | 16a41874549ed063e4d3087f10149b82908350cb | /commons/preprocessing_tools.py | f436c6743f16489b6a6ca12f66940315fc73fcb4 | [] | no_license | adverley/commons | e3c2e242eca0775694c0d3dbc09caa9c24feff99 | 70af4e8f908accf04663228ce1463afed393b879 | refs/heads/master | 2022-07-03T14:42:52.410654 | 2020-05-13T15:12:45 | 2020-05-13T15:12:45 | 251,286,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | def reverse_scale(values, max_value=None, range_values=None):
'''
brings
[0.6, 0.7, 0.8, 0.9]
to
[0.9, 0.8, 0.7, 0.6]
but not by reversing the list but by reverse scaling it
:param values: list
:param max_value: fill in if you have cached a value, otherwise calc it from values param
... | [
"andreas.verleysen@gmail.com"
] | andreas.verleysen@gmail.com |
c18883e01da6c09aa0f45fee22c6558237f2f633 | 2888ccb8d2a925b1a65edd34e43e0da58f138700 | /db/bbdd.py | ae8584f1834962bc8e12fb368d0b34d5de0e3436 | [] | no_license | AndreaAbrigo/tp10_bbdd_nsql | 6be6a14f7841b83513b88ea3768b64810fea86af | 4fc2fe7a46261b419167c8a67bf3617f4d630118 | refs/heads/master | 2022-11-06T04:48:26.640773 | 2020-06-19T00:03:42 | 2020-06-19T00:03:42 | 273,363,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | from pymongo import MongoClient
import os
def connect():
conexion = MongoClient(
os.environ['DB_PORT_27017_TCP_ADDR'],
27017)
return conexion
def seleccionarBaseDeDatos():
conexion=connect()
db = conexion.activos
return db
def insertarUsuario(usuario, privada, publica):
db = seleccion... | [
"andreaabrigo12@gmail.com"
] | andreaabrigo12@gmail.com |
40686ad05303d0ea05c3acd37ed44b2a700bbae6 | 01197bd38fa2d3b109d3e32c465a200faf746c92 | /tasks/views.py | 3bba4f2e4be00657b8d8a9e3c86ac3826ee0034a | [] | no_license | coderboyakash/CS50 | 08a8173fbdb12368c6b3ea88b5def933bb05296a | 2254d5fabac14af158c30881854ad803dc28d775 | refs/heads/master | 2022-11-26T20:37:15.737765 | 2020-08-04T17:39:45 | 2020-08-04T17:39:45 | 283,247,435 | 0 | 0 | null | 2020-07-30T17:31:55 | 2020-07-28T15:07:19 | HTML | UTF-8 | Python | false | false | 1,020 | py | from django.shortcuts import render
from django import forms
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.urls import reverse
class NewTaskForm(forms.Form):
task = forms.CharField(label='New Task')
priority = forms.IntegerField(label='Priority', min_value=1, max... | [
"coderboyakash@Akashs-iMac-Pro.local"
] | coderboyakash@Akashs-iMac-Pro.local |
ab7c77e0afd716486df8c1a696564821c7b6bb12 | 00456be092065da7f9ca2fdd22a3a6b427baf989 | /blog/urls.py | 4180f1bde89176c3424dab5e87fac3bd69902416 | [] | no_license | mailnull/myweb_on_bae | 79631fc81835e7f9073207548ce691e28395e5d2 | f2520025b30ca2d4fb0072a46c94e68d3a14b551 | refs/heads/master | 2020-12-24T20:24:21.825293 | 2016-05-19T13:11:30 | 2016-05-19T13:11:30 | 59,204,498 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from django.conf.urls import patterns, include, url
from blog import views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'mysite.views.home', name='home'),
url(r'^$', views.index),
url(r'^post/(?P<pk>[0-9]+)/$', views.post... | [
"67731164@qq.com"
] | 67731164@qq.com |
6caa36efec61cd233576a4dcb9b3e925ab259fae | 970238e402447c334e7c27c7436b0b51fb18c2a5 | /functions.py | 354071b27404c59fd22628bcc525b491cad57dcb | [] | no_license | briangfang/COGS-18 | db9e2f487cea854f0121d75da4a19b785125ec9f | 2420d63fe0c283e6d99a4369f2dbed1b0405caa8 | refs/heads/main | 2023-03-13T23:18:17.417606 | 2021-03-16T05:52:36 | 2021-03-16T05:52:36 | 348,229,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,522 | py | """Collection of functions used in my project"""
from datetime import date
import pandas as pd
def create_food(food, quant, exp, categ):
"""Creates dictionary of preset keys paired with input parameters
as corresponding values.
Parameters
----------
food : string
String of food name.... | [
"noreply@github.com"
] | briangfang.noreply@github.com |
095b8489a46984551201e1d0caa68e8580fe1ee3 | 227d5b48d64e5d487211373a64fbb071b2be694c | /Drills/Drill - 10/main_state_2.py | 1b08dee6165a85029d2b71d577776f73e672e556 | [] | no_license | JangRakChoi/2DGP-New | 119b67d71236190ef94604ae3acf3bf7b94e23bc | 22110de28d0dcccc8bdcbbebabf56c11d93dbfae | refs/heads/master | 2020-03-28T20:50:18.498575 | 2019-07-03T01:45:28 | 2019-07-03T01:45:28 | 149,107,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | import random
import json
import os
from pico2d import *
import pause_state_2
import game_framework
import title_state
name = "MainState"
boy = None
grass = None
font = None
class Grass:
def __init__(self):
self.image = load_image('grass.png')
def draw(self):
self.image.draw(400, 30)
... | [
"bisu235@naver.com"
] | bisu235@naver.com |
fd8c75c4f478f39c280b613f13d48083e6eb8d1c | 77ac696c71aea8942f280f4b181ecfcece2ce24a | /resources/resources_mongo/stock.py | f29315b87f5fe744f9d2f068bd4a4da86bc23133 | [
"MIT"
] | permissive | cifpfbmoll/ollivanders-in-a-docker-pau13-loop | 78c6d6368b72a467da536db194f0da25c67b87b1 | 0f9f2589b567c57bd56a8a4161de3043d5639a8b | refs/heads/main | 2023-05-03T10:36:26.745077 | 2021-05-07T16:12:13 | 2021-05-07T16:12:13 | 362,498,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from flask_restful import Resource
from service.service_mongo.service import Service
from flask import make_response, jsonify
class Stock(Resource):
# http://localhost:5000/stock
# curl http://localhost:5000/stock
def get(self):
"""Get all the items from the data base
Returns:
... | [
"pllinas@cifpfbmoll.eu"
] | pllinas@cifpfbmoll.eu |
36c519d580be12825f3bf43d17406404d77ab275 | aba2dd3ed154e1307e3ffb360d22c400bc8e17ab | /bib2json.py | 2688d16b53929bd3986a2b8509fc9d5acfecb38d | [
"MIT"
] | permissive | SujiKim6/rebiber | 3938406df01e5aa61a9d9cf24bb74bd4fed82787 | 6617792dbfdb860d96f15027210381215c63685d | refs/heads/main | 2023-02-21T08:22:52.610870 | 2021-01-26T09:41:06 | 2021-01-26T09:57:02 | 332,980,291 | 0 | 0 | MIT | 2021-01-26T05:19:34 | 2021-01-26T05:19:33 | null | UTF-8 | Python | false | false | 1,802 | py | import json
import re
import sys
import bibtexparser
import argparse
from tqdm import tqdm
def normalize_title(title_str):
title_str = re.sub(r'[^a-zA-Z]',r'', title_str)
return title_str.lower().replace(" ", "").strip()
def load_bib_file(bibpath="acl.bib"):
all_bib_entries = []
with o... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
5ab20507ea2d9009a78754db1e04b0bcca7839cf | eb9372b2defbfec03386dc6b0830cfadb61f8ae1 | /genie_api/common/rand.py | 152a7ff4d09c5facc436e51580aaed502b8a6f28 | [] | no_license | TimelyToga/genie_API | 2d2f88e54b7d652c53a0b00ed6ca9d884da52003 | e37027161fea8f6ef18a3018e72b23a6a91e0261 | refs/heads/master | 2021-01-10T15:10:20.670471 | 2016-02-03T08:10:52 | 2016-02-03T08:10:52 | 46,630,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | import string
import random
def rand_numeric_string(num_chars):
return random_string(string.digits, num_chars)
def rand_alpha_string(num_chars):
return random_string(string.ascii_lowercase, num_chars)
def rand_alphanumeric_string(num_chars):
collection = string.ascii_lowercase + string.ascii_uppercase + str... | [
"tblumberg39@gmail.com"
] | tblumberg39@gmail.com |
0d93b6092652fabc975b63711bd6e8e0a9161823 | 9127525a0ec6c0eee93ad85c9695d6cfc8b40fbc | /index.py | 8941639377cebeda075ba16d93c76445590b832a | [] | no_license | fujs-uci/Web_Crawler | 624ef44249bf87ac21425e51a30b8769a99ce8a8 | 3950374bab88dc19cb9322ffd2cdab85edd5226b | refs/heads/master | 2020-03-11T12:10:59.071662 | 2018-04-18T02:11:51 | 2018-04-18T02:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py |
import os
import json
from pprint import pprint
import re
from collections import Counter, defaultdict
import pickle
from bs4 import BeautifulSoup
index = defaultdict(list) #list of index
def get_words():
path = "WEBPAGES_CLEAN"
file = ""
#gets all directory in WEBPAGES_CLEAN
direct = [f for f in os.listd... | [
"noreply@github.com"
] | fujs-uci.noreply@github.com |
4b69e6085c221e9aa2dbd9979fda2a2d70400ab1 | 70d975c528d90407f95f684c5c8085567252034f | /exercises/recursion/domino.py | 5ac974aea4b472abad3831f2e78034628c5fa3cc | [] | no_license | guilhermea23/Python-Exercises | 7f6f8bb6f0275c0f3985e0b4c578cef8363b9789 | ccd192a063515d0127bbac97063913c73e182d4a | refs/heads/main | 2023-06-07T23:24:24.923327 | 2021-06-08T16:56:25 | 2021-06-08T16:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | def dominos(N, M):
qtd = (N*M)//2
print(qtd)
n,m = map(int, input().split())
dominos(n,m)
| [
"garaujodeoliveira1@gmail.com"
] | garaujodeoliveira1@gmail.com |
0cfb307e1515f4ea1eb84486fd5abd9a9e53d35e | ba3c30e6788bcd53ec73c230cd1370d6ee7f396c | /tests/urls.py | 12f2e7480c18854a6f2b160773a72a682cdc9c5e | [
"ISC"
] | permissive | raphaelgyory/django-rest-messaging-js | d82ccaae3e14e92727d072b6c08608c2f8919608 | 1cb07c35e34a8eee0c4f4290783add3226329ffa | refs/heads/master | 2021-01-10T05:40:47.860508 | 2016-04-06T10:26:34 | 2016-04-06T10:26:34 | 54,553,968 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # coding=utf8
# -*- coding: utf8 -*-
# vim: set fileencoding=utf8 :
from __future__ import unicode_literals
from django.conf.urls import include, url
urlpatterns = [
url(r'^messaging/js/', include('rest_messaging_js.urls', namespace='rest_messaging_js')),
url(r'^messaging/', include('rest_messaging.urls', nam... | [
"xellessprl@gmail.com"
] | xellessprl@gmail.com |
3d769759c12584d544752dff84196a3646c67a19 | c5d24aaa0bb2bc01072d2ded93556592d9de0bee | /4_median_two_sorted_arrays.py | f2128414f39b8432cf012de97fdf0d47b312f6df | [] | no_license | lnhote/leetcode | 6eb29ca89823ebfbe3964eadb246e599811d69d0 | b9fcf4292cda0741c0b3b9846b53485b63d57e47 | refs/heads/master | 2021-01-22T02:18:11.640837 | 2017-02-25T02:04:26 | 2017-02-25T02:04:26 | 81,044,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
len1 = len(nums1)
len2 = len(nums2)
if len1 > len2:
nums1, nums2, len1, len2 = nums2, nums1, len2, l... | [
"lnhote@gmail.com"
] | lnhote@gmail.com |
ebc2af803f6c7befdd22dfff801a4146c1dbffd9 | ebc031b8856759719837e3a24e7f984a985189ce | /MyFirstProjectOpenCV/draw shapes on images.py | 8f7cbc4be0964f6b805515efa5b928edae995e17 | [] | no_license | AsmaAbdullah1998/Artificial-Intelligence-2020 | 5cbc07660dd2d8925dba97ac96c99c9a67cea228 | 7044809d2cb168eb936d2b84d1bc4b5c98042626 | refs/heads/master | 2022-11-08T14:47:32.872193 | 2020-06-24T22:06:57 | 2020-06-24T22:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | import cv2
print("Package Imported")
import numpy as np #when we want to call funtion we just write np.'the name of the funcion'
#draw lines, rectangle, circles
#first we will create a matrix full of zero! -- zero means black by using np
img = np.zeros((512, 512,3),np.uint8)
#cheack the dimension of the image
print(i... | [
"asarouji0002@stu.kau.edu.sa"
] | asarouji0002@stu.kau.edu.sa |
75b7d13d54b027208ae7bf83b28a23721fbfcc21 | d44c989d1082ec91ae420569f79e39105ec9adf0 | /Convert Binary Number in a Linked List to Integer.py | d8732b80748c73d1c4539378955d8afbfe29849a | [] | no_license | hsinhuibiga/Nov | c5a79e265a6afcfd03f04e23914d3924129c6389 | 15b2f37f96ded183ab3507a95985900a9d5d3ddc | refs/heads/main | 2023-01-14T13:11:02.568683 | 2020-11-22T13:40:36 | 2020-11-22T13:40:36 | 309,392,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #Convert Binary Number in a Linked List to Integer
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def getDecimalValue(self, head):
"""
:type head: ListNode
... | [
"noreply@github.com"
] | hsinhuibiga.noreply@github.com |
986dd1f7b70678ab9a5eb02bce18ae3168659e2c | 7ed1f225c11b37d7332767e8f41bc6193ac2da57 | /FieldLocator.py | 353553f3a9869c5efe447eb034a1d2bdd4c435ac | [] | no_license | Dauth/CV-Parser | 8966ec2a7e4b624b7c1332418945c3c09f74380d | a2f2b8c23c1e88919c331ea835df29888ddd8211 | refs/heads/master | 2020-02-26T14:30:48.223498 | 2015-11-13T04:15:28 | 2015-11-13T04:15:28 | 44,866,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,483 | py | __author__ = 'Owner'
import string
from InformationNode import InformationNode
from ResumeNode import ResumeNode
from JobDescNode import JobDescNode
from FieldsIndexNode import FieldsIndexNode
from nltk import word_tokenize
from nltk.corpus import stopwords
class FieldLocator(object):
def __init__(self):
s... | [
"garywjd91@gmail.com"
] | garywjd91@gmail.com |
300a9236b65a35279edd11bd8e1dd3461092d2df | 8abcf3da81d32a69ec397d3f0353f3e5f0202c9e | /hstdputils/submit.py | 80973fdbc2f38d056f5e280f8e9904288821db10 | [
"BSD-3-Clause"
] | permissive | jmatuskey/hstdputils | e165e454c7efe11dd19b243a43c520aa3b51c014 | 5b045b0d4e67d06a5ff09e0d8bcb123d23205189 | refs/heads/master | 2020-12-26T09:42:49.391256 | 2020-01-31T16:28:56 | 2020-01-31T16:28:56 | 237,469,846 | 0 | 0 | BSD-3-Clause | 2020-01-31T16:27:05 | 2020-01-31T16:27:04 | null | UTF-8 | Python | false | false | 1,427 | py | import sys
import boto3
# QUEUE = "arn:aws:batch:us-east-1:162808325377:job-queue/hstdp-batch-queue"
# JOB_DEFINITION = "arn:aws:batch:us-east-1:162808325377:job-definition/hstdp-ipppssoot-job:10"
QUEUE = "hstdp-batch-queue"
JOB_DEFINITION = "hstdp-ipppssoot-job"
def submit_job(plan):
"""Given a job description... | [
"ec2-user@ip-172-31-46-202.ec2.internal"
] | ec2-user@ip-172-31-46-202.ec2.internal |
e598640624d91dda4ed67e7ee55725e5ac295eab | fc3863b0e549d4508c2d2297a33fa37cc688ef47 | /Beginner Python Tutorials/3. Variables/Variables to store results of computations.py | ca4a4c96ee1ae4d6d3137ca100a5d71f3e82222f | [] | no_license | MediaPreneur/UKDevGuy | 7dd8c0058f9818cc682e6b273daf8f05b7379407 | 9ca1aa98b800b14d94328bed8c043b65c01f082f | refs/heads/master | 2022-05-27T20:09:39.829175 | 2019-09-06T12:25:11 | 2019-09-06T12:25:11 | 466,101,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Example of using variables for addition
# Total number of additions: 3
# Result: 9
first_addition = 5 + 4
print(first_addition)
# Result: 10
second_addition = first_addition + 1
print(second_addition)
# Result: 11
print(second_addition + 1)
# Example of not using variables for the same addition
# Total number of a... | [
"matwhiteside1@gmail.com"
] | matwhiteside1@gmail.com |
b4d795b37c2d38a9e60a530baac9859a0f9c353c | 032369c2fb0d441234955fa05ae578bf37d9cc2f | /Final_Exam/6.py | c471bd4299388112fa0e2250ecea9b174134e436 | [] | no_license | duochen/Python-Beginner | 87b68ca5cd4dde6299174e6702ac775e51adaa93 | 8585b8065841b1465b23e46b504da681ab136926 | refs/heads/master | 2023-04-29T16:38:03.047585 | 2022-08-22T12:45:04 | 2022-08-22T12:45:04 | 163,430,002 | 1 | 2 | null | 2023-04-21T20:36:09 | 2018-12-28T16:35:46 | HTML | UTF-8 | Python | false | false | 20 | py | print((1,2) + (3,4)) | [
"duochen@yahoo.com"
] | duochen@yahoo.com |
e0e468f23e653c4f37ed38f070b78741ba8bdf07 | 5ca4a0d91f5bd119e80478b5bd3d43ed30133a42 | /film20/config/urls/pl.py | 65a13447c224a832a15c19ca2748822deec504d0 | [] | no_license | thuvh/filmmaster | 1fc81377feef5a9e13f792b329ef90f840404ec5 | dd6a2ee5a4951b2397170d5086c000169bf91350 | refs/heads/master | 2021-01-17T16:10:54.682908 | 2012-04-29T18:19:52 | 2012-04-29T18:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | #-------------------------------------------------------------------------------
# Filmaster - a social web network and recommendation engine
# Copyright (c) 2009 Filmaster (Borys Musielak, Adam Zielinski).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | [
"email@ibrahimcesar.com"
] | email@ibrahimcesar.com |
9362aa6e274d47a9f966552edd4e943e079cd078 | 00d0967256d387923cbe3d2e644af3c063cc78e2 | /Delta.py | b0e80a5a021263b050e10bae138e6233bec0768c | [] | no_license | FeyzabadiSani/HSP-forward-planner | d511dc639de5e0cf366897b67faa7b8484cd60ba | 7f7f40aa1188b7a4156b3972f44bdd6eaa796dd3 | refs/heads/main | 2023-03-19T10:09:34.092470 | 2021-02-15T13:16:06 | 2021-02-15T13:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | def subs(conds, singles=True):
res = []
conds = list(conds)
for i in range(len(conds)):
if(singles):
res.append(conds[i])
for j in range(i+1, len(conds)):
s = [conds[i], conds[j]]
s.sort()
res.append(','.join(s))
return res
def delta2(g, m... | [
"mirzaierasoul75@gmail.com"
] | mirzaierasoul75@gmail.com |
27d2b7d26191c12dd636f4d32e4670d3c0837d7f | 0f729dbef5fa83f008487cf283716946f3724d65 | /code/call_html.py | d4bd4a1abcf66387999119dfee880da17ec6307c | [
"MIT"
] | permissive | player-eric/NMT-Visualizer | 75c9b6eea743f19ad8e74a9bed8b7052f2191784 | 3bb65c0559e216430e3951b0036f83513c21846f | refs/heads/master | 2021-08-28T11:29:48.699762 | 2021-08-25T02:48:36 | 2021-08-25T02:48:36 | 240,690,445 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import http.server
import socketserver
import webbrowser
def call_html():
PORT = 8888
Handler = http.server.SimpleHTTPRequestHandler
while(True):
try:
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("web page serving at port http://localhost:", PORT)
... | [
"digimonyan@gmail.com"
] | digimonyan@gmail.com |
7171fdbd8261fa31043595a698e199af73f78e16 | e4cab1d00a90cfe4a52be637d070ffc82f8f215f | /Multitasking_programming/day10/Sec_subprocess_to_z.py | 37f448b77e6e32d7feeadf9b4a53a61bbcdde42d | [] | no_license | Ewardqifan/Net_Pro | dc75c9e1948d28e4b69fee9f74ae715cabd13ce3 | 7fdc45b77f52bd29f90f494901e0adba4294efe9 | refs/heads/master | 2020-05-17T13:46:34.554369 | 2019-04-27T08:01:03 | 2019-04-27T08:01:03 | 183,744,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import os
from time import sleep, time
def buissness01():
sleep(3)
print('垆边人似月')
def buissness02():
sleep(4)
print('皓腕凝霜雪')
# 父进程
t1 = time()
pid = os.fork()
if pid == 0: # 一级子进程
ppid = os.fork()
if ppid == 0: # 二级子进程
buissness01()
else:
os._exit(0)
elif pid < 0:
... | [
"471875949@qq.com"
] | 471875949@qq.com |
741303cbb9973a456f0c1a5e761604ee9e4ad1c8 | 8e1f9afab520b6311f1edba86c5cdb0a589a3983 | /final/test.py | 577a4b0a0bff912840e16e0ef0eaa08eb1280a75 | [
"MIT"
] | permissive | rohangpatil/788DataInteraction | c7209b754a704ab33347feabfbc96ba92e2ed77d | dd29066ec8981a441cfc9194a6ae57ff079b9b31 | refs/heads/master | 2020-09-12T21:31:17.207343 | 2012-05-29T04:45:28 | 2012-05-29T04:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | """--------------------------------------------------------------------------------------------#\
Vineet Nair Code for tree based clustering
-----------------------------------------------------------------------------------------------"""
import os
import random
#from numpy import *
import hclusttest
import hcluste... | [
"opensource.rohan@gmail.com"
] | opensource.rohan@gmail.com |
15db13407303fe980f5f662ff9d9ac37f7c73eab | 307f1264a1fc76bfccd14d113ef828ad3e726a4e | /client.py | 8cce485750335329a7126704279eb619ab30bc56 | [] | no_license | kkhashayar/remote-shell-server-client- | 18bf181135aa6b1177514c598f0b3e5871f3deee | 72b0ce48d3e4bb9a4f2ca3bd32390d46ff02d4db | refs/heads/master | 2020-03-30T07:58:29.575959 | 2018-09-30T15:17:48 | 2018-09-30T15:17:48 | 150,978,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | import socket, os , subprocess
def main():
print("this is client socket")
# Creating the client socket
client = socket.socket()
# servers ip, port
host = "127.0.1.1"
port = 4000
# connecting the client to the server
client.connect((host, port))
while True:
# variable to ... | [
"noreply@github.com"
] | kkhashayar.noreply@github.com |
44bb0fb9ce7305a690364583f1d44932fd3bf279 | d3f8e947744de9345d9de06c2fb12475f6b2b5e2 | /Noise_project/7.3.generate_crawled_noise_graph.py | c33dc48146602ea2204fe2f3ace06b6be30c977f | [] | no_license | Sam131112/Noise_Models | 7d174bbf94ffd3b3dd0087cc89a0cebbc2d6bdfc | 6f484c374cbeefc7bc368928d0f69273a6faeff9 | refs/heads/master | 2021-05-04T10:33:29.862362 | 2017-03-22T15:02:10 | 2017-03-22T15:02:10 | 48,734,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,724 | py | import os
import sys
from igraph import *
import math
import numpy as np
from collections import Counter
import time
import random
def main():
random.seed()
# t_axis = [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800]
t_axis = [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,2... | [
"sam@Sams-MacBook-Pro.local"
] | sam@Sams-MacBook-Pro.local |
336b49e7b473b29b14e3513beef91c41cfa8996f | cdd3d7ed631bbe9297f67af3718bff8cb7d9085a | /Gesture.py | 8de05849451912167d57f0749e046a520065d8c2 | [
"MIT"
] | permissive | ihkap11/Gesture-Recognition-through-Webcam | 9da85e1b8bc31472c9b75975350010f6981b0d43 | d43b40ef16e5a17031f86b32178ee79ae563aa7c | refs/heads/master | 2022-09-29T02:57:06.430017 | 2018-01-28T15:53:35 | 2018-01-28T15:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,043 | py |
# coding: utf-8
# In[6]:
import cv2
import numpy as np
cam = cv2.VideoCapture(0)
def nothing(x):
pass
HSV_TrackBar = np.zeros([100,700], np.uint8)
cv2.namedWindow("HSV_TrackBar")
cv2.createTrackbar('L_h', 'HSV_TrackBar',0,179,nothing)
cv2.createTrackbar('L_s', 'HSV_TrackBar',0,255,nothing)
cv2.createTrackbar... | [
"noreply@github.com"
] | ihkap11.noreply@github.com |
5d7c6cb5d86f6dfeaaa32c199c33c6b3c2bb6f23 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_7/102.py | 998a2e0917fabf1d52113661b10a59105356d584 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import sys
def calc_trees():
"""Read data from stdin and calculate all trees.
Returns a list of coordinates (tuples of ints).
"""
n,A,B,C,D,x,y,M = (int(e) for e in raw_input().split())
trees = [(x, y)]
for i in xrange(n - 1):
x = (A * x + B) % M
y = (C * y + D) % M
tr... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0f6282540ae2dde76073f7046f75fe7cb9b56b55 | 164840bb98d45b40258a95788a8af5c50441e0a1 | /profesionales/migrations/0007_profesional_origen.py | 59347f1760ee5c90ec7f7cefbbc71c89ebe384e4 | [] | no_license | pablofm/cuiquer | cf72d97dac09e0877985f0ea38b30fb7e2b9760b | becac80611ad99c1178ab70e97dd3f21d70ec474 | refs/heads/master | 2021-01-24T18:46:43.381380 | 2016-11-09T15:04:55 | 2016-11-09T15:04:55 | 84,471,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-19 13:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profesionales', '0006_auto_20161018_1810'),
]
operations = [
migrations.Add... | [
"pafloma@gmail.com"
] | pafloma@gmail.com |
fc476732d5002a650fe826d5c6d7ec00bb625f4d | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /trunk/pyformex/examples/Isopar.py | 09660af39e5a8ca12a1bdf071f0b7b4a4e9a1b05 | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | #!/usr/bin/env pyformex --gui
# $Id$
##
## This file is part of pyFormex 0.8.5 Sun Nov 6 17:27:05 CET 2011
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: https://savannah.... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
1667556948ceaee3d84ee11933ccb5dbafe9449a | cfdd34d8b86bd6b5db0da70c9fd7fdb8231c4f46 | /src/mlflow_inference/cli/serve/app.py | 7e95c8fd5aa949957606e4335203099a64eb6e1e | [] | no_license | argilla-io/mlflow-inference | e08491d82781fb220e8c7e82d7e317925610f109 | b6dec25bdf09355b17dc6c518bb495cc6c1fa28d | refs/heads/main | 2023-05-28T03:08:01.713465 | 2021-06-15T11:44:42 | 2021-06-15T11:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import logging
from typing import Any, List
import pandas
from fastapi import FastAPI, HTTPException
from mlflow.pyfunc import load_model
from mlflow_inference.cli._helpers import _model_config
from mlflow_inference.settings import ml_settings
from rubrix.client import asgi
_logger = logging.getLogger(__name__)
def... | [
"francisco@recogn.ai"
] | francisco@recogn.ai |
5a0ebc6d298b7b1320a813de51ed196528c6243f | 377420d718094a37da2e170718cecd80435d425a | /google/ads/googleads/v4/services/services/media_file_service/client.py | 0a1348ff6250fc9e53ec0771aa0691cae94c0f4f | [
"Apache-2.0"
] | permissive | sammillendo/google-ads-python | ed34e737748e91a0fc5716d21f8dec0a4ae088c1 | a39748521847e85138fca593f3be2681352ad024 | refs/heads/master | 2023-04-13T18:44:09.839378 | 2021-04-22T14:33:09 | 2021-04-22T14:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,377 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | sammillendo.noreply@github.com |
066bfb20a36dc95228393ae83187229bb7f2f1d1 | d20b46e2256c992763ebf97955185fb7d587265c | /lib/repeattimer.py | ada48593b495730ccd29d00e7c9b0cfe8b7cede0 | [] | no_license | pohno/AerosolSpectrometer | 7860da1e5d4f4b12019d75208a3c900978e89436 | 36247afdd0b1967a17162e5334ae796177558d38 | refs/heads/master | 2022-03-11T11:21:24.399558 | 2022-02-22T16:39:43 | 2022-02-22T16:39:43 | 196,047,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 11:28:19 2020
@author: pohno
"""
# Program to demonstrate
# timer objects in python
from threading import Timer
class RepeatTimer(Timer):
def run(self):
while not self.finished.wait(self.interval):
self.function(*self.... | [
"paul.e.ohno@gmail.com"
] | paul.e.ohno@gmail.com |
c67201d0dc8eebe1dd5677a52570999536586ff1 | 1a483740de2cb5a158d48eef4fa6be8e2e1cfb39 | /apps/projects/migrations/0001_initial.py | 2a417d2a9ba1638fe7bc788ef2a0512126033851 | [] | no_license | Navajyoth/proman | e8c5ab9a621af98f56ea3771695a23673cf67de6 | 23619138735c9a8317b50df97cdfe27a8180328f | refs/heads/master | 2021-01-10T15:52:01.763875 | 2016-01-19T11:01:39 | 2016-01-19T11:01:39 | 49,870,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(verb... | [
"navajyothms1989@gmail.com"
] | navajyothms1989@gmail.com |
22c5c8c6f51ce2c7f0ca2a618151d746d3fdf2fd | 7b833ebbc307fac374eb326b760d27cb2646ff6f | /mysite/settings.py | b6a70ebd16068018fc77a1403127665012f40b32 | [] | no_license | hanliutong/mystie | 66a05ad29783c08aff0a1f5b41e8ace29aa07069 | eda66f90221a88194b418e2b0a362be2db2d0484 | refs/heads/master | 2023-01-24T22:56:26.976849 | 2020-12-01T14:58:22 | 2020-12-01T14:58:22 | 316,666,349 | 0 | 1 | null | 2020-12-04T10:42:39 | 2020-11-28T05:47:35 | JavaScript | UTF-8 | Python | false | false | 3,214 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from... | [
"hanliutong@gmail.com"
] | hanliutong@gmail.com |
2a8fa55f96d581a7988b23d572495376532e1f44 | 7e94700b98971dc2220d4c1246cc1a2a000d4d4a | /Assignment3/assignement3_Lsiboni.py | c276db6b5a7fa1468501f6b3569ff8b0e817e4ef | [] | no_license | bnajafi/EETBS-Python-Assignments-Polimi-2019-2020 | 7650a4a5b1adc7cf5c2d37fd3b33fb864d122623 | 8009e3daa3ad08e95e99d5619192c107be5a73af | refs/heads/master | 2020-08-01T18:08:18.697463 | 2019-11-27T22:49:45 | 2019-11-27T22:49:45 | 211,071,206 | 1 | 23 | null | 2019-12-26T10:32:49 | 2019-09-26T11:18:11 | Jupyter Notebook | UTF-8 | Python | false | false | 6,503 | py | outside_AirWinterDictionary = {"RVal_standard":0.03}
wood_bevel_lapped_sidingDictionary = {"standard_length": 0.013, "RVal_standard":0.14}
wood_fiberboardDictionary = {"standard_length": 0.013, "RVal_standard":0.23}
fiberGlassDictionary = {"standard_length": 0.025, "RVal_standard":0.70}
woo... | [
"lorenzo.siboni@mail.polimi.it"
] | lorenzo.siboni@mail.polimi.it |
099e1e04e14bdbed2f9c2d4cd79c06a2e5cd9ca8 | 33e2c0e11a6fbcc687750dbdcd2e063acf5b931b | /setup.py | 17a2541858522e1e1f5d88fa0f7dd8566e9ffe9f | [
"MIT"
] | permissive | uk-gov-mirror/nhsengland.ckanext-introjs | f1cb640819f09cdc6d4ecd82818a1e8b4b2653be | 052d20a4e93cf824a1b28e7ea2e04c385615b40d | refs/heads/master | 2021-05-28T17:21:31.739884 | 2015-02-24T14:44:56 | 2015-02-24T14:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(
name='ckanext-introjs',
version=version,
description="Adds intro.js to CKAN so users can follow a guided tour of the UI",
long_description='''
''',
classifiers=[], # Get strings from http://pypi.python.org/pypi?%... | [
"ntoll@ntoll.org"
] | ntoll@ntoll.org |
d16a820f835b9e82114d300ee3a4a494e31dcb6a | 46d608614cf83a3223d76a7fc6b90c02b8e4e432 | /Flask_App/src/common.py | 683c198800a76cb33cfdbe1bf67c29e134b761da | [
"MIT"
] | permissive | broco347/feedback-filter | 519c5b79cd0a4f476af0867a664db1565fcba07b | 23d329ed0c305b5fd112394fc968f7a2c6fb5f13 | refs/heads/master | 2020-06-17T10:10:45.177418 | 2019-07-08T23:07:51 | 2019-07-08T23:07:51 | 195,892,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,183 | py | #!/usr/bin/env python
# coding: utf-8
import re
from nltk.stem.lancaster import LancasterStemmer
from textblob import TextBlob
from nltk.stem import WordNetLemmatizer
from sklearn.cluster import KMeans
from sklearn.decomposition import NMF
from sklearn.decomposition import TruncatedSVD
import pandas as pd
import pickl... | [
"brookers713@gmail.com"
] | brookers713@gmail.com |
2c267452c69344271f9bf209210ffe64717ccad1 | eaa8a4931f49aeaf089f678190fb233550ccee3b | /spider/凤凰网新闻内容抓取01.py | a53f16039f67f36b785a4a5418335681cbbf17e3 | [] | no_license | weijuwei/python_new | 4479d7e68e7f13dd7ce5f7b887fa55ed5a48c725 | eabe079ac1af4681a6d0af9c61886bba9254ae85 | refs/heads/master | 2022-08-26T03:47:45.695056 | 2022-08-06T13:06:01 | 2022-08-06T13:06:01 | 179,913,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from urllib.request import *
import re
url = 'https://news.ifeng.com/c/7laUtvhfWy7'
html = urlopen(url).read().decode()
content = re.findall(r'"contentData":{"contentList":\[{"data":"(.*)</p>","type":"text"}\]',html)
re = re.compile(r'<[^>]+>',re.S)
page = re.sub("\n",content[0])
print(page) | [
"583112952@qq.com"
] | 583112952@qq.com |
a0dfc36982f65573fcad2fea205e8bdce1e056c4 | 3ad8705bf9f1b5563b2a57f4ed2a1ea0f7cc2c2a | /langusta_client/exceptions.py | 4e41f2bb0164828cbe30c6364cd2a2f8dbd20820 | [
"ISC"
] | permissive | moneypark/langusta-client | 4f9f27d4db28149173d8c96841fc132f50a0a66b | af3ce6504c9f6cc8a0d28832a3218ed99ea2e1cc | refs/heads/master | 2023-03-17T06:15:14.448572 | 2023-03-09T14:10:59 | 2023-03-09T14:10:59 | 47,131,223 | 1 | 5 | ISC | 2023-03-09T14:11:01 | 2015-11-30T16:25:45 | Python | UTF-8 | Python | false | false | 97 | py | class LangustaException(Exception):
pass
class NoPoFilesFound(LangustaException):
pass
| [
"dijakroot@gmail.com"
] | dijakroot@gmail.com |
8105e60e14c2062aa3f68d8a2cf95d887a735a79 | 634732d14ff901275b6c5543acaba407b0dfc726 | /features.py | 0092bf1cb4f67c40efd67591be36187559576886 | [] | no_license | Aquila42/spooky-authors | 9ee3e6e4478dee3a7de8e24098cde437ab501d31 | c1732f6f67f485de444e0ec9a3ae3b06dd077b36 | refs/heads/master | 2021-07-19T19:59:13.367029 | 2017-10-29T19:47:53 | 2017-10-29T19:47:53 | 108,349,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from nltk import word_tokenize
#get ngrams per author - maybe most common words?
def get_unigrams(df):
texts = df['text'].apply(lambda row: row.strip().decode("ascii", "ignore").encode("ascii").lower())
unigrams = set()
for text in texts.values:
for word in word_tokenize(text):
if word ... | [
"aquila.khanam@gmail.com"
] | aquila.khanam@gmail.com |
5dcc81b8f49cad34cd728dec14317f9b9d6a680b | a9cff9e8bfc9c45809335c2a41b57eda7dd24c48 | /main.py | 37747b71baaa37dcdf1c115b40d9d7fa2416af9d | [
"MIT"
] | permissive | helkaroui/logParser-ui | 091276c75d4b0704b1de0655a4744e9f988eed98 | 7977b9251dbf748045a32f31c4d76cd499676ac6 | refs/heads/master | 2020-03-19T20:34:40.388668 | 2018-06-11T09:59:48 | 2018-06-11T09:59:48 | 136,907,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,975 | py | from flask import Flask , render_template, g, redirect, url_for, abort,flash, current_app , request, jsonify
from init_db import LocalDb as DB
from algorithm.IPLoM.IPLoM import runIPLoM as IPLoM
from algorithm.IPLoM.IPLoM import splitIPLoM
from algorithm.IPLoM.statistics import statistics
from algorithm.KPI_analyser.KP... | [
"hamza.elkaroui@telecom-bretagne.eu"
] | hamza.elkaroui@telecom-bretagne.eu |
dad21f1e6b4952d37008bba6f7475e730ff12ae9 | cdde6771057a47cbcb5fe2178ff2bfb8987b99df | /tests/test_gateway_server_custom_object.py | 2e7604d96fec30d777f26285288253c928f8a446 | [
"BSD-3-Clause"
] | permissive | abhijit-mahajani-imgtec/creator-system-test-framework | 1b20474c7f06c64a16300c7dfc1d1289a4f3b8b3 | e92ea7315ccf1ee2fefc205fb0f4f95eb48b105f | refs/heads/master | 2021-01-18T03:22:19.672619 | 2017-03-09T11:25:42 | 2017-03-09T11:28:32 | 85,827,257 | 0 | 0 | null | 2017-03-22T12:52:30 | 2017-03-22T12:52:30 | null | UTF-8 | Python | false | false | 12,665 | py | #/************************************************************************************************************************
# Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modificat... | [
"hayden.brown@imgtec.com"
] | hayden.brown@imgtec.com |
e8e0f441f08d38da06e7d0e300cbf6c2a6557827 | 91afd19845ea49f5ec39d2960fa9698bc8ac1eb7 | /dolphin/db/__init__.py | fc4da9c61d2b4985df3714b5a7d3dc1abb9f4e7d | [
"Apache-2.0"
] | permissive | himanshuvar/dolphin | fd97edd407aed08abb2ad94df4ff6b665787ca49 | fbe223aa7a5059f5c1f50d66098d5db0ee7df661 | refs/heads/master | 2022-04-14T21:45:47.160017 | 2020-04-14T12:11:53 | 2020-04-14T12:11:53 | 255,591,912 | 0 | 0 | null | 2020-04-14T11:35:17 | 2020-04-14T11:35:16 | null | UTF-8 | Python | false | false | 806 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a ... | [
"zengshufang@huawei.com"
] | zengshufang@huawei.com |
84f14ff4534964c26f65d38a7312090e521edd05 | 818fbf7e5ad465d81b5841c3b1f3222dec3877e3 | /spotify/urls.py | 73fff59963e36a7d29247497d51fb93a62580135 | [] | no_license | anonshubh/music-controller | 29d2c0be0265588e583ec7cde9578bc59e214d4a | c71329c691f43dff994ef3f69aa78dc438db047b | refs/heads/main | 2023-02-13T22:30:24.102833 | 2021-01-08T13:11:45 | 2021-01-08T13:11:45 | 320,020,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django.urls import path
from . import views
urlpatterns=[
path('get-auth-url/',views.AuthURL.as_view()),
path('redirect/',views.spotify_callback),
path('is-authenticated/',views.IsAuthenticated.as_view()),
path('current-song/',views.CurrentSong.as_view()),
path('play-song/',views.PlaySong.as_... | [
"shubhpathak07@gmail.com"
] | shubhpathak07@gmail.com |
df26c5fadb87ad67b5552f89b44ad70c02e37109 | cfff6441df5f54388e81b92318a08e6c8fc6928a | /src/accounting/run_payroll.py | c77ee7db4353826c8b4d2410f2f3417d838880e9 | [] | no_license | JonathanSullivan78/Titan_Pay | 0e32b1f67671faee7223e67d4339bb376c4d0148 | 83aa2a5f3fcc347d0463fd4ee529a7ec8b23e634 | refs/heads/master | 2021-01-19T02:30:51.814507 | 2016-07-08T17:20:59 | 2016-07-08T17:20:59 | 60,047,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,700 | py | from src.accounting import hourly_employee
from src.accounting import salaried_employee
import sqlite3
import tkinter as tk
import tkinter
class RunPayroll:
def __init__(self):
root = tk.Tk()
root.withdraw()
# Hourly Employee Processor
con = sqlite3.connect('../src/files/system_... | [
"jonathan@sullivanway.net"
] | jonathan@sullivanway.net |
1436843f3271d8d0e7246db267a06c166d2420fb | 27c2c93dc81343df02040e26098cf126e409d86c | /ToolSSrc/KeyGPS处理Cls.py | 88299282b4efabb180f29713a2ef5e30c05a2d05 | [
"Unlicense"
] | permissive | wangzhongtian/AlarmDefenceRegManager | db15ae2245b7abb2e0e025f301b740b22aa81d43 | 0512745de6e145f44a88b55d5bdee0ae92fc6bb1 | refs/heads/master | 2021-04-10T17:31:21.481727 | 2020-03-22T08:46:30 | 2020-03-22T08:46:30 | 248,949,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | #-*- coding: UTF-8
from __future__ import print_function
import math
from commonFuncs import *
import csv
import os
import kmltpl
# from XLSCombine import *
# from CSVFileOPs import *
import csv, codecs, cStringIO
class keyGPSroccls:
def __init__(self,GPSRows):
self.GPSlst=[]
self.KMlhead=kmltpl.g_KMlhead
sel... | [
"wangzhongtian@189.cn"
] | wangzhongtian@189.cn |
e4bd3eddebd81213fde90d61882f7a46924462d4 | a471754bab2216440b60d573205bcd32b7a1dde9 | /apps/resume/models.py | b40c71d4c6374972fc6bab858fb662df61c0d433 | [] | no_license | TechBuilder-360/portfolio-backend | 079b22714e15cb6e8d5076bcc9b8c5f7e29853bb | 220fc798ae48e0b3cf4647f87691528dfad0b43e | refs/heads/master | 2023-05-04T06:59:45.131598 | 2021-05-28T09:44:31 | 2021-05-28T09:44:31 | 286,454,374 | 0 | 2 | null | 2021-02-13T18:48:23 | 2020-08-10T11:18:43 | Python | UTF-8 | Python | false | false | 2,884 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from accounts.models import User
class SocialLink(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
label = models.CharField(max_length=20, verbose_name=_("Social Host"), null=False, blank=False)
url... | [
"Adegunwatoluwalope@gmail.com"
] | Adegunwatoluwalope@gmail.com |
0d4fc547e8725ddb54082ff6f138be5358aa8566 | ca0598c90a479e77ee55f7cbb414d9039a2e3e13 | /navigatefilter/navigatefilter.py | 7855eaff5aadcbe652a898ecd0b9bf26a01066b0 | [] | no_license | reidspeedo/one-percent-rule | e660f688ab78f0ee9563f4860e5a74a8fd043095 | 4e04c21bf7fe4c0c92335404fe29fd65672cfcb8 | refs/heads/main | 2023-01-30T00:34:07.646383 | 2020-12-14T06:30:21 | 2020-12-14T06:30:21 | 317,128,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
import logging
import time
path = r"/Users/reidrelatores/PycharmProjects/farmers/chromedriver"
logging.basicConfig(level=logging.INFO)
def initialize_filter():
driver = start_chrome()
navigate(driver)
driver.quit()
def start_chrom... | [
"rrrelatores@gmail.com"
] | rrrelatores@gmail.com |
f35c58e168f54af58b3f5ff3791467acbe3e2941 | d4b788b9db31f6b97257aacaf68801ef098143d9 | /Wave3/while_example1.py | d8a22ce08ad7160892c377ae2d1ace49e76cc93a | [] | no_license | Ooree069/WeJapa_Oreoluwa09 | 8177b322af76e7ce0b8162406c12eccbb7e7351f | 8712974de8044c881b52564720c8f277ceee3a36 | refs/heads/master | 2022-12-09T06:46:29.047837 | 2020-09-21T11:34:48 | 2020-09-21T11:34:48 | 283,142,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | #Count By
#Suppose you want to count from some number start_num by another number count_by until you hit a final number end_num. Use break_num as the variable that you'll change each time through the loop. For simplicity, assume that end_num is always larger than start_num and count_by is always positive.
#Before the ... | [
"noreply@github.com"
] | Ooree069.noreply@github.com |
0e81e4fe8099eada0502c6525d96c2e4d8d2df04 | 5b080b522a464ce6284fd6ff432f425872b0ef55 | /catalog/__init__.py | f85274dae0189fbcbc7df6a7ab5b77d8a04efdc2 | [] | no_license | iainbx/item-catalog | 69222fa0f3bf0e88831e0b61cfdf8811bb5c3fe8 | d564466e0072c38bdc5aee6bf99d6265da842e24 | refs/heads/master | 2021-01-19T00:00:51.869755 | 2016-08-06T07:42:09 | 2016-08-06T07:42:09 | 52,258,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | """
Catalog App Initialization.
Initialize the Flask framework.
Initialize the SQLAlchemy ORM.
"""
from flask import Flask
from flask_wtf.csrf import CsrfProtect
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
# Initialize Flask framework
app = Flask(__name__)
app.config.fr... | [
"iainbaxter@msn.com"
] | iainbaxter@msn.com |
b234356c7759de5dec4f3c11489d274b4e32e9dc | 5c0f357a7ae461bdfef266688c5fc87ca88d786c | /Python/aia_prep.py | 94e909a78e0268c2191de5f6007e6d0c04e62f97 | [
"MIT"
] | permissive | lizhangscience/solar_data_preparing | 9388ee04bc4a7725d32566bae2918e2771dc8c47 | 286e829cbd3e923857f23af5ed0e395cb623ceaf | refs/heads/master | 2023-03-18T09:34:47.973173 | 2021-03-10T05:51:33 | 2021-03-10T05:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | import warnings
warnings.filterwarnings('ignore')
import sunpy
import aiapy.psf
from astropy import units as u
from aiapy.calibrate import register, update_pointing
from aiapy.calibrate import correct_degradation
from aiapy.calibrate.util import get_correction_table
def run_deconv(m, iterations=25):
psf = aiapy.p... | [
"eunsu.park.1220@gmail.com"
] | eunsu.park.1220@gmail.com |
f433572fac0cf0a44c21e35e328c989da03da489 | ddb3f4a5c9bcdba6abf7060cffe0b252590364e5 | /yz.chsi.com.cn/更新考试科目/Demo.py | 4a983fe1a8b794629a6887f40067cca7a5e5c13f | [] | no_license | xiaozhengwei/Spider | 9cf89003e09f45295093507a33e7ba94551396da | 0bc2b3a4b82551757ffb5c9b437491a1899220d9 | refs/heads/master | 2020-04-06T18:45:21.918087 | 2019-09-10T15:58:41 | 2019-09-10T15:58:41 | 157,711,464 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | import requests
import pandas as pd
import re
import time
import random
headersinfo=['Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/201001', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36','Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0... | [
"yan934934@outlook.com"
] | yan934934@outlook.com |
34b177e8c7db6c5c56d1cf034bb23e0e4ff893b1 | 327761167c73b76cf91243f1d1649fe96c0688a8 | /venv/Scripts/easy_install-script.py | 1b2f374ee091072e1678aa02e30bd2780c7afa66 | [] | no_license | Lucareful/DouYU-DanmakuGrab | 677851d85f3fa839f0474c53de36c0a263d18fe4 | 6cdf7c7a2e26bbc4128ac8b3484c23ced1019167 | refs/heads/master | 2020-08-31T17:35:01.319526 | 2019-10-31T11:09:04 | 2019-10-31T11:09:04 | 218,745,449 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!E:\DouyuDanmaku\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
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... | [
"787068756@qq.com"
] | 787068756@qq.com |
0b70531014e35ca99bb424d18b4ea7de3b40d224 | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/examples/how_tos/reading_data/convert_to_records.py | 7794c3f6ea3625880921d442f02c5e4c2c00e81e | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
58b91cbc7d44a19b1001302a8e2fa752166e17b9 | d53f19192ae9740960397a8befeb5c3ef68d02ae | /ds/search.py | bbb9b9344697e4d65be19cbb864c176de0cf63cc | [] | no_license | upempty/network | b6965ca843082a7e51e0cdcfd8d11fff0f68edb8 | a794ed75c3cc0f1657d30036714b118817a87114 | refs/heads/master | 2020-06-15T15:27:06.302245 | 2020-04-12T15:05:05 | 2020-04-12T15:05:05 | 195,331,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | #! /usr/bin/env python3
#coding: utf-8
import sys
k = '中文support'
print ('{}: py version:{}\n'.format(k, sys.version[0:5]))
class Search:
def __init__(self):
pass
def two_d_lookup(self,target, array):
i = 0
j = len(array[0]) - 1
while (i < len(array) and j >= 0):... | [
"184918308@qq.com"
] | 184918308@qq.com |
2869b248c652390592ff0d5da02ea50a4538e579 | 198b6d30783025531debd51e24108885c67627ee | /reports/branch_times/branch_times.py | 523e8b762d227d9d334e2226526c9a39d629e3f9 | [] | no_license | Callek/reportor | 23c5628fe9fbf046275c90cc8a71bbcddcaeadc4 | 0a7e4c1bb0078da8c98bb0af2a35e655093a301a | refs/heads/master | 2020-04-08T18:56:02.945743 | 2014-06-04T18:08:20 | 2014-06-04T18:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #!/usr/local/bin/python
from datetime import datetime, timedelta
import sqlalchemy as sa
import simplejson as json
import functools
import time
import urllib
import re
import reportor.db
def avg(l):
return sum(l)/float(len(l))
scheduler_db = reportor.db.db_from_config('scheduler_db')
q = sa.text("""
SEL... | [
"catlee@mozilla.com"
] | catlee@mozilla.com |
1fe33b0551cfcc406f6c60f16132340a9ed4541e | aac8a771e69aae9850db2a4eb0d713984ddccbb0 | /misc/classifier/MLP_support.py | 31fe055d5a0014eb881703aaacf777e0b58eff2c | [
"MIT"
] | permissive | quanqhow/DoyleInvestigators2 | a48ed07c54f71b7768bf916109b146aff911fa74 | 9bdea1cfb6e5dfd85cbc602511f9e726bafb01f1 | refs/heads/main | 2023-01-23T23:04:59.781469 | 2020-11-18T05:31:45 | 2020-11-18T05:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # fundamental operations that transform a document into model feature space
def tokenizer(text):
return text.strip().split() # separate by whitespace
def parser(tokens):
return [len(' '.join(tokens)), len(tokens)] # just count the characters and tokens, strings are not natively usable as features
| [
"groppcw@gmail.com"
] | groppcw@gmail.com |
892237619b675d7d223b9efee8985aa62256e138 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/identity_constraint/id_l086_xsd/__init__.py | 1aefc80d5eb9fa2d66622427e4aa78c72449dfad | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 155 | py | from output.models.ms_data.identity_constraint.id_l086_xsd.id_l086 import (
Root,
T,
Ttype,
)
__all__ = [
"Root",
"T",
"Ttype",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ca67be2ebf6405fc557fcd202c5f1c39c1f53bc8 | 76f58701b2c14c932b0c218b4a260ebce6375cb2 | /tools/fix_insta_post.py | 611b44bc2643240333dd0ef3ace5ebd6f65cba91 | [
"MIT"
] | permissive | nafonels/mad_for_shoes | 1ca367ae4661669bd9ad9448eed8a2d4e60ddd5f | cdf5f6b20d32063a4a8dc827aebc202b84b8d431 | refs/heads/master | 2020-03-16T21:30:01.207034 | 2018-05-30T07:35:54 | 2018-05-30T07:35:54 | 133,001,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from glob import glob
from setting import data_path
search_pattern = '*insta_post_*.json'
file_list = glob(data_path + search_pattern)
for file_path in file_list:
with open(file_path, 'r', encoding = 'utf-8') as rp:
data = json.load(rp)
for ... | [
"31062303+nafonels@users.noreply.github.com"
] | 31062303+nafonels@users.noreply.github.com |
d7672d6b06a36599910e93d77ec9e0009a6cd62e | 988ece676ab27667847ac621b067070bbad34e40 | /crm/urls.py | 66e5ae54fd5052b7d9aa0e59313e331de7fc6c91 | [] | no_license | MeghaKA/crmluminar | 5b627bca72f77a576193b3072f2e5d275f5db475 | 14529db2449b7ae19e666a8bc2f8eb5c14acd43e | refs/heads/master | 2023-04-26T18:03:26.490010 | 2021-04-28T14:29:11 | 2021-04-28T14:29:11 | 362,005,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | """crmluminar URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"Meghaka1998@gmail.com"
] | Meghaka1998@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.