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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85677bd4300ff04247348fd1fbac5edc67089b73 | 0e584ab671bfe87eee671119b9d3d3f42111a650 | /bboard/urls.py | 12474158e94731d873a76de0a07e5a663d850b99 | [] | no_license | kotbegemot1/billboard-m | 218019e3bdd0f821a125e20729be118398dfe644 | 65d20d123e09fcbf9484f5f37ff943517e36508f | refs/heads/main | 2023-07-19T03:31:44.481340 | 2021-09-29T11:28:15 | 2021-09-29T11:28:15 | 402,050,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | """bboard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"kk1slorod@gmail.com"
] | kk1slorod@gmail.com |
9aee4b79f4e49359063df643cc7d1abf5693d4e2 | e28d3a25cb399aa407769abe820ce8236c13fcce | /progress_proposal/nb_tweet.py | 25c00ed8cb1d1446f6bea02de5bc8846344ec294 | [] | no_license | grant-park/nlp_project | 42d515f0bdc94f6b4f21ee50c70b5ff7d8ed21a6 | 01662cf1340c82cc8092f3296a90b1581f909422 | refs/heads/master | 2021-06-09T17:36:10.301519 | 2016-12-22T23:21:37 | 2016-12-22T23:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,665 | py | from __future__ import division
from collections import defaultdict
import math
import os
PATH_TO_DATA = 'twitter_dataset'
TRAIN_DIR, TRAIN_FILE = os.path.join(PATH_TO_DATA, 'train'), "trainingdata-all-annotations.txt"
TEST_DIR, TEST_FILE = os.path.join(PATH_TO_DATA, 'test'), "testdata-taskA-all-annotations.txt"
clas... | [
"gpark18@amherst.edu"
] | gpark18@amherst.edu |
964b6f7b7cee9313ed96171733560c201741a868 | ff57cd713e5ed1cbca6c621e505f29eae42aa48f | /python_socket_demo/block/c.py | 04895609b6aeac5dd1103e311f40109865fae974 | [] | no_license | cdhello/git_code | f918c62d49b7a81e4761f128c34fb26576c1d31f | 51220a15702e94b7f5cbb7f6178aca3cd80c18a4 | refs/heads/master | 2021-03-30T20:52:01.413224 | 2020-05-16T16:47:38 | 2020-05-16T16:47:38 | 124,522,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,725 | py | import sys
import socket
import time
import logging
BUF_SIZE = 256
srcfilename = "a.pptx"
def run():
print "hi, i m client";
global srcfilename
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM);
ser_add = "10.140.162.26";
ser_port = 1567;
try:
result = s... | [
"cdh130128@126.com"
] | cdh130128@126.com |
1f69d2212665b7c450ddadc6b800bd1963b6a8a7 | 06190b30798084ff91261c554accf5ff47f7fabf | /src/ssllabs/migrations/0001_initial.py | 040a4ea0cb8e763ad9b4d14cabcfcb71c46349f0 | [
"BSD-3-Clause"
] | permissive | kidmose/tlsscout | a51624377523200334730c565b964188ddc622d3 | ebb6bf296f16db1b247952d584df671b98945243 | refs/heads/master | 2021-01-22T19:53:51.672518 | 2016-04-15T07:29:22 | 2016-04-15T07:29:22 | 56,300,248 | 0 | 0 | null | 2016-04-15T07:27:44 | 2016-04-15T07:27:44 | null | UTF-8 | Python | false | false | 1,683 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import uuidfield.fields
class Migration(migrations.Migration):
dependencies = [
('sitecheck', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ApiClientSta... | [
"thomas@gibfest.dk"
] | thomas@gibfest.dk |
05572bbf0ccce85e4248ee4ba97f4167ca183086 | d0a2771cb86fffbc213597125ed140a37e00f2e9 | /unet/config.py | 3876571f6790b968ef2c9d9619f640e4a8ceb705 | [] | no_license | shuaigezhu/star_galaxy_classification | eff7a135419036f8a28a6f784049f44972c2426a | a319beca9f8d2a62dd0714d78f70f788603219d6 | refs/heads/master | 2020-12-12T17:40:42.575255 | 2020-03-30T15:40:29 | 2020-03-30T15:40:29 | 234,187,615 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | import argparse
# ----------------------------------------
# Global variables within this script
arg_lists = []
parser = argparse.ArgumentParser()
def str2bool(v):
return v.lower() in ("true", "1")
def add_argument_group(name):
arg = parser.add_argument_group(name)
arg_lists.append(arg)
return arg
... | [
"noreply@github.com"
] | shuaigezhu.noreply@github.com |
4f00554ddd6bda5f64f1638ae2fe1ee98b3cd7ad | 5331ae322ed9c1ff76e83840a0f9a392f7b97c41 | /EE/Caaa(openMV-arduino communication)/drive_newest.py | 6b31e0ea64b32fbfbdf3245a9d63c3844353a01b | [] | no_license | tanMcCree/EE | 4560d5c352c045e28e22c6334c2bed907ae905a2 | 11d2e8293e5c9709d57fbdfd4fe5c2941ee4b1b4 | refs/heads/main | 2023-06-14T20:37:31.520964 | 2021-06-27T02:58:49 | 2021-06-27T02:58:49 | 380,638,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # UART Control
import time
from pyb import UART
uart = UART(1, 115200)
#uart.init(115200, bits=8, parity=None, stop=1) # init with given parameters
def sending_data(data):
#data = "SY 90 + "
s = list(data)
for i in range(len(s)):
uart.write(s[i])
time.sleep(1)
def re... | [
"noreply@github.com"
] | tanMcCree.noreply@github.com |
85b05ddcac79aafc6d9a2166090d92c50d8ce798 | cc22be434dd05f7d5637f3beffe8681da88afc45 | /python-pass.py | 42ab0bbddc83a51704f606c0889cd7e12df7e936 | [] | no_license | shobhit-bhatt-14/Getting-Started-with-Python | f877fb0fb23ea5e80ff13e1129359793ec997550 | a0aada154ae777bb140ed984f0e40cf483b2d8b1 | refs/heads/main | 2023-06-04T15:49:34.851813 | 2021-06-22T19:54:17 | 2021-06-22T19:54:17 | 374,080,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # initialize a blank loop func or condition
for i in range(1,5) :
pass
print('End') | [
"shobhit.bhatt.14@gmail.com"
] | shobhit.bhatt.14@gmail.com |
15cb6f4a4b2a69e6eebe258bef70f4ee918bcdde | 38ada05c7ce06c78f3196e26d94bd7943b7866fc | /SuPyMode/superset.py | 9f482342485331a82ed53c4c087737cd5df94e0b | [
"MIT"
] | permissive | MartinPdeS/SuPyMode | 467ac526bea47513680a50d217d5ba893618dc70 | f6dd3f1e390728c189ce053ee164ca3ebc776e44 | refs/heads/master | 2023-08-17T12:18:22.709146 | 2023-08-14T15:36:39 | 2023-08-14T15:36:39 | 366,930,899 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 45,834 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Built-in imports
import pickle
import numpy
import logging
import matplotlib.pyplot as plt
from dataclasses import dataclass
from pathlib import Path
from itertools import combinations, product
# Third-party imports
from scipy.interpolate import interp1d
from scipy.inte... | [
"Martin.Poinsinet.de.Sivry@gmail.com"
] | Martin.Poinsinet.de.Sivry@gmail.com |
1b500ae5665ebddb4b225dc5d03bf80bd29675de | 55f2ab76334f13b80632e55010f0e846369d86f8 | /view.py | 3568ad8fe3d26dfb58768e0746e2d0275ef3f63a | [] | no_license | fakhouri-junior/ImageSearch | 7ad7b8024fed7df079a50a31ea86347d214b0803 | 681da9ace0cbbfec699934a8d9fd8b10b4672cb9 | refs/heads/master | 2021-09-09T04:04:05.092097 | 2018-03-13T18:13:35 | 2018-03-13T18:13:35 | 125,086,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,077 | py | from flask import Flask, render_template, request, redirect,jsonify, url_for, flash
import urllib
import random, string
from flask_mail import Mail, Message
from model import Prediction, FinalResult
from core_classification import *
import time
import numpy as np
from multiprocessing.pool import ThreadPool
app = Fla... | [
"noreply@github.com"
] | fakhouri-junior.noreply@github.com |
10b6910d59ae321ecacd90b79a73471e32d301e7 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/large-scale-multiobj2/core-arch2-guard0-beta100-hebbe/pareto6.py | 4ad77b5ac1b8c19557dfa96eb5e314381e537b2a | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch2_decomposition_new import Arch2_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
af56eb2199b94de3f5eae3ad06f929398286bfb7 | 7e7f08d947c1162fc5978914c0b7333502c783b9 | /python_tutorial/polls/migrations/0001_initial.py | 95d7307aa65960d3c1fd15cb41bd3e3b8b2d9fdd | [] | no_license | shundesu/study_python | a052618137262e177fb7d6c8dc6928637090c12a | bcdf52c2200c6c3cf63bde5a0cacd7ee2db621e9 | refs/heads/master | 2020-04-24T05:09:56.050008 | 2019-02-20T18:29:31 | 2019-02-20T18:29:31 | 171,727,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Generated by Django 2.1.5 on 2019-01-07 15:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"my.instant.ramen568@gmail.com"
] | my.instant.ramen568@gmail.com |
6c2fd404feebc2e0e08b6077c268bd624a020c61 | 62251173a123ef987a4ba8b34a52987d1001d8a7 | /app/routes/items.py | 064bb65ef41c27f6625f4d1d744e154c86cacefc | [] | no_license | tianhuizhou/FlaskRestful-p2 | e4fea0645b92060a9eb6bbb19c89b77e5096e546 | 50af3c7cc6e61c1704ca63dda69098cb788fb682 | refs/heads/master | 2023-05-04T17:43:23.227784 | 2021-05-20T09:53:48 | 2021-05-20T09:53:48 | 369,152,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | from flask import Blueprint, jsonify, request
from app.database.item import Item
from flask_jwt import jwt_required
module = Blueprint('items', __name__, url_prefix='/api/items')
@module.route('', methods=['GET'])
@jwt_required()
def index():
return {'items': list(map(lambda x: x.json(), Item.query.all()))}
@mod... | [
"tianhui@hawaii.edu"
] | tianhui@hawaii.edu |
6f0f9d1289c37416d382d33a1d10309de7a567cd | e0592ee35c8d7923d63e90417f11234f3bf4c26b | /mapc2/scripts/get_list_of_mlab_providers.py | 83c98b8de91f9b5430630ea3d247acc1cb6ae7fe | [] | no_license | e-south/CS506Spring2021Repository | 82e786edb9cede918f02946e9465a88918cc699c | 5f9864eb4f1b0fa9bce33ed851584dd95f8ecd8f | refs/heads/master | 2023-04-16T02:45:35.936057 | 2021-04-29T01:57:25 | 2021-04-29T13:35:47 | 339,234,954 | 1 | 2 | null | 2021-04-20T18:07:38 | 2021-02-15T23:26:26 | Jupyter Notebook | UTF-8 | Python | false | false | 751 | py | # In this script, we extract out a list of all the Providers present in the MLAB data
#
# Author: Nathan Lauer
# Please feel free to ask me any questions, I hope you're having a nice day!
import pandas as pd
import argparse
########## Main execution flow
parser = argparse.ArgumentParser(description='Map AS Numbers to... | [
"lauern91@gmail.com"
] | lauern91@gmail.com |
5f0b559e80eb4c98096bc1b141255cb0359b131c | 3722d884f8229968a549d90b62d3ae39f2da78b1 | /python/IK.py | bb6b365d4c8e73516dae6111e7ebcd22e2cf3216 | [] | no_license | Roboy/BulletUnityRoboy | 7579bb70de1b4aa19f3d7ce3bac969fe9b4aebd0 | bb09175b42b978a4a53648df8af9377d66027ee8 | refs/heads/master | 2021-05-20T12:32:04.232639 | 2020-06-20T16:53:43 | 2020-06-20T16:53:43 | 252,296,978 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | import pybullet as p
import math
import time
p.connect(p.GUI)
ob = p.loadURDF("C:\\Users\\roboy\\Documents\\code\\roboy3_models\\upper_body\\bullet.urdf", useFixedBase=1)
p.setGravity(0,0,-10)
t = 0.
prevPose = [0, 0, 0]
prevPose1 = [0, 0, 0]
hasPrevPose = 0
useNullSpace = 0
useOrientation = 0
#This can be used to t... | [
"aliona.kharchenko@gmail.com"
] | aliona.kharchenko@gmail.com |
0f09b275880b051fdadc094ead0cfbd02ae60a9f | 5b5c22a8c8cbc4baf184061817c57c8acb202f94 | /docal/calculation.py | 21246ab3f846c03984881daaa9b3974532e4ec42 | [
"MIT"
] | permissive | kirtan29/docal | fafb65f90a84174a07af9cdbb0db31fc7e099ad6 | 62368194402e4153fc6030cec80ec7e23a8df076 | refs/heads/master | 2023-07-21T12:20:24.043742 | 2021-07-16T18:21:28 | 2021-07-16T18:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,268 | py | '''
module procedure
does the calculations needed, sets the appropriate variables in the main
module and returns the procedure of the calculations
'''
import ast
import logging
from .parsing import to_math, MathVisitor, eqn, UNIT_PF, build_eqn, _split, DEFAULT_MAT_SIZE
log = logging.getLogger(__name__)
# units that... | [
"kidusadugna@gmail.com"
] | kidusadugna@gmail.com |
c5813069ab74084371832db97cf363db3c1d548c | 689e06888840d9aaf30fd89f874608f110a935fd | /ER/regExp.py | 36951be8be5c488574e2541921212b163dcbf968 | [] | no_license | yuehongOlivia/LearnPython | 58871db2d019e9689c662ca413fb5515339a3038 | 5bdde927f8bf8a5550d0ef3a06aaa5de66a1e09d | refs/heads/master | 2020-04-03T13:16:37.687052 | 2019-02-09T22:25:46 | 2019-02-09T22:25:46 | 155,279,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # -*- coding: utf-8 -*-
# write a RE to verify an email adress like : someone@gmail.com, bill.gates@microsoft.com
import re
def is_valid_email(addr):
re_email = re.compile(r'([\w]([\w\d](?!-))*.)*([\w\d]*)@([\d\w]+.com)')
if re_email.match(addr):
return True
else:
return False
# Test:
ass... | [
"hongyue192447@gmail.com"
] | hongyue192447@gmail.com |
ac583b22e70d14346b739f3638ad361d420f7569 | 7c92fa902082c1683887296808c22e55bfa4c24f | /finalPlotsReallyFinal/NewEfficiencyCorrection.py | 06763a63c465c6d4582a211295025bf979992e3a | [] | no_license | ElenaGramellini/QuickDumpster2 | 6a82402658d47e0ec1f8b118f8882526a4a32334 | 178e30cb993cfc29ae79238e5a65946ef9ca43ec | refs/heads/master | 2020-03-10T11:13:35.477466 | 2018-08-13T19:07:12 | 2018-08-13T19:07:12 | 129,352,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | from ROOT import *
import os
import math
import argparse
def CalculateErrorRatio (num, numErr, den, denErr):
if num and den:
relativeErrorNum = numErr/num
relativeErrorDen = denErr/den
relativeErrorRatio = TMath.Sqrt(relativeErrorNum*relativeErrorNum + relativeErrorDen*relativeErrorDen)... | [
"elena.gramellini@yale.edu"
] | elena.gramellini@yale.edu |
2cd5d6af253d31c2282981c26b189a482c49ccde | 0965812e37b6f12256f22c876b87370223cd3c8d | /beerproject/breweries/models/__init__.py | 99d8e333ef3fc2cf3886e18e1c30ab51d15f4f06 | [] | no_license | MargaritaKartaviciute/BeerProject | 72bd1850f431fda1d51e64963855119477112581 | 148f10a54fb0b1dac553328f644c5e14a8306a4c | refs/heads/master | 2023-01-10T00:01:38.890208 | 2020-01-02T14:32:54 | 2020-01-02T14:32:54 | 228,893,049 | 0 | 0 | null | 2022-12-27T15:34:16 | 2019-12-18T17:48:38 | Python | UTF-8 | Python | false | false | 150 | py | from .categories import Categories
from .styles import Styles
from .geocodes import Geocodes
from .breweries import Breweries
from .beers import Beers | [
"margarityte@gmail.com"
] | margarityte@gmail.com |
fa1166d85281f86c70d72480c47ae13add17bb3e | bfef33b25941c0358e95a97738bbe0392b8158b5 | /MyDairy/main/migrations/0004_auto_20210121_1028.py | c3182027796f2c8b107faca5d967dad7d7aba0d9 | [] | no_license | FacelessWanderer/mydairy | d882fbe29c6b248be7994f1690a14a1ce8908399 | 2b4adcb5c1f808a05dc14c336c89241e03e13aab | refs/heads/master | 2023-04-19T18:10:46.549451 | 2021-05-15T15:30:33 | 2021-05-15T15:30:33 | 333,198,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # Generated by Django 3.1.5 on 2021-01-21 08:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20210121_1010'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='categry',
... | [
"68087847+FacelessWanderer@users.noreply.github.com"
] | 68087847+FacelessWanderer@users.noreply.github.com |
2d12c679815abff67ca583fa1de9385e393a0303 | a45b0b8d2ad5b17506ace412cd755d29b2b57872 | /cookbook-python/misc/slate-test.py | cc9918fcddab807a74868d6ab3ec5718e979cea8 | [] | no_license | hiepbkhn/ml2017 | e89a1546e412c3f203184006a2423922a4f95af0 | 0fd18fc53712db5e89802913e96f9fdd6e73f573 | refs/heads/master | 2023-08-16T15:14:41.786857 | 2023-08-03T03:21:32 | 2023-08-03T03:21:32 | 82,892,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | '''
Created on Feb 27, 2017
@author: Administrator
'''
import slate
with open('How to Read a Paper.pdf') as f:
doc = slate.PDF(f)
doc[1]
| [
"hiepnh.vtt@gmail.com"
] | hiepnh.vtt@gmail.com |
4254446828a2d41fb2fc7c0ce9b1dd1a6cc086f4 | 3f4a035504508835de9ff53498d44b5872efb4c1 | /gui/windows/win_window.py | d11adb380640ade4f51354294e0e7a8e3dedbeab | [] | no_license | gODeaLoAple/Zuma | d87bab1715d90c1dfd33c575a11e7deacc749388 | d65451eae0db3aa384f4ce4bad76ffd0ce54597a | refs/heads/master | 2023-01-05T07:39:27.581785 | 2020-11-07T13:49:20 | 2020-11-07T13:49:20 | 273,963,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from PyQt5.QtWidgets import QWidget, QLabel, QVBoxLayout, QPushButton
from PyQt5.QtCore import pyqtSlot, Qt
class WinWindow(QWidget):
def __init__(self, parent):
super().__init__(parent)
self.init_ui()
def init_ui(self):
text_label = QLabel("You are win!", self)
text_label.set... | [
"maksim.math@gmail.com"
] | maksim.math@gmail.com |
6c67bbd556a27d366714130c5f3f6f12314679ea | 7f59e2c4e771c19378e9839406c220d3985e7efe | /public-engines/kaggle-titanic-engine/marvin_titanic_engine/prediction/__init__.py | e9b3c7c5a02a68e210e9f618975dfb6fa53f8cc7 | [
"Apache-2.0"
] | permissive | apache/incubator-marvin | c6ff32d50eb01ccd84266587d79f562a9e371496 | 58fdccf2e677041a13966ddbdd96d484edf3b474 | refs/heads/develop | 2023-08-30T12:46:56.973102 | 2022-11-18T15:27:52 | 2022-11-18T15:27:52 | 148,087,939 | 112 | 77 | Apache-2.0 | 2023-03-07T05:45:59 | 2018-09-10T02:27:54 | Jupyter Notebook | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/env python
# coding=utf-8
from .prediction_preparator import PredictionPreparator
from .predictor import Predictor
from .feedback import Feedback | [
"daniel.takabayashi@gmail.com"
] | daniel.takabayashi@gmail.com |
6ff3928c2cc469c30d69a24c9694ee0f7764fa32 | 9d540749a258509b4f1e80cbc5833cba7320c976 | /biointeract/hub/dataload/sources/biogrid/__init__.py | 418920f09752fa7ef84fa85e3c0caa9c6071fd86 | [
"Apache-2.0"
] | permissive | shunsunsun/biothings.interactions | 208f8c32d5fa998a601b58e70d1299f9277a355b | 7a8b16e8119d6505b6b5d89623051c11f3649430 | refs/heads/master | 2021-09-15T04:30:41.584419 | 2018-05-25T19:44:56 | 2018-05-25T19:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | from .dumper import BiogridDumper
from .uploader import BiogridUploader
| [
"greg@spritzr.com"
] | greg@spritzr.com |
cb9e35f9d5650b245d2818ff48eed06905914d59 | 8369cc6396310b6d6012c6ca78b2bcbbad4ac5d3 | /db/dbconnect.py | 69d2106a97679dd7269e5a4c598f2de2e9309ebc | [] | no_license | warthogs32/locker | af59f694248a24ecf9d5103ca208d81208c2d331 | f2b96c52515d23f38542e0c869d5f6ad87e11828 | refs/heads/master | 2023-01-27T12:30:10.275595 | 2020-03-02T01:32:38 | 2020-03-02T01:32:38 | 243,481,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
cred = credentials.Certificate('slohacks-269509-firebase-adminsdk-dun4x-9342e5bf13.json')
firebase_admin.initialize_app(cred)
db = firestore.Client()
doc_ref = db.collection(u'log').document(u'test')
doc_ref.set(
{
u... | [
"jj@jj-jj.org"
] | jj@jj-jj.org |
ce0d718523e13d1eae47d2d286507489e5e5dbcb | 9b9817ee1029fdca265e6536fe51b4f1fe6f5e03 | /data_structures/test/test_my_array_list.py | 9367ed26e373ba210eafd299b62070fdd3bdb8c5 | [] | no_license | toebgen/exercises | 1809d56d18aead4bf41b123de6c61e9febe2c149 | cd56d29173cb9fde171f94ad6651ea2f5766d125 | refs/heads/master | 2020-05-24T11:23:30.391827 | 2020-04-24T14:30:30 | 2020-04-24T14:30:30 | 187,247,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | import unittest
from my_array_list import MyArrayList
class TestMyArrayList(unittest.TestCase):
def appendWithDummyData(self, length):
for x in range(length):
self.array_list.append(x)
def setUp(self):
self.array_list = MyArrayList()
def testExtend(self):
... | [
"toebgen@gmail.com"
] | toebgen@gmail.com |
f400cabc87d522781cbaeca42830eb1280a17f5c | bc2e77b92ae12e34aec9445f5e8c92fc399e6cc8 | /vautils/orchestration/vcenter/__init__.py | f6d9e885db50dabf4acf38b33be40864884ab7f6 | [] | no_license | 18782967131/test | fc8049c10f02f7b49a4dd4a675618ccf388c4f2f | cb02979e233ce772bd5fe88ecdc31caf8764d306 | refs/heads/master | 2020-05-27T08:41:57.535153 | 2017-11-09T08:31:07 | 2017-11-09T08:31:07 | 82,536,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | import os,glob
from imp import find_module, load_module
from vautils import logger
from vautils.orchestration.vcenter.vcenter_connector import VcenterConnector
from feature.exceptions import *
supported_mod = ['host','operation','network','vm','connector']
class VcenterConfig(object):
@classmethod
... | [
"515947075@qq.com"
] | 515947075@qq.com |
79c3488d815b757d1d05562e57013879c7606de0 | 8683bf70ea56283caf0c7b1fb742ed002ce1d8cd | /pages/migrations/0015_auto_20200223_1754.py | 64981d98cf32971db40b96fce5cadc903583e861 | [] | no_license | Arzor529/learn-pi | df6b18cd1735eb31f1f712d902209ff73040c441 | 1a021181bb768d8f0a78fd64988f484a925f4b0b | refs/heads/main | 2023-02-24T18:48:38.614643 | 2021-01-31T19:52:11 | 2021-01-31T19:52:11 | 334,742,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.0.2 on 2020-02-23 17:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pages', '0014_auto_20200223_1749'),
]
operations = [
migrations.RemoveField(
model_name='award',
name='lesson_complete',
... | [
"aaron.keel@hotmail.co.uk"
] | aaron.keel@hotmail.co.uk |
163c8f79f45c34299206a1c1b091dc70a20faabe | 304e639beb84844f9f2dbd13292177016e658f8b | /application/sources/database/base.py | f148127511463efdfbfc7182b006fdab658198ea | [
"MIT"
] | permissive | JuiceFV/Cats_Queue_Management_System | f7dd3cdbf24499160042c25e1f5d21b2e542d0b9 | 1aa57fefcd96059ac63391d6d178ea7cfa49e1d0 | refs/heads/master | 2022-12-13T01:22:46.859127 | 2021-09-27T14:16:25 | 2021-09-27T14:16:25 | 185,384,218 | 1 | 0 | MIT | 2022-12-08T04:09:28 | 2019-05-07T11:04:53 | Python | UTF-8 | Python | false | false | 5,782 | py | """In this module contains the basic functions for database interactions.
"""
import asyncpgsa
from .db import tokens
from sqlalchemy import (
select, insert, delete, text, asc, func,
)
async def db_empty(app):
"""Check for database emptiness.
Key arguments:
app -- our application
returns True/F... | [
"alexcar19622000@gmail.com"
] | alexcar19622000@gmail.com |
e6bf86ac11ef8bd91e210aac264b6377a9e75b9b | e949629d3f61aabd7645d097dd4d4537261c69f0 | /data-preparation/generate_classes_meta_stanford_cars.py | dfbd0398554cd893eb8edc57d717ec04a4078645 | [] | no_license | alirazamir7781/image-search-poc | fcf8f974c4838082bb151584af8f034cbe2421f4 | dc60e8cb0c729f20c29a2eac5d03bf6f5fd2f894 | refs/heads/master | 2022-01-19T09:05:46.785713 | 2019-01-03T17:43:15 | 2019-01-03T17:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | import sys
import argparse
import simplejson as json
import scipy.io as sio
import time
from functools import partial
from toolz.dicttoolz import get_in
if __name__ == '__main__':
p = argparse.ArgumentParser(description='Filters a dataset.',
formatter_class=argparse.ArgumentDefaul... | [
"zeeshanmalik@Zeeshans-MacBook-Pro-2.local"
] | zeeshanmalik@Zeeshans-MacBook-Pro-2.local |
60142c0fc413f3a23ace11f584957f13800b4491 | 680d2229b64d80b9d31cbf1c1d4866e7c8242258 | /hyperconnect/junho85-gets-gem.py | f05404170addfc45a374cbf6f0fc4c77a3de5415 | [] | no_license | junho85/ps-python | c72f05c4390a2331b2e4a9fd4bdb5a173822ba76 | 5b1de5d76a5f7577ca76d7a533542b3da2614ee7 | refs/heads/master | 2021-06-12T01:38:30.912376 | 2021-03-30T15:27:54 | 2021-03-30T15:27:54 | 167,168,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,822 | py | # -'- coding: utf-8 -*-
import sys
import json
from random import choice
import math
def dotproduct(v1, v2):
return sum((a * b) for a, b in zip(v1, v2))
def length(v):
return math.sqrt(dotproduct(v, v))
def angle(v1, v2):
return math.acos(dotproduct(v1, v2) / (length(v1) * length(v2)))
def get_posi... | [
"junho85@gmail.com"
] | junho85@gmail.com |
b8951924632dac460f7d4f314645390863883216 | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /prettyqt/bluetooth/bluetoothserviceinfo.py | 1550d47d7d25b376a8935aee536e083c25471963 | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 4,059 | py | from __future__ import annotations
from collections.abc import MutableMapping
from typing import Literal
from prettyqt.qt import QtBluetooth
from prettyqt.utils import bidict, datatypes
AttributeIdStr = Literal[
"service_record_handle",
"service_class_ids",
"service_record_state",
"service_id",
... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
dfed2e98d13ccd325edc9957274158b2793b8f0b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/dougsouza_face-frontalization/face-frontalization-master/frontalize.py | 288c5ab260d12118c575d932c733df5094a5c992 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,885 | py | __author__ = 'Douglas'
import scipy.io as scio
import cv2
import numpy as np
np.set_printoptions(formatter={'float_kind': lambda x: "%.4f" % x})
class ThreeD_Model:
def __init__(self, path, name):
self.load_model(path, name)
def load_model(self, path, name):
model = scio.loadmat(path)[name]
... | [
"659338505@qq.com"
] | 659338505@qq.com |
1d0de82fd05133a73c2fa3479a0c7be727ae2905 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s020142349.py | 50cb9d7c7baefeb952496c4a3c79bcfb25bba6c7 | [] | 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 | 799 | py | import sys
from collections import *
import heapq
import math
import bisect
from itertools import permutations,accumulate,combinations,product
from fractions import gcd
def input():
return sys.stdin.readline()[:-1]
def ruiseki(lst):
return [0]+list(accumulate(lst))
mod=pow(10,9)+7
n,m=map(int,input().split())
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3c9e22c6450f222400baa09f6df8f48791d76322 | a7d56438307e90d2939ecd203d062525b078dd80 | /MedicineLibrary/asgi.py | 49cec13f702daaf6c04550d89c647b991a9e0969 | [] | no_license | rak1b/MedicineLibrary | c7834654280dc19a51395421643e6c0536b15401 | 07e2ef8bff82371b9f091bcb48911eb7eee245b5 | refs/heads/master | 2023-08-08T01:03:43.519888 | 2021-09-18T18:46:22 | 2021-09-18T18:46:22 | 406,848,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for MedicineLibrary project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"rak13.dev@gmail.com"
] | rak13.dev@gmail.com |
cb3ab2a00c7c63d9d6b35fd9139e532e65e770de | 7992bfaf2b16fb39d8951d3f0ec1998f139f3a7e | /runner.py | 68c28d2ee2a93b91641345f3e436b8628f596eab | [] | no_license | anjyzplace/drakefork | f6ca6a83fa53dad7b08b5d3a6a81d6c905b6bafd | 08d3c23f776bc96e4f1bd6b102e97c685576cad0 | refs/heads/main | 2023-02-19T02:06:03.790650 | 2021-01-20T21:04:25 | 2021-01-20T21:04:25 | 331,431,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import getopt, sys
from fetcher import fetch
argumentList = sys.argv[1:]
# Options
options = "heo:"
# Long options
long_options = ["Help", "Email", "Output ="]
try:
# Parsing argument
arguments, values = getopt.getopt(argumentList, options, long_options)
# checking each argument
for currentArgument, currentVa... | [
"anjola@outlook.com"
] | anjola@outlook.com |
d4312d38b45c273521c11d2ca388d74497fe0102 | 808eb39006b7d1baa7a2b15c2e9614a47a5019f0 | /regressão linear simples - mundo com exceção.py | a9f8e90e3ed2f0d497eccf289c62054be4011f34 | [
"MIT"
] | permissive | MarlonBeloMarques/Consumo-de-bebida-alcoolica-mundial | 40c706c6c6e568c8986e0fb311ae70e72ca2b4b6 | edc5637f963ba5702295fc20badbbd231cddc3b1 | refs/heads/master | 2022-11-07T09:45:15.337463 | 2020-06-28T19:53:31 | 2020-06-28T19:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,223 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from yellowbrick.regressor import ResidualsPlot
'''Criação de correlação entre o consumo total de cada bebida alcoólica consumida VS
total de álcool ingerido em todo o mundo, com exceções,... | [
"noreply@github.com"
] | MarlonBeloMarques.noreply@github.com |
b573f6454ee0b453076f72b2e7ea8f09a2cd3522 | bc2bc86fc1666968aaf640af03c5b24f4735d66b | /Task 2/Q.11.py | a4ab6d7036623904e1effd4ebb2ab48b9c12b0e4 | [] | no_license | ghimireu57/AssignmentCA2020 | 0404b49ff98acc85d9275197e60fcadb8ecb75c2 | af5328aca1b1c9cc75717cd55e07a3b08b098a41 | refs/heads/master | 2022-04-17T08:52:29.644316 | 2020-04-10T23:37:02 | 2020-04-10T23:37:02 | 254,523,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #11. In the previous question, insert “break” after the “Good guess!” print statement.
# “break” will terminate the while loop so that users do not have to continue guessing after they found the number.
# If the user does not guess the number at all, print “Sorry but that was not very successful”.
ans=100
counter=1... | [
"noreply@github.com"
] | ghimireu57.noreply@github.com |
b5236ae52e5df10400422f3de177c87d0979cdf6 | 94aedd9dd803799ed5e8f871a7da90a26eaad596 | /100 exercises/001.py | 9dc03725b940694235d9f32802f8890b47773172 | [] | no_license | NguyenDucHung1601/Python-Basic | a238d39ea72d1c304a37b5b528f2dc72773468ec | db18592e38689c143492beb0cdf8f68d72788765 | refs/heads/master | 2020-09-17T11:09:52.980290 | 2019-11-26T02:24:53 | 2019-11-26T02:24:53 | 224,081,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | '''
Bai 1: Tim tat ca cac so nam trong [2000,3200]
chia het cho 7 nhung khong phai boi cua 5
'''
list = []
for i in range(2000, 3201):
if i % 7 == 0 and i % 5 != 0:
list.append(str(i))
print(','.join(list))
| [
"48803420+NguyenDucHung1601@users.noreply.github.com"
] | 48803420+NguyenDucHung1601@users.noreply.github.com |
4584aeb03fc5fe1e1267705fee3f37e0b7a301d7 | c94f888541c0c430331110818ed7f3d6b27b788a | /saastest6/python/antchain_sdk_saastest6/models.py | 75c4a8dc219b072244894e13e7800c6975e58841 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 32,769 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import List, BinaryIO
class Config(TeaModel):
"""
Model for initing client
"""
def __init__(
self,
access_key_id: str = None,
access_key_secret: str = None,
... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
d0fffadb2e1f3cb94ea162f5007996610d2c1570 | 8f213337c875f3c344b2a9f7e5b5a39622b86f5b | /auxiliary_functions.py | 28b5759dd042fbf6661a64027f441d78c215f431 | [] | no_license | jgoncalocouto/Transient_energy_equation | abd05806cb05b4f44a3a70be314c975f1523a4bd | d9f96ebebd3b06c1503a72d6d43356eb11c59371 | refs/heads/master | 2022-12-23T04:51:05.675989 | 2020-09-28T16:31:35 | 2020-09-28T16:31:35 | 299,368,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | from fluid_properties import *
def external_natural_convection(T_in,T_amb,material,L_characteristic,A_ht):
Q_conv=0
material=material.lower()
g = 9.80665 # [m/s^2]
T_film = (T_in+T_amb) * 0.5
beta = 1 / (273.15 + T_film)
vu = thermal_properties('vu', material, T_film) # [m^2/(s)]
k = ther... | [
"jgoncalocouto@gmail.com"
] | jgoncalocouto@gmail.com |
ffe5c6c7f4b092f6b047a7ef7fa5b5df516006c2 | 5889393a7b591c7848333cd729412fe03f991c9c | /main/migrations/0004_auto_20210326_1259.py | e3cec324b99c5a5cfd4ee47e969a90e3569d6086 | [] | no_license | nishit-popat/Codemania | 553928f8ecca11181c7a1f0b93876e58ca712f8b | ea204de8dd4511db6d028ef15fe20f40a07d2580 | refs/heads/master | 2023-06-03T13:06:16.704507 | 2021-06-19T06:00:54 | 2021-06-19T06:00:54 | 351,455,916 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # Generated by Django 3.1.5 on 2021-03-26 07:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20210326_1256'),
]
operations = [
migrations.AlterField(
model_name='contest',
name='contest_name'... | [
"nisitpopat9999@gmail.com"
] | nisitpopat9999@gmail.com |
90af23c2bff81ddafc6558e33d142447fc8311dd | 8b8e41ad1b1f457c32c8ffcf446da5f60c72588d | /nokia_app/test_source_code.py | 1d9572fee29c598d498d08dd185d9550d3f24777 | [] | no_license | NestorBracho/nokia-test | 1b90e1acf307a9dd835b51254120efc7e0d12192 | 969509af41212e5fbd9862216af8d77bf72fd615 | refs/heads/master | 2023-05-30T04:48:22.118718 | 2021-06-13T22:18:23 | 2021-06-13T22:18:23 | 376,617,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | """
Working from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number;
for example, 134468.
Similarly if no digit is exceeded by the digit to its right it is called a decreasing number; for example, 66420.
We shall call a positive integer that is neither increasing nor decr... | [
"nestorbrachi2207@gmail.com"
] | nestorbrachi2207@gmail.com |
939922b8fd157040e6378dbe5e8c5dd212043968 | 20bb3c70e753417009448de2741e8ed94a1aa78c | /sim/experiments/taas/experiment3.py | 29d33e82dac5b0838eef5a6b5f5b3fcce9e08434 | [] | no_license | ravi-rajyaguru15/simulatorMA | a4ef33f3312b3b01c3fb0b3ba36e512a93eff27c | 34f326e47c265d3b0f12eebe756a9790b80e5b11 | refs/heads/master | 2023-03-28T11:08:44.478375 | 2020-12-30T15:59:34 | 2020-12-30T15:59:34 | 353,339,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py |
import multiprocessing
import sys
import traceback
from sim import debug, counters, plotting
from sim.experiments.experiment import executeMulti
from sim.experiments.scenario import REGULAR_SCENARIO_ROUND_ROBIN
from sim.learning.agent.lazyTableAgent import lazyTableAgent
from sim.learning.agent.minimalTableAgent im... | [
"alwyn.burger@uni-due.de"
] | alwyn.burger@uni-due.de |
1691bfa1eae47e55c1184a3c08098c2b274228ab | 0233464a567919d7f32ff0d4ccf0fad3787d5b0d | /superlists/settings.py | 8f84d3f8b2cfe161c9c2bd1866f7ae78789d7cef | [] | no_license | slaneslane/superlists | 939637282c0dbde7b68f9f3bfae3cdf3d369ab1c | 3725daeb8aa4f4a78f7cf4e821dae51bac4e3c1b | refs/heads/master | 2018-10-10T17:31:11.400215 | 2018-06-25T07:05:31 | 2018-06-25T07:05:31 | 110,593,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | """
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"slane@wp.pl"
] | slane@wp.pl |
ed0342f84e421f349bc8f9087c1e3b93ecf96cf2 | 96a1e8c1ca1bfc463ae2d6e6d9af854cd8764eb0 | /ch02/heldout.py | f4f61e94865c0877554889962864e3c6e5d63920 | [
"MIT"
] | permissive | rob-nn/BuildingMachineLearningSystemsWithPython | a53b8eb85684ce84896a8c5dd33ea0275b4b5191 | cf02b13a569126a46cf75200e85be3ecb410fc64 | refs/heads/master | 2021-01-21T01:17:23.009494 | 2019-10-09T22:25:46 | 2019-10-09T22:25:46 | 22,963,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # This code is supporting material for the book
# Building Machine Learning Systems with Python
# by Willi Richert and Luis Pedro Coelho
# published by PACKT Publishing
#
# It is made available under the MIT License
# This script demonstrates the difference between the training accuracy and
# testing (held-out) accura... | [
"luis@luispedro.org"
] | luis@luispedro.org |
12ae02ddbb89a411f91a060815ce6dc4d0fb35e8 | 5a5eb1f043c529cc5d451c4da8475dabb048494c | /catkin_ws/build/hector_slam/hector_imu_tools/catkin_generated/pkg.installspace.context.pc.py | b46493ecdf54c1a5fb18a6333443a538110ad4da | [] | no_license | XiaoYunhan/Vincent | d865e1af8fe198d4ee2e79109fc64acbc4576883 | 4894cb966862029816a522adc89b9e03c820de90 | refs/heads/master | 2020-07-03T04:30:52.862219 | 2019-08-11T15:40:26 | 2019-08-11T15:40:26 | 201,783,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "hector_imu_tools"
PROJECT_SPACE_DIR =... | [
"2028427786@qq.com"
] | 2028427786@qq.com |
52b8eeb49579e8f4b716a86d3f2530a419da0a7f | 7056aa7d801b19e705f733db6a2113a39f27e234 | /python/app.py | e583679b973d1779ca9000c20db0db0984d96ebc | [] | no_license | markszechely/content-gitops | 997a9f4b20b9e37bfa1fa25213d368ccf7c13889 | f293647a6d1786b0120ed947ce3dad8c4bafc42e | refs/heads/master | 2023-06-19T01:21:47.014984 | 2021-07-12T12:55:20 | 2021-07-12T12:55:20 | 385,198,135 | 0 | 0 | null | 2021-07-12T12:25:57 | 2021-07-12T09:45:30 | Python | UTF-8 | Python | false | false | 177 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello LA students..."
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8000)
| [
"noreply@github.com"
] | markszechely.noreply@github.com |
ed1f5e3ec2f758d15da7f792256bafb01568a1ff | 82e2e318ae480e59a129ba31d5a79a3475a8fe73 | /cube_auto_rotate.py | b3a8054e13e1ce2212c2ab38389dae39df499f25 | [] | no_license | gluttony47/python-practice | bdcfc4981031b4e39bf680666b5040d27e770f33 | 6abe87075f7853bf1c088668b35b7ad384fc3cb3 | refs/heads/master | 2020-05-05T05:37:14.126224 | 2019-04-05T23:28:33 | 2019-04-05T23:28:33 | 179,759,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | ## importing modules
import pygame
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
vertices = (
(1, -1, -1),
(1, 1, -1),
(-1, 1, -1),
(-1, -1, -1),
(0, 0, 1)
)
## edge vertices description
edges = (
(0, 1),
(0, 3),
(0, 4),
(1, 4),
(1, 2),
(2, 4)... | [
"philmist@gmail.com"
] | philmist@gmail.com |
9806a2889ffd8af1d35bdfd67621b06f203d1dd9 | c53b3e120c59557daaa2fa5b7626413105eb5965 | /tendenci/apps/resumes/migrations/0002_resume_association_id.py | 9d8c58df4c2fd8fbc37a301dc162aced7be751e2 | [] | no_license | chendong0444/ams | 8483334d9b687708d533190b62c1fa4fd4690f2c | f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e | refs/heads/master | 2021-05-01T03:59:18.682836 | 2018-07-23T06:33:41 | 2018-07-23T06:33:41 | 121,194,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resumes', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='resume',
name='associat... | [
"chendong0444@gmail.com"
] | chendong0444@gmail.com |
693ee3203451ac350387ab5a02f912dc67b5bbed | b998c7550393b9aa469cde84bad421d9cbe87c45 | /proximity_widget.py | 43807e7ac321926c3e416e5a3a2e82398eef8e0a | [
"Apache-2.0"
] | permissive | negasora/proximity_graph | 84b4d306956812f0b176d9060756347314dc8ef0 | 5df1201a6c11559cf07d2306a1bb0626f664b088 | refs/heads/master | 2022-11-26T13:51:15.235499 | 2020-08-07T23:39:58 | 2020-08-07T23:39:58 | 183,114,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | from collections import defaultdict
from binaryninjaui import FlowGraphWidget, ViewType
from binaryninja import Function
from binaryninja.flowgraph import FlowGraph, FlowGraphNode
from binaryninja.function import InstructionTextToken, DisassemblyTextLine, Function
from binaryninja.enums import InstructionTextTokenType... | [
"negasora@negasora.com"
] | negasora@negasora.com |
a01a76518c57c2c50243b1d886052d3150c71b0e | 3da6b8a0c049a403374e787149d9523012a1f0fc | /Coder_Old/爬虫数据/news/news/settings.py | 8bb3db23bbe57c4bb90ee2d5415c41a313879b56 | [] | no_license | AndersonHJB/PyCharm_Coder | d65250d943e84b523f022f65ef74b13e7c5bc348 | 32f2866f68cc3a391795247d6aba69a7156e6196 | refs/heads/master | 2022-07-25T11:43:58.057376 | 2021-08-03T02:50:01 | 2021-08-03T02:50:01 | 348,922,058 | 3 | 3 | null | 2021-09-05T02:20:10 | 2021-03-18T02:57:16 | Python | UTF-8 | Python | false | false | 3,046 | py | # -*- coding: utf-8 -*-
# Scrapy settings for news project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics/d... | [
"1432803776@qq.com"
] | 1432803776@qq.com |
f26826fa4b56b1fe1686840c62f5adcc71d9d161 | c793a449c4a2aa227ce25a8e3e72146f98e26dc4 | /python/made_2020/d.py | cb082008bb1632722ed3eed8e436d99d6141a584 | [
"MIT"
] | permissive | holyketzer/ctci_v6 | 65ae4b000efc35222272cc7843ed7dd138d4827a | 8877093c3f6744887a4c04ffcdee44d3592170c8 | refs/heads/master | 2021-07-22T18:30:30.219531 | 2020-08-20T07:14:31 | 2020-08-20T07:14:31 | 204,212,301 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | import sys
def is_open_tag(tag):
return len(tag) > 1 and tag[0] == '<' and tag[1] != '/' and tag[-1] == '>'
def is_close_tag(tag):
return len(tag) > 1 and tag[1] == '/'
def convert_to_open_tag(tag):
return tag[0:1] + tag[2:]
def convert_to_close_tag(tag):
return tag[0:1] + '/' + tag[1:]
x = int(sys... | [
"holyketzer@gmail.com"
] | holyketzer@gmail.com |
8e396267e0d8e0ee2807aaf4f1eb912f1f152398 | 7069623dbf1f8cec1733955704ef91221499789b | /hippy/builtin_klass.py | eff2601e9ae7f29ff27036496840d9439c2c3bf7 | [
"MIT"
] | permissive | rlamy/hippyvm | 5bb9a4bfc5fbeeb61514c6b8ef0b29830b505f33 | c5aff3f7ffe963b2845550ad1688fbe2b5104ef1 | refs/heads/master | 2020-12-24T16:06:05.378843 | 2014-08-26T17:31:13 | 2014-08-26T17:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,771 | py | """ This module implements helpers for implementing builtin classes.
"""
from hippy.klass import GetterSetter, def_class
from hippy.builtin import wrap_method, Optional, ThisUnwrapper, Nullable
from hippy.objects.instanceobject import W_InstanceObject
from hippy import consts
class GetterSetterWrapper(object):
... | [
"fijall@gmail.com"
] | fijall@gmail.com |
9f7b8b024fc721abf2fca89d322f5068423d0bc7 | f139a99d51cfa01a7892f0ac5bbb022c0cee0664 | /Pythonlogy/draft/Adder/01_ExampleDoc.py | 55ec4b537c59fd5073243f672de6030d945b696f | [
"MIT"
] | permissive | Ledoux/ShareYourSystem | 90bb2e6be3088b458348afa37ace68c93c4b6a7a | 3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2 | refs/heads/master | 2021-01-25T12:14:34.118295 | 2017-01-12T14:44:31 | 2017-01-12T14:44:31 | 29,198,670 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 634 | py |
#ImportModules
import ShareYourSystem as SYS
from ShareYourSystem.Noders import Adder
#Definition an Tree instance
MyAdder=Adder.AdderClass()+[
[
('NodeCollectionStr','Tree'),
('NodeKeyStr','MyTuplesList'),
('MyStr','Hello')
],
{
'NodeCollectionStr':'Tree',
'NodeKeyStr':'MyDict',
'MyOtherStr':'Bonjour'... | [
"erwan.ledoux@ens.fr"
] | erwan.ledoux@ens.fr |
9f7a83c238900a1f3570eddb548aae958fc3ebf0 | 11d85b9e229521088eaead36140f593c18a5c7fd | /ResistanceModel/TextElement.py | 1608a2d1be69a754bcf04ab4129ef3c50b9da14c | [] | no_license | Ritten11/LAMAS2021 | 03ef83bbf96a0ee73adafd88012d542eb62f33b7 | 55ee618cecf35bb228442cf2173847b9da2f51f5 | refs/heads/main | 2023-06-05T10:06:28.640424 | 2021-06-25T12:09:15 | 2021-06-25T12:09:15 | 371,036,049 | 0 | 0 | null | 2021-06-25T12:09:16 | 2021-05-26T13:03:07 | Python | UTF-8 | Python | false | false | 574 | py |
from mesa import Agent
class TextElement(Agent):
def __init__(self, unique_id, model, description):
'''
An agent solely created for the purpose of adding text within the grid of the simulation. It has no other
purpose than being informational.
:param unique_id: Id of the agent
... | [
"ritten98@hotmail.com"
] | ritten98@hotmail.com |
f32a96ae5925a732bdf5a0d320c48011869dee45 | 05e859f77075cd4a469a3115a03c82748f6b684a | /cryptage/crypt.py | 3cf123770fd288ce53c6eeaa7cff19611a3dabbe | [] | no_license | Mistigrix/Crypto | 3312c1a87c7286e143366069dedce6b1e09a89d4 | 5739629196fbc8625a23c8e8f694ba8ec68973fa | refs/heads/main | 2023-05-15T21:49:21.040717 | 2021-06-04T08:04:18 | 2021-06-04T20:35:26 | 374,756,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # coding:utf-8
from constantes import *
class Cryptage:
"""Classe permettant de cryptage de fichier ou de message"""
def __init__(self):
pass
def lockMess(self, message, clef):
"""Methode permettant de crypter un message et retourne le message crypter
Paramètre: message à crypter ... | [
"irierayan@gmail.com"
] | irierayan@gmail.com |
3865c8dc73bf2c2a6ecc8a6eb39838dbb44b7e95 | 756a6a31ba96721ce0846094751eb0eaa1f5e7fd | /core/migrations/0009_auto_20191017_1747.py | 8ddb182f3a88d7f65973459699cf9acc40824421 | [] | no_license | 36Boxes/5starpropertymaintenance | 4f65f47a897b1edc98331aa2963c6bbf8edc4d22 | 56d47bd76488a0062ca4f75e2e7921d47dba6fc9 | refs/heads/master | 2022-03-18T22:15:08.230921 | 2019-10-18T13:37:35 | 2019-10-18T13:37:35 | 216,035,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # Generated by Django 2.2 on 2019-10-17 17:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20191017_1738'),
]
operations = [
migrations.RenameField(
model_name='before_an... | [
"46636974+36Boxes@users.noreply.github.com"
] | 46636974+36Boxes@users.noreply.github.com |
f4aa1e2ef414ef15547121af46b5fc9fcebbe9ca | c5663f82e382fc203cd1748a6386fd51e723a040 | /NlpBase/test.py | 3ae2fdde1ef19e977a546be56f4078286e222178 | [] | no_license | gl-coding/OpenBaseCode | c7d8aaff255acc3de77ee760739504c3f3c80a10 | 14ce620291e67aa0d31b5fb63c5745b1f5512d64 | refs/heads/master | 2020-11-24T18:41:30.788494 | 2019-12-23T06:00:56 | 2019-12-23T06:00:56 | 228,295,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #encoding=utf8
from service_jieba import *
if __name__ == "__main__":
#test data
s = u'我想和女朋友一起去北京故宫博物院参观和闲逛。'
cuts = jieba.cut(s.strip())
#test case
#cixing_dic = load_cixing_ch("./cixing.dic")
#load_stop_words("./stopword.txt")
remove_stopwords(cuts)
| [
"1451607278@qq.com"
] | 1451607278@qq.com |
f70d7614a6afa47c081519fa0f35eecb2d78171c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5648941810974720_0/Python/asikowitz/base.py | d74480f407445e0c560bfb4baab19db770a191eb | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | inp = open("A-small-attempt0.in","r")
out = open("a0.out","w")
def readline(f):
return f.readline().strip()
n = int(readline(inp))
for case in range(n):
s = readline(inp)
ans = ""
def zero(s):
global ans
c = 0
while (s.find("Z") != -1):
s=s.replace("Z","",1)
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
ff0be3e5c5011f111fbc44a6dc7e311ec6dd177d | 6b46331618b432795f148a2a44cd8ae41ee73373 | /tests/left_tests/folder_tests/test_definition.py | 0b71eded54c7613c93bc9894023c02ed476c8ea8 | [
"MIT"
] | permissive | lycantropos/lz | 325530a63680fa1a52f7455ff4152df86d073fdf | a9c204ebe8620b1237c65178e83a5dac2be7255b | refs/heads/master | 2023-03-07T18:56:21.468639 | 2023-02-23T23:36:34 | 2023-02-23T23:36:34 | 132,186,508 | 7 | 0 | MIT | 2019-12-22T09:53:21 | 2018-05-04T20:33:42 | Python | UTF-8 | Python | false | false | 991 | py | from hypothesis import given
from lz import (left,
right)
from lz.replication import duplicate
from tests.hints import LeftFolderCall
from tests.utils import are_objects_similar
from . import strategies
@given(strategies.empty_folder_calls)
def test_base_case(empty_folder_call: LeftFolderCall) -> Non... | [
"noreply@github.com"
] | lycantropos.noreply@github.com |
81c35a41e0a045ec59debf61bbb167737cfb4083 | 597001e5134ac597e7f2701cfaabfde58d8d82c2 | /html_parser.py | fc5b70c1fc0823bc0dfbb4d77e6d8ca99ab65a6c | [] | no_license | ranmx/ToolBox_python | 79940a3bbc55e211b779841071c19c6fea3f381e | 5e8ea9b4cabc79f412c030a080d0727429dcb7e5 | refs/heads/master | 2021-06-08T11:26:28.833382 | 2016-10-31T06:01:05 | 2016-10-31T06:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | class HTML(object):
def __init__(self):
self.body = ''
class Table(object):
def __init__(self, attrs=None):
self.table = ''
self.attr_len = 0
if attrs is not None:
self.table_create(attrs)
def __str__(self):
return self.t... | [
"noreply@github.com"
] | ranmx.noreply@github.com |
d1175e336af81fa2abba853f6f35ad2ce6f411bf | d735694b03c63cf8facda84e1d926f8cebdf3f99 | /Ejercicio3-1.py | d0cfde94083534d19d7546b5a910d41c643f655e | [] | no_license | MauroLG/ejercicios-python | 2243ecedf510596e9207a3093d7f5a0fca23a4ab | a32236eb29e1ed6a5c49bb8442578f19d64ac633 | refs/heads/main | 2023-07-14T06:43:29.766603 | 2021-08-18T20:15:12 | 2021-08-18T20:15:12 | 397,723,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import math
# Ejercicio 3.1a
def intervalo_a_seg(h, m, s):
s += h * 3600
s += m * 60
return s
# Ejercicio 3.1b
def intervalo_a_hms(s):
total_s = s
h = round(math.modf(s/3600)[1])
m = round(math.modf((math.modf(s/3600)[0]*3600)/60)[1])
s = round(math.modf((math.modf(s/3600)[0]*3600)/60)[0]... | [
"maurogheco@gmail.com"
] | maurogheco@gmail.com |
8089fe4de34510647070bf8e5e00c7aaa2371e66 | 15f6e61d9ee8542d9feda70c3cf17d8c5028ef44 | /validate_getattr.py | e1b1efb35fe7a8a2d96885ba03cc3f26bd87efbe | [] | no_license | pniewiadowski/learing_python | e6446783dbef6105d026b94ec4b1ac8ce5c46ae9 | ef12d299da40ec99b1d4550e1e2c2264c6c4dea5 | refs/heads/master | 2020-06-18T15:19:01.172124 | 2018-02-21T20:24:35 | 2018-02-21T20:24:35 | 94,167,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | class CardHolder:
acctlen = 8
retirage = 59.5
def __init__(self, acct, name, age, addr):
self.acct = acct
self.name = name
self.age = age
self.addr = addr
def __getattr__(self, item):
if item == 'acct':
return self._acct[:-3] + '***'
elif ite... | [
"niewiadowski@gmail.com"
] | niewiadowski@gmail.com |
ab813a77be5a81313190f7803ab9e57268e43c88 | d0677b27a5360651c5ca491cf566207810e57639 | /pterasoftware/steady_horseshoe_vortex_lattice_method.py | 629d5048b1f5464fd82b227ac6a8f519972599cd | [
"MIT"
] | permissive | Haider-BA/PteraSoftware | a0e9a73b7474a379cf1fbc686042ec9e3b52d4c5 | 06b62a78e1da04975d115af2d7b95434ab9cc550 | refs/heads/master | 2023-09-02T20:05:12.799392 | 2021-10-27T05:23:28 | 2021-10-27T05:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,221 | py | """ This module contains the class definition of this package's steady horseshoe
vortex lattice solver.
This module contains the following classes:
SteadyHorseshoeVortexLatticeMethodSolver: This is an aerodynamics solver that
uses a steady horseshoe vortex lattice method.
This module contains the following ex... | [
"camerongurban@gmail.com"
] | camerongurban@gmail.com |
84829197581dab53cc849f2dd19f3832c32eded1 | e8fad6e19d96b142f9d15e836b964b187a066777 | /FilterPosition.py | 737e954252f0bca21e57d5c02f2213063c226070 | [] | no_license | RABKKK/CenterAxis | 348daacb247926e180622fbf2a633bc58e4f1b20 | 176839251dc2bce41b314270c7d1c24b89e391ce | refs/heads/master | 2020-11-30T00:08:16.579525 | 2020-01-10T07:08:17 | 2020-01-10T07:08:17 | 230,247,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
#import math
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
posmat=np.genfromtxt('Position.csv')
refposmat=np.array([])
for val in posmat:
if val[2]>0:
if refposmat.shape[0]==0:
refposm... | [
"noreply@github.com"
] | RABKKK.noreply@github.com |
3597810923be7e5ba27e70e1a7d632e48b3f4bfd | f225049121c2a7b1cc0e0e3e1dff038343796829 | /GetComputeComplexity.py | 01119915c32d8c6b90de6a7ef9a55cbe40b35341 | [] | no_license | GulshanSaleem/Surveilia | 225602800d2fc74e80ca906b52468608b78e54b1 | a4e1138f646658945b2eb4e0ee9e99260c69951e | refs/heads/main | 2023-04-15T05:03:13.379710 | 2022-09-04T03:08:26 | 2022-09-04T03:08:26 | 476,690,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # performance metrics
import torch
from ops.models import TSN
from ops.transforms import *
from ptflops import get_model_complexity_info
this_weights='checkpoint/TSM_ucfcrime_RGB_mobilenetv2_shift8_blockres_avg_segment8_e25/ckpt.best.pth.tar'
#this_weights='checkpoint/TSM_ucfcrime_RGB_resnet50_shift8_blockres_avg_se... | [
"noreply@github.com"
] | GulshanSaleem.noreply@github.com |
4253fd5f2ff9e52127da94da2d9d23cc343574be | d06644461b679a08b98d0da9bed9781c0ed2ffba | /DocumentClassification/code/__init__.py | 6848590808e833a64d563fff646299be0d119d78 | [] | no_license | xxx0624/QA_Model | e9478e67576bbd023ec5f8dcdff02e16d8b113b3 | 6b72e6d4049bd1cc526dda6e024ef63783f790b4 | refs/heads/master | 2021-06-05T00:05:06.912489 | 2019-03-05T03:09:29 | 2019-03-05T03:09:29 | 96,797,586 | 23 | 4 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | __author__ = 'xing'
a={1:2,3:4}
for k in a:
print k | [
"xzheng0624@gmail.com"
] | xzheng0624@gmail.com |
afcbf7fadfed65175c99e47818275c1d00e368d4 | 02267c8104c951faf4fee48f525225b7f605d9ee | /venv/Lib/site-packages/gslib/tests/testcase/integration_testcase.py | 15f488b31f4c5fe40a2cff72bf2b62f9c382189d | [] | no_license | zakaria6193/examproject | 9c559df703bb03ce993f4ca0666c3f56f1b8b12b | b07f3a2e795f8efb1d9bdd2aaa677352279176a4 | refs/heads/master | 2023-06-03T12:13:24.627470 | 2021-06-19T20:22:42 | 2021-06-19T20:22:42 | 378,498,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,345 | py | # -*- coding: utf-8 -*-
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"afif.zakaria1997@gmail.com"
] | afif.zakaria1997@gmail.com |
162d2cbb02462b15ffcb61197211d4d535f9ee79 | 2df257136428898816895dc303d3b9b3e4b9b853 | /blog/blog/urls.py | 97917052f02a52114169ff401780150906260513 | [] | no_license | Arkaim/Endterm | d4dd5afea0efdcbbab2bf465bdd5d27665181b9e | 96f1a72838943b2f829a3412431b6e1fe74cbdc3 | refs/heads/master | 2020-03-11T23:02:07.989841 | 2018-04-20T06:50:42 | 2018-04-20T06:50:42 | 130,310,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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 vi... | [
"kaimbayev@gmail.com"
] | kaimbayev@gmail.com |
486d1b61f79a31a74f2983f06dff9745c4743031 | 4899940597a48d28c01fdffbe66e098543ee43f8 | /experiment_v2/train_daegc.py | a31b2c8132a0ad05e82701e3ff875c164d8026f2 | [] | no_license | BigPig-LittleTail/clean_dp | d7a0f8af6ea0808c252580a8e0c7239fa66535d7 | 47113cd2393b800fe15390b81d99f1098212913a | refs/heads/master | 2023-05-03T17:04:02.619923 | 2021-06-02T11:08:27 | 2021-06-02T11:08:27 | 372,802,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | py | import sys
import os
import argparse
import torch
import numpy as np
import torch.nn.functional as F
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from sklearn.cluster import KMeans
from torch.optim import Adam
from torch_geometric.nn import GAE
from torch_geometric.utils import to_undirected
from model... | [
"1070437907@qq.com"
] | 1070437907@qq.com |
236c1bb3ab27151734793ded3b60b40ee401d7e3 | 41df5552f879a8ed4f4ec7f3e2f5b50958bac4af | /lib/python3.4/site-packages/parsel/selector.py | 282f2e130ec876b06b50a03903f3f7e79390bc51 | [] | no_license | pengye91/py3_spider | cc1d3fb526b0d9b031e77dc65c386b0aae486c72 | 9e4a519aebaf1707aed0707e1ff925459d4105be | refs/heads/master | 2016-09-13T03:34:16.110251 | 2016-04-24T08:52:05 | 2016-04-24T08:52:05 | 56,961,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,837 | py | """
XPath selectors based on lxml
"""
import six
from lxml import etree
from .utils import flatten, iflatten, extract_regex
from .csstranslator import HTMLTranslator, GenericTranslator
class SafeXMLParser(etree.XMLParser):
def __init__(self, *args, **kwargs):
kwargs.setdefault('resolve_entities', False)... | [
"pengye91@hotmail.com"
] | pengye91@hotmail.com |
119415bc326dbc3ad52fff959dd118ea2bbd69bd | 5ddc0cc9a788cc51cebe5407d1ea3a16203835ca | /sunshine_conversations_client/model/quoted_message_message.py | fec16d4e0408e9e25574a1016559d532e47c3b38 | [
"Apache-2.0"
] | permissive | pizanao/sunshine-conversations-python | 117f18d48ecd772114853a1b1551883f7f2d1d76 | 28c710c36344d50ffa26c953c6e9ee6815f2b211 | refs/heads/master | 2023-08-13T22:09:35.470568 | 2021-09-28T17:18:04 | 2021-09-28T17:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | # coding: utf-8
"""
Sunshine Conversations API
The version of the OpenAPI document: 9.4.5
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from sunshine_conversations_client.configuration import Configuration
from sunshine_conversations_client.undefine... | [
"zendesk-ops-ci@zendesk.com"
] | zendesk-ops-ci@zendesk.com |
a498d8e90a7422320e43f47cf9b9ea43862a41fe | d371b8e4c6d19a4ca7c75145b642940221072b5c | /prac1.py | a92a59615c92a86b91bbd242c79169e984b4b628 | [] | no_license | jaypal1046/IotPrac | 77357e25686064d2b0043ab3575c21d5e53c665b | e2b47b975fa92fd3a282019325b1cb017e5ac3bd | refs/heads/master | 2022-12-25T09:42:13.906547 | 2020-09-14T06:48:41 | 2020-09-14T06:48:41 | 295,312,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import telepot
token = '1212487782:AAFiqI9MymcNubUOoo9TzGCVE0OyCOsa_r4'
TelegramBot = telepot.Bot(token)
print(TelegramBot.getMe())
def handle(msg):
content_type, chat_type, chat_id = telepot.glance(msg)
print(content_type, chat_type, chat_id)
if content_type == "text":
TelegramBot.sendMessage(cha... | [
"noreply@github.com"
] | jaypal1046.noreply@github.com |
0e165c9f0d837468b9a0c6dcaa7e10a3fe342087 | 76df8b5fbbafaafeba585db013f29fb05427df44 | /LIST_TUPLE.py | f4081f88485ccb69a1673f350084e0c6deb95d79 | [] | no_license | rfsip/learnpython | f911750719e8314d4440380890b023c5e04bee9b | ffecdb2ca1d169741948b9eeab6a38ecbfaa3687 | refs/heads/master | 2021-01-20T12:22:59.619955 | 2017-06-02T12:51:26 | 2017-06-02T12:51:26 | 90,357,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | #coding:UTF-8
'''
list是有序集合,可更改元素。len()获得个数。
l[n]索引值0~n-1,可为负数,-1表示n-1。
list函数:
l.append(x):追加x到列表末尾。
l.insert(索引号,x):在指定索引号插入x, 原该索引号及以后的元素依次后移。
l.pop(i):删除指定位置的元素并返回被删除元素。默认为最后一个。
l.sort(reverse=0/1):排序,参考值可选,默认正序。
**对于可迭代对象采用sorted()全局函数。
l.index(x):返回第一次出现x的索引值。
l.count(x):返回x在list中的数量。
l.remove... | [
"rfsip@outlook.com"
] | rfsip@outlook.com |
1ded337a5ffdfb6cfa5b77d979c6e05e6b0f2bce | 12420f2f97277e3dda4bfba9b101448616bbfc76 | /Second_attempt_Exercise7.1.py | 38a7b5e20b9bfdc67d086f5a9231bb935b534982 | [] | no_license | Environmental-Informatics/building-more-complex-programs-with-python-Gautam6-asmita | 171585d8b038d0c56e608bdf8cf27365281918e0 | fbd319dd09fda955dfbda47beb7b8718755c7183 | refs/heads/master | 2020-12-19T21:03:57.253160 | 2020-03-08T19:22:44 | 2020-03-08T19:22:44 | 235,852,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Created on 2020-01-24 by Asmita Gautam
Assignment 01: Python - Learning the Basics
Think Python Chapter 7: Exercises 7.1
##To make the table as given in 7.1
Modified for resubmission on 2020-03-04
"""
"""
Importing the required module math, which allows for doing ... | [
"noreply@github.com"
] | Environmental-Informatics.noreply@github.com |
78c4802a1bfdcd6878a1375099b9dce3165985b3 | 0153b5eae4fa4ee1b04dbab75c1bd71c799f773f | /bucles_while_6_VII.py | 4bc60e489389c7d37bce6ee82d97dd59859cc6b1 | [] | no_license | dasafo/Python | deab015777792f55c85c2758cf529c4486efdb13 | 00839b819abd60af981bfed6446d5b154d98ed40 | refs/heads/master | 2022-01-07T17:33:22.699096 | 2019-07-25T09:09:51 | 2019-07-25T09:09:51 | 155,708,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import math
print("Programa de cálculo de raiz cuadrada")
numero=int(input("Introduce un numero ostias: "))
intentos=0
while numero<0:
print("No se puede hallar la raiz de un numero negrativo")
if intentos==2:
print("demasiados intentos bye bye")
break;
numero=int(input("Introduce un numero ostias: "))
if ... | [
"dasafo1985@gmail.com"
] | dasafo1985@gmail.com |
f7fff813f7ca53db6b298e1ecfd99d606882e9c2 | 768727ae72be16afd27c54ac22227e160fa457bd | /angr_ctf/scaffold06.py | cb68005dc05028264494a427c1ffc5566404ad21 | [] | no_license | Reijaff/CTF_reverse | 3279798b9e6b06315834d19c8f7700521301ecd6 | 2201297203bd480b73c4baf716f0bf57cf929c3d | refs/heads/master | 2020-06-24T17:36:28.539068 | 2019-12-01T16:42:32 | 2019-12-01T16:42:32 | 199,032,380 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | import angr
import claripy
import sys
def main(argv):
path_to_binary = argv[1]
project = angr.Project(path_to_binary)
start_address = 0x8048699
initial_state = project.factory.blank_state(addr=start_address)
# The binary is calling scanf("%8s %8s").
# (!)
password0 = claripy.BVS('passwor... | [
"interlord406@gmail.com"
] | interlord406@gmail.com |
7d93d4dcf5fdb754a691c73ec36aa5a0525aed3b | 54f406f134a000c4b92edebc6b888e343c39a105 | /3_aggregate_count.py | 1111dd414a80964c8e1ef18643c5537210d40eef | [] | no_license | wattlebird/KaggleTalkingData | 6f44ef2398d2b9f61690d8f3a836f3b8a0ffd792 | bc5c4fdadf61c269405a7fb90f8f4ed6c40d102e | refs/heads/master | 2020-03-08T21:13:09.688937 | 2018-05-05T00:38:31 | 2018-05-05T00:38:31 | 128,402,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,103 | py | import pandas as pd
import numpy as np
from setting import *
import gc
gc.enable()
dtype={
'ip' : 'uint32',
'app' : 'uint16',
'device' : 'uint16',
'os' : 'uint16',
'channel' : 'uint16',
'hour' : 'uint8',
'click_id' : 'uint32',
... | [
"geniusxiaoguai@gmail.com"
] | geniusxiaoguai@gmail.com |
db8b1e3552c89679bea007f10213550429f8d25f | 1869948448dd20a4abb309d2c35b58c6ede816d6 | /binary/_mac/pandoc/pandoc.py | 3d00f1104d2a6d7c87cd53aa4385b474634b9100 | [
"BSD-2-Clause"
] | permissive | sklnet/craft-blueprints-kde | 52a5637adab75b30a90a79bbfcf31626267da5d9 | b07b8736b2b6686b447956fa09e4b9ade7284401 | refs/heads/master | 2022-12-30T01:32:59.744929 | 2020-10-18T07:20:54 | 2020-10-18T07:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | # -*- coding: utf-8 -*-
import info
class subinfo(info.infoclass):
def setTargets(self):
versions = ["2.9.2.1"]
for ver in versions:
self.targets[ver] = f"https://github.com/jgm/pandoc/releases/download/{ver}/pandoc-{ver}-macOS.zip"
self.targetDigestsX64["2.9.2.1"] = (['c4847f7a... | [
"thomas.friedrichsmeier@kdemail.net"
] | thomas.friedrichsmeier@kdemail.net |
1682abe6e823855c668cc36f52c5e2edd2c0f47c | d08de24371daf54419ebd430e232ae0e92c6b262 | /api/migrations/0004_auto_20201001_1820.py | 872e6f4ae6deb7994595520b03d0a89d5d309cb9 | [] | no_license | iTh1nk/server-portfolio | 3baad63e78f00344e95178ec9483ccda89ff41c2 | d00a46dcec16ce1f6aee7755fa65361e0cf01b6e | refs/heads/master | 2022-12-22T21:24:54.271556 | 2020-10-05T05:37:10 | 2020-10-05T05:37:10 | 299,807,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # Generated by Django 3.1.1 on 2020-10-02 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20201001_1751'),
]
operations = [
migrations.AlterField(
model_name='message',
name='created_at',
... | [
"fnchao@hotmail.com"
] | fnchao@hotmail.com |
2916662efe193673fd0888fc719d215581ecaee1 | c6c45b4f3f06a8f7a23235d396acbe66b599a303 | /graphgen.py | 198beabbc90784be06870b1bb0e6ec0962953945 | [] | no_license | ivanpostolski/sed2017 | 77033485f747fd29a0f0d18d49ce197918875531 | 9f5856ec2941235ab90d96fd7799b7fb79dbd624 | refs/heads/master | 2021-07-04T20:32:47.609296 | 2017-09-25T20:12:34 | 2017-09-25T20:12:34 | 104,384,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import random as rnd
import networkx as nx
from networkx.utils import uniform_sequence, create_degree_sequence
import sys
def printma(CM,infect=[]):
#prelude
print "[top]"
#components
components = "components: "
nodes = CM.nodes()
for n in nodes:
components += "node%d@persona%d " % (n,CM.degree(n) if CM.degr... | [
"ivan.postolski@gmail.com"
] | ivan.postolski@gmail.com |
346e11a0107d50cc89d7540ea87bb1c421c330ac | 8a95359a35ee57bf87f64bb49b2552adfbdac9fd | /2015/day02.py | d72721dae6f489ea41b99f038d4c0e7706109cd7 | [] | no_license | ekuns/AdventOfCode | f0461b60d77cdb08e4a877bf13a7bd847168e043 | fa17fcca93e5ff4684a37b75997383f9a883cf83 | refs/heads/master | 2020-08-08T04:36:13.314391 | 2019-10-11T03:16:52 | 2019-10-11T03:16:52 | 213,715,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | f = open("input02.txt", "r")
lines = f.readlines()
f.close()
print('Number of lines: ' + str(len(lines)))
paper = 0
ribbon = 0
for line in lines:
items = [int(i) for i in line.split('x') if 'x' in line]
if len(items) < 3: break
items.sort()
l, w, h = items
sides = (l*w, w*h, l*h)
paper += sid... | [
"eddie.kuns@gmail.com"
] | eddie.kuns@gmail.com |
2b1bedb198e506521c38280ccfe2c01b71ccd450 | 2d5470377cf53854eb7e899c2cb0c3aecd9505b8 | /constants.py | 7a7cac32d7bd31fc360828e98797b278f63a2fa2 | [] | no_license | ammarinjtk/Neural-Relation-Extraction | ed565b5b56b38345d53fb5b5b26eda5392d95380 | 4fbf77e728bb21c0cf5ddb39c1e9fd33acead2cc | refs/heads/master | 2020-04-09T19:52:43.925779 | 2019-12-12T03:39:22 | 2019-12-12T03:39:22 | 160,556,429 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | WORD_EMBEDDING_DIM = 200
POS_EMBEDDING_DIM = 100
DISTANCE_EMBEDDING_DIM = 300
DEPENDENCY_EMBEDDING_DIM = 300
UNKNOWN_WORD = '_UNK_'
PADDING_WORD = '_PAD_'
ELMO_EMBEDDING_DIM = 400
BERT_FEATURE_DIM = 768
# SEED = 239387
SEED_LIST = [345, 166977, 239387, 240825, 250906, 290780, 312510, 439708, 489995,
5... | [
"ammarinjtk@outlook.com"
] | ammarinjtk@outlook.com |
900ce326d55c5c3faef62bdd31921280baddee7a | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/tests/repo_utils/test_tests_fetcher.py | 0541b72d9581f1fd8b9c1808637c7dcc534b90d8 | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 2,759 | py | # Copyright 2022 The HuggingFace Team. 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 applicabl... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
b02300f7f4d44d5f678fb6c496e47722a709a37a | 9ddf25b50d7ac91a6e17566e5dcfd477c7d1ad2d | /catkin_ws/devel/lib/python3/dist-packages/shoulderexo/msg/_Torque.py | 065551410c9a3687b9e48c3b87a3b8bdc8686442 | [] | no_license | yuihjk7412/ROS_FRAME_FOR_EXO | 3679ee436430f14dffdcbb479ec4eb2cb088ac71 | e119e8a0969ddfbb10bb354ff57974b241d48ed4 | refs/heads/master | 2021-07-08T00:31:09.844979 | 2020-10-22T09:27:30 | 2020-10-22T09:27:30 | 199,652,574 | 0 | 0 | null | 2019-09-05T03:34:23 | 2019-07-30T13:00:50 | Makefile | UTF-8 | Python | false | false | 3,932 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from shoulderexo/Torque.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Torque(genpy.Message):
_md5sum = "67e3a742abd7e4b159e23cb00d1df783"
_type = "shoulderexo... | [
"514522970@qq.com"
] | 514522970@qq.com |
99d35785724da17460e3fe45148f72499f12b4aa | b483c598fa375e9af02348960f210b9f482bd655 | /cursoemvideo/desafios/Desafio049.py | f63ec756f03b607ef01a6eddcbbbbe52a49e72ab | [
"MIT"
] | permissive | brunofonsousa/python | 6f766d08bf193180ea9a4903cb93ffd167db588d | 8f2f26c77015c0baaa76174e004406b4115272c7 | refs/heads/master | 2022-09-30T14:58:01.080749 | 2020-06-08T09:55:35 | 2020-06-08T09:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | '''
Exercício Python 049: Refaça o DESAFIO 009, mostrando a tabuada de um número que o usuário escolher, só que agora utilizando um laço for.
'''
n = int(input('Digite um número para sua tabuada: '))
for i in range(1,11):
print('{} x {} = {}'.format(n, i, n*i))
| [
"brunofonsousa@gmail.com"
] | brunofonsousa@gmail.com |
a25b814d42997df433f9921542984d2788f3e6b0 | a74fb42803de854f321b40bf55a07007580321b8 | /test_file.py | e855cda8d95cdb35848d138e44dacf43e5af8541 | [] | no_license | pritishyuvraj/learning_git | 7b756e87d394c93ce6149498be6fb472f79e3e3e | 90453079672af676db26ecbf83f912f66ef85905 | refs/heads/master | 2020-03-22T00:08:31.271774 | 2018-07-09T03:38:41 | 2018-07-09T03:38:41 | 139,226,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | a = 2
b = 4
c = a + b
print (c)
d = c + 1
e = d + 1 | [
"pyuvraj@fb.com"
] | pyuvraj@fb.com |
1ea24b35a310c4d10a022d73322a3be2200f596f | e4ff7740492da84d4bfda5ffc51887921a52c865 | /ear/models/resnet.py | 7cf1b16a6d3fd6fa29df701ed81f7c38f22a5b2e | [] | no_license | daiguoxi/Demo_ear | a8bc33ee513f6663b49059e3e7da19104ababb67 | 3c0d031733c9428d96c5e26a6c50ad50f6f372e3 | refs/heads/master | 2023-05-07T02:03:27.416169 | 2021-05-28T12:28:25 | 2021-05-28T12:28:25 | 371,668,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,530 | py | # coding = utf-8
# @File : resnet.py
# @Cont : resnet网络结构
import torch
import torch.nn as nn
# 调用从url网址加载网络参数的函数
try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url
# 不同的网络名称
__all__ = ['ResNet', 'resnet18', 'resne... | [
"daiguoxi@gmail.com"
] | daiguoxi@gmail.com |
2342cdb977881b769c979d66492d5f5164debdee | 1fbb4bd8aefa855c3c9181c3bc490f5131151a71 | /test_snippets/parentFolder.py | 692f49c7c84cf29e4de97499fe93ea4b182b2589 | [] | no_license | thesraid/pyvmomi | e600a24a79b2bcc94e2f9057e0f6680437acb50d | 250d076c2cc4904707d64bcc485aaf120c6c55f9 | refs/heads/master | 2021-06-10T11:40:47.867044 | 2020-07-09T09:40:33 | 2020-07-09T09:40:33 | 90,965,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | #!/usr/bin/env python
"""
Program to authenticate and print VM details
"""
import atexit
import argparse
import getpass
# Ignore SSL warnings
# http://pyvmomi.2338814.n4.nabble.com/Connect-to-esxi-host-with-self-Signed-certificate-td21.html
import requests
requests.packages.urllib3.disable_warnings()
import ssl
tr... | [
"noreply@github.com"
] | thesraid.noreply@github.com |
c443aeb9fd5b230fe86f42e359139ce8be319587 | 6f9533673f3349801141c3899fe5d090dd55c7bb | /user/Matt/changeSpeedOfficial.py | 3dafbc55c1459810cc0ee3d9849a65916418971c | [] | no_license | henokalem/teamge | 60ece1636aed22932bd65c5c3ff6e04730a67a9d | 0e54c058afc2d746d5fd70f0fedcd425eda19b9d | refs/heads/master | 2021-01-11T15:45:50.796048 | 2019-01-09T19:14:10 | 2019-01-09T19:14:10 | 79,923,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import changeSpeed
import sys
test = changeSpeed.speedChanger()
test.changeSpeed(sys.argv[1],sys.argv[2])
| [
"msopata59@gmail.com"
] | msopata59@gmail.com |
11b025858233eaea3f653c54b4de638aa117c62a | 8acd3e44316a0ff955f0d21470f3e60ae9ab8095 | /BFS.py | 350b0acfddfc6ae2c78f2c0791ce7093744231dd | [] | no_license | hchs710623/test-py | d4aac24ae85f2f64034d0cf79856b9842c60a338 | 40a2f4aec77b5675923c3e2b63acc58f0500143b | refs/heads/master | 2020-03-24T09:57:44.545403 | 2018-09-19T16:45:51 | 2018-09-19T16:45:51 | 142,643,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import collections
import itertools
class Solution(object):
def shortestPathAllKeys(self, grid):
R, C = len(grid), len(grid[0])
# location['a'] = the coordinates of 'a' on the grid, etc.
location = {v: (r, c)
for r, row in enumerate(grid)
for c, v in... | [
"mylin.cs04g@nctu.edu.tw"
] | mylin.cs04g@nctu.edu.tw |
bf069a215b11a3007349f39443a33af4924f4ac9 | fa4aaaa682b9f947260699cef2cccd936bdbd185 | /pro_minimized.py | 9269377845980249da6feb133b143caff4d98d34 | [] | no_license | ravikiranrao/metamath | b294ee85c58e793892408bb606deba7bfbd18162 | e85250fc81dcd8d5495f7f8ee644d30cf9351674 | refs/heads/master | 2021-09-27T18:46:05.175817 | 2021-09-27T15:18:53 | 2021-09-27T15:18:53 | 157,056,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | py | import networkx as nx
import re
import matplotlib.pyplot as plt
import PyPDF2
from networkx.algorithms import community
from collections import Counter
# Defining variables
G, G1, G2 = nx.DiGraph(), nx.DiGraph(), nx.DiGraph()
pdfFileObj = open('WebPage.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
pages = p... | [
"2014csb1027@iitrpr.ac.in"
] | 2014csb1027@iitrpr.ac.in |
3d272deaf1fb9734514e093b81f139fef41c0ff6 | 08c382c2cf8cace902ade2a3d33b3abab3629e9b | /fb_api.py | da8712cd2ff361045352f744da703fa2ec6f82df | [
"BSD-3-Clause"
] | permissive | wing3s/shop_bot | 4d1966fef32a38f6128f82bf70bbc515deda577f | 4c6a34538ac8de9999edae190f6269bc6a63c2cf | refs/heads/master | 2021-01-10T02:20:02.953645 | 2016-04-11T01:06:04 | 2016-04-11T01:06:04 | 55,930,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | import os
import requests
import time
import ConfigParser
import logging
import logging.config
from requests.exceptions import RequestException
from helper import get_logger, base_path
config = ConfigParser.ConfigParser()
config.read(os.path.join(base_path, 'config.ini'))
logger = get_logger('fb_api', __file__)
__au... | [
"wing3s@gmail.com"
] | wing3s@gmail.com |
bfe5bc53944a45e3c846724c381e265f586251a1 | 74577eb1ba5f1e01d5f651880b28f7872e2ee422 | /lib/datasets/decoder.py | 61942440dee614f9bf01216b369f6c62f6924982 | [
"Apache-2.0"
] | permissive | CV-IP/mgma | 5b06ec149bfb6f31a0e638676d633e1f454e790b | 4007b9b0a86b3b926bb7de6a017679b58ea319cf | refs/heads/main | 2023-06-19T09:25:23.464106 | 2021-07-18T17:00:47 | 2021-07-18T17:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,468 | py | # Code adapted from:
# https://github.com/facebookresearch/SlowFast
import math
import numpy as np
import random
import torch
import torchvision.io as io
def temporal_sampling(frames, start_idx, end_idx, num_samples):
"""
Given the start and end frame index, sample num_samples frames between
the start an... | [
"zhenshengshi@gmail.com"
] | zhenshengshi@gmail.com |
2241a4a393031facd3ede7fd7fd26b94149db3f8 | 46ce7046c5b3d33c12abda3f82002145b433884e | /macro.py | f19380873974c8ee001e2252503b8d40028f9197 | [] | no_license | htsrjdrouse/labbot_pcr | f5386bfef8891007b4d57b11a1e1da97d8a84c0a | ec54996e0f60b0c593835e36f016c8e449d719f2 | refs/heads/master | 2023-08-21T21:39:31.565620 | 2020-09-10T03:14:11 | 2020-09-10T03:14:11 | 285,470,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | #runeachmacrocmd(i,dser,aser)
def runeachmacrocmd(cmd,dser,aser):
sim = 0
if len(cmd)>0:
if re.match("^G1",cmd):
gss = re.split("_", cmd)
gcodecmd = gss[0]
tme = gss[1]
if float(tme) < 0.2:
tme = str(0.2)
if sim == 0:
#sersmoothie.readlines()
dser.write(gcodecmd+"\r\n")
t... | [
"rjdrouse@htsresources.com"
] | rjdrouse@htsresources.com |
1ed28b7939bf6d05618bd755d4ec4e877c264f2e | 99e20672172fb118c2529d85f277134049d433c0 | /ex23.py | c998a43bc2ce5b3a6814700b3ce75d78b54d7070 | [] | no_license | jamesmacak/learn-python | 7b6e7fa50b9723261f6081baa50658cc10c01900 | b19902de84e0bbd63162623e57336b62878074e1 | refs/heads/master | 2020-04-13T12:14:32.836765 | 2019-02-08T02:37:47 | 2019-02-08T02:37:47 | 163,196,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import sys
script, input_encoding, error = sys.argv
def main(language_file, encoding, errors):
line = language_file.readline()
if line:
print_line(line, encoding, errors)
return main(language_file, encoding, errors)
def print_line(line, encoding, errors):
next_lang = line.strip()
raw_bytes = next_lang.enco... | [
"26549968+jamesmacak@users.noreply.github.com"
] | 26549968+jamesmacak@users.noreply.github.com |
f7577561d9f52a1764bc894694c3c2e5d6eeffb2 | c910f446a630c2d8a6f20c98b0e40c59edd35453 | /model/processing/utils/plot_WRF.py | 946069585359948e46cb264dbf1047b8469e1741 | [] | no_license | percylink/wind-thesis | efd94f92cc776e9e55f877eb6a3dc7d2fb5c3bfe | d05c75e5cfb46324d591707bdd034105ed1df7d5 | refs/heads/master | 2020-05-19T22:27:20.032299 | 2015-01-04T20:21:25 | 2015-01-04T20:21:25 | 22,615,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,807 | py | '''
PAL 5/8/2013 mod Aug 2014
make WRF plots in map perspective
'''
import cPickle
import datetime
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from mpl_toolkits.basemap import Basemap
import numpy as np
import os
from scipy.interpolate import interp2d
from scipy.io import netcd... | [
"percy@Percys-MacBook-Pro.local"
] | percy@Percys-MacBook-Pro.local |
d5a26391dd2100e00077808d2ee65ebf6939b9ce | d1449d0a1778ecc5eea24fa28e8541407345a740 | /P02_P04_basics/python_building_functions_01_20200813.py | bc7bbfeab0398a4fb343af5553ffc4a6c605c58f | [] | no_license | EdvardsAm/RTR108_2020 | 7da518978ee26f4d0ab982f204b519ab987de8f8 | 58309d2fc13211ea2424e8c9098368218f997e8b | refs/heads/master | 2020-12-23T13:42:50.845861 | 2020-08-19T10:57:13 | 2020-08-19T10:57:13 | 237,170,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | def print_lyrics():
print("Im a lumberjack, and Im okay.")
print('I sleep all night and I work all day.')
| [
"edvardsamelko@gmail.com"
] | edvardsamelko@gmail.com |
ede762b0243f59ef13dba36398b3d9c0e2a4fcbe | 63e6ed1f76daba3dc299edf4cd4b9714a7863804 | /HW_8_3.py | d292ed5ff404f15ee799134b78668efcbcb8a67c | [] | no_license | lukowar/study | d0cc216113d78157113f6fa53f8a8e0b7f048ac0 | 6552495cd62786c70538774d23ec7a91b9539dcc | refs/heads/master | 2020-12-26T10:18:48.128644 | 2020-03-12T00:53:23 | 2020-03-12T00:53:23 | 237,479,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | def shorten_to_date(long_date):
return long_date.split(',')[0]
print(shorten_to_date("Wed September 1, 3am"))
| [
"arsen.lukovskyi@gmail.com"
] | arsen.lukovskyi@gmail.com |
f9806c659eca0a8dfef49c696328b04316722b3f | 38677ccd3951547c9eb0ec5e49026ee734fd3eea | /gupta_sim/linear_dyna.py | 658a09413040cd2150bca5e933e7ec3e913f95f2 | [] | no_license | PaulEcoffet/gupta_replay_model_master1_internship | 40c449f1c5b18532071fa72e24531c15342e12de | 2abc735dfa43a54fe50458ca6f7551e832506a91 | refs/heads/master | 2021-03-19T16:01:37.706135 | 2016-06-23T13:27:18 | 2016-06-23T13:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | # -*- coding: utf8 -*-
from __future__ import print_function
import numpy as np
from Queue import PriorityQueue
# From Sutton et al., 2012
#########################################################
# F numerical radius should be < 1 for convergence !!!! #
# sum_inf alpha = inf #
# su... | [
"ecoffet.paul@gmail.com"
] | ecoffet.paul@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.