blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
353341742650e33650a24188a9f964dda920da83 | f8350972794e657bac7a168a4a8551b730e38f3a | /Equation _Solver/equation_solver.py | 4f2d00f11b140ca1cdfcb43cae5e3f8a77e4f00a | [] | no_license | golderswajan/AI | 28018889654aa6c3676d4fcc96da67d2b5058704 | daf92ba05b24cba4b8a1921a5e4324bdf2c01f1a | refs/heads/master | 2020-03-23T16:27:53.554131 | 2018-10-19T16:58:46 | 2018-10-19T16:58:46 | 141,810,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | """ a + 2b + 3c + 4d = 30 solving """
from chromosome import Chromosome
from equation_solver_utilities import crossover, mutation
population_size = 20
population = list()
crossover_rate = 7
for i in range(population_size):
population.append(Chromosome())
population.sort(key=lambda z: z.fitness)
children = list(... | [
"swajan.cse.ku@gmail.com"
] | swajan.cse.ku@gmail.com |
d90d8c4d55fa975845f063c0b983fcb398f116ee | 05345351ed1499a7214a9b956706e50e80b53c47 | /app.py | 391a1259fac030a6b271a70a75d44c804cf947a2 | [] | no_license | Akashkumar201/Todo | 774772529c0a6869913e6d4f4e5068e55a1504f9 | 36536a3b6fd6b56f44f2ca3073bfc3da46e71f8b | refs/heads/master | 2023-03-31T06:42:33.813845 | 2021-04-11T16:12:49 | 2021-04-11T16:12:49 | 355,594,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py |
from flask import Flask,render_template,request,redirect
from flask_sqlalchemy import SQLAlchemy
app=Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///posts.db'
db=SQLAlchemy(app)
class BlogPost(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(100), nullable=... | [
"akashrajput2012001@gmail.com"
] | akashrajput2012001@gmail.com |
91014ed747b111c188db983ad268b42d74393a35 | b0345d792d9ca10709692f909c3a4036c68090f2 | /lesson2/Lesson2_homework/task5.py | ee18ae2455f09ff209792293e5c5d0492a3c4d8c | [] | no_license | Neodim5/GeekPython | 28329d3837bb1f92b930894e3fd70907d66a90de | 0f29b69a2a3523e426101ea08920bdf354954ff8 | refs/heads/master | 2023-02-22T13:35:00.367220 | 2021-01-25T16:07:39 | 2021-01-25T16:07:39 | 323,557,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | __author__ = 'Neklyudov Dmitry'
'''
Реализовать структуру «Рейтинг», представляющую собой не возрастающий набор
натуральных чисел. У пользователя необходимо запрашивать новый элемент рейтинга.
Если в рейтинге существуют элементы с одинаковыми значениями, то новый элемент с тем же
значением должен разместиться после ... | [
"neodim5@gmail.com"
] | neodim5@gmail.com |
599937fa40c65fa0ae81139afe9b7b2a0fc43b02 | e563782da517dc14a040b73c17fb90731fc7defe | /kaolin/render/__init__.py | 88e3ef3741b8b1f3d32ae584dec446cfe2b87551 | [
"Apache-2.0"
] | permissive | Alan-love/kaolin | c203f3742afc2a86db22ad869132bec802430e55 | 3482a9d4b9ddb899776702c5a82f29dc157baecb | refs/heads/master | 2023-08-03T12:33:43.263339 | 2023-08-01T14:40:41 | 2023-08-01T14:40:41 | 223,372,484 | 0 | 0 | Apache-2.0 | 2023-09-11T23:54:41 | 2019-11-22T09:46:10 | Python | UTF-8 | Python | false | false | 81 | py | from . import camera
from . import lighting
from . import mesh
from . import spc
| [
"noreply@github.com"
] | noreply@github.com |
233ad6379183648285b533d82dfc4da333fbcf94 | 1b2a1f807b98034567e936b9b5c76c2fc89b908a | /adj_tf/models/marian/tokenization_marian.py | 2eec924e0878443bd77b620a91f78c0f333ee2ec | [] | no_license | Adreambottle/Transformer2GP | 48c955d8eb155caef4c24a3c03ee3aa9ab0bd3da | 5ba1a5005c2ad21066304cdeb1d7c2587c8191da | refs/heads/main | 2023-07-07T14:17:51.673437 | 2021-08-17T14:14:56 | 2021-08-17T14:14:56 | 397,279,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,967 | py | # Copyright 2020 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... | [
"adreambottle@outlook.com"
] | adreambottle@outlook.com |
b17912c96c47e0e0cee8c94326e8c7e8fabbef10 | ef1236eef2f89525bb1a1b2305ef27ffb3bdadb6 | /Fluent Python/1.2.py | 48b84502d75b5abe572f021ee911b02150edbcba | [
"MIT"
] | permissive | adlerliu/Python | 8e3bce6c4a146630f2a76423e779e2c9bd022d86 | 537862a046a5da733e170dd295a053c74520896b | refs/heads/master | 2021-06-24T15:11:57.718305 | 2019-05-28T13:24:35 | 2019-05-28T13:24:35 | 186,112,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | # -*- encoding=utf8 -*-
# 一个简单的二维向量类
from math import hypot
class Vector:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
# def __repr__(self):
# # return 'Vector(%r, %r)' %(self.x, self.y)
def __repr__(self):
return '{}{:>2}{:>2}'.format('Vector', self.x, self.y)
... | [
"67781193@qq.com"
] | 67781193@qq.com |
ab4dcf34fe4914b63261defa4993b178507e5ff9 | b8ed2c589ccc3bbdd2d610c6ecf0133a5dec3da6 | /mysite/mysite/mysite/urls.py | da179484bde35d39cda8996bb4e6235a440d73c2 | [] | no_license | Ramandeep14/DjangoApp | e84ae4fba19d4abb64d60102a6a0aaf50078c148 | 88079cf401a53722a3b437ebddda03983677e2f9 | refs/heads/master | 2020-03-22T08:17:50.786731 | 2018-07-05T06:02:07 | 2018-07-05T06:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | """mysite 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 ... | [
"hpramandeepkaur97@gmail.com"
] | hpramandeepkaur97@gmail.com |
ccd125b08bc23dbf227c939e8d8552e52cb80690 | 8dce07baa37ce3fa3fdc43c3189eb09c98694744 | /tools/socket_cli.py | cdc343264fb3760729f690a4bcfea62bdb9c3344 | [] | no_license | heyudeLeer/meal_recognize2.0 | 3ba588f2a4116a1ecef2a56fa1b9da54be73dbcc | d7683f7fc3e7d315e007f52782ce8f44e2232b8b | refs/heads/master | 2022-07-05T20:04:15.441068 | 2020-05-20T05:55:31 | 2020-05-20T05:55:31 | 262,257,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
"""
file: client.py
socket client
"""
import socket
import sys
def socket_client():
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 6699)) # 54.223.39.84
except socket.error as msg:
print msg
sys... | [
"heyude@meican.com"
] | heyude@meican.com |
e37863aa100fbef7a9b30af4bc3fe66cb1ff868c | a2063e46148c181d101cabf3065c061a6d955635 | /getConfig.py | 532944fa038034aaffd02ed32d62128acb1440b4 | [] | no_license | akashperfect/data-analysis | 810437428591d523d6d3972c34081990fd5012db | b377032aad673e56d41cd74212341c364f4d54e8 | refs/heads/master | 2021-01-20T17:54:22.610397 | 2016-06-15T04:23:50 | 2016-06-15T04:23:50 | 60,927,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | import ConfigParser
config = ConfigParser.RawConfigParser()
config.read('configuration.cfg')
def addPath(fileName):
global path
return path + fileName
conf = dict()
title = conf['title'] = config.get('General', 'title')
conf['path'] = config.get('Data', 'input_dir')
path = conf['path'] + "/"
conf['train_data'] = a... | [
"akashperfect@gmail.com"
] | akashperfect@gmail.com |
e5f5a5e085338f47c28771ade869b1f529aaed68 | 3040765082954669f7b198d7c1ec3527b05a7d33 | /enet/run_training.py | d56b9c72f099e1009a2478722daf768d3f7d8b53 | [] | no_license | niksaz/aido2 | aa59c64b8af9c8a50d7fd986242a5eba22cd8411 | e5f34744b9fb952c70c8c475f393910bae3df17c | refs/heads/master | 2020-05-09T22:47:01.898497 | 2019-06-20T18:21:51 | 2019-06-20T18:21:51 | 181,482,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | # Author: Mikita Sazanovich
import argparse
import subprocess
import os
import pathlib
import numpy as np
def run_cmd(cmd):
ps = subprocess.Popen(cmd, shell=True)
ps.wait()
def compile_training_cmd_string(logs_dir: pathlib.Path, data_dir: pathlib.Path, seed) -> str:
sub_logs_dir = logs_dir / f'{data_di... | [
"nikitasazanovich@gmail.com"
] | nikitasazanovich@gmail.com |
27c6cbd26d97d62b5704692b21d267f3400adee2 | 791cb00da15b832a004dbe238e94685224cb62e3 | /aver-speed.py | afa5d7a49736351ee7180eaf53c826b38c2cf7dc | [] | no_license | Janesdb/clusting | de9d117699c89b9821080d9a3dd5361b9676673a | a9cead0df3d87dc3103ff9adc6263a01dccf771d | refs/heads/master | 2021-07-25T18:34:02.145245 | 2017-11-08T03:46:12 | 2017-11-08T03:46:12 | 109,921,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | #2017.05 zhujian
#filter out the speed of all nodes from the log file,
#compute the average speed,then write it in .txt file
import numpy as np
import re
def filter_out_Node(lineInfo):
w1="Node"
w2=" Epoch"
start = lineInfo.find(w1)
start += len(w1)
end = lineInfo.find(w2)
return lineInfo[start:end].strip('[]')... | [
"janezhu_hnu@163.com"
] | janezhu_hnu@163.com |
cbc9ba5d51136e5f1a4c7adfb746bb7552addf8f | ac5663ea8561477d97957c7d851e05bf0d9afa2f | /venv/bin/imageio_remove_bin | 10f07862eb3150684ab7988eec2d14293789986b | [
"Apache-2.0"
] | permissive | xiayufeilucy/deloitte-digital-competition | 5a8cd46eb2874dfd5eccd2ba4fd702a7002b2c4f | af4fc18cbf713c9c7f0e3ec175ef50b6ef211d6c | refs/heads/master | 2022-12-10T20:51:46.191386 | 2019-07-31T13:56:16 | 2019-07-31T13:56:16 | 199,681,877 | 0 | 1 | null | 2022-11-29T21:36:18 | 2019-07-30T15:44:54 | Python | UTF-8 | Python | false | false | 460 | #!/Users/xiayufeilucy/Desktop/deloitte-digital-competition/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'imageio==2.4.1','console_scripts','imageio_remove_bin'
__requires__ = 'imageio==2.4.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"yufeix@wharton.upenn.edu"
] | yufeix@wharton.upenn.edu | |
e57885bbc006d387b504028594fb9b71f8332cf2 | 3a1d2989630cae4d399d6f97517d9aff9ecf69ab | /myweb/myweb/urls.py | 9ac9179bccc1a276d2b0cda4ead145505149ac67 | [] | no_license | dacaiguoguo/Intest | 4dcb5e0f8ea1a6ca4907a8513108a2965bab4176 | 4636ebf25c0ebff8d3e6a8d1ab9e5421fe88d0c6 | refs/heads/master | 2021-01-22T05:47:14.215661 | 2017-05-26T09:33:24 | 2017-05-26T09:33:24 | 92,495,338 | 0 | 0 | null | 2017-05-26T09:32:57 | 2017-05-26T09:32:57 | null | UTF-8 | Python | false | false | 1,795 | py | # -*- coding: utf-8 -*-
"""myweb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, ... | [
"305820049@qq.com"
] | 305820049@qq.com |
ca5e236b2ff13baf3cb3c09311e14ddb4f2d2ebc | acc7c2c25c7944955672b4d8d53a8101355afd48 | /Proyecto_Chule/VayaPajaro/views.py | 847117b827273e75c4fc1277e5d0dd1ecf8dd0f4 | [] | no_license | JosemiOuterelo/IAW | 115dc10537e034edb8f85a3c040ae6b3c36a8046 | 14c2e9d75a8f397aa8cc1b4acbb649e5d5e5457c | refs/heads/master | 2020-03-30T13:21:48.284772 | 2019-03-05T16:23:28 | 2019-03-05T16:23:28 | 149,439,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,742 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.urls import reverse
from django.http import Http404,HttpResponseRedirect,HttpResponse,StreamingHttpResponse
from django.contrib.auth import login,logout,authenticate
from django.contrib.auth.mixins import ... | [
"josemiou94@gmail.com"
] | josemiou94@gmail.com |
47d4d8a9a4e609e7be8e4bb9d1b66f1d06c84782 | a1778ef8a1aaac5a6cb61a7c418afdf089d4ccb4 | /NLGDL.py | 2234f7b462018bb50c09068a82fafe223b8473a2 | [] | no_license | JasonXYJing/The-source-code-of-Group-based-distance-learning | 5a76246d5e07ea293ca59d56a07173e320f81d14 | 7f966ded3510743c5adad183e3e6ea4386ae0937 | refs/heads/master | 2022-11-11T23:42:53.806805 | 2020-07-06T13:18:57 | 2020-07-06T13:18:57 | 277,460,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,688 | py | import random
import math
import numpy as np
from numpy import *
import operator
import matplotlib.pyplot as plt
from sklearn.neighbors import NearestNeighbors
from collections import Counter
from metric_learn.constraints import Constraints
import torch
from torch import Tensor
import networkx as nx
import ... | [
"noreply@github.com"
] | noreply@github.com |
141610639ab02a33a6d7701dde1e20f5fad5bece | 6e0dd0995c37e6b052080c885885af081ffb827a | /ex20/ex20.py | 38305468dfa4a1f10885ec1781cf5798d37e2d98 | [] | no_license | fargofremling/learnypythonthehardway | 9fe978b3ca967491c8a696282564891802f90366 | 2a76183fa6f8f955b1d197ba7d820413257a0d08 | refs/heads/master | 2021-01-17T07:43:21.282407 | 2016-07-27T06:51:05 | 2016-07-27T06:51:05 | 29,374,957 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,956 | py | # Chapter 20 Exercise
# Imports a Python feature set called argv, which is the argument variable. This variable holds the arguments passed to the Python script when ran.
from sys import argv
# "Unpacks" argv so that rather than holding all the arguments, it gets assigned to the specific number of variables being use... | [
"alicia.fremling@gmail.com"
] | alicia.fremling@gmail.com |
6d00fe5a1897d38b38e75686b9f721e7d3b4fd16 | fc778e05df051a0773d80f867b1c84542b0a4b24 | /lab/lab06/tests/q114.py | aaa2d192866854e477170552bc1f816f32a05d9d | [] | no_license | yukgu/data-6 | d873e7231058b01365b278edc7ded4afade05b55 | e96c0d864f58b7041dfb0820d3e469927eac97b0 | refs/heads/master | 2022-11-28T18:48:17.515825 | 2020-08-12T22:55:48 | 2020-08-12T22:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | test = {
"name": "Question 1.1.4.",
"points": 1,
"hidden": False,
"suites": [
{
"cases": [
{
"code": r"""
>>> import numpy as np
>>> np.isclose(berkeley_avg_in_thousands, 782.37)
True
... | [
"42158157+castroian@users.noreply.github.com"
] | 42158157+castroian@users.noreply.github.com |
8095aa96ff73f5387f1a9beb1127d03254ba2633 | c33016a7f14abf283e6ec9cb0a186b3522e1421c | /stoch/decrypt.py | a82fee3ddc66d3bf3afb105d6fb77af5802a33c2 | [] | no_license | RJN-2B/exp-math-project | ada8eba9e247d73b75bfa2b5e68ce7666bc4d2f4 | 247cbf574aa1435f03552a040692d571ead56c1d | refs/heads/master | 2022-04-18T08:28:38.549349 | 2020-04-17T22:32:35 | 2020-04-17T22:32:35 | 256,623,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import pandas as pd
print("hello world")
df = pd.read_csv('AustenCount.txt', sep=" ", header=None)
df.head() | [
"rnguyen3@tulane.edu"
] | rnguyen3@tulane.edu |
f694835fd18a2a6858ae187f6bde604cf4859caa | 8aadbc6b60008af739fe34cee984c6603f8e8fd4 | /com/ctp/interface_pyctp.py | 0f5f825734370cf9c5da47cad41ce974aabd2cd7 | [] | no_license | lbrein/stock | 1ea4100fdddb26960c330682cde19648fff0c561 | 3c5383fe7f01c1beb11474f3f0d0d92428468b46 | refs/heads/master | 2020-06-22T13:52:39.634085 | 2019-07-19T07:34:15 | 2019-07-19T07:34:15 | 197,725,098 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,625 | py | # -*- coding: utf-8 -*-
"""
"""
from com.base.public import config_ini, public, logger, public_basePath
import PyCTP
from com.ctp.order_trader import Order, OrderTrader
from com.object.obj_entity import future_baseInfo
from com.data.interface_Rice import interface_Rice, rq
import re
import time, datetime
import copy... | [
"1953689193@qq.com"
] | 1953689193@qq.com |
6838ff5b6798d6a92e800b431d89e79232ce5410 | 2f21f9fd4d1d2f586e143454f349657be8397f04 | /URI Online Judge/Idade em dias .py | fae27a3c13ff1ee2ff9980246498ee115177d7f0 | [] | no_license | ViniciusSchutt/Python | 85e3d83ea6a2b8ca43e46096b69793d26f48ae20 | 4d7d9922b79c71c2df9c9410218d460b441d9cca | refs/heads/master | 2023-06-16T22:04:15.158578 | 2021-07-11T21:02:07 | 2021-07-11T21:02:07 | 366,565,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | dias = int(input())
anos = 0
meses = 0
while dias > 30:
if dias - 365 >= 0:
anos += 1
dias -= 365
if dias - 30 >= 0:
meses += 1
dias -= 30
print(f'{anos} ano(s)')
print(f'{meses} mes(es)')
print(f'{dias} dia(s)') | [
"viniciuschutt@gmail.com"
] | viniciuschutt@gmail.com |
3ef598f244237952f1ffa69ac0f468555824db8b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/storage/registration.py | 26be6060c3be0523d8fdc939263fa610b948502c | [] | 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 | 17,431 | py | # -*- coding: utf-8 -*-
# Copyright 2014 - 2016 OpenMarket Ltd
#
# 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 applic... | [
"659338505@qq.com"
] | 659338505@qq.com |
9c1d341f51b6bdcd2d9d20b8fec7e9f042b2bee9 | 7bc8292555995b56ab41f3e711ad2ac12531328b | /多关键字爬51job/Jobspider/settings.py | 3752b0bf1049d8b841d9753b0ecedb7463a5df1b | [] | no_license | AIshouldbecry/scrapy | bd5f88486a20fa053141e61164346ae91543dbfc | 22c4c5e0f212906a6488850d7b49e7f28c3e3a1e | refs/heads/master | 2022-12-10T10:37:44.272004 | 2018-12-22T05:48:00 | 2018-12-22T05:48:00 | 153,422,311 | 0 | 0 | null | 2022-12-08T02:59:54 | 2018-10-17T08:27:51 | Python | UTF-8 | Python | false | false | 1,302 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Jobspider 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/topi... | [
"noreply@github.com"
] | noreply@github.com |
6deb1b04d266e126fd9490a2f66b69bd7796d2f3 | d59c5ffe07f016ad26d45c9698d3e4fd94f6bcd0 | /inception model - Image search P1/backend/lib/bin/theano-cache | f86a0cfdf3aaacd523edd01c4a1b502b7776123a | [] | no_license | payoj21/Image-search | 2554a10324333fabd5c800732c759446a8e7db54 | 07d32f51b3553b670a603bace774bc90e56ec2f4 | refs/heads/master | 2022-10-24T07:30:13.637586 | 2018-08-13T00:08:18 | 2018-08-13T00:08:18 | 144,509,137 | 0 | 2 | null | 2022-10-21T20:32:29 | 2018-08-12T23:52:47 | Python | UTF-8 | Python | false | false | 3,490 | #!/usr/local/opt/python/bin/python2.7
from __future__ import print_function
import logging
import os
import sys
import theano
from theano import config
import theano.gof.compiledir
from theano.gof.cc import get_module_cache
_logger = logging.getLogger('theano.bin.theano-cache')
def print_help(exit_status):
if e... | [
"payoj21@gmail.com"
] | payoj21@gmail.com | |
0156bd8477f03517039887e0a499bccf8d26c33e | 8826c4567c8ccf94bf7c689dafc3f602272032b4 | /ask/qa/urls.py | 001d13016cf1034568a9e56ccd18e408842047ae | [] | no_license | dkondin/stepik_web | b924e6b9059289e194cf635ce7356587660c2d63 | 7f4fb5169b307a34a7ee996639082734aaade81a | refs/heads/master | 2020-11-25T21:38:12.530554 | 2019-12-24T10:09:19 | 2019-12-24T10:09:19 | 228,857,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.conf.urls import include, url
from django.contrib import admin
from qa.views import test
urlpatterns = [
url(r"^$", test, name='index'),
url(r"^login/.*$", test, name="login"),
url(r"^signup/.*", test, name="signup"),
url(r"^question/\d+/$", test, name="question"),
url(r"^ask/.*", test... | [
"kondinskaia@biocad.ru"
] | kondinskaia@biocad.ru |
a6f5582fc0f55ce1b8816e501641d8eb3f2f9ea4 | 946c04aa741b557daf56eac46385a613ac5e0cf2 | /PP4E/System/Processes/multi1.py | 2a10bd15027c964d91e4c4a8242d98ae4a2739d0 | [] | no_license | Ozavr/lutz | 513ba0ca91d7188b2d28f649efe454603121106f | 0ee96b5859c81ab04e8d2a3523a17fff089f12f2 | refs/heads/master | 2021-01-02T23:18:16.680021 | 2018-09-04T22:27:35 | 2018-09-04T22:27:35 | 99,497,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | """
основы применения пакета multiprocessing: класс Process по своему действию
напоминает класс threading.Thread, но выполняет функцию в отдельном процессе,
а не в потоке; для синхронизации можно использовать блокировки, например, для
вывода текста; запускает новый процесс интерпретатора в Windows, порождает
дочерн... | [
"ozavr@me.com"
] | ozavr@me.com |
50f2d67c9a4d939c856f66e9318a78ad96f10eac | f769071bbce233e7f5479b51422d27da654b7947 | /simulation_ws/src/rover_gazebo/scripts/gazebo_odometry.py | f4e3360743eea698542ecbedd65c34eada3b8c94 | [
"MIT"
] | permissive | SiChiTong/rc_car_robomaker | e22028f1bc06c5011b78c005600f5795b19d6700 | e5b943df6491ed13f9a1708616f4a8fa21372735 | refs/heads/main | 2023-03-05T04:38:54.005234 | 2021-02-21T22:38:01 | 2021-02-21T22:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | #!/usr/bin/env python
'''
This script makes Gazebo less fail by translating gazebo status messages to odometry data.
Since Gazebo also publishes data faster than normal odom data, this script caps the update to 20hz.
Winter Guerra
'''
import rospy
from nav_msgs.msg import Odometry
from geometry_msgs.msg import Pose, ... | [
"accounts@wilselby.com"
] | accounts@wilselby.com |
bbb808633c1e9ea7c825efea1be0d1defa0f2c5c | b06e9ca45acb728d0b997ed4a60aed3c46278bfb | /Medium/addTwoNumbersII.py | b47ab9b61f866b25d1af39a01dafb2d324c35dad | [] | no_license | atshaya-anand/LeetCode-programs | 3bd010d35dea2bc548258570f4e47151cd44da0b | 2e99f8b394cb220cddc39dd12f875d75210c2bfc | refs/heads/main | 2023-05-31T05:12:40.652233 | 2021-06-13T05:15:03 | 2021-06-13T05:15:03 | 330,325,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # https://leetcode.com/problems/add-two-numbers-ii/
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
str1 = ''
str2 ... | [
"atshaya1699@gmail.com"
] | atshaya1699@gmail.com |
298e53aa0c6d801c0746d2ff557e8d561e96fa4c | 42d081aa0d0cdbb3d329c9dbef12b8d1f3fce9cc | /backend/apps/cart/models.py | a09e7c9293fc2c149c443acdc26a4cbae5660cd0 | [] | no_license | panhavoan-leng/choza | f8876a1a2f6dbd9d3edb5bb93db6a06b15d0f138 | 3d395fb41dd3b65bd7d9f7477020c5fb4f0a0953 | refs/heads/master | 2023-09-05T09:44:07.535881 | 2021-10-21T09:14:06 | 2021-10-21T09:14:06 | 419,659,157 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.db import models
# Create your models here.
from apps.user.models import User
from apps.items.models import Item
class Cart(models.Model):
class Meta:
db_table = 'cart'
user_id = models.ForeignKey(
User, on_delete=models.CASCADE, db_index=True
)
item_id = models.ForeignKe... | [
"nitesh@techis.io"
] | nitesh@techis.io |
f90a330761a43f328e206363dca801aabefd20f4 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-dysmsapi/aliyunsdkdysmsapi/request/v20170525/AddSmsSignRequest.py | c3e037abfab8fb2d6f9075b66dd5a949c573ec10 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,870 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
524e40450306cc556eac8e070f3b80153b85a3e2 | 2a97f8fa9c94d9f57ecd96268fe5c79ae4832dbb | /news_app/admin.py | 450e7e3d6e925b469f00a1d5f00b9161c6537f79 | [] | no_license | KA-Randy-Charity-Jr/Group_Topaz_GameFaqs | a58cff479af9f99a6e17d2225506d5a6ce2a4bad | 2a091785075e0fc5fbcba70f65e15de3b80422ee | refs/heads/main | 2022-12-29T05:23:30.948608 | 2020-10-21T09:00:50 | 2020-10-21T09:00:50 | 301,495,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.contrib import admin
from news_app.models import Newspost
# Register your models here.
admin.site.register(Newspost) | [
"rakechj2@outlook.com"
] | rakechj2@outlook.com |
e9e15aabeeb19d067d2268bae9dc0e125bd40664 | 0286c905b0b2d7e956940524aa65668c3e4347fd | /driver/python-client.py | 12db4b64292961ae24c1aeb85ba208e50c97dfb8 | [] | no_license | pcrews/libra-integration-tests | 44e4597805d27423cf22a8c3f206305248d87766 | 0f3ee771512d2e859fe52bbcfd1d9f25d02f89b5 | refs/heads/master | 2021-01-23T07:26:51.001891 | 2014-05-06T18:57:00 | 2014-05-06T18:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,365 | py | # Copyright 2012 Hewlett-Packard Development Company, L.P.
#
# 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... | [
"gleebix@gmail.com"
] | gleebix@gmail.com |
ad8838d4134389b893ad78037c7bacb4573923a7 | 450c45e780332f56ea339a83891f0c12d6120794 | /google/ads/google_ads/v2/services/age_range_view_service_client.py | e1aee0f95f28e5e679c2b9a8b0e6278f3c17cfec | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | akaashhazarika/google-ads-python | 7766370cc526190c962dc9ff806520d459b05c25 | 25b43aa616020ad7dfa55b90fa236a29cf97d45a | refs/heads/master | 2020-06-07T08:56:21.533323 | 2019-06-27T15:26:49 | 2019-06-27T15:26:49 | 191,448,135 | 0 | 0 | Apache-2.0 | 2019-06-11T20:57:04 | 2019-06-11T20:57:04 | null | UTF-8 | Python | false | false | 9,812 | py | # -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | noreply@github.com |
421594bcaed8aa3f30b6523167db2e27b5eda17b | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/proto/errors/extension_setting_error_pb2.py | be7216100728c18ba162b3213ffa8057ae1e1e1b | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 17,018 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v4/proto/errors/extension_setting_error.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobu... | [
"noreply@github.com"
] | noreply@github.com |
eaa3af01316e70493317fc5e190e308304501276 | 5949db57f8de8278359f45fe64395f44017671bc | /blog/migrations/0002_auto_20180122_0552.py | fdc4f73978db4766bafa256495e6be4132467df4 | [] | no_license | andrewidya/personal_blog | 71ed6b83ac3c594fa40b9fb40145af3e37dd3079 | c64df84f65dafd03ac05cf222fc113416e6926d5 | refs/heads/master | 2020-04-08T16:39:30.559072 | 2018-11-28T16:20:48 | 2018-11-28T16:20:48 | 159,528,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-22 05:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
... | [
"andrywidyaputra@gmail.com"
] | andrywidyaputra@gmail.com |
19d77ff93d47e88cd72b1dc21cb2fa461a398f79 | b5fd5893bcbfb6e30b77099bf979cd9910f1bc33 | /navspider/spiders/YoukuTv.py | 058cf769c059b9a7e0498f4bac451819c1a56f86 | [] | no_license | dolfly/navsrv | 1ffe931000cf6b4865993651d22c5a979edb00d5 | 8471c3a588843076fe9673e74ee21c740df23b19 | refs/heads/master | 2021-05-19T03:12:22.549624 | 2013-12-20T16:48:17 | 2013-12-20T16:48:17 | 13,409,287 | 0 | 0 | null | 2020-06-16T05:46:55 | 2013-10-08T09:39:03 | Python | UTF-8 | Python | false | false | 794 | py | from scrapy.selector import HtmlXPathSelector
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.contrib.spiders import CrawlSpider, Rule
from navspider.items import NavspiderItem
class YoukutvSpider(CrawlSpider):
name = 'YoukuTv'
allowed_domains = ['tv.youku.com']
start_urls = ['... | [
"dolfly@foxmail.com"
] | dolfly@foxmail.com |
d821ed2e246abaa87bf4ed7bfacce39652084ae5 | 5fc0ed545e687e878fcb750e16cce0067f084a25 | /FaceRecognitionOpenCV.py | f037dd0535618604da25bdb38417e75a9c5f507f | [] | no_license | souzahw/FacialRecognition | fa33cff67c6bf19de067dfc9ddf9bc157ed4e246 | 369333d64322dddbc9d83b19c47d901c90fd7a89 | refs/heads/master | 2022-11-11T10:24:45.638456 | 2020-07-02T02:52:11 | 2020-07-02T02:52:11 | 276,530,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import cv2
from azure.cognitiveservices.vision.face import FaceClient
from msrest.authentication import CognitiveServicesCredentials
import os
import io
face_key = '300a5f6336924cfd964eae736e2792ac'
face_enpoint = 'https://faceopencv.cognitiveservices.azure.com/'
cred = CognitiveServicesCredentials(face_key)
client = ... | [
"dev.leonardosouza@gmail.com"
] | dev.leonardosouza@gmail.com |
268d1dbd768dd30c54fd88b40dc5a1c9d5fb4fc5 | 72805b9e8115e3bcc51cc9e8b5f478f26d0272da | /go_to_dhcp/IP.py | 8183e4043d45449905a5e3ec50af10f56d1a5e53 | [] | no_license | evbedarev/networkScripts | 4d3e344425daa3b4b8b6686419b8e7adf7d5bb25 | b6b5b05e53f7f9b1267a4ffd47fe831ec2abe2dc | refs/heads/master | 2020-04-12T09:57:24.297314 | 2019-03-13T09:02:08 | 2019-03-13T09:02:08 | 162,414,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py |
class IpMac():
ip = "";
mac = "";
username = "";
switch = "";
port = "";
dhcp_enabled = 0;
def __init__(self, ip, mac, username, switch, port, dhcp_enabled):
self.ip = ip;
self.mac = mac;
self.username = username;
self.switch = switch;
self.port = po... | [
"madjo85@yandex.ru"
] | madjo85@yandex.ru |
08bc7ac171d03c04a7d2be66fda29071782ae2ef | b81606cfaf8e8f778a27f3fd345229def6167177 | /lesson/lesson-28/save_checkpoint.py | fd12c073838306a2f417849c25d6cf44b5261dfa | [] | no_license | Longer430/hello_pytorch | 0cdff1eaca9219946b8d2ed929c1c173a5baccb2 | 1c822c3cdcf3a111c633bac6186eebdc274b4f63 | refs/heads/master | 2022-12-06T16:55:14.824804 | 2020-08-28T15:49:58 | 2020-08-28T15:49:58 | 289,810,527 | 9 | 3 | null | 2020-08-26T02:57:25 | 2020-08-24T02:41:36 | Python | UTF-8 | Python | false | false | 5,609 | py | # -*- coding: utf-8 -*-
"""
# @file name : save_checkpoint.py
# @author : TingsongYu https://github.com/TingsongYu
# @date : 2019-11-04
# @brief : 模拟训练意外停止
"""
import os
import random
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
import torchvision.transf... | [
"longwenting@gmail.com"
] | longwenting@gmail.com |
30a6d8064649b0775fb59634e6cb96afed8009cf | 08db8123b40e5fc89f16eb9789c2c4fa1c49c475 | /itassets/migrations/0001_initial.py | b41917027d863436a33308cf568c1f91a6695067 | [] | no_license | czhwu/assets | f45459eeee98287100b55832874a64463faae3b6 | b99f783267dcf14face308fb96367d51b057ea6c | refs/heads/master | 2020-09-18T17:51:36.391230 | 2016-09-08T11:39:55 | 2016-09-08T11:39:55 | 67,697,928 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-05 12:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"cal@cmsll.xyz"
] | cal@cmsll.xyz |
88dbad275ecf1ae16495151244e33ac232cf8f17 | 0a67ea7b95ed3182a8142cdb4f2e97d5c25268fd | /MySQLModule.py | 34062f93465bcc8c617886723f0e66fe28fb7306 | [] | no_license | BrainLyh/service-scan | 2e17502ea6afb939442bb89be339ef59172472c6 | 5be2037aa8e883124367b0a197defca218bc4362 | refs/heads/master | 2020-12-05T03:58:07.974570 | 2020-01-06T02:07:41 | 2020-01-06T02:07:41 | 232,003,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | import pymysql
import socket
import time
from datetime import datetime
from multiprocessing.dummy import Pool as ThreadPool
class MySQL(object):
def __init__(self):
self.save_path = "./result.txt"
self.ip_list = []
def port_scan(self, ip):
t1 = datetime.now()
print("[+] Testin... | [
"noreply@github.com"
] | noreply@github.com |
520ed8b32524fc53f96756d1f4b1172da5240464 | b1153d2355935699c8dd709862e51b10f966f977 | /p2.py | e680fddffcc4860af8f3589c8dcb708448456b1a | [] | no_license | vikash990/Australia | 3e328be8b52e8edb9d50784ddcc6e4a136ef6a90 | 1d6e6f6ff2f3fbdbcd4bb25e02a4d1c350f4f4ae | refs/heads/master | 2022-11-28T07:10:43.852301 | 2020-08-13T09:24:51 | 2020-08-13T09:24:51 | 287,198,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | """
Program 2: Use while(condition controlled),
for(count controlled) loop in programs or
nested looping
"""
#Implementation: Print factorials of all numbers between 1 to 10
count=int(input("enter the number to print factorial series"))
#nested loop
for i in range(1,2*count+1): #count controlled for loop... | [
"dubey.amansus@gmail.com"
] | dubey.amansus@gmail.com |
917df9ec30bdcf84c1feb9ac0d3673277dd42b15 | f487b38698318bc531133181c9d6fbc68093c22d | /panGraphViewerApp/scripts/NodeShapesUI.py | 6a1748896c9a1a7646061776eff196fca318a31c | [
"MIT"
] | permissive | TrendingTechnology/panGraphViewer | 6ba24eb370d922c9d40c3db1015f4c2930455553 | 0354648922725f2a6e70f3c315e5cac9f27bd857 | refs/heads/main | 2023-07-09T07:46:47.752033 | 2021-08-07T03:18:42 | 2021-08-07T03:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,407 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'NodeShapes.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_nodeShapes(object):
def setupUi(self, nodeShapes):
nod... | [
"yuxuan.yuan@outlook.com"
] | yuxuan.yuan@outlook.com |
edd312326d4c73266143456b10802aafd47f2de2 | 637962e1420d3b86005d0e916bafb5578f1537b2 | /gan_training/utils_model_load.py | f32d21c2352efaa1afbea5a78302dfa898252ab1 | [] | no_license | TrendingTechnology/GANmemory_LifelongLearning | aae31ec1f8830232f4c336e559a481a54cf8fe7b | 264f67c0350271e31335f2fd8fd8b8811045322d | refs/heads/main | 2023-03-03T08:25:06.175794 | 2021-02-10T08:29:48 | 2021-02-10T08:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,896 | py |
import torch
import torch.utils.data
import torch.utils.data.distributed
import torchvision
import torchvision.transforms as transforms
from collections import OrderedDict
def get_parameter_number(net):
total_num = sum(p.numel() for p in net.parameters())
trainable_num = sum(p.numel() for p in net.parameters... | [
"noreply@github.com"
] | noreply@github.com |
36906d878e193db34304459083ddc478da7ab329 | c6d54095312596503ab17cc5ef9312916ecff7ba | /4_Median_of_Two_Sorted_Arrays.py | 979e4fe946f52b4abdc736d32ec8ff05c0350e24 | [] | no_license | hy-kuo/leetcode | 0e36d64ead2b9c4701e6b062d849704050671e72 | 0832d318c959ef8edcfe49e1615bc65451f2ddd1 | refs/heads/main | 2023-05-06T15:01:03.634020 | 2021-05-27T04:27:28 | 2021-05-27T04:27:28 | 371,247,482 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | class Solution:
def findMedianSortedArrays(self, nums1: 'List[int]', nums2: 'List[int]') -> 'float':
l1 = len(nums1)
l2 = len(nums2)
if (l1 + l2)%2==0:
p = [int((l1+l2)/2)-1, int((l1+l2)/2)]
else:
p = [int((l1+l2+1)/2 - 1)]
i = 0
... | [
"hsuanyukuo63@gmail.com"
] | hsuanyukuo63@gmail.com |
3912b5083a03d310701b45658978da60c4824621 | 5444adea2ba92ff16a3b2ea3eca891a939c88916 | /library/custos/npv.py | b7d819639d7da4e465479f05f65dda6b50aa3941 | [
"BSD-2-Clause"
] | permissive | hkuribayashi/PrevisaoTrafego | 0d7dc50facf0d67d30de52af02118c1bf42bda9d | adfe3521fe538a5bb76a96b21d4887694e5bb170 | refs/heads/master | 2021-05-24T12:22:04.885545 | 2020-08-23T01:23:32 | 2020-08-23T01:23:32 | 253,559,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,308 | py | import numpy as np
from library.custos.cf import CF
class NPV:
def __init__(self, municipio):
self.municipio = municipio
# 2608
self.assinaturas_gov = np.zeros(self.municipio.tempo_analise)
# 2608
self.assinaturas_usuarios = np.zeros(self.municipio.tempo_analise)
... | [
"hkuribayashi@gmail.com"
] | hkuribayashi@gmail.com |
0bae47cf3ad4800755b50d3856e99d614dbeafd3 | 6b1fcd508493c3cb3f67d79396a12dcce1e36c75 | /src/fixate/drivers/lcr/helper.py | f3aa3da939e2ba8737c4b8a4026ad0715a9efba0 | [
"MIT"
] | permissive | testjet/Fixate | 420a60e788c86fcb53f4e8f724cea8becc8f4526 | 978c15667f385f12b4fa107f23121fde15b94bf1 | refs/heads/master | 2022-01-04T19:40:27.387632 | 2019-07-03T03:52:37 | 2019-07-03T03:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | from abc import ABCMeta, abstractmethod
from fixate.core.discover import open_visa_instrument
def open():
"""Open is the public api for the dmm driver for discovering and opening a connection
to a valid Digital Multimeter.
At the moment opens the first dmm connected
:param restrictions:
A diction... | [
"ryanspj@gmail.com"
] | ryanspj@gmail.com |
2257b6c4fe39dc4f284ce3ad63bc8ac47f0f57c9 | 84e9b0f9b89abe59c1188cce6f57c8432a5499f4 | /ShareHere/urls.py | 86dd87d255c121b304afa2a5cdda89bc04efcfa2 | [] | no_license | spygaurad/ShareHere | 9f5ee1399a47152abc9c78f4a152471a3a8e31c9 | 6e74181cf3c7ee484c2d01f828b8fbcfa32e899b | refs/heads/master | 2020-03-16T19:42:38.917262 | 2018-08-23T16:14:08 | 2018-08-23T16:14:08 | 129,085,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | """ShareHere 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-bas... | [
"9841suraj1@gmail.com"
] | 9841suraj1@gmail.com |
8a09d38b3480ffb38cb0142d1c2f7d8bed2f7f4b | aa877a7efac65fc0b96e8044354c859f53b7533b | /25_multiply.py | d1fb6e72bfb372a2d3aa2b1336727cb43599ef23 | [] | no_license | lkrych/python-workout | 81b5a6ee5d99717d6fbcfd84eb4723d72f097f40 | fffa081aa6c7ea55433e241955de71a715167c3a | refs/heads/main | 2023-07-09T12:24:55.637381 | 2021-08-16T15:41:13 | 2021-08-16T15:41:13 | 350,582,071 | 0 | 0 | null | 2021-03-25T15:01:26 | 2021-03-23T04:48:22 | Python | UTF-8 | Python | false | false | 235 | py | def multiply_args(*args):
if len(args) == 0:
print("you must pass at least 1 arg")
product = 1
for arg in args:
product *= arg
return product
print(multiply_args(1,2,3))
print(multiply_args(1,2,3,4,5))
| [
"leland.krych@gmail.com"
] | leland.krych@gmail.com |
58874d3152e183f00d1c0f827fee20d5265f6d51 | 1af1a36a1f1cadad2e11202d708cddfc3a11ca67 | /Geom_BenchmarkProblem(BeamCantileverOneSide).py | 480c53df0e4f6278e467cc42b3955c9c70a89a31 | [] | no_license | dalfarisy/LSMPSElastic2D | df51171203fde24a7e4e8fb368cb3b4e9164c5e6 | 3f024b002943793d3a39f554588336bfd6e6e3a9 | refs/heads/main | 2023-07-09T20:42:17.354067 | 2021-08-14T14:52:15 | 2021-08-14T14:52:15 | 396,038,103 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,327 | py |
"""
LSMPSGeom v1.0
by Dew
"""
from plotter import boundaryplot
from plotter import plotterviridis
import numpy as np
E = 2e8
v = 0.3
rho = 0#70
go = 0#-9.8
a = 1000
Nx = 400
Ny = 20
h = a/(Nx-1)
#%% Outer Rectangular Boundary
xleft = []
yleft = []
nxleft = []
nyleft = []
dispXleft = []
dispYleft = []
forceXleft ... | [
"noreply@github.com"
] | noreply@github.com |
5ae67e21aa0a265327c0e999a8d2d0f6c22e628e | 4f4912a4353eae5f03836812c7089a6078222e36 | /scripts/resize_v2.py | c64d9572d26ceb1f73bef0ef03fa31da622c493d | [
"MIT"
] | permissive | rvbcia/pytorch-yolo-custom | d3cb9438004923db6f3aa6bc9fab05aca9780149 | f04e27b766304f25bbe5d56330b8700fbfe536ab | refs/heads/master | 2022-07-18T15:27:06.219213 | 2020-01-12T00:52:33 | 2020-01-12T11:59:49 | 233,298,265 | 0 | 0 | MIT | 2022-06-22T00:06:33 | 2020-01-11T21:14:10 | Python | UTF-8 | Python | false | false | 1,283 | py | from PIL import Image
import os, glob
DIMENSIONS = (960, 1280)
FILETYPES = ['*.jpg']
def get_pictures_from_directory(subject_path, filetypes):
lst = []
for extension in filetypes:
lst.extend(glob.glob(subject_path + "/" + extension))
return lst
def get_folders_in_curr_directory(directory):
... | [
"dagryba@gmail.com"
] | dagryba@gmail.com |
f419cc7d65322b77ae227506168498401d3d7c01 | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Decompiler/decompyle3/semantics/make_function36.py | 602936bbf3b0f37273e472b635dbfb0fc03dfe5d | [
"CC-BY-4.0"
] | permissive | NeonOcean/Environment | e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d | ca658cf66e8fd6866c22a4a0136d415705b36d26 | refs/heads/master | 2022-12-03T13:17:00.100440 | 2021-01-09T23:26:55 | 2021-01-09T23:26:55 | 178,096,522 | 1 | 1 | CC-BY-4.0 | 2022-11-22T20:24:59 | 2019-03-28T00:38:17 | Python | UTF-8 | Python | false | false | 12,326 | py | # Copyright (c) 2019-2020 by Rocky Bernstein
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
74c46271ad8f162030f2eeacf25b9762da91b4a6 | d734ea42794064f04fc7d20c02103b46e557cf83 | /Sentences.py | 80de37cdc037896ec045807374115b2312a1af04 | [] | no_license | Rishoban/AbstractiveTextSummarization | 9d0d7dc628067bda54a1cbbbdc00d5398c924d5c | 44a928b8f4423ade23baaacc9d3bbec239d751c1 | refs/heads/master | 2020-05-04T17:41:37.673608 | 2019-12-28T07:03:08 | 2019-12-28T07:03:08 | 179,322,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | from nltk.corpus import stopwords
from nltk.cluster.util import cosine_distance
import numpy as np
from nltk.tokenize import sent_tokenize
def read_article(file_name):
file = open(file_name, "r")
filedata = file.readlines()
#Convert the document as String Object
sentence_string = make_String(filedata)
... | [
"rishoban27@gmail.com"
] | rishoban27@gmail.com |
c90f2f2b47255a6b5eea2c2bb753ceb5989e6fe0 | 51fd69cc133a4f5eba61c90dbc87ff6531445840 | /ib/ib_gateway.py | d826f27ac7409133e3d98ecf5fef22fce4fd8ed7 | [] | no_license | risecloud/pyktrader2 | 36c7a8b3730fb6e900df488e67d78b453b14baf0 | 0d012bae464969dd893b7bf87ae689efa2d0bccc | refs/heads/master | 2021-04-28T14:19:54.616928 | 2018-02-13T17:56:26 | 2018-02-13T17:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,983 | py | # encoding: UTF-8
'''
Interactive Brokers的gateway接入,已经替换为vn.ib封装。
注意事项:
1. ib api只能获取和操作当前连接后下的单,并且每次重启程序后,之前下的单子收不到
2. ib api的成交也只会推送当前连接后的成交
3. ib api的持仓和账户更新可以订阅成主推模式,因此qryAccount和qryPosition就用不到了
4. 目前只支持股票和期货交易,ib api里期权合约的确定是基于Contract对象的多个字段,比较复杂暂时没做
5. 海外市场的交易规则和国内有很多细节上的不同,所以一些字段类型的映射可能不合理,如果发现问题欢迎指出
'''
im... | [
"harvey_wwu@hotmail.com"
] | harvey_wwu@hotmail.com |
3c75260b5e4ea95e62b5308d82fca71483ebc612 | 443d8ce2b7b706236eda935e0cd809c3ed9ddae3 | /virtual/bin/gunicorn | ca6b74ade67c3e02d6ea287a95095fbacd1cee42 | [
"MIT"
] | permissive | billowbashir/MaNeighba | 269db52b506d4954e2907369340c97ce2c3a7a2f | 84ee7f86ac471c5449d94bd592adf004b3288823 | refs/heads/master | 2021-11-21T14:22:14.891877 | 2020-02-13T09:41:21 | 2020-02-13T09:41:21 | 153,802,533 | 0 | 0 | null | 2021-09-08T00:33:53 | 2018-10-19T15:15:16 | Python | UTF-8 | Python | false | false | 246 | #!/home/bashir/MaNeighba/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"billowbashir@gmail.com"
] | billowbashir@gmail.com | |
50bc42409419887979cd7bad5bc95a6288d39439 | fcdfe97b463bbcfd4094a837107a7dee515ed8ad | /day4/password.py | 8e544e24b4ee374e5eb14132bb7afbb664b912c5 | [] | no_license | mnikkel/adventofcode2019 | ed32944dce9664baa6e4a30151d3654702eebbe6 | 30edf548e870fd1fb106f16a86db3f10ec6b8922 | refs/heads/master | 2020-11-24T00:37:57.970087 | 2019-12-21T16:00:47 | 2019-12-21T16:00:47 | 227,887,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
PASSWORDS = []
PART2 = []
def split_int(number):
return list(map(int, list(str(number))))
def check_passwords(first, last):
for password in range(first, last):
digits = split_int(password)
if digits != sorted(digits):
continue
... | [
"mnikkel@gmail.com"
] | mnikkel@gmail.com |
cd618305ac17c11ecd73e6f388d47a2aee1b79b8 | 99e5384b43128ddfa5207c88f1d8919e35f2f2e2 | /sim.py | 6f1cf149ad0bbff850be3dce47baa797c15ade2a | [] | no_license | TDoGoodT/poly-sim | bc5b6936d21f1a7d6f0dd11efa2b0a7316bceba8 | 49cb806697b2d35ec6f0e8f1b9ba985db9ed871f | refs/heads/master | 2023-08-10T19:29:14.949397 | 2021-09-14T21:43:43 | 2021-09-14T21:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from random import randint as rint
import numpy as np
import math
from utils import *
def get_sums():
init_poly = np.array([states[rint(0,3)] for i in range(N)])
sums = None
for _ in range(10**2):
_, sum = mont_carlo_poly_sim(init_poly, 10**4, N, b*f*a)
if sums is None:
sums = su... | [
"bachar.snir@gmail.com"
] | bachar.snir@gmail.com |
7088f08c8698f900e9a5327427a6296fb352b6ae | 0e54c113bc131aeec3c0a215a2034b57d19a0253 | /beginning_python/getopt_example.py | bb6c9932da3c3726706331adfe852bbf22339d70 | [] | no_license | ozdael/python | 49e3e2d4dcd73cf1ada3e1cd2e3c6034067f43c5 | d79b77a08d54286f1fc937dad5f94bb6a24e28f1 | refs/heads/master | 2020-03-22T06:57:03.298313 | 2018-07-04T04:55:50 | 2018-07-04T04:55:50 | 139,668,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import sys
import getopt
# Remember, the first thing in the sys.argv list is the name of the command
# You don't need that.
cmdline_params = sys.argv[1:]
opts, args = getopt.getopt(cmdline_params, 'hc:', ['help', 'config='])
for option, parameter in opts:
if option == '-h' or option == '- -help':
print(... | [
"jaap.dalemans@gmail.com"
] | jaap.dalemans@gmail.com |
f8332b51ff86f76385fbe4be9e2a971f78b0b4df | bb1e0e89fcf1f1ffb61214ddf262ba327dd10757 | /plotly_study/graph_objs/choropleth/colorbar/__init__.py | 260c248d1ed0c88a620f4f61647a5a35e410ceb2 | [
"MIT"
] | permissive | lucasiscovici/plotly_py | ccb8c3ced89a0f7eccf1ae98551fa712460033fe | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | refs/heads/master | 2020-09-12T05:43:12.363609 | 2019-12-02T15:13:13 | 2019-12-02T15:13:13 | 222,328,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,104 | py | from plotly_study.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Title(_BaseTraceHierarchyType):
# font
# ----
@property
def font(self):
"""
Sets this color bar's title font. Note that the title's font
used to be set by the no... | [
"you@example.com"
] | you@example.com |
c1dd619c542ac685e1452df0f6b05a2b7a673d43 | 174b1e7227faab8e83841a4c3329fc8b812af774 | /app/fetch_papers.py | 62d8e8ccf211b2e6d29f02e941756add8e062c6e | [
"MIT"
] | permissive | ad48/asp | 5c4b756e6ee346f2900f1f6326f1a09aaaf62f0c | 7288504dd468d6d75f58a06b3f202a0dbc6350a5 | refs/heads/master | 2021-07-03T13:55:40.062696 | 2019-05-26T13:47:29 | 2019-05-26T13:47:29 | 99,157,008 | 0 | 0 | MIT | 2021-06-01T23:47:04 | 2017-08-02T20:14:33 | Python | UTF-8 | Python | false | false | 7,908 | py | """
Queries arxiv API and downloads papers (the query is a parameter).
The script is intended to enrich an existing database pickle (by default db.p),
so this file will be loaded first, and then new results will be added to it.
"""
# import app
from config import Config as config
import os
import time
import pickle
imp... | [
"adamday1284@gmail.com"
] | adamday1284@gmail.com |
0e8ab36b34b4e373f6bb5a9f370ece3a321dbcd4 | 2540cf43d97bd96a3d2aca8b2c58e828d9a83fc0 | /arcor2_kinali/services/systems.py | be9f06616d6845cf9ad450532bfcdde2cf154852 | [] | no_license | ZdenekM/arcor2_kinali | 3c73161fcbe77bb450bd6b0525b92d1d8eafebf5 | e2117adc19865d8eca1ec719f4bcc06949268c61 | refs/heads/master | 2021-01-07T23:35:48.834412 | 2020-04-27T20:06:34 | 2020-04-27T20:06:34 | 241,851,796 | 0 | 0 | null | 2020-02-20T10:08:48 | 2020-02-20T10:08:47 | null | UTF-8 | Python | false | false | 879 | py | from typing import Optional, Set
from arcor2 import rest
from arcor2.services import Service
from arcor2.exceptions import Arcor2Exception
class SystemsException(Arcor2Exception):
pass
@rest.handle_exceptions(SystemsException, "Failed to get available configurations.")
def systems(url: str) -> Set[str]:
re... | [
"imaterna@fit.vutbr.cz"
] | imaterna@fit.vutbr.cz |
6d7ec675819b1c661189bba75eb191ed84d5fba0 | 3a8b4f5274dce24fa640a1e5169fa0ace3fe7904 | /pile_up.py | b0b257ed39d8efb396f2254378d1ee8d1a95309c | [] | no_license | mqchau/dna_alignment | 1f70f728993171cd86400f6a0a47ab55e1cb4ad5 | c31683978c40ae66ab5bebca80df32da2c671041 | refs/heads/master | 2021-01-10T06:12:39.195411 | 2016-04-22T05:19:07 | 2016-04-22T05:19:07 | 50,700,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | import pprint
import ipdb
import commonlib
import numpy as np
db = None
pp = pprint.PrettyPrinter(indent=4)
def get_most_common_new_base(snp_list):
base_count = { "A": 0, "C": 0, "G": 0, "T": 0 }
for one_snp in snp_list:
inserted_base = one_snp.split(',')[1]
base_count[inserted_base] += 1
... | [
"quanqchau@gmail.com"
] | quanqchau@gmail.com |
e0f6a72ccc815e4aa9a14099e01bec9bfc57fedc | 70c2e698798a1601db4d69da696c0b3aaca638df | /robots/migrations/0001_initial.py | cfa8d825569e2145fcbee2055f5438749ed696ab | [] | no_license | MayankPratap/rcmnnit | 19e3e8f113438ca822cb780f480ab5393f3cfe3d | 4212e780f07ea2ac913a243687ff2abe99a31aa1 | refs/heads/master | 2021-05-08T16:28:21.586959 | 2018-02-04T06:03:48 | 2018-02-04T06:03:48 | 120,159,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-01-04 14:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Projec... | [
"mayank7860@googlemail.com"
] | mayank7860@googlemail.com |
0380359130dcecaee2a558877f9ab576acadf4f6 | 7477716fa949efb3b29a2e8502409bfe018df622 | /Current/NI/proto/NIDAQmx.py | f573fb4de5831332c7c226dd42eead73d72c80bc | [] | no_license | Geocene/cookstove_test_tracker | b816548de14466be95c856f1ec6a6d2e92c997fa | b2fab76b72b5b400b6e0396a580891084ef373c9 | refs/heads/master | 2020-06-12T03:25:06.997097 | 2019-06-28T00:40:55 | 2019-06-28T00:40:55 | 194,180,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813,759 | py | # generated by 'xml2py'
# flags '-v -c -kdefst -l nicaiu -o NIDAQmx.py NIDAQmx.xml'
from ctypes import *
def errCheck (result, func, args):
print 'errCheck', result, func, args
if result != 0:
raise RuntimeError(result)
return (args[0], args[1])
#STRING = c_char_p
#STRING = (c_char_p, 'string', 1)
... | [
"DanMan1185@gmail.com"
] | DanMan1185@gmail.com |
9eab3027ead1eeefda4406dede28b0b56b90bce0 | 084e7cab4163cf087a6d3117b06dfebd1b6084b3 | /tools/gen-step-index.py | 28134f2479a65a852330099331161210dc5c993f | [] | no_license | maksverver/PrimaDvonna | 211a0fc833811aa81c8e0a26d9e86c08538746c7 | 548dacfd48e291f0e8594e08afc078a0bb9a4219 | refs/heads/master | 2021-01-19T03:20:37.188993 | 2011-10-16T15:41:03 | 2011-10-16T15:41:03 | 34,075,695 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | #!/usr/bin/env python2
id_rc = ( [ (0, c) for c in range(0, 9) ] +
[ (1, c) for c in range(0, 10) ] +
[ (2, c) for c in range(0, 11) ] +
[ (3, c) for c in range(1, 11) ] +
[ (4, c) for c in range(2, 11) ] )
rc_id = {}
for i, (r,c) in enumerate(id_rc): rc_id[r,c] = i
DR = [ 0, -1, -1, 0, +1, +1 ]
D... | [
"maksverver@geocities.com"
] | maksverver@geocities.com |
7a2884a3e8359a2f154ff3cb75ee8837fcbad0e3 | 9f40143996137f7880fbf5aec9174f4214d1ed4b | /website/views.py | 4994f13ff777e02a902a6c8275807d524e3141fc | [] | no_license | AnkitKumawat07/website-for-blogger | e9303a1c1f1c1edc2a0a23cdb7ad0f5ece13ae9b | 18e97f4ebbbcf4d696077147621280ea5f9e9a7b | refs/heads/master | 2022-11-21T12:05:25.850815 | 2020-07-17T18:45:44 | 2020-07-17T18:45:44 | 280,494,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from django.shortcuts import render, get_object_or_404
from django.views import generic
from .models import blog
def index(request):
queryset = blog.objects.filter(status=1).order_by('-created_on')
context = {'titles': queryset}
return render(request, 'index.html', context)
def about(request):
retur... | [
"ankitkumawat0602@gmail.com"
] | ankitkumawat0602@gmail.com |
331d4674d5ad02780e975206c79ca34721ad2703 | 69b4fe4d4e4034f186c947d711695f51b3f51cbc | /order/models.py | 1c9f664e15ea29523f7f7f72a874afc84e730d77 | [] | no_license | wst07261144/bookstore | a8ec7d1320c599b44ebcb81afc53c00d3af06fa6 | e15e145bbac8fba1e28de0444f93d2c217e9a224 | refs/heads/master | 2022-12-14T12:07:43.412569 | 2019-04-03T16:26:16 | 2019-04-03T16:26:16 | 177,062,470 | 2 | 0 | null | 2022-12-08T01:42:46 | 2019-03-22T03:04:28 | Python | UTF-8 | Python | false | false | 1,988 | py | from django.db import models
from db.base_model import BaseModel
# Create your models here.
class Order(BaseModel):
'''订单信息模型类'''
PAY_METHOD_CHOICES = (
(1, "货到付款"),
(2, "微信支付"),
(3, "支付宝"),
(4, "银联支付")
)
PAY_METHODS_ENUM = {
"CASH": 1,
... | [
"wst07261144@gmail.com"
] | wst07261144@gmail.com |
4ab2afd9635bec53faf0d58200a76e577d1e1380 | c5981e979e328e3de0e8a62a55e55028b3264024 | /web-scraping/errorcheckinginrequests.py | 35ef8eba614c2aa6cbfbdb93a52dc1ff521544c5 | [] | no_license | AmitAps/learn-python | 0dfa0580017a2b420dd255b19aaaa434c0f2a648 | e2826a1c1f8fd544e86cdcfcde60eb2845faac48 | refs/heads/main | 2023-01-12T01:10:03.905611 | 2020-11-09T07:34:20 | 2020-11-09T07:34:20 | 305,295,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 23 15:34:22 2020
@author: Aps
"""
import requests
res = requests.get('http://inventwithpython.com/page_that_does_not_exist')
try:
res.raise_for_status()
except Exception as exc:
print('There was a problem: {}', (exc)) | [
"amitoct9@gmail.com"
] | amitoct9@gmail.com |
e47dce9c9c5eed815ffa55ca6d0aed20f77b9a8f | 80b2700b6f9940ee672f42124b2cb8a81836426e | /cgi/cgi.cgi | 5d4924622945cb130546139be58763ec78e549d9 | [
"Apache-2.0"
] | permissive | Vayne-Lover/Python | 6c1ac5c0d62ecdf9e3cf68d3e659d49907bb29d4 | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | refs/heads/master | 2020-04-12T08:46:13.128989 | 2017-04-21T06:36:40 | 2017-04-21T06:36:40 | 63,305,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | cgi | #!/usr/local/bin/python
import cgi
form=cgi.FieldStirage()
name=form.getvalue('name','world')
print '''
<html>
<head>
<title>Page</title>
</head>
<body>
<h1>Hello,%s</h1>
<form action='cgi.cgi'>
Change name<input type='text' name='name' />
<input type='submit'/>
</form>
</body>
</... | [
"406378362@qq.com"
] | 406378362@qq.com |
23409f69d2a3740621a3e60325ae383ed752d099 | 2266bc298b72ef8a8a46cd960678011e544da6a6 | /Vcatcher/vcatch/pipelines.py | 0fcb2edc2d64d95cff52d9b495d3e76403142f04 | [] | no_license | lsx0304good/sli0304_crawler | 784ec837f020e481b976f1bf58e537d47a8fa920 | ab8a5b9354c340d09ee50abed4b83910db29e03b | refs/heads/master | 2023-06-27T17:17:08.447839 | 2021-07-26T04:04:48 | 2021-07-26T04:04:48 | 387,702,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
import pymysql
from itemadapter import ItemAdapter
from .items import CommentsIte... | [
"sli369@student.monash.edu"
] | sli369@student.monash.edu |
4e1af43587d5fdb2600cc976d39472607dc4bf30 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1beta2_replica_set_status.py | 0c2f63cef33a6595d25265d9415af4140bce5378 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 8,428 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
85aaa2a87b5be705c8e57700c4d00f9b214f5cf9 | ccd33e981350a413aac07b2f0a1f30363d1042ab | /model/parts/utils.py | ceab57caba792b7a364d628fd8a7ea6f3e56b636 | [
"CC0-1.0"
] | permissive | Dabbrivia/hackathon_uniswap_model | b546549d22f98ddd015e3677654d302c112fc497 | 9aa5e060ec71f057eb0ab27e01cc4867cb53fef1 | refs/heads/main | 2023-01-06T19:50:39.315389 | 2020-11-09T12:05:15 | 2020-11-09T12:05:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import numpy as np
def updateTotalKwhBalance(params, step, history, current_state, input_):
variable = 'KWH'
value = current_state['KWH'] + input_['trade_kwh']
return (variable, value)
def updateTotalEurBalance(params, step, history, current_state, input_):
variable = 'EUR'
value = current_state['... | [
"svetlana.konstantinovna@gmail.com"
] | svetlana.konstantinovna@gmail.com |
3c37da390ecaf5417aa3b61479521adbddc84391 | 4c74ad102309f39b429286c6ab10ce1b690f37d2 | /core/views.py | 43153adc0a85125bafdc86b07683d0e7b67decac | [] | no_license | danimelchor/websiteDjango | 92cd7289f162034e780be65465eb946a5c6160e9 | ff7bb8be410883e593d3aed5b2dff066539c4460 | refs/heads/master | 2023-02-15T23:15:04.540595 | 2021-01-13T15:20:52 | 2021-01-13T15:20:52 | 313,104,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | from django.shortcuts import render
def home(request):
context = {
'socials': [{
'icon': 'fas fa-envelope',
'a': 'mailto:dmh672@gmail.com',
'color': '#EA4335'
},{
'icon': 'fab fa-github',
'a': 'https://github.com/da... | [
"dmh672@gmail.com"
] | dmh672@gmail.com |
5fb0bdd5a944c976954246b8fc3dd1134785b1b3 | 59e4586e52f47ffc2bda02e525582164e538d308 | /test.py | 0aa6f90e3ad96afbea7a79a8e56e8241cf4ea809 | [] | no_license | JoshuaSamuelTheCoder/HTTPClient | 3e0c36a2349f4a82207cfaf0d2c87eb2e9d99e22 | 4212966074183f614dad32f7b53d3a8dd04f459b | refs/heads/master | 2020-05-25T19:40:41.267567 | 2019-05-22T05:01:38 | 2019-05-22T05:01:38 | 187,957,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import requests
import json
def main():
response = requests.get(
'https://api.github.com/',
#params={'q': 'requests+language:python'},
)
# Inspect some attributes of the `requests` repository
json_response = response.json()
print(json_response['current_user_url'])
#repository = json_re... | [
"tweeterfriend@gmail.com"
] | tweeterfriend@gmail.com |
eb84958c605f223e423f6915befb128556c3071e | a00bcf0d36fd3c6b4172cd8e7824cb0eea329419 | /auctions/migrations/0001_initial.py | 58a274c1027d46d7b2a4a11eb28c3e6e4f693b21 | [] | no_license | ShilpThapak/commerce | add2ce75991f40c82d885e3478d4d105385572f7 | 150a96418a795ccf0706dfb0816ffdabc3902487 | refs/heads/main | 2023-04-03T11:21:34.130601 | 2021-04-01T07:38:38 | 2021-04-01T07:38:38 | 345,319,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | # Generated by Django 3.1.5 on 2021-01-25 04:36
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"thapak.shilp2395@gmail.com"
] | thapak.shilp2395@gmail.com |
c6a93461951f3907d81c8a462329331bcfdb066f | c1c58c0d62c5fcc3a859bc9e1ada56af8b9c0d4b | /geatestofthree.py | 3225e2c3903a84b7d6dbfd3219cf013b239b8802 | [] | no_license | pratheesh11/programs | 8c057fb4ec222d75f55d0d92a03fd1bf0a763ed3 | a995a2aea175dd784a8df4ad09039d9cb6a87e62 | refs/heads/master | 2020-04-17T11:04:49.143288 | 2019-06-12T15:37:31 | 2019-06-12T15:37:31 | 166,526,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | n1=input()
n2=input()
n3=input()
if(n1>n2):
elif(n1>n3):
print(n1)
elif(n2>n3):
print(n2)
else:
print(n3)
| [
"noreply@github.com"
] | noreply@github.com |
5824481df89a03fe19d62d9778727625522bba60 | 3a0e827f4ec75cde0d538d35fcbe65c260a6a016 | /tutorial/settings.py | 237ce57810c434c427d7ef1fa96307acc680f866 | [] | no_license | gnzlo789/swampdragon-tutorial | beda95cea0cead873ab5000eeebf276ea5e8c4d0 | 816623a12963b75cc678bbbca7125a91687b30bd | refs/heads/master | 2016-09-06T11:37:19.881309 | 2015-07-14T23:57:41 | 2015-07-14T23:57:41 | 39,106,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,933 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | [
"gnzlo789@gmail.com"
] | gnzlo789@gmail.com |
6a73d876aea17be4a376a5907de6235230844d3e | 1a4353a45cafed804c77bc40e843b4ad463c2a0e | /examples/homogenization/linear_homogenization.py | 1682971d9827a59e1fc33d4bc53001c774b6fcc9 | [
"BSD-3-Clause"
] | permissive | shrutig/sfepy | 9b509866d76db5af9df9f20467aa6e4b23600534 | 87523c5a295e5df1dbb4a522b600c1ed9ca47dc7 | refs/heads/master | 2021-01-15T09:28:55.804598 | 2014-01-24T14:28:28 | 2014-01-30T16:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,370 | py | # 04.08.2009
#!
#! Homogenization: Linear Elasticity
#! =================================
#$ \centerline{Example input file, \today}
#! Homogenization of heterogeneous linear elastic material
import sfepy.fem.periodic as per
from sfepy.mechanics.matcoefs import stiffness_from_youngpoisson
from sfepy.homogenization.ut... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
adff51915ecba0866f7d6f9eb38208dc7bdd7f9b | cd89ba5b5a0960c3a483b8b89cb6aa91ff60edda | /Module 4/6_filter.py | dc7865ecdb70a3a9e877e387f9c5c701b71abb68 | [] | no_license | SMHari/Python-problems | 698de5b36a0280deab47a2999bde379c678bad15 | 27cb113846e25aea263c1ed52519d1b42065e8c4 | refs/heads/master | 2022-10-12T12:46:01.054463 | 2020-06-13T11:31:22 | 2020-06-13T11:31:22 | 271,994,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import numpy as np
if __name__ == '__main__':
arr = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11]]
arr_np = np.array(arr)
print(arr_np)
print("elements greater than 5 are : ", arr_np[arr_np > 5])
| [
"s.hariharancs@gmail.com"
] | s.hariharancs@gmail.com |
e05664ff87e83f760833b263ea27a3411e4d24e3 | ca446c7e21cd1fb47a787a534fe308203196ef0d | /followthemoney/types/number.py | 4072e01a3017fa934f2ce8208185ed2b55969689 | [
"MIT"
] | permissive | critocrito/followthemoney | 1a37c277408af504a5c799714e53e0f0bd709f68 | bcad19aedc3b193862018a3013a66869e115edff | refs/heads/master | 2020-06-12T09:56:13.867937 | 2019-06-28T08:23:54 | 2019-06-28T08:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from followthemoney.types.common import PropertyType
from followthemoney.util import defer as _
class NumberType(PropertyType):
name = 'number'
label = _('Number')
plural = _('Numbers')
matchable = False
| [
"friedrich@pudo.org"
] | friedrich@pudo.org |
eb48bad6b577280cf083ae19b804c3ce6acda2ca | f690a2d93dcb0d6cecff8cffea59fbf154929615 | /fishbone/d3jqm/urls.py | b47cee4b4ac59385ff0c2475768f255b48a1f0a4 | [
"ISC"
] | permissive | panamantis/fishbone | 0e24b0ee3ec97fd9987abbfc6fdf2ce9d4bffc9d | 904431f56128b0064df87f7b89047a0039f67730 | refs/heads/master | 2021-01-19T07:23:35.721509 | 2014-03-02T20:51:00 | 2014-03-02T20:51:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from django.conf.urls.defaults import patterns, url,include
from django.views.generic.base import TemplateView
urlpatterns = patterns('d3jqm',
(r'index', 'views.main_index'),
(r'sorter', 'views.main_sorter'),
(r'system', 'views.main_system'),
(r'movement', 'views.main_movement'),
(r'', 'vie... | [
"jon.clement@panamantis.com"
] | jon.clement@panamantis.com |
253ee91010dc6dfb7dd3441c81ba35babbaaa3ba | c521e5e38f25058414b109d027a194f8befb5930 | /current/python/h10_ana.py | 4de9085b9383752fe4e00a15e832f63bdb5b9a34 | [
"MIT"
] | permissive | tylern4/physics_code | 885cb2dacccab14a7a83f89c50a7bafbabc7c6d1 | 7a181ba31d3e96d8f79f32a8a6075a3f64df31cb | refs/heads/master | 2023-07-23T14:31:38.473980 | 2020-08-17T14:27:57 | 2020-08-17T14:27:57 | 29,481,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from matplotlib import pyplot as plt
from build.h10 import h10_data
from build.physics_vectors import LorentzVector
from python.reaction import reaction
from python.histograms import Hist1D, Hist2D
from tqdm import tqdm
import numpy as np
h1d = Hist1D(500, 0.5, 2)
data = h10_data()
data.add("~/Data/e1d/data/h10_r2... | [
"tylern@canisius.edu"
] | tylern@canisius.edu |
4ae9e4b084955d895adbd4de6efebe5991d69552 | 7b97974e6c19bb43531ede81269ec9ddb0e54b11 | /venv/lib/python3.6/io.py | d33851470b536752df3782e0f788a74b21217aac | [] | no_license | knjiang/GrowF | 582c0cc1d693367965fdd5d27456207af5a6a38b | 2f6d7d5aa918fb92dd4bcfcb4d62e3c16507ff20 | refs/heads/master | 2020-04-01T03:48:10.359195 | 2018-10-14T09:27:31 | 2018-10-14T09:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/kjiang2000/anaconda3/lib/python3.6/io.py | [
"kjiang2000@587234276.guest.umich.net"
] | kjiang2000@587234276.guest.umich.net |
c0568c935a0b6a5b952ad43e763b9079362ea8a9 | 255ef10344981ae49174a7eb7278997819b441ec | /marketgrab/management/commands/sigma.py | 16904839998299f523d927aa2cb8c6f72308876e | [
"MIT"
] | permissive | colinmcglone/window-time | 2f60b8bc37079876e76969011fc0dcb836b40eb7 | 74ed90440b9bb93fa569534c7557972242569d3a | refs/heads/master | 2021-01-10T13:12:31.778070 | 2016-03-17T15:04:40 | 2016-03-17T15:04:40 | 49,010,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | from django.core.management.base import BaseCommand, CommandError
from marketgrab.models import Data, MovingAvg, Movements, Sigma
import numpy as np
from datetime import date
from django.db.models import Avg
class Command(BaseCommand):
help = 'Compute and store up to date sigma for movements.'
def add_argumen... | [
"me@colinmcglone.ca"
] | me@colinmcglone.ca |
7b96f4da183d09e021d9952a0dcf54bf9f5af32f | c898af4efbfaeba8fa91d86bc97f7f6ee2381564 | /easy/561. Array Partition I/test.py | e9fa5a72142fdad8d3321c524413f6509e273cb4 | [] | no_license | weiweiECNU/leetcode | 5941300131e41614ccc043cc94ba5c03e4342165 | 1c817338f605f84acb9126a002c571dc5e28a4f7 | refs/heads/master | 2020-06-20T18:33:28.157763 | 2019-08-20T07:52:14 | 2019-08-20T07:52:14 | 197,209,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # https://leetcode.com/problems/array-partition-i/
# 比较大的数字一定要和比较大的数字在一起才行,否则括号内的小的结果是较小的数字。
# 所以先排序,排序后的结果找每个组中数据的第一个数字即可。
# 时间复杂度是O(NlogN),空间复杂度是O(1).
class Solution:
def arrayPairSum(self, nums: List[int]) -> int:
return sum(sorted(nums)[::2]) | [
"weiweiwill995@gmail.com"
] | weiweiwill995@gmail.com |
7744d84fab4fb3d162c75d855e36b1879af3aa4a | ccfbd31bbcb509947cbf467504cbae8bc15e0fec | /Python/Finished/solar_system_finished.py | e7596db252da88e0cc0d8bb0f30775c3aa88a31d | [] | no_license | etlam262/Astro_I_Solar_System_Project | c1f6c7eafb681f34dc4b599addafba64b478a6a1 | e9eff4f390b37429aa9a9fae7a06bd80871e7a87 | refs/heads/master | 2022-07-21T16:50:46.438887 | 2020-05-20T12:14:35 | 2020-05-20T12:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,111 | py | # import libaries
# basic math capabilities
import numpy as np
import functools as ft
import os
# plot library
import matplotlib.pyplot as plt
"""
Definiere eine Config 'class' um Simulationsparameter zu speichern.
"""
class Config:
def __init__(self, t_max, dt0, dt_output, output_file):
self.t_max ... | [
"lboess@usm.lmu.de"
] | lboess@usm.lmu.de |
2f9777a6f543b6d70bb8bb2dce3067f44bb4d15b | 8b0f7b01b4bf6af9a39bd8a297e3c8c7cea8ef91 | /30_inheritance.py | f58cafa76f29be2499abc6343d8abd848c1369ca | [] | no_license | vineshpersaud/hacker_rank_30_day | 4be4abee94dc2bc76402892aa022046ddb4c63ec | 61500f3f20c8d7390283df6b62ec58949fd89920 | refs/heads/master | 2021-02-07T08:34:58.357292 | 2020-03-17T15:27:52 | 2020-03-17T15:27:52 | 244,003,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | class Person:
def __init__(self, firstName, lastName, idNumber):
self.firstName = firstName
self.lastName = lastName
self.idNumber = idNumber
def printPerson(self):
print("Name:", self.lastName + ",", self.firstName)
print("ID:", self.idNumber)
class Student(Person):
# Class Constructor
#
# ... | [
"vineshpersaud@gmail.com"
] | vineshpersaud@gmail.com |
c4247ad95e64b49b9d5c1a823c4dbd34adc9041a | 8cd722e44627cf4d7ad180044b4a49ba71ec33b4 | /shop/urls.py | da9e13d38928ed5521abffe03c7ac105bf132030 | [] | no_license | Muntasir00/Basic_ecommerce_website | ae1e0ac909ef5ef20737ebc91f2ee98f4d24c9a9 | e42f7a5ebde6ad89f74d688aed7916d81dead409 | refs/heads/main | 2023-06-02T18:08:50.769668 | 2021-06-15T21:11:53 | 2021-06-15T21:11:53 | 373,946,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.urls import path
from . import views
app_name = 'shop'
urlpatterns = [
path('',views.product_list, name='product_list'),
path('<slug:category_slug>/', views.product_list, name='product_list_by_category'),
path('<int:id>/<slug:slug>/', views.product_detail,name='product_detail'),
]
| [
"muntasir690000@gmail.com"
] | muntasir690000@gmail.com |
5554901defcf910a7eb1e706f39e14f5d12a7f72 | 5dccb539427d6bd98b4b4eab38b524dc930229c7 | /monai/apps/pathology/transforms/post/array.py | 5289dc101cbcd35a1374ebbfa721ba2ba02f1d52 | [
"Apache-2.0"
] | permissive | Warvito/MONAI | 794aca516e6b3ed365ee912164743a3696735cf3 | 8eceabf281ab31ea4bda0ab8a6d2c8da06027e82 | refs/heads/dev | 2023-04-27T19:07:56.041733 | 2023-03-27T09:23:53 | 2023-03-27T09:23:53 | 512,893,750 | 0 | 0 | Apache-2.0 | 2022-08-05T16:51:05 | 2022-07-11T20:04:47 | null | UTF-8 | Python | false | false | 36,850 | py | # Copyright (c) MONAI Consortium
# 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 or agreed to in writing, so... | [
"noreply@github.com"
] | noreply@github.com |
8b84e3cf086a65839457eec304edb7ea3cd8f55c | 7fbda7ec849047ef3af3d34b10ecfd9c0e75aa50 | /protectedblob/tests/test_blob.py | 9356f8a8db53332c196bd8b49571bc6438af79b9 | [
"MIT"
] | permissive | lukhnos/protectedblob-py | 856b3cd30320e7d19841c24d148a6642918cb908 | 40c85ccf4fc25f739087fad37fc8ba4ec4d26eda | refs/heads/master | 2022-03-14T03:12:15.571664 | 2022-02-20T02:36:50 | 2022-02-20T02:36:50 | 35,086,896 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import unittest
from protectedblob.blob import PassphraseProtectedBlob
from protectedblob.cipher_suites import AES256CBCSHA256
from protectedblob.key_derivation import PBKDF2SHA256AES256
class TestPassphraseProtectedBlob(unittest.TestCase):
def test_roundtrip(self):
plaintext = b'hello, world!'
p... | [
"lukhnos@lukhnos.org"
] | lukhnos@lukhnos.org |
64f91c8c167a08832f353ec7593da2b0ca3afd5a | 733e458f9222411e78cea9e0023c21cb23fd010b | /SimulationStudy/Run_HMM.py | b16571feb1411c7b4342d7aeb61d2514e8574c81 | [] | no_license | xji3/EDN_ECP | 331e39c359b6adb83b2939217e52fdaa152e7cd6 | 137c2a93e641d0ad8041c3cfa257a36cc592747f | refs/heads/master | 2021-01-10T01:21:29.884962 | 2018-01-29T16:52:42 | 2018-01-29T16:52:42 | 45,130,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,941 | py | from IGCexpansion.IndCodonGeneconv import IndCodonGeneconv
from IGCexpansion.HMMJSGeneconv import HMMJSGeneconv
from IGCexpansion.PSJSGeneconv import PSJSGeneconv
from IGCexpansion.JSGeneconv import JSGeneconv
import argparse, os
import numpy as np
def main(args):
paralog = ['EDN', 'ECP']
geo = args.geo
ra... | [
"xji3@ncsu.edu"
] | xji3@ncsu.edu |
095f2a6b6d63c3c793d4c5ac8ecee36561753586 | 61808425fbcc330b1f62fc214ff7e273718b8d27 | /survey/propositionA2.py | 9e353468dca129465404abf03cd34efba800ad5b | [
"MIT"
] | permissive | pbatko/abcvoting | c31d12335dc9a629b2a3f2b7e19ae064005a979f | 55a8e7e23e35a3620921e3f5426a09925e83640e | refs/heads/master | 2022-12-12T19:17:20.132758 | 2020-08-31T20:20:46 | 2020-08-31T20:20:46 | 293,638,983 | 0 | 0 | MIT | 2020-09-07T21:47:55 | 2020-09-07T21:47:54 | null | UTF-8 | Python | false | false | 2,846 | py | """Proposition A.2
from the survey: "Approval-Based Multi-Winner Voting:
Axioms, Algorithms, and Applications"
by Martin Lackner and Piotr Skowron
"""
from __future__ import print_function
import sys
sys.path.insert(0, '..')
from abcvoting import abcrules
from abcvoting.preferences import Profile
from abcvoting import... | [
"unexpected@sent.at"
] | unexpected@sent.at |
6f8a1791f9c390437deb8d5569daf51f85959c08 | 00bc230a299733675f0a6f83b179fa1cf0d9ef86 | /data-sets/first_order_logic/thesis/safety_liveness_ratio.py | a22605b285b876c919be44b8121eb8dcc9928ed6 | [] | no_license | Mateusz-Grzelinski/sat-research | 256719897e43e5d7e29580e2ee4dcebd6df86524 | 402a0006fba98658c2526f9d5219474834ded7f9 | refs/heads/master | 2021-07-11T18:18:09.138416 | 2021-03-29T21:31:31 | 2021-03-29T21:31:31 | 241,707,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | import concurrent
import logging
import os
from concurrent.futures.process import ProcessPoolExecutor
from logic_formula_generator.generators.presets.first_order_logic import CNFSafetyLivenessPresetNoSolver
logging.basicConfig(level=logging.DEBUG)
OUT_PATH = '../../_generated'
safety_liveness_path = "_fol-tptp-cnf-... | [
"grzelinskimat@gmail.com"
] | grzelinskimat@gmail.com |
6fcf0359366a4972e05f4b2495b15005035985e2 | 58199f1a4fccc8d5e550daa2bccfa3eb118669db | /app/__init__.py | 3ccf85fc2e92aaa7b67696a4a9f93b800f27b115 | [] | no_license | theotheruser2/dbcourse | 6051f331d60926d7d32ff3e8a1c821133e23999f | e545f4cd529717059f24ba24d3388fa8176ae371 | refs/heads/main | 2023-03-30T11:56:09.291974 | 2021-04-09T13:49:48 | 2021-04-09T13:49:48 | 354,005,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_bootstrap import Bootstrap
app = Flask('dbcourse', template_folder='app/templates', static_folder='app/static')
app.config.from_object(Config)
bootstrap = Bootstrap(app)
db = SQLAlch... | [
"noreply@github.com"
] | noreply@github.com |
cac946a338e0639b51239033d415fafb40e29587 | ac9bd8ada8957f3d3b7bddd92b5d153f879b66b5 | /GUI_PyGt/OverStackflow/from user.py | a3d00eaa87aeb97eb807e342ce1dd8b5dbb7c999 | [] | no_license | kissbill/02__sentdex | cd3bd91ae7c3c099c09829937c9b20e55849a045 | 35ee29805bd48b0f2523b6e52f50bf1b8aa7b699 | refs/heads/master | 2020-04-22T23:07:28.867814 | 2019-02-14T17:43:57 | 2019-02-14T17:43:57 | 170,730,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,414 | py | import sys ,re
from PyQt4 import QtGui ,QtCore
string = []
regex_words = ''
finding = []
class Window(QtGui.QWidget):
def __init__(self):
QtGui.QWidget.__init__(self)
layout = QtGui.QVBoxLayout(self)
self.setGeometry(0, 400, 1200, 300)
self.setWindowTitle("Hash Tagging")
s... | [
"milerik@hotmail.com"
] | milerik@hotmail.com |
3645c536f996e1aca5123bb926270dc3791a0150 | ed8bf48cf98c6f6f65bbe6a0b8f27638e765f2dc | /cuckoo/clockBong.py | 43d36c5e4aa55628b49872bf65680802b36d7fe8 | [] | no_license | acrandal/clusterHatHacking | 138eb8ed575522db5106a1c26013e586b5f1ad3f | f51c2991febf4dd0460746a737afeb8884ba7513 | refs/heads/master | 2021-08-26T06:39:33.733723 | 2017-11-21T22:18:39 | 2017-11-21T22:18:39 | 111,275,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | #!/usr/bin/env python
import time
import subprocess
import datetime
import sys
from subprocess import Popen, PIPE
PAUSETIME = 0.2
DEBUG = False
def bong():
subprocess.check_output(["mpg123", "cuckoo_clock.mp3"], stderr=subprocess.STDOUT)
def tick_clock( force_bong ):
if DEBUG: print(" [x] Current time: " + ... | [
"acrandal@wsu.edu"
] | acrandal@wsu.edu |
ffe0bcec5d0986af0fc3bc451e462ba760b99b53 | 5ca58cfa1c327d88642d1157dba693b922292e91 | /src/pyflow/__init__.py | f84e1eaca7e813d6c1fac20bbe416c652aabebcb | [
"BSD-3-Clause"
] | permissive | mozjay0619/pyflow-viz | b80482b3614d5abaa40c89cc448034a94e5ce53d | 56ba9acd67d7742ae663800f8b92726cc603d1d8 | refs/heads/master | 2021-12-25T16:24:21.934777 | 2021-09-14T03:05:12 | 2021-09-14T03:05:12 | 248,684,615 | 7 | 0 | BSD-3-Clause | 2021-09-13T23:58:54 | 2020-03-20T06:31:58 | Python | UTF-8 | Python | false | false | 287 | py | __version__ = "0.43"
from .graph_builder import GraphBuilder
from .node import DataHolderNode
from .node import DataNode
from .node import OperationNode
from .graph_document import document
__all__ = [
"GraphBuilder",
"DataHolderNode",
"DataNode",
"OperationNode"
"document"
]
| [
"jkim2@grubhub.com"
] | jkim2@grubhub.com |
2664b71b949a6d72e74e30cc2bc7665c571ac3a2 | 93bacaaf5e406ccc64cfee481fda100a0ade0813 | /disamb/model.py | 1afedc223e2f97c82fe46e60114071af73cc30e5 | [] | no_license | samprintz/type-filtered-entity-linker | de51c73db347c6cc35be9c59e17be733c1248b89 | 047c93246732cb2117a768e720a296158eb3b389 | refs/heads/main | 2023-06-26T21:21:58.092837 | 2021-07-28T16:05:25 | 2021-07-28T16:05:25 | 387,548,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,485 | py | import logging
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' # INFO messages are not printed
import tensorflow as tf
import numpy as np
from tensorflow.keras.layers import Input, Dense, GRU, LSTM, Bidirectional, Activation, Dropout, Concatenate, BatchNormalization
from transformers import DistilBertTokenizer, TFDi... | [
"sam.printz@web.de"
] | sam.printz@web.de |
29667ce7c0a2825f1a031de0d59bb74a2ac62e8d | 10944952c9c09800064cc349a04f0965371d1e8a | /models/bug_stage.py | 83a232fe3611c43b392e8a605240094475b4afd9 | [] | no_license | wangliminsz/bug-ch07 | 667d52cb14eebf45c669da42dd7bc4b2ad0ee6b2 | ad6bd1519791779b85a8b03b49655a47ed422ca7 | refs/heads/master | 2023-01-05T18:27:52.527114 | 2020-11-07T09:30:07 | 2020-11-07T09:30:07 | 310,809,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class bugStage(models.Model):
_name='bm.bug.stage'
_description='bug阶段'
_order='sequence,name'
#字符串相关类型
name=fields.Char('名称')
desc_detail=fields.Text('描述')
status=fields.Selection([('waiting','未开始'),('doing','进行中'),('... | [
"wang.limin.sz@gmail.com"
] | wang.limin.sz@gmail.com |
8c1598bd5be1b0c726217a90e79254919f8ad229 | 63a73fc512d171d486dcfcd3f1967c33d7e90cff | /controller.py | 2898919955dd8998ff187f8c888e5f9d322c9260 | [] | no_license | fndiaz/select_dinamico | b8f6c52c7c4058b56ccccc97c40427c9fe110c4d | 0a53877090a217776f56579851c6d592790e2e24 | refs/heads/master | 2021-01-01T05:36:53.164173 | 2014-03-19T20:57:09 | 2014-03-19T20:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # coding=UTF-8
import json
from pprint import pprint
def estados_json():
print request.vars
with open('/home/fernado/web2py/tronco/applications/ubercred/views/estados.json') as json_data:
json_data = json.load(json_data)
#print json_data[0]
#for dado in json_data:
# print dado
return response.json(json_d... | [
"fndiaz02@gmail.com"
] | fndiaz02@gmail.com |
b768bade62e0f9f9d9ba4c7735a0dd7a156dc11b | 0bddb2c26edeb506d641b8f4ede161bc9582785d | /plugins/ethpassthrough/routes.py | 8fb1d0ce9731e3ad963eaab6dcb75ddbc96312fb | [
"MIT"
] | permissive | Deeby/exrproxy | 61c7d65aee66b482ac1b32fc62c27d01df9a0d11 | 145389259eaba6f2c70074248a60d3ea784dbf81 | refs/heads/master | 2023-08-19T09:40:04.321912 | 2020-12-12T00:05:02 | 2020-12-12T00:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,720 | py | # Copyright (c) 2020 The Blocknet developers
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import json
import logging
import os
import threading
import requests
from flask import Blueprint, Response, g, jsonify, request
from re... | [
"magic.ru789@gmail.com"
] | magic.ru789@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.