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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d363d937b3058c5e74879e225eb4aea35ff3d0d0 | a2a2f20676d43ef62bf4e5fb066d016b7a0b7504 | /NOTES-SECTION-03/Ejercicio-6.py | fe27bd3b1b146bedd8ba6bb1283f58391f89e775 | [] | no_license | Victoriasaurio/Python-Course-U | 497d4e1a9840bdeb630db7c7d1a728f92d033200 | 852053832412820ff1a23812b767716cdf86f3e1 | refs/heads/main | 2023-02-16T13:44:48.778551 | 2021-01-11T23:45:54 | 2021-01-11T23:45:54 | 328,560,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # Al realizar una consulta en un registro hemos obtenido una cadena de texto corrupta al revés.
# Al parecer contiene el nombre de un alumno y la nota de un exámen.
# ¿Cómo podríamos formatear la cadena y conseguir una estructura como la siguiente?
# Nombre Apellido ha sacado un Nota de nota.
cadena = "zeréP nauJ, ... | [
"victoriasaurio.guzmanc@gmail.com"
] | victoriasaurio.guzmanc@gmail.com |
85c20195420c31d2cc23fc5b7a8fdd127a1c2fed | 00f808b76f6dde77aa898d31e2eea107cbcc3e40 | /PlottingQuickstart.py | 8730e9800a8cd25751ec939ffdfb6082bb91d948 | [] | no_license | benjaminverbeek/StatisticalMethodsInPhysics | 5efb4294e192d76d74236ad55bab2b94dbac1c1d | 0f245c87733e277ff5ddbefb63b14871bbe0bb01 | refs/heads/master | 2023-01-06T16:35:39.432961 | 2020-11-10T13:43:35 | 2020-11-10T13:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | ############
# Plotting #
############
# Documentation: https://matplotlib.org/3.1.1/tutorials/introductory/pyplot.html
# Import modules
import matplotlib.pyplot as plt # for plotting
import numpy as np # for preparing some data to plot
# Generate 50 points between 0 and 2pi
x = np.linspace(0,... | [
"papenbrock.michael@googlemail.com"
] | papenbrock.michael@googlemail.com |
aa312e967fd86f344d8c77e221894ca010e2830d | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/GreyNoise/Integrations/GreyNoise/GreyNoise_test.py | e8707046a884f7adfa98cf7e93dfa41d3ae14b8c | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 9,690 | py | import pytest
import json
import GreyNoise
from test_data.input_data import ( # type: ignore
parse_code_and_body_data,
get_ip_reputation_score_data,
test_module_data,
ip_reputation_command_data,
ip_quick_check_command_data,
generate_advanced_query_data,
query_command_data,
get_ip_contex... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
2f20dcdee2da7a54db94994e026b99016778fbc6 | 0fda53530e3105c413f4573d8b7ee40df5e16456 | /setup.py | 182c8d082826b43b7670ecb4c0f53afa164c3c1e | [
"MIT"
] | permissive | colorfusion/animelyrics | c2414b4a5d62e86655e84b6702e2bcf654e1a85f | 823cf43030f6b6f02f44b7caf1bd77b493dfb455 | refs/heads/master | 2021-06-13T13:13:50.041415 | 2019-06-23T15:22:30 | 2019-06-23T15:22:30 | 193,237,981 | 3 | 1 | MIT | 2021-04-29T22:02:56 | 2019-06-22T13:38:36 | Python | UTF-8 | Python | false | false | 4,219 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Referenced from https://github.com/kennethreitz/setup.py
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# ... | [
"melvinyzw@gmail.com"
] | melvinyzw@gmail.com |
69d48301686380c0deeb43c870b36b441c8f549e | 507a28e47205a6933ba2d5065f24c5d26384909f | /todo/views.py | 3e8e0915e3d49cd59b14dad03d4640baf94525b3 | [] | no_license | luoyueyaoqing/todolist | b977fac4c09bb2f83e42f444085d989543cbcbe9 | ba49047150335e6da14306cdf8df35e754faaf63 | refs/heads/master | 2020-03-26T23:25:23.904954 | 2018-08-30T06:37:49 | 2018-08-30T06:37:49 | 145,541,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py | from django.shortcuts import render, redirect, get_object_or_404, HttpResponseRedirect
from django.contrib import messages
from .models import Todo, User
from django.contrib.auth import login, authenticate, logout
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.decorators import l... | [
"shmilyfae@163.com"
] | shmilyfae@163.com |
55174b3f69b513d0485118c8bde0ce8bf9e44825 | 041e1122b51d9e6557a30264fe7ae0dfbffa0879 | /samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py | ed62d02c8980fbcfca8489787c3263de3263a1ae | [
"Apache-2.0"
] | permissive | shibayan/openapi-generator | 59ca5dea4313a72f7a8d68e78420332b14ea619f | 8b26d81163fa4cd069425c23957f16a8286ec732 | refs/heads/master | 2023-08-03T12:25:23.705512 | 2023-06-20T09:11:33 | 2023-06-20T09:11:33 | 234,938,986 | 2 | 0 | Apache-2.0 | 2021-08-11T15:23:32 | 2020-01-19T17:38:17 | Java | UTF-8 | Python | false | false | 2,008 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-ge... | [
"noreply@github.com"
] | shibayan.noreply@github.com |
5b3a9b74ae35c93c4f7d3282d2ac7cacd3fcea52 | e4f6e8b4d389ae81c7f4ff9fb01f1851f3d0a27c | /Buoi 2/maze.py | 498b789113ef464655d31b8f6986532e16741cf8 | [] | no_license | MihThanh/VuMinhThanh--Fundamental--C4E14 | 1695914752a4cd3f113202725c72fc8da4d315ab | cdc58c84ed479d3ce9781290f9f667d1af24c649 | refs/heads/master | 2021-08-19T11:01:07.206783 | 2017-11-26T01:39:12 | 2017-11-26T01:39:12 | 109,583,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from turtle import *
shape("turtle")
# left(90)
# forward(n + 10)
# left(90)
# forward(n + 10)
# left(90)
# forward(n + 20)
# left(90)
for i in range(50):
forward(i*5)
left(90)
mainloop()
| [
"minhthanh@Minhs-MacBook-Pro.local"
] | minhthanh@Minhs-MacBook-Pro.local |
7926971f519ad8ae0e026b35dc5c0ed0d6584580 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/mwhoffman_pybo/pybo-master/pybo/recommenders.py | a97e51c89a8b80c68975ed9064be97173feb32de | [] | 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 | 841 | py | """
Recommendations.
"""
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from . import solvers
__all__ = ['best_latent', 'best_incumbent']
def best_latent(model, bounds, X):
"""
Given a model return the best recommendation, corresponding to the p... | [
"659338505@qq.com"
] | 659338505@qq.com |
4768754f3420d19911c26e62e222ae89383283a9 | 370b79839660022fdba49a28abbc5fffba4151a1 | /FindLine/findline.py | cc8ae4075bd7cd2378179f3d3a7361cd11387f05 | [] | no_license | cyhbrilliant/auto_drive.python | b6323112660a483cae137b958a1aedd827e6cbf9 | 908669a82980a84c127672ae1a0fdf2d2dea84b3 | refs/heads/master | 2020-03-22T14:28:57.341183 | 2018-07-08T16:11:00 | 2018-07-08T16:11:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | import numpy as np
import cv2
def findline(image):
# image = cv2.resize(image, dsize=(320, 240))
gray = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
# gray = cv2.equalizeHist(gray)
kernel_size = 5
blur_gray = cv2.GaussianBlur(gray, (kernel_size, kernel_size), 0)
low_threshold = 150
... | [
"965833120@qq.com"
] | 965833120@qq.com |
595e637221e0ba732c5c4483a30824788cfeb4bd | 49296c69348c743f234807ff6390687079b6b5d9 | /client/server_lib/omero_model_EventType_ice.py | ae9a4b8869439da36faf333c05a61efb605ae31d | [] | no_license | crs4/omero.biobank-docker | 2cb4b00f37115916d5b140cbdaf24c12bd8be9ef | e332a6eccad44384cd6a3a12e6da17eb89a6cd96 | refs/heads/master | 2023-09-02T04:36:21.401597 | 2014-12-07T17:34:27 | 2014-12-07T17:34:27 | 26,125,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,309 | py | # **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# ***********************************************************... | [
"gmauro@crs4.it"
] | gmauro@crs4.it |
f2d5578452e6ad1675bb94b5a8534320ee138af9 | a89debaa27ea0cb87a6cb3dd3464b0c00f5f3e92 | /braggvectors.py | 23a52a6898cc833f65a3a77e5ba86ed3b1a52b64 | [] | no_license | PedroMDuarte/bragg-scattering | 66aefb0d3f38f055c283bc6cf1663e0f60332dd1 | 3c1d4893e654720df18ec7fd0095e5de0979a5a4 | refs/heads/master | 2020-07-08T10:47:45.052122 | 2016-01-17T09:21:42 | 2016-01-17T09:21:42 | 11,858,425 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,253 | py | import numpy as np
import vec3
import pylab
from scipy import stats
import scipy
l671 = 671.
l1064 = 1064.
# Coordinate system:
# input Bragg light for HHH propagates almost along +Y
# +Z is up
# Q vector for bragg scattering HHH
# Remember that for AFM there is a doubling of the unit cell, so the
# lattice spac... | [
"pmd323@gmail.com"
] | pmd323@gmail.com |
9bd1564da82ff53bcd0503ae8247e966903cb1c8 | b7384e1a893368abca9fb64153f61455fee01a11 | /Ejercicios - Febrero3/tempCodeRunnerFile.py | 0516452c30eef59e9872646d65e9e87706319ad9 | [] | no_license | AnaGVF/Programas-Procesamiento-Imagenes-OpenCV | 43122bc10a64fdb5f3fc9054a388d0ffe65b7eb3 | 0fc9fa822ee7bef4402b9b7c4f2ef8f91676a53e | refs/heads/main | 2023-05-30T20:14:41.164126 | 2021-06-12T18:38:16 | 2021-06-12T18:38:16 | 376,359,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py |
# print(matrizAritmetica) | [
"aniavassallo@gmail.com"
] | aniavassallo@gmail.com |
27583ed8d12a927f919d0bf2846c7fb0f92bd05c | 8cb1637a09bc704b7a83f18b1d6c013b0de06c65 | /Tugas 3.3 (Metode Bagidua).py | a4dba0ee83ac3d8a90310d90fb7607ec6992e158 | [] | no_license | nurfiskah/Metode-Numerik | 4db962b1b765ebc5c71c60f81df8653270434de9 | f949be303ef6b96492d46d1b02804215d052d9d7 | refs/heads/master | 2021-01-09T11:38:26.677173 | 2020-05-28T09:35:33 | 2020-05-28T09:35:33 | 242,286,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import math
def f(x):
return x**3 + 2*x**2 + 10*x - 20
a = 1
b = 1.5
e = 0.000001
N = 100
iterasi = 0
print('==================================')
print(' c f(c)')
print('==================================')
while True:
iterasi += 1
c = (a + b)/2
if f(a)*f(c) < 0... | [
"noreply@github.com"
] | nurfiskah.noreply@github.com |
ab2bdf880cc67f0a59eee1e21470ef04e6ea6b74 | c8312ad2b4cb17b0b5f169d8871b99a4f80db4ce | /examples/train_mnist.py | 946757422cc0561d881a41c9c18bb4739ec8c9a8 | [] | no_license | ysasaki6023/bibliotheca | c832fe7e99818ec0bb7507ef7a1ab83bf569c5df | 3331f60838ffabaa4864b5ebb9b48a365d36402f | refs/heads/master | 2021-08-23T04:56:08.721679 | 2017-12-03T12:54:33 | 2017-12-03T12:54:33 | 112,337,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,193 | py | # -*- coding: utf-8 -*-
import os,sys,argparse
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import training
from chainer.training import extensions
from chainer.functions.loss import softmax_cross_entropy
from chainer.functions.evaluation import accuracy
from chainer import repor... | [
"ysasaki6023@gmail.com"
] | ysasaki6023@gmail.com |
8a3c3cdb649c3cd6f8a31a3906227e7678f6a976 | ce2af0d270a9c07a9f3825d6af16c5bf518c2553 | /datasets/dataset_factory.py | 1b6afd10f9ca5b1bd9320fd78039b5f580632c6e | [] | no_license | PeterWang1986/radar | 7695a0687c9d1199b0a8c135e0ef5890647860cd | 42e968fae76abc38daef4c2529826f20d7adb0dd | refs/heads/master | 2020-04-28T21:19:15.949534 | 2019-04-10T14:52:01 | 2019-04-10T14:52:01 | 175,578,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datasets import shtech_dataset
datasets_map = {
'shtech_part_A': shtech_dataset,
'shtech_part_B': shtech_dataset
}
def get_dataset(name, dataset_dir, FLAGS):
if name not in datasets_map:
... | [
"peng.wang@weimob.com"
] | peng.wang@weimob.com |
8601c293232fb517990f8f5f8780e5bdee340477 | 09ba03345c1118b3bb0ab971a13a5561a32a1441 | /filter_plugins/custom.py | e033afd6ae40354908bfa27a210aec2a656e42eb | [] | no_license | henryshue/es_playbook | a43dbb2eece830108ddf06eac2bc213795551e69 | 4a5f1523e31cd63fb891f54be8d1351b3682721c | refs/heads/master | 2020-03-31T11:24:17.918735 | 2018-10-16T02:12:39 | 2018-10-16T02:12:39 | 152,175,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | __author__ = 'henryshue'
import re
import os.path
from six import string_types
def append_to_list(values=[], suffix=''):
if isinstance(values, string_types):
values = values.split(',')
return [str(value+suffix) for value in values]
def array_to_str(values=[],separator=','):
return separator.join(... | [
"henryshue@163.com"
] | henryshue@163.com |
106ad1dc828dbe88883b891e1fe869c1d0139ec7 | ccc050265da18c7318443ee0b88a6810b69b318d | /example/vol9/9.11-9.12/admin2.py | 250f86aafee2c3940911a2c59347bf8d77a1f6de | [] | no_license | 563213341/git-example | d1bdaf45cb58c93a4f7cb0fc2796303961479672 | 68ca17c0834a7a183a9fbac528371b95a7a945c3 | refs/heads/master | 2020-05-28T10:17:22.538465 | 2019-05-28T06:24:03 | 2019-05-28T06:24:03 | 188,967,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from admin1 import Us
#----------------------------------------------------------------------------
class Pri():
def __init__(self,pri=['can add post','can del post']):
self.pri=pri
def showpri(self):
print('管理员的权限是'+self.pri[0]+'和'+self.pri[1])
#-----------------------------------------... | [
"1033470717@qq.com"
] | 1033470717@qq.com |
b1622a3fa6408cd97be037a5618fe1655d8bafd3 | 48e9c4cf96689e2caaf1ba69a0eaa4377f8e60d6 | /com/dxm/normal_tool/gzip_util.py | 1e33905fa1fc4768d2314accc01352288f89a9a3 | [] | no_license | charlie93321/youget | f764d7cdf4f635d8abde0d4f1dc8e713e528efef | 96e6b13a006ae1e693f3e9b78f94212726e8673a | refs/heads/master | 2021-05-18T02:25:33.370780 | 2020-11-07T10:19:32 | 2020-11-07T10:19:32 | 251,064,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import gzip
from com.dxm.normal_tool.str_util import is_empty
def gzip_decode(str1:str):
if is_empty(str1):
return '请输入非空字符串!!!'
else:
return gzip.decompress(str1.encode("utf-8")).decode("utf-8") | [
"2459060612@qq.com"
] | 2459060612@qq.com |
dc243ef0e49fa3ff8a861f221d8d50665be49a2d | e3355456512fe013878e357916f8ebde35fe1505 | /chat/routing.py | d1253516037c58f4123da0b1bb0e3a9d82f94069 | [] | no_license | alaalqadi/e-university-phi | 84e87a5e7ae550d9d17707639444e720d0f9443d | 9223a739ab954bd004a24784af09ab75551af309 | refs/heads/master | 2022-04-28T05:47:48.748226 | 2020-01-22T11:09:39 | 2020-01-22T11:09:39 | 231,812,008 | 0 | 0 | null | 2022-04-22T22:57:49 | 2020-01-04T18:46:43 | CSS | UTF-8 | Python | false | false | 186 | py | # chat/routing.py
from django.urls import re_path
from chat.consumer import ChatConsumer
websocket_urlpatterns = [
re_path(r'ws/session_view/(?P<room_name>\w+)/$', ChatConsumer),
]
| [
"a.alqadi@sit-mena.com"
] | a.alqadi@sit-mena.com |
a4ce0a8a070a51c2527899c48bfd7575035d5284 | f47dad4711552a97f4da6fc47c6c628efe3fa28a | /blog/views.py | 3a86a1d9b7b00127a91ac36dd5e3948c16a0d63c | [
"MIT"
] | permissive | Haw2K/my-first-blog | e683c3ad294f63953ace6ca98c6ad6d80128ec2c | 8a4d92552548adc36832cd65f30b24fa41725574 | refs/heads/master | 2021-09-12T22:05:02.986779 | 2018-04-21T11:16:03 | 2018-04-21T11:16:03 | 125,200,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,213 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from .models import Post
from .forms import PostForm
from django.shortcuts import redirect
from .models import InstabotDjangoModel
from .forms import PostInstabotDjangoModel
import os
... | [
"haw22k@gmail.com"
] | haw22k@gmail.com |
9c673287d86449ff60e55ac9556ea1559adaf8f3 | bfa00115a57f87a1cafce9c54fcff3cf659550db | /manualbook/project/models.py | dd812f3219cfa5ee4a7b1acf9a26f813a614e0a8 | [] | no_license | maligitcode/mbpd | ac7b5f23e20f68639ebd7c23c548d63c8fc9bbb2 | 2a1bd00d5554d5cd927e94b7617b939056959ce0 | refs/heads/master | 2023-09-03T01:24:40.180025 | 2021-11-14T11:51:30 | 2021-11-14T11:51:30 | 370,704,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | from category.models import Category
from django.db import models
class Project(models.Model):
Category = models.ForeignKey(Category,related_name="Project",on_delete=models.CASCADE)
title = models.CharField(max_length=225)
progress = models.IntegerField(default=0)
date_updated = models.DateTimeF... | [
"aliofficial.net@gmail.com"
] | aliofficial.net@gmail.com |
651fd06bcc7624e39f6af72889aff0f75d28c22f | f3a4d3799fc317d60130d1a4fba8aebc6915f112 | /day 17/iq_size.py | a8b01143735cdb6f10559634391b5af4b851f148 | [] | no_license | prajjawal98/FSDK2019 | aaf1a06c417b5ac896209ecb6d3edbc97b978199 | 44e78a3f48eacbdb52163484163a3f8759304ab3 | refs/heads/master | 2020-05-24T08:56:34.441693 | 2019-10-25T13:55:04 | 2019-10-25T13:55:04 | 187,194,361 | 0 | 1 | null | 2019-10-25T14:12:19 | 2019-05-17T10:10:18 | Python | UTF-8 | Python | false | false | 1,918 | py | """
Q. (Create a program that fulfills the following specification.)
iq_size.csv
Are a person's brain size and body size (Height and weight) predictive of his or her intelligence?
Import the iq_size.csv file
It Contains the details of 38 students, where
Column 1: The intelligence (PIQ) of students
Column 2: Th... | [
"prajjawalkansal1218@gmail.com"
] | prajjawalkansal1218@gmail.com |
1a1ecb11837480581dbf17ba1ae556b649d9bf22 | 1c068a12bc46ef5d32a2c2c1a908e82cf9beb0f3 | /PyHello.py | 4972c4f1861d65fcbbcb9daa831e5a47e7655812 | [] | no_license | TTheHolyOne/Hello-World | 0a71749c29d29db42867c2cab97c9f2cc8b7e0d9 | 104626c4319c02de5c4cd14c6a4d1a09537fc06c | refs/heads/master | 2023-05-08T22:55:16.158415 | 2021-05-29T00:23:49 | 2021-05-29T00:23:49 | 371,834,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | print("Hello World!")
input() | [
"69742571+TTheHolyOne@users.noreply.github.com"
] | 69742571+TTheHolyOne@users.noreply.github.com |
885863d55d2dd902e260f398635abc158b9b77e7 | 79d336c562a2da7a9a00ca6b73e3a7480055c981 | /parse.py | e44e796dbb847ad70c7f2cd31eb5acc14696831d | [] | no_license | acekingke/foxbase_inCloud | 5da2f5c367dc0dfb3eeac0322191506fd9eb1b94 | ac6a10210732fabb086e7b8b41759fc4eeff8c2d | refs/heads/master | 2021-01-09T06:54:58.881032 | 2019-01-06T08:19:50 | 2019-01-06T08:19:50 | 60,998,702 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,302 | py | #-*_ coding:utf-8 -*-
__author__ = 'kyc'
from lex import lg
from rply import ParserGenerator
import fox_ast as ast
from err import *
pg = ParserGenerator([i.name for i in lg.rules],
precedence=[("right", ["OR"]),("right",["AND"]),("right",["NOT"]),
("left",["GT","GE","LT","LE"]),
... | [
"aceking.ke@gmail.com"
] | aceking.ke@gmail.com |
9859d3336fc0a1dc7ac7fa48303de97166685c27 | 480a6db59473a0f5bf5aadd53a193eccb1ae0840 | /rev2.py | 81381ad3a747ac49fe2e5ce9ced4d300fca3222d | [] | no_license | EsaikaniL/GREK | ff89e92995f68c449c841f5ea1d2ac74a8911cd1 | 5587e02e603a15fc208f97d16fa68c441b64519a | refs/heads/master | 2020-04-15T01:45:02.074581 | 2019-06-17T12:12:29 | 2019-06-17T12:12:29 | 164,290,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | //esaikani
a=str(input())
print()
print(a[::-1])
| [
"noreply@github.com"
] | EsaikaniL.noreply@github.com |
230cead36af92854085213848dd8db024bb990db | 3030b17925bc10945baea83207879a186d8a5f9a | /check_for_patient.py | 4ac2202c512c0d59ca7c417b3eb69f3952939c00 | [] | no_license | hermespara/internship1 | 5459875e63f6ffa9a3492e86d64f8c8ddef03296 | 9264d235af7028889c079cfb8f4ed810c173a736 | refs/heads/master | 2020-03-10T13:59:02.453995 | 2018-07-20T14:26:52 | 2018-07-20T14:26:52 | 129,414,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #!/usr/bin/python3.6
import csv
import re
lymphocytes_path = "/home/hermesparaqindes/Bureau/internship1/data_with_lympho"
lymphocytes_data = open(lymphocytes_path, "r")
all_lymphocytes_data = list(csv.reader(lymphocytes_data, delimiter='\t'))
sample_id = []
type_tissue = []
l = []
for row in all_lymphocytes_data:
... | [
"hermes.paraqindes@etu.univ-lyon1.fr"
] | hermes.paraqindes@etu.univ-lyon1.fr |
ebb96eec080091e005df22076ceb5a03516b5897 | 0858b595708746fc18a3aa12d636748eb39c4c62 | /mbaidu.py | 397a5d662a9d7fe8104db95f0f1aedca59b9909b | [] | no_license | zanjs/selenium-demo-python | cf04abd858d2da55b619c435f0d6e0ffc3780e1c | 7fa7b95e435befac0b1f68333c5fe841f858211f | refs/heads/master | 2020-09-19T18:17:52.009640 | 2017-06-20T07:16:08 | 2017-06-20T07:16:08 | 94,495,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
# from time import sleep
import time
import os.path
dir = os.path.dirname(os.path.abspath('.'))
chrome_driver_path = dir + '/tools/chromedriver.exe'
# driver = webdriver.Chrome() # 打开火狐浏览器
driver = webdriver.Chrome()
driver.get('http://www.baidu.com') # 打开百度界... | [
"root@zanjs.com"
] | root@zanjs.com |
18cea130a676303c0f585f6fa2f7903698039649 | 088d8ad3f707b4c5f1d0d0c1603d7284314992c9 | /day-2/python-shebang.py | 6e7e40256072f31e8daf3dd1101a1790063c77cd | [] | no_license | acorg/2018-cambridge-python-course | a9c608969325a2496c35aa13a4c7682fd6130b74 | 3ff24d7d0380fcc7d6d5ced41b02d67d54bdb807 | refs/heads/master | 2020-03-14T08:19:38.537855 | 2018-05-21T17:23:49 | 2018-05-21T17:23:49 | 131,522,604 | 1 | 4 | null | 2018-05-08T10:50:11 | 2018-04-29T19:17:56 | Python | UTF-8 | Python | false | false | 39 | py | #!/usr/bin/env python3
print('hello')
| [
"terry@jon.es"
] | terry@jon.es |
8d337c3374fa5e20ce50e0bd239902655ca513dc | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/demo1_20201107182822.py | 1eb9150ebe9f80c0b8ddac8b3ba09dd5744c1cdf | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # import sys
# import yaml
# from demo import search
# from demo import a
# from demo import search1
# search("A")
# print(a)
# search1(12)
# print(dir())
# print(sys.path)
# name = "zhang"
# age = 12
# print("my name is:{0},my age is:{1}".format(name,age))
# list1 = [1,3,2]
# dic1 = {"a":1,"b":2}
# print("List ... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
030b67abd935004fc22bfa69136d8108dd56fb74 | 2b075d245f29814587f1ccd9f135121bf64393ee | /tests/test_aiomongo.py | fb0c6686f6d1e020a5877eed06ffe7af718a7f93 | [] | no_license | judy2k/aiomongo | d1dad601bb1d6fdecc6fc8d22de69563027be1c9 | a11b84ad3707bc2004b393fdb54defd199480178 | refs/heads/master | 2023-01-03T13:08:16.674184 | 2020-10-27T10:43:06 | 2020-10-27T10:43:06 | 307,435,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import aiomongo
def test_main():
assert aiomongo.main() is None
| [
"judy@judy.co.uk"
] | judy@judy.co.uk |
d28ea03afe7e024f5d9ba019ca199290f18fb353 | e60af01af329ef4f3882a68dcfb10577ebe230d6 | /serial/serialTest.py | 619118eeb74fdecb4df32c78d97a5ae8a397fadc | [] | no_license | theunkn0wn1/Prometheus | bb26693e25c64c4042158b68c07ea9a7dc199248 | fe611c1a7003c7c59f345d3adbb7e27508c2dcaf | refs/heads/master | 2021-01-19T00:05:26.873641 | 2017-04-04T22:59:35 | 2017-04-04T22:59:35 | 87,143,683 | 0 | 0 | null | 2017-04-04T23:00:26 | 2017-04-04T03:19:10 | null | UTF-8 | Python | false | false | 421 | py | #####
# Author: TheUnkn0wn1
# Function: Establish Serial comms between Pi and RoboClaw
###
import serial #Common pySerial library
import RPi.GPIO as gpio #renaming because I hate caps...
port = "/dev/ttyAMA0"
tx = 8 #Red wire
rx = 10 #purple
try:
ser = serial.Serial(port,38400,timeout=5)
except Exception as error:
... | [
"thhunkn0wnd@gmail.com"
] | thhunkn0wnd@gmail.com |
77f7744df99a9870ef74e9699379b0c709b4c335 | d06ff0f1afee67e993739c916fe2ffe0aeba4fde | /helpers.py | 876b3e8467ac9be62de5bb7307270a6691d4b2b4 | [] | no_license | mjurkus/ai_bootcamp_capstone | ba23fa56d63e054cdb5d928073a37f3a84103f7c | dfb319e31f460fc86722dfd7cb986ad4c09afe1a | refs/heads/master | 2022-07-09T04:25:16.154882 | 2020-11-14T09:10:30 | 2020-11-14T09:10:30 | 243,940,793 | 0 | 0 | null | 2022-06-22T01:20:21 | 2020-02-29T09:33:14 | Jupyter Notebook | UTF-8 | Python | false | false | 5,672 | py | import cv2
import tensorflow as tf
from utils import *
IMAGE_FEATURE_MAP = {
"image/encoded": tf.io.FixedLenFeature([], tf.string),
"image/object/bbox/xmin": tf.io.VarLenFeature(tf.float32),
"image/object/bbox/ymin": tf.io.VarLenFeature(tf.float32),
"image/object/bbox/xmax": tf.io.VarLenFeature(tf.flo... | [
"martynas.jurkus@gmail.com"
] | martynas.jurkus@gmail.com |
13a94b2815f193ac50236560a2690b7c5133de3d | ae3d0e3c2fb614d96f6c787583c6e2e4cb654ad4 | /leetcode/99. 恢复二叉搜索树.py | a263060c0ebf48b02614b7a0a10d8e9761e70e47 | [] | no_license | Cjz-Y/shuati | 877c3f162ff75f764aa514076caccad1b6b43638 | 9ab35dbffed7865e41b437b026f2268d133357be | refs/heads/master | 2023-02-02T10:34:05.705945 | 2020-12-14T01:41:39 | 2020-12-14T01:41:39 | 276,884,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
# from leetcode.TreeNode import TreeNode
class Solution:
def recoverTree(self, root: TreeNode) -> None:
"""
... | [
"cjz.y@hotmail.com"
] | cjz.y@hotmail.com |
989bb9f120c94b48eaf6d979a920ff1b35c6bcfb | 0a2aaa610797959b4401839835764023d05d259b | /tests/test_basic.py | 64917ceacdda83ca21ebbc7b0b268ca701166228 | [
"MIT"
] | permissive | michaeltchapman/clianet | 2f8cf45690abca51062cb8281610e49252c6d16f | 266c7ccd7bbc40e303f6358a1e40a5ef84cd29d5 | refs/heads/master | 2021-09-10T08:39:44.460976 | 2018-03-23T03:14:37 | 2018-03-23T03:14:37 | 119,523,193 | 0 | 1 | MIT | 2018-03-09T20:51:57 | 2018-01-30T10:53:24 | Python | UTF-8 | Python | false | false | 260 | py | # -*- coding: utf-8 -*-
from .context import clianet
import unittest
class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""
def test_absolute_truth_and_meaning(self):
assert True
if __name__ == '__main__':
unittest.main()
| [
"woppin@gmail.com"
] | woppin@gmail.com |
13eee23cc5168b5158fe3437ffcbe35d17fa24f2 | 9431070f08eb587e00225b98cf27cf2f1494e519 | /Think-Python/capitolo_4/poligono.py | 04b3ca4d393be03bc4e26e9b85b11702f50c8d59 | [] | no_license | emilianot04/Exercise_Python | 94908fd2612da077717de8907a4b9a39b9de9480 | abc29498f4c7efe1c4e42ad24e3850ad2f330615 | refs/heads/main | 2023-06-24T12:37:02.167480 | 2021-07-21T16:29:07 | 2021-07-21T16:29:07 | 377,550,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import turtle
bob = turtle.Turtle()
for i in range(4):
bob.fd(100)
bob.lt(90)
| [
"Emiliano@iMac-Emiliano.fritz.box"
] | Emiliano@iMac-Emiliano.fritz.box |
328ce19dbfc12478a7b336671e2d49ab6767a337 | 5748b92c451efe67fabc9e588dcd5dcedbe29c36 | /trunk/eggs/Products.NaayaGlossary/Products/NaayaGlossary/NyGlossaryElement.py | b00389f23d9ff48816ce16167e320ef03710be3a | [] | no_license | Hamzahashmi4444/Salman | 146d30303ff738f9c78525466b039e7a6a7bd1bb | 611ac05be7771a46b26ff243359cfcafce738cb1 | refs/heads/master | 2023-02-16T14:05:35.070709 | 2021-01-18T06:56:23 | 2021-01-18T06:56:23 | 330,587,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,170 | py | from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from OFS.SimpleItem import SimpleItem
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from AccessControl.Permissions import view_management_screens
from zope import interface
from zope import event
from Products.NaayaCo... | [
"hamza@gmail.com"
] | hamza@gmail.com |
dbed9b3f873e4976e09053e35754052de605d39f | 4ac801ac4a2af40c7b0782418398c2635a75fc08 | /Webapp/test.py | ba6438b74b0d766c882d35352b2b9d297039bbf4 | [] | no_license | underhood31/Reddit-Flair-Detector | b6dcdd6d15d07791ab929e2f2f76fb6195ee69d5 | e586c88346430c4725ae8a2fd221693247aa6445 | refs/heads/master | 2022-07-19T10:20:42.814833 | 2020-04-08T09:14:04 | 2020-04-08T09:14:04 | 197,002,253 | 0 | 0 | null | 2022-07-06T20:34:43 | 2019-07-15T13:17:07 | HTML | UTF-8 | Python | false | false | 5,410 | py | import pandas as pd
from collections import Counter
import string
import praw
import pickle
# flairToInt = {
# "Other": -1,
# "AMA":0,
# "AMA Concluded":0,
# "Casual AMA":0,
# "AskIndia":1,
# "Business/Finance":2,
# "Demonetization":3,
# "Entertainment":4,... | [
"manavjeet18295@iiitd.ac.in"
] | manavjeet18295@iiitd.ac.in |
dfded09e2368f3220cf8d36afc860543bd3170c8 | 41b72533c0c053f5b4bd18523941a1b992b3e083 | /ChengGuan/test_case/LiuCheng_currency/vectorValue.py | 74be43a74fb05a08bc528cd52ded4b9f16071bd3 | [] | no_license | lqrby/dcms | 5a5c457528519d97d1111b9737ba57c3204f0771 | 4515a1a82ffc9c48fd4aeab7e37ab122773a971e | refs/heads/master | 2020-03-21T05:05:56.423374 | 2019-04-16T03:03:52 | 2019-04-16T03:03:52 | 138,144,058 | 0 | 0 | null | 2018-08-11T04:46:49 | 2018-06-21T08:45:30 | Python | UTF-8 | Python | false | false | 1,033 | py | # import math
# class VectorCompare():
# # 计算矢量大小
# # 计算平方和
# def magnitude(self, concordance):
# total = 0
# # concordance.iteritems:报错'dict' object has no attribute 'iteritems'
# # concordance.items()
# for word, count in concordance.items():
# total += count *... | [
"748862180@qq.com"
] | 748862180@qq.com |
f689127b2494ab7132926b803ec3f5acb2121c84 | 6ae1f55e5af0ee2346ade59fe428569eb922993f | /Week_03/77组合.py | 20ad6176c99d3c908ed8549ab118acdd31ed9c93 | [] | no_license | Didcymakeaprogresstoday/algorithm009-class01 | a8feab11688dd29d28f1b6164a091c6e881c24e3 | 6f6453f973bec8af722b773d79efe0117f80671f | refs/heads/master | 2022-11-08T08:59:52.786609 | 2020-06-28T09:36:25 | 2020-06-28T09:36:25 | 264,979,086 | 0 | 0 | null | 2020-05-18T15:19:59 | 2020-05-18T15:19:58 | null | UTF-8 | Python | false | false | 503 | py | class Solution:
def combine(self, n, k):
if n <= 0 or k <= 0 or k > n:
return []
res = []
self.dfs(1, k, n, [], res)
return res
def dfs(self, start, k, n, pre, res):
#已找到的组合存储在pre中,从start开始搜索新的元素
#当层数到k时,pre作为元素添加到res中
if len(pre) == k:
res.append(pre[:])
return
for i in range(start, n + 1... | [
"yu_cai_hitsz@163.com"
] | yu_cai_hitsz@163.com |
cffe87584de4772f54273295d61b6432b209b00f | a77a97ae665e23c72fb4bd8c56eba381c81a543c | /lib/roi_pooling_layer/roi_pooling_op.py | 299af5e23fcfa24e2a320c1811bf4aca9b1117a1 | [
"MIT"
] | permissive | sravi-uwmadison/visual-tensor-decomposition | 86a93f51b77f9c4de874486e2ee13eb82b0bb0f7 | 4e80467aec3da64cfcd1226e95c8dac2edb4d50f | refs/heads/master | 2020-04-15T13:31:53.374492 | 2018-10-30T19:14:07 | 2018-10-30T19:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import tensorflow as tf
import os.path as osp
import os
op_file = 'roi_pooling_op_gpu_cuda8.so' # for CUDA 8
#op_file = 'roi_pooling_op_gpu.so' # CUDA 7.5
filename = osp.join(osp.dirname(__file__), op_file)
_roi_pooling_module = tf.load_op_library(filename)
roi_pool = _roi_pooling_module.roi_pool
roi_pool_grad = _... | [
"tzrtzr000@gmail.com"
] | tzrtzr000@gmail.com |
e768930f72bbe5a033b1355bd2ce6830e6613309 | c317ecb0f4a5c4d466fcc61ffd202b55c3adc1b5 | /mglive_vv_rows_one_day.py | bb58a41c52567c8545922ad58483c216d23fa611 | [] | no_license | chenshaopeng104716/extract_datas | 48001660e035997d18a2415d00bfe34bfec91cb5 | cecff83c75885407f68b74d567b4bff6211e7d1d | refs/heads/master | 2021-01-12T12:15:21.013895 | 2016-11-08T01:31:26 | 2016-11-08T01:31:26 | 72,390,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,106 | py | # -*- coding:utf-8 -*-
"""
@this module extract data from aws->dm_pv_fact->mglive_hour_fact(year,month,day,hour,bid,uid,vid,liveid,did,type)
"""
import zipfile
import os
import re
import csv
import codecs
import MySQLdb
import psycopg2
import datetime
import pandas as pd
import numpy as np
from tqdm import tqdm
import ... | [
"18855535980@163.com"
] | 18855535980@163.com |
5866058cc2889519ff1eff01b6b1caa8fb952e39 | a8e2d8243618236d159485e468c2a7068dafa76b | /base/operation_excel.py | d483c5792c2f1d7d836a39757e860fb173bb20a8 | [] | no_license | samguoy/jiankong_server | e3943730ea388240aeb239012491e266d9128693 | 7ea4ad482e117104a93438b75ecd4976d85277d7 | refs/heads/master | 2020-05-21T03:54:15.215609 | 2019-05-10T01:54:07 | 2019-05-10T01:54:07 | 185,900,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import xlrd
class OperationExcel():
def __init__(self):
self.data = self.get_data()
#获取excel数据
def get_data(self,sheet_id = 0):
workbook = xlrd.open_workbook('../base/test_url.xlsx')
table = workbook.sheet_by_index(sheet_id)
return table
#获取url内容
def get_url_value... | [
"guoyanzero@sina.com"
] | guoyanzero@sina.com |
6c7b4030690a6833b1bb6100a593da7f85d0d025 | 049fa1f7419471a4f77187b1ce0c3b7c8bde2177 | /Email.py | f3ac6152868f3d74021af21f265ba0c05ac87f2a | [] | no_license | JounyWang/Python-Tools | 0658b7d3ea360aff81cd7e45d3e19308c76a59eb | 75c7ddf56eaea7f3b460271ed5afffd28006805a | refs/heads/master | 2021-07-24T02:40:35.647388 | 2017-11-06T03:07:00 | 2017-11-06T03:07:00 | 104,840,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# @Author: jouny
# @Date: 2017-10-03 10:01:30
# @Last Modified by: jouny
# @Last Modified time: 2017-10-06 19:55:50
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.header import Header
from smtplib import SMTP_SSL
import sys... | [
"linjie.wang@sihuatech.com"
] | linjie.wang@sihuatech.com |
f453e6ce5b0bfd9dba97ed707f82dc688620ec8a | e1bea7b0885cdfa259bf3a54fa8372175e93dbfb | /python/csevo/processor/AbstractProcessor.py | 308d00c157f944743fbe4714180e122de931fb44 | [] | no_license | JiyangZhang/csevo | 1ac726aaad0eb18e90992bf6205d94ddea8c8afb | cf81deee4bea412305d7631b82a09755eb06e79a | refs/heads/master | 2023-02-25T08:47:42.175368 | 2021-02-03T03:24:48 | 2021-02-03T03:24:48 | 335,490,272 | 0 | 0 | null | 2023-09-13T18:14:57 | 2021-02-03T02:57:55 | Python | UTF-8 | Python | false | false | 938 | py | from typing import *
import abc
from pathlib import Path
from seutil import LoggingUtils
from csevo.data.MethodData import MethodData
from csevo.Environment import Environment
class AbstractProcessor:
logger = LoggingUtils.get_logger(__name__, LoggingUtils.DEBUG if Environment.is_debug else LoggingUtils.INFO)... | [
"jiyang.zhang@utexas.edu"
] | jiyang.zhang@utexas.edu |
248a2a2fd69b5ec6d9ac180a3b7ff377de38b57d | c88b98cbfbf1a9af54bc4840ece721481f578460 | /src/Notes_APP/admin.py | 4df72eac7aadf39efb48234db417c33d0684ccf1 | [] | no_license | wesamalnobani/Notes---WebSite | 6e3bbdafbe92b95404bd1c14d1bc0f5e4591dac0 | 65c1cb76bbfdb81d7152d62e6022d811ccc56b72 | refs/heads/master | 2020-04-22T06:24:22.307181 | 2019-02-11T19:43:31 | 2019-02-11T19:43:31 | 170,144,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.contrib import admin
from .models import Notes
# Register your models here.
class NotesAdmin(admin.ModelAdmin):
list_filter =['active', 'created', 'tags']
list_display = ['title', 'created', 'active' ]
search_fields = ['title']
admin.site.register(Notes, NotesAdmin)
| [
"wesam.alnobani@gmail.com"
] | wesam.alnobani@gmail.com |
0e05804ec2a0e13c30733be92479e7913d58543e | 9ecfdfbe098070079c9d96eb41ddb73f95857f93 | /Simple Chatty Bot/task/bot/bot.spec | d9b854f61e911e55b62c697fea0489b924e104a2 | [] | no_license | sathishkumar8594ys/Simple_Chatty_Bot | 0e850c616bc6dbd1a970596a3a6105d38960f59a | b07c148fa057bd3171a86e6bb456342fbfd38bfe | refs/heads/master | 2023-03-09T21:13:13.150854 | 2021-02-28T04:07:00 | 2021-02-28T04:07:00 | 343,017,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['bot.py'],
pathex=['/home/sk/PycharmProjects/Simple Chatty Bot/Simple Chatty Bot/task/bot'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
... | [
"sk@kali"
] | sk@kali |
88b5e60f14a115d454180edc652186ab1c3ad39f | 264b48f1488611fca35caeabbabc6587fa72f111 | /scrapy/homeDepot/spiders/quotes3_spider.py | 327066877849feb582bdbf414c61beae216744b5 | [] | no_license | stcybrdgs/PythonScrapers | 925fff3b65774715936cd81a4deaeb6d84ca55ca | aea504d72674ae13a256685338442846336cf4c8 | refs/heads/master | 2020-05-15T07:50:02.916133 | 2020-01-17T07:18:28 | 2020-01-17T07:18:28 | 182,148,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # quotes3_spider.py
# getting started with a scrapy web scraper
# imports =========================================
import scrapy
# classes =========================================
class QuotesSpider(scrapy.Spider):
# identify the spider
# for this spider, the parse() method will be called
# to handle... | [
"stcybrdgs@gmail.com"
] | stcybrdgs@gmail.com |
f162a2a8c62e9494f50e7e3ec5805431b37f673a | 26140f92e856196e701869c04b60f3db4ebddd41 | /iris.py | 1a74e485ef84f79afbeb5e0d676b7e120b7ea1e9 | [] | no_license | TomonoriIshikawa/machine-learning | 3a99b02f0f0345c5510df1b95b1698c3ff8dcf07 | 9b228548b7cfa7b1b3148e40eb5774100074f590 | refs/heads/master | 2020-07-12T17:09:08.070656 | 2019-08-30T13:33:46 | 2019-08-30T13:33:46 | 204,870,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
# アヤメデータの読み込み
iris_data = pd.read_csv("iris.csv", encoding="utf-8")
# アヤメデータをラベルと入力データに分類する
y = iris_data.loc[:,"Name"]
x = iris_data.loc[:,["SepalLength","SepalWidth","Petal... | [
"ishikawa@aidma-hd.jp"
] | ishikawa@aidma-hd.jp |
50c2c5e117974cc35fc294bb387217c30c9d1b73 | e47e8605c0fd82c5f689d77d30a649b221056d47 | /recieve_send_input.py | f417dde3626a3ee78e67a966eeae81442478fab5 | [] | no_license | DiegoMolero/RaspberryPianoServer | 2741d24b0fddada5a6c6fa1479eaf79f5d956c40 | b7650b9e0d433a0ae3bb10504595218935c76cf0 | refs/heads/master | 2021-09-17T14:48:39.490078 | 2018-07-02T22:49:53 | 2018-07-02T22:49:53 | 124,073,835 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | #!/usr/bin/env python
import sys
from threading import Thread
from socket import *
from time import *
TCP_PORT = 8000
BUFFER_SIZE = 1024 # Normally 1024, but we want fast response
# /-- Hololens Server Network ---
def sendData(data):
if 'conn' in globals():
conn.send(base+data.encode()) # echo
print('Data sen... | [
"diego.molero@alu.uclm.es"
] | diego.molero@alu.uclm.es |
282108fc4037ddb65adeb321187695351e7e68e3 | be494d2fd78c3d8cf55321baa2f281ca69129062 | /lab2/lab2.py | 1ee28a8b8f77f0dcddc545555d3cb80b02ecdf2b | [] | no_license | NoureldinYosri/MIT6.034AI | cf45d5ca6662236638120537f03444374f8d5af4 | 971a9cd7bb330cb78fc158a67b30d63de135798c | refs/heads/master | 2021-01-01T19:54:54.598046 | 2017-08-27T21:54:22 | 2017-08-27T21:54:22 | 98,722,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,087 | py | # Fall 2012 6.034 Lab 2: Search
#
# Your answers for the true and false questions will be in the following form.
# Your answers will look like one of the two below:
#ANSWER1 = True
#ANSWER1 = False
# 1: True or false - Hill Climbing search is guaranteed to find a solution
# if there is a solution
ANSWER1 = False
... | [
"noureldinyosri@gmail.com"
] | noureldinyosri@gmail.com |
d7660d570944bddd9a535c5c46e416d0967b4aa0 | a3d9701d8074ba66edf51a54038707acb9e0e9b6 | /users/migrations/0012_auto_20190721_1736.py | aac18ba33eb1b421b31cec8fcefc59810334d62a | [] | no_license | jdshah98/Food-Express | 2e6b5cc7e0e6bc26f35a12b1a1bb2e336b756187 | 3b152239be47228540556e5de96586f7618d7de5 | refs/heads/master | 2020-06-19T04:13:04.258793 | 2019-09-10T07:36:01 | 2019-09-10T07:36:01 | 196,556,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.2.2 on 2019-07-21 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0011_auto_20190721_1703'),
]
operations = [
migrations.AlterField(
model_name='usertype',
name='usertype',
... | [
"jdshahstudio@gmail.com"
] | jdshahstudio@gmail.com |
6242780faf6560025189bcab96433359a716fa1b | e43a96acd1cbd4c93fff43e264f30c9b4c552627 | /perfect_number.py | 8f5ff7f9f0e2d1527be604946b08621a2b224466 | [] | no_license | julywaltz/testCode | 2f4d68fdd0a37bb2aab1b1f79c3b3abf797be1cf | e3fa401a8ff1a3effc25cd1ab9cd830c8b93b056 | refs/heads/master | 2020-06-04T09:05:27.420800 | 2019-07-06T16:07:51 | 2019-07-06T16:07:51 | 191,957,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
'''
@Author: Julywaltz
@Date: 2019-06-15 14:42:15
@LastEditors: Julywaltz
@LastEditTime: 2019-06-16 21:25:47
@Version: $Id$
'''
from math import sqrt
def p_num():
primes = []
for num in range(1, 10000000):
end = int(sqrt(num))
is_prime = True
... | [
"julywaltz77@hotmail.com"
] | julywaltz77@hotmail.com |
39a12ece68a28beef7c51435ef74a705619d776b | 092b33f35c5201f40859caca27e936c184f5bd19 | /tao.py | d5efc36991b3ecb76a9260b6b5585ccc25edb16b | [] | no_license | wokwak/python | c709a2d6498ad23d149025c23b8a56856b17812d | d060e12146b3ed2dfdfc40864fe497a22d8ef076 | refs/heads/main | 2023-01-06T07:08:18.242007 | 2020-11-08T08:59:06 | 2020-11-08T08:59:06 | 311,021,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import turtle
import random
random.seed(10)
tao = turtle.Turtle()
tao.shape('turtle')
#tao.forward(100)
#tao.left(90)
tao.reset()
'''
for i in [10,50,90]:
print(i)
for i in range(100) :
tao.forward(100)
tao.left(100)
'''
#range(4)
#list(range(4))
'''
for j in range(10) :
for i in range... | [
"noreply@github.com"
] | wokwak.noreply@github.com |
7f833cec3bc0275e39a6025841f1a25440b25577 | d572d95b5d80c7493812d2b55a79d9c1980f5c12 | /app_development/my_weather_app.py | 67d4862f91b8e0b4730581eb522a6d4365979679 | [] | no_license | nancydu317/SEVI_students_testing | 34ca5d69db2a3ef166fb90394a4bcdfb04ec8731 | f2819678900ba455de70b73bab9fde3f58ebcce6 | refs/heads/main | 2023-07-25T19:05:33.483571 | 2021-08-27T20:21:31 | 2021-08-27T20:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | # start your app here!
| [
"noreply@github.com"
] | nancydu317.noreply@github.com |
1b3ae2f3d60990a335626d66b054b5602bcffb32 | fb2156803dbcd96a594feb7f4e84076477247f62 | /LeetCode/107. Binary Tree Level Order Traversal II.py | 2c288f66cdff04a9ee7ae3abf0ad3cc6a1c2f9d8 | [] | no_license | dynotw/Leetcode-Lintcode | dc9028cc6ffdeab9274d2c5771ca43a827014c16 | b3d8534cdabd3b58fa13df457c65fb53ba37edd8 | refs/heads/master | 2022-07-26T21:34:50.221844 | 2022-07-12T12:58:23 | 2022-07-12T12:58:23 | 236,271,631 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | # Question:(it's the derivative of 102 Problems)
# Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
# For example:
# Given binary tree [3,9,20,null,null,15,7],
# 3
# / \
# 9 20
# / \
# 15 7
# return its... | [
"noreply@github.com"
] | dynotw.noreply@github.com |
9c26d443975fb4cff69cbf00fe1c509d297bf707 | bc9db7a44bd9aedfe2b55a8abe4711cefea7a9ad | /bisec/g/test_bisec.py | 9ddc0ee25c2fc5c9961d72e61043a4f86292fbff | [] | no_license | sdrave/braunschweig09 | 4c18c32ab5274203997dc087b8784198d79d68e4 | 82d167aa44eafea3534ede454cb498bcc177bb15 | refs/heads/master | 2020-04-22T17:09:32.178326 | 2019-02-14T11:16:17 | 2019-02-14T11:16:17 | 170,531,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import pytest
from bisec import bisec
def test_result():
f = lambda x: x
x = bisec(f, -1, 1)
assert abs(x) < 1e-4
def test_result2():
f = lambda x: x
x = bisec(f, -2, 1)
assert abs(x) < 1e-4
def test_minus_plus():
f = lambda x: x**3 - 1
x = bisec(f, -2, 1.5)
assert abs(x) < 1e-4
... | [
"stephanrave@uni-muenster.de"
] | stephanrave@uni-muenster.de |
b97f6b0ad2612c3236a005c72f6ec641fb1ed3fd | 0a33333f80e7026e51dc6c6f3e567a6f5ff7d2b5 | /FlourWorks/urls.py | 040844c4527efa84b20e779cf53d8a2fa8375e6f | [] | no_license | skiller3/FlourWorks | 3b192ae0963356162262b3dbe7066759f15d1b6f | f7c392e9a60fc5cefdf9178b6d66fa2304222c6f | refs/heads/master | 2020-12-25T19:15:00.841860 | 2015-09-03T17:49:28 | 2015-09-03T17:49:28 | 41,874,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | """FlourWorks URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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, name='home')
Class-... | [
"skye.isard@gmail.com"
] | skye.isard@gmail.com |
808a08e46a34c866d2d368d5e8e108f595bf1e99 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/TprimeTprime/TprimeTprimeToTGluonTGluoninc_M_1100_TuneZ2star_8TeV-madgraph_cff.py | 79bbda03a0f1af54bda64a142b5001db8231e153 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 5,076 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch"
] | sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch |
a8dd055878cc344ce6826b75558dfc8eafed6946 | 64b2a1ecef2fe4cff1be312bf37edbd6c2ed089f | /node_modules/socket.io/node_modules/engine.io/node_modules/ws/build/config.gypi | 72dd9b3a37279051bf3c6ca2761ddfacf5d101f8 | [
"MIT"
] | permissive | charliecooper45/node.js-tutorial | 5d1441d95f976c5be007d8257d92d19658fb661b | 6b9edba2e80a20f9455c76622cca16b8f0e4928d | refs/heads/master | 2020-07-21T22:04:00.411590 | 2015-02-27T14:06:10 | 2015-02-27T14:06:10 | 31,421,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "ia32",
"node_install_npm":... | [
"charliecooper98@gmail.com"
] | charliecooper98@gmail.com |
224dbd8cfc8120eb69d1a579c981c71daadf5102 | 6f2dd172c379fb5ae5436492790e604b08e93673 | /query_service/resources/apis/crm/income_analyse/query_sql/member/__init__.py | b4d743b1c6495fdde5de7e12d532d0614b6f30c5 | [] | no_license | tankeryang/flasto-service | cf0ae761b6d9be94fa9f474d644cf77ffed3de50 | 8e542b76fb6240ad91cf1f8f9da7cbe1bbe144d0 | refs/heads/master | 2020-04-25T02:08:28.598086 | 2019-05-09T11:20:31 | 2019-05-09T11:20:31 | 172,428,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from . import level, mul_dim, new_old, register_proportion
| [
"yang.yang@trendy-global.com"
] | yang.yang@trendy-global.com |
8a7ff99e9a519b159a04cb85b2cff427de6f858b | 26e76ac7c99e8a5c5452bcdfde8fc6e0b77aa202 | /app/members/migrations/0013_remove_user_is_deleted.py | 7ce40f107e03ba5aac536763e356bff42c881e27 | [] | no_license | limdongkyu/let-us-Go | eb741b527d21cb291e3d718e5b48c331bf42c99f | 5768bf4f3c78af9196298f1720efb5ba0aa15efc | refs/heads/master | 2023-06-01T03:38:40.341850 | 2021-06-14T08:26:45 | 2021-06-14T08:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Generated by Django 3.1 on 2020-08-23 11:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("members", "0012_auto_20190701_1511"),
]
operations = [
migrations.RemoveField(
model_name="user",
name="is_deleted",
)... | [
"dev@lhy.kr"
] | dev@lhy.kr |
b9d7b448a9e0ad5806a73ae7cd16af4a49459b30 | 0e50cbc7dacd85b8c7aded78c522de6d3d0109d4 | /ceppa/util/exp_methods/add_variables.py | f2a268b9c006eb30359789bb6ff4f823b2314fee | [] | no_license | giorgio-o/HCM_RFC | 0b7be0a609e4dee81a970ea49b77284af4089745 | 2170f4de1835661261b2522f0869d1d4f3363f73 | refs/heads/master | 2021-08-11T16:38:53.777690 | 2017-11-13T20:24:05 | 2017-11-13T20:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,182 | py | """
G.A.Onnis, 01.2017
Tecott Lab UCSF
"""
def add_variables_dict(experiment):
"""
"""
# attributes/features to save as npy
HCM_variables = {
'txy_data': [
'CT', # corrected X, Y, T: this is = backwardX so far. holds at_HB and non_HB Move
... | [
"giorgio.onnis@uscf.edu"
] | giorgio.onnis@uscf.edu |
b01716708df47007dc97cb66bb6ae275f2128ed7 | 2e1803d0b1e3c69555317e8a461e37c84dcb00ba | /dataObjects/ListingDetail.py | 0d9e6e6cf4057ba2633fa5bc3625d60571f29d6c | [] | no_license | BustinArown/AirDND | a61b048e4303d4041077e381033dd73df456ee26 | ebb88f705a47813565ba116a1f5a110ec68dd015 | refs/heads/master | 2021-08-26T07:05:01.997116 | 2017-11-22T01:03:42 | 2017-11-22T01:03:42 | 111,618,849 | 0 | 0 | null | 2017-11-22T00:55:55 | 2017-11-22T00:55:55 | null | UTF-8 | Python | false | false | 1,392 | py | class ListingDetail:
def __init__(self,bathrooms,bedrooms,beds,location,uuid,instantBookable,
isNewListing,lat,lng,name,neighborhood,propertyType,reviewsCount,
roomType,starRating):
self.bathrooms = bathrooms
self.bedrooms = bedrooms
self.beds = beds
... | [
"noreply@github.com"
] | BustinArown.noreply@github.com |
bc608f4ad162e783d30e467f8a8fdc508dad380f | 17cb2e5af78267ea0c793ab191c8181730081232 | /networking tcpServer.py | 244a20b130412e0c3e78300eda71ccb626545a9f | [] | no_license | RaunakJalan/Python-Tutorial-Codes | 2884ca7fec6f8917e890e4b8e1f751a3e3f57044 | 7b84ddc724730fb5fc845d01b7b584f984d9dc35 | refs/heads/master | 2020-08-15T15:02:32.443555 | 2019-10-30T06:56:58 | 2019-10-30T06:56:58 | 215,360,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 22 04:17:34 2018
@author: Raunak
"""
import socket
def main():
host = '127.0.0.1'
port = 5000
s = socket.socket()
s.bind((host, port))
s.listen(1)
#accepting the connection using socket object of client
c, addr = s.accept(... | [
"kmachine09@gmail.com"
] | kmachine09@gmail.com |
9ddfc031d3e3aedd7411e807526b7f4d2406e336 | 5b81884bfdf113d13976484b5c835eec3faa60eb | /metalang/data/messagebase.tpl.py | dd133b11575a944d9067b5ec4aecdf2ce6071411 | [
"BSD-3-Clause"
] | permissive | udoprog/metalang | acf23480263c328b71b35b3d5adba06778228d13 | 6667eb02903ed45036cb5235d93774e4be2f6a2a | refs/heads/master | 2023-09-04T17:59:32.338544 | 2012-04-19T18:54:12 | 2012-04-19T18:54:12 | 2,564,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | class base_metaclass(type):
def __init__(cls, name, bases, dct):
for b in bases:
if not hasattr(b, "__types__"):
continue
b.__types__[cls.__classname__] = cls
break
super(base_metaclass, cls).__init__(name, bases, dct)
class base:
__metaclass__ = base_metaclass
__classname__ = N... | [
"johnjohn.tedro@gmail.com"
] | johnjohn.tedro@gmail.com |
e84dc3b2646e386521b8648940c88fbb0c87f802 | a4ea8fa91e874d46992c421a8e539bf2a1bc9ba7 | /backend/mainapp/foodtruck/admin.py | 6f8b573a03a4b4350e6d911025f5344aa8a422bd | [] | no_license | BlackCubes/foodtrucks-django-react | 0b3038daf5bef5aab52a01984185ba1ef2a9324b | acd0d7bfefda2e946c92218a0efab1f2fea7eb6f | refs/heads/main | 2023-06-13T01:06:06.497055 | 2021-05-27T14:00:22 | 2021-05-27T14:00:22 | 362,132,233 | 2 | 0 | null | 2021-05-26T19:53:39 | 2021-04-27T13:59:34 | Python | UTF-8 | Python | false | false | 3,087 | py | from django.contrib import admin
from jet.admin import CompactInline
from .models import Product, Truck, TruckImage
# Register your models here.
# PRODUCT INLINE
class ProductInline(CompactInline):
"""
TabularInline for Product.
Fieldsets: name, slug, info, image, price, quantity, and is_available.
... | [
"gutierrezelias1991@gmail.com"
] | gutierrezelias1991@gmail.com |
8500848939863dd67122555b23a6c141d94f4afd | 66f830327b0543fdede9be8aa8b8f69f2faaaecc | /lib/OpenFermion-Cirq/openfermioncirq/__init__.py | 9ecb141882a096dc65224f8ab8ba2ab32e235e43 | [
"Apache-2.0"
] | permissive | ana-tudor/Circuit_Notebooks | e1bb1160406bd084734c0db81740fd1752cfbb34 | 7445d06f18ca4d6b9262033d1feb0c8d185fa59d | refs/heads/master | 2020-03-22T04:35:53.493037 | 2018-09-13T20:10:44 | 2018-09-13T20:10:44 | 139,508,509 | 0 | 0 | null | 2018-07-03T00:28:38 | 2018-07-03T00:28:37 | null | UTF-8 | Python | false | false | 1,479 | py | # 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 or agreed to in writing, software
# distributed under t... | [
"anamtudor@gmail.com"
] | anamtudor@gmail.com |
522032ba6be28f6e04533082dc0b05fb69eb9590 | 45e41863d617082d8e3fe1ef780f339ea983e83e | /ex7.py | 9b58c07827d1c3b84549c7a15d1a377e2095538c | [] | no_license | mtbottle/mts_project_euler_exercises | 68de02e0f2acc28d093e49af80d6c9317825885e | d2ea4dcea346be9bad4517cc6bd9dbdfc0748e3f | refs/heads/master | 2020-05-23T16:41:57.552530 | 2012-06-03T22:32:16 | 2012-06-03T22:32:16 | 2,707,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # -*- coding: utf-8 -*-
#By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6^(th) prime is 13.
#What is the 10001^(st) prime number?
def get_th_prime_slow(n):
''' return the n'th prime, not efficient '''
lst_primes = []
i = 2
while len(lst_primes) != n:
not_prime = Fa... | [
"mtsyne@gmail.com"
] | mtsyne@gmail.com |
daad330f81a58606c3b27784816536025d5b1052 | 84a1c325e3920a58aa35808209e838a0b5a3ea64 | /practice/back_201801/Script_20180131_Custom.py | 0d446a952b9098da12d1093d0bb7d421f66b649f | [] | no_license | ZenryokuService/BlenderPython | 542633cf6aad2d2e5c8baccdd735da0a5fe81c13 | f8f5a1bb27612127829126eb58e860c03e34fd03 | refs/heads/master | 2021-05-08T22:29:09.632735 | 2018-04-07T09:00:20 | 2018-04-07T09:00:20 | 119,676,387 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | import bpy
name = 'TestPanel'
size = 1
rows = 2
columns = 2
def vert(column, row): return (column * size, row * size, 0)
def face(column, row):
return (column * row + row
, (column + 1 ) * rows + row
, (column + 1 ) * rows + 1 + row
, column * rows + 1 + row)
verts = [vert(x, y) for x in... | [
"takk@takuminoMacBook-Pro.local"
] | takk@takuminoMacBook-Pro.local |
15f7e5eaec30b80d0f7b970bec6b9ff211a1428c | c13383ea93eb462542b8d714ac113b9a1806c918 | /code/MILPtests.py | f972ad403191029e6ac356dfa4dfb6cda7a71c90 | [] | no_license | alexwolson/CRIO-for-Neighbourhood-Change | 87263f9e13f2fa57c66ec2f7c676eb95f889cde4 | b66c1aaad51ed6551ffa9b0556e5cf9edf9c6906 | refs/heads/master | 2022-12-06T15:53:32.705962 | 2020-08-17T18:08:20 | 2020-08-17T18:08:20 | 288,251,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,949 | py | #!/usr/bin/env python
# coding: utf-8
import dill
from gurobipy import *
from shared import *
from milpshared import *
def MIP_model_BigM(LABEL, numTracts, numModels, numFeatures, runtimelimit, M_val):
# read in feature value and label value from dataframe
DF = readindata_std(LABEL, numFeatures)
df = DF.c... | [
"alex.olson@outlook.com"
] | alex.olson@outlook.com |
925131f2136ffb980d987ee5de1aa839ffe74a4a | b5348fac2c06feee3ff590107c3eb8cb744bffc8 | /sortphotos/ExifTool.py | 7cb6c445159ef1cf939e77b58bb28fa1f6dbf70b | [] | no_license | arcadien/sortphotos | 620fa03a9de4eeea64e017b22fe69f207cd06e18 | 17ca81c85010588c010501e8302dd7d5fec4373d | refs/heads/master | 2023-03-08T13:12:41.370774 | 2023-02-26T15:14:08 | 2023-02-26T15:14:08 | 443,077,242 | 1 | 0 | null | 2022-01-01T09:43:38 | 2021-12-30T13:04:43 | Python | UTF-8 | Python | false | false | 1,996 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import with_statement
import subprocess
import os
import sys
try:
import json
except ImportError:
import simplejson as json
import locale
# Setting locale to the 'local' value
locale.setlocale(locale.LC_ALL, '')
# Perl script for E... | [
"aurelien@skima.fr"
] | aurelien@skima.fr |
a22a3fed5bab16b99ce7847a911199cc7f5fb0fe | b2c0558a7574ba51f450fc63bf114c5a4a574e7d | /magnetodb/openstack/common/rpc/impl_fake.py | 8e31fed6414a8d66f6313a20d47f4c871276f8e6 | [] | no_license | purpen/magnetodb | d1e31e400cd2b29dfc6a551c4c53cfbdc2443283 | acdfb1bcf749a0bfc4572fe42af2f47ff8d0c8f3 | refs/heads/master | 2021-01-21T07:30:01.920182 | 2014-09-30T16:12:10 | 2014-10-08T14:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | # Copyright 2011 OpenStack Foundation
#
# 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 l... | [
"charles_wang@symantec.com"
] | charles_wang@symantec.com |
6aa8468ac534818aee698105788c1b1d7cdff263 | 4653f1798fab017f0abe44f5e6fc97d8bf33e720 | /validacao.py | ededaf484a250acf0d70cd2477815db06142f0c1 | [] | no_license | Marcos001/PDI-Medical | ee1299fdb5c2422b454877e77e57df6c127dd142 | 61468824bc5b64570fb16654aa371445ca21a7ea | refs/heads/master | 2021-09-13T18:31:58.007705 | 2018-05-03T02:55:50 | 2018-05-03T02:55:50 | 106,943,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py |
def acuracia(vn, fp, fn, vp):
return (vp+vn) / (vp+vn+fp+fn)
def especificidade(vn, fp):
return (vn) / (vn+fp)
def sensibilidade(fn, vp):
return (vp) / (vp+fn)
def main_validacao(vn, fp, fn, vp):
"""
:param vn: verdadeiros positivos
:param fp: falsos positivos
:param fn: falsos negativo... | [
"santosMsantos01@gmail.com"
] | santosMsantos01@gmail.com |
d11d9ad105d091f0c56bdbe19bace7ffe4cf9315 | 8d14370115c39d92dfc12524d398a3c80694ad8a | /Companies/models.py | d6bf8d5569a97e0ebfdc67b776a4524ba41fc920 | [] | no_license | shirish-babbur/Stock-Market-Backend | 32dd59c15976322243b34c5894317c0d58d4c112 | 709b64e939e88fca1de32aed138a26cfcaf62b6b | refs/heads/master | 2021-01-23T23:56:28.979418 | 2018-02-24T13:53:29 | 2018-02-24T13:53:29 | 122,744,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.db import models
class Stock(models.Model):
ticker = models.CharField(max_length = 10)
open = models.FloatField()
close = models.FloatField()
volume = models.IntegerField()
def __str__(self):
return self.ticker
| [
"bbshirish@gmail.com"
] | bbshirish@gmail.com |
7591be7f49cf78131dd30a0adbbd95a3e6c17975 | 327e23419a11f73ffbb2382e718d7159d4c55d85 | /main.py | cc5c4bfb95af10a010e36ecd31ae9ea462b44f97 | [] | no_license | RiturajJain/ecommerce_application | e3d0775e9b7d080674c72916fcfe6494b8d5b3e0 | 1bdd65d8df99ad334e0f955b4a558fd22ac68947 | refs/heads/main | 2023-04-15T22:13:28.967430 | 2021-04-19T08:59:09 | 2021-04-19T08:59:09 | 359,385,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | """
This module contains code to start the Application and initialize it with some dummy data.
It can be extended to take the input from the User.
Key Points to Note:
1. At most places, I have raise and caught general Exception for simplicity purpose. But in a real system, this should be avoided as it can hide some b... | [
"rituraj.jain@embibe.com"
] | rituraj.jain@embibe.com |
6318d574c8476c0123d824a8058674cf3d42c494 | 0e7892977c6a73e8101f59938b343dc93517d6ad | /python/homework/Stepan/factorial.py | 5e3d4e7046f9bb9826c0e7648037bf46e2bb3345 | [] | no_license | ITC-Vanadzor/ITC-Vanadzor | b24c467600b7fe4002222e2e566096b8476c7bb5 | b96ff8c9bddd727c3d17f8f850764f75f20bedf9 | refs/heads/master | 2016-09-06T11:19:48.612034 | 2015-04-09T21:05:00 | 2015-04-09T21:05:00 | 27,506,035 | 3 | 1 | null | 2014-12-04T18:51:19 | 2014-12-03T20:24:17 | Python | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/python
def factorial(n):
print "called factorial func"
print "n = ", n
if n == 0:
return 1
else:
return n * factorial(n-1)
'''
barev
'''
n=raw_input(" nermuceq n i arjeqy ")
n=int(n)
print factorial(n)
| [
"StepanChaparyan"
] | StepanChaparyan |
f8ccb414dca4f46b66a521da2a98c639c65d0882 | 52c808be4b58407dbd845de2ebb0022132fa0312 | /pcapsim/print.py | 6bcfb0952a0a82ebbc16d9d593f1bd21626337e1 | [] | no_license | ejialan/tools | f2b9ecdd02634f59958f66faf6718c3101b914e3 | 4bf76d1556c48abe64696672d4a60a7d7e57ae07 | refs/heads/master | 2021-01-21T14:02:05.439053 | 2018-02-08T04:54:20 | 2018-02-08T04:54:20 | 5,930,979 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/env python
import sys
from scapy.all import *
from scapy.utils import rdpcap
pkts=rdpcap(sys.argv[1]) # could be used like this rdpcap("filename",500) fetches first 500 pkts
for pkt in pkts:
print """____________________________________"""
pkt.show()
print ""
| [
"jiangang.lan@ericsson.com"
] | jiangang.lan@ericsson.com |
d985604fbc47ea455b2eaa4b9c27a94e5c6043c1 | 989d7481599fd6e974a9d7fb0dd22cf061fc8038 | /blog_content/apps.py | d1c7730014ec648c51fc95b3d6fbdd8881fad66f | [] | no_license | KyalSmith/first_tech_blog | bb608c58d3d10f2cc3acf22fef10bd376364e154 | 3b0f6df2a2298240e9eabe0ee818554b07bc0613 | refs/heads/master | 2022-12-23T04:38:31.179288 | 2019-01-21T08:02:41 | 2019-01-21T08:02:41 | 160,322,667 | 0 | 0 | null | 2022-12-08T03:00:46 | 2018-12-04T08:18:23 | JavaScript | UTF-8 | Python | false | false | 163 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class BlogContentConfig(AppConfig):
name = 'blog_content'
| [
"kyal.smith@gmail.com"
] | kyal.smith@gmail.com |
f095bd2dc3daf2803ffc5064395025e8223b2020 | 354bbbb89c36ce49b4c054e0cf0a980a4856e7e6 | /sentimentanalyser.py | 17e6cb8f4ab7fc4612643910779f3f0bdf37dcf5 | [] | no_license | mgoliyad/Deep-NLP | 9075a19dc27cff5ec3351e64982fa8fcb7369da0 | 8879d73f25b459bcecd415e5b715cb2c9560d2fe | refs/heads/master | 2020-07-28T22:43:12.699510 | 2019-09-24T16:41:11 | 2019-09-24T16:41:11 | 209,565,296 | 0 | 0 | null | 2019-09-20T12:51:27 | 2019-09-19T13:45:59 | null | UTF-8 | Python | false | false | 8,237 | py | import plac
import pathlib
from keras.layers import LSTM, Dense, Embedding, Bidirectional
from keras.models import Sequential
from keras.layers import TimeDistributed
from keras.optimizers import Adam
from spacy.compat import pickle
import spacy
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
i... | [
"noreply@github.com"
] | mgoliyad.noreply@github.com |
249195b6e47858e38b763eb4616606ee68555d24 | 1eec77e8734eb7de7f20232c29ac7f6df15e567e | /scripts_per_file/_face_reco/face_detect_only_face/face_detect.py | 2d4c07ed07c372bc16c47c34ff2ea8717a1bffb8 | [] | no_license | dannyvai/Folder_Scrapper | 2097d6a187a6b570e433d8c51a1cc1b81cd46d1e | 75616d63326ca5bb320e6f0aeda9991343b61654 | refs/heads/master | 2021-01-17T08:54:44.727764 | 2016-04-06T20:09:40 | 2016-04-06T20:09:40 | 25,173,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import cv2
def find_faces(imagePath):
cascPath = "/home/ubuser/scrapper/face_detect/haarcascade_frontalface_default.xml"
# Create the haar cascade
faceCascade = cv2.CascadeClassifier(cascPath)
# Read the image
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# Detect faces in the... | [
"danny.wainshtien@gmail.com"
] | danny.wainshtien@gmail.com |
31f529e91f3b8f0d3a305ceb7a7f4eb368554ab4 | 28347bdee730beaad6a90381c33c51f5a4cd31aa | /test/calc.py | 6c16f759a10e4c3bf212b04ef58933d40afd0d38 | [] | no_license | lorerlrolerl/utilities | 05ec8b4d2cf53d251c90950ed3e17859d421b91d | 54eae7aefe2bf69382e057b19b01615d097dd3c5 | refs/heads/main | 2023-03-16T15:13:40.954308 | 2021-03-22T11:00:44 | 2021-03-22T11:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def add(x, y):
"""Add Function"""
return x + y
def subtract(x, y):
"""Subtract Function"""
return x - y
def multiply(x, y):
"""Multiply Function"""
return x * y
def divide(x, y):
"""Divide Function"""
if y == 0:
raise ValueError('Can not divide by zero!')
return x/y | [
"yazdiha@ese.eur.nl"
] | yazdiha@ese.eur.nl |
21300b331f5afbd7f3b4ab4488703ee9c8633718 | 5a0de8d575dd64116e9e13be32cb9a86f0c682e7 | /leetcode 8.py | 2dce26256f9dac1a3f0656972ceb6e82f4f1cfca | [] | no_license | sailll/leetcode-solution-by-myself | 246499095b798e6a2789ad5d03fc4772ab897c1d | 15f8fb94c614dba7fe42725a50ae082487da0374 | refs/heads/master | 2021-05-22T10:01:27.305761 | 2020-07-13T05:06:06 | 2020-07-13T05:06:06 | 54,723,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | class Solution(object):
def myAtoi(self, str):
str2=str.lstrip()
l=len(str2)
s=""
if(str2.startswith("-")):
b=1
else: b=0
if(l>=2 and (str2.startswith("+") or str2.startswith("-"))):
s2=str2[1:]
else:
s2=str2
for i i... | [
"noreply@github.com"
] | sailll.noreply@github.com |
5061e70cc6b91ea152bc29a49732bc912578e4c0 | 4fecc528447ecb420d2d4a42c5728db4d4fb86a7 | /GroupTask/DensityEstimation.py | 6aedaf07641264d2f6f5b9434cb24e59992ebcdf | [
"MIT"
] | permissive | ivanov-an-spbu/2019_IT | 973203e44d6f976172cdf0cabfdd7ea37c17fd44 | f90e9194dd90e308b3aa7e179c118bb8482a62b8 | refs/heads/master | 2020-07-23T13:59:35.573850 | 2019-12-13T08:24:46 | 2019-12-13T08:24:46 | 207,582,878 | 3 | 51 | MIT | 2022-12-16T09:06:25 | 2019-09-10T14:33:41 | Jupyter Notebook | UTF-8 | Python | false | false | 1,927 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from scipy.stats import gaussian_kde
#density estimation
def calculate_density(sensor_values, points, Y, density_out_buf):
for i,label in enumerate(np.unique(Y)): # for each class
kde = gaussian_kde(sensor_values... | [
"noreply@github.com"
] | ivanov-an-spbu.noreply@github.com |
6b47f7c645133d10406c7447c70c7489bba52b59 | 5f0b119b53f8de59dd1da92ed8497234c8383341 | /main/urls.py | 900848288da38e508e33433132c943dfb284a470 | [
"MIT"
] | permissive | Alenwear/Hospital-Quality-Management-System | cf5733f388b957365bd5510d0e791d819a63dfb1 | 6ccfb0ddb8df5341c3e3f1a3f10ba737fd5a5b86 | refs/heads/master | 2020-11-30T13:15:59.241927 | 2017-09-21T16:55:04 | 2017-09-21T16:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.conf.urls import url
from . import views
app_name = 'main'
urlpatterns = [
url(r'^check', views.check, name='check'),
url(r'^showchecks/$', views.showchecks, name='showchecks'),
url(r'^success/$', views.success, name='success'),
]
| [
"shadowspacex@163.com"
] | shadowspacex@163.com |
f7c337a8ca429c9e1d77586a0bc9a706fd650bf1 | 5841dd37f7a2801d1b96551e3c7cd58c1b18345b | /nimGame.py | 1bda9378c3e3b5fca8b2656dfa994c2a3bd3d5f4 | [] | no_license | bmarsh5/pyGroupProject | 0b199a4ab9ed989523c13e33b0e1af3d27086e86 | 61244935202831f0258ec9fb74b0994917aa45ae | refs/heads/master | 2021-03-10T08:28:28.557671 | 2020-04-18T21:46:57 | 2020-04-18T21:46:57 | 246,438,648 | 0 | 0 | null | 2020-04-18T21:46:58 | 2020-03-11T00:34:22 | Python | UTF-8 | Python | false | false | 5,423 | py | """
Name:
CSC 119-001
Date:040220
Program Name:nimGame
Description:
From a pile of marbles, a player or the computer may take up to
half of the marbles on each turn. The player who takes the last
marble loses.
You will note that the computer cannot be beaten in ... | [
"noreply@github.com"
] | bmarsh5.noreply@github.com |
2f174f15fe7cdac126c4585a1c60e935b18fe231 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374658142/HTT_24Jul_newTES_manzoni_Nom_Jobs/Job_2/run_cfg.py | ab4eb96f5b69caf210b70ecddcd9ad84d4f6ac79 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,052 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_C... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
19a7d178d64a161292e6a1ec89c749b9143c3dcb | f615b8ae24cc2e8cd8eb4605de95cd96aa1d84a5 | /egohands_setup.py | b45d7c835e1b4f0e8aaa1e7693053ae2e085f4ce | [] | no_license | tfygg/deeptraining_hands | 7b98d279cfe90e2be76eb720fae9cc84847a9b08 | 7aaa8a16d7170c8da9bc5ec39b076352e414ed82 | refs/heads/master | 2021-09-12T15:46:55.771089 | 2018-04-18T07:07:39 | 2018-04-18T07:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,708 | py | """
THIS CODE IS TAKEN FROM VICTOR DIBIA WHO ALSO WORKED ON THE SAME TOPIC
UNFORTUNATELY 2 MONTHS BEFORE I HAD THE IDEA ;)
BUT THIS PEACE OF CODE HERE IS PERFECT SO HANDS DOWN
ALL I DID WAS ALTERING IT A BIT TO MY NEEDS
SEE HIS REPO:
https://github.com/victordibia/handtracking
"""
import scipy.io as sio
import numpy a... | [
"gustav.zitzewitz@gmx.de"
] | gustav.zitzewitz@gmx.de |
9bf27b45951df9980c3560ab22c335077ee230ab | 54dbcd8191ee7f6bef91f02038659f93f83c0bc2 | /ilkapp/migrations/0026_hafta.py | 820ada0083f41ff3f334e2b8ecece520b9c48a44 | [] | no_license | kizikli27/efesafa | 4cb6cbf53980d3ecec54303dab7ba06a21869f5e | 7d2e67b7b050540711eaa8540f524b3b22459339 | refs/heads/main | 2023-02-26T01:36:55.720380 | 2021-02-04T12:00:54 | 2021-02-04T12:00:54 | 333,233,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 3.1.4 on 2020-12-26 21:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ilkapp', '0025_auto_20201226_1547'),
]
operations = [
migrations.CreateModel(
name='hafta',
fields=[
... | [
"kizikli27@gmail.com"
] | kizikli27@gmail.com |
db15d9dc414241557854c5a2343c9b053d053fbe | 279296caf6c066f018a2a6f8e95be9b675946837 | /Leetcode/MedianOfTwoSortedArrays.py | aba0c2b112a1523eee0386f806a2adb6a4f5420a | [] | no_license | GeneZC/Zero2All | 0444680e83052c2842695f77d7c9895defbb9e4e | 46e813690cf975d5de395b825d4506805c0bc9ab | refs/heads/master | 2021-07-25T05:14:14.353793 | 2020-04-16T02:55:27 | 2020-04-16T02:55:27 | 147,045,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | class Solution:
def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:
len1 = len(nums1)
len2 = len(nums2)
pivot = (len1 + len2) // 2
odd = (len1 + len2) % 2
if len1 == 0:
if odd:
return nums2[pivot]
else:
... | [
"gene_zhangchen@163.com"
] | gene_zhangchen@163.com |
bd60963c288c16a724e71877fbabfd7921e405f8 | 334d0190164d92b53be2844a3afc2826d64b1a6d | /lib/python3.9/site-packages/theano/link/c/cutils.py | bbcd50fb6209c3ee3ecd25ecbcb4d4ad7c91b5d0 | [] | no_license | sou133688/BayesianStatics | f294d7c47cfa56374cf73b520529620dc6120f47 | be9121429494cd8fd231594b029fc2f030d8335f | refs/heads/main | 2023-08-21T15:57:32.980658 | 2021-10-01T00:01:13 | 2021-10-01T00:01:13 | 401,909,680 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,167 | py | import errno
import os
import sys
from theano.compile.compilelock import lock_ctx
from theano.configdefaults import config
from theano.link.c import cmodule
# TODO These two lines may be removed in the future, when we are 100% sure
# no one has an old cutils_ext.so lying around anymore.
if os.path.exists(os.path.joi... | [
"matsushu@ZaknoMacBook-Pro.local"
] | matsushu@ZaknoMacBook-Pro.local |
d232c87bbdf55880e841f21229d99d455e814b67 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/validPalindrome_20200803230832.py | 1cd0f9b378eb36d51c8a024c40908243883ff3e9 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import re
def palindrome(str):
if len(str) == 0:
return True
str = str.lower()
cleanStr = re.sub(r"[,:.;:@#?!&$]+",' ',str)
actualStr = cleanStr.split(" ")
actualStr.reverse()
newArr = []
for i in actualStr:
newArr.append(i[::-1])
cleanStr = cleanStr.re... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
616e381848f821b24e85189e7891488a8db2ba8e | 9b8c94c2ed11c0868c8afb391a326472ea77e66a | /novel/qidian_comment.py | ebd85b928022f146c93f2e6fdd233265f11802d4 | [] | no_license | LJ147/cupspider | 9ad755dc4210ccb5e8d785090f7d73722eae49c3 | 48571d1ceadab68b3893094c27d65665369fdd5e | refs/heads/master | 2021-01-19T07:46:14.212333 | 2017-05-07T00:00:11 | 2017-05-07T00:00:11 | 87,569,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by LJ on 2017/3/25
import sys
import db_tool
import json
import mongoDB
import random
import requests
import time
reload(sys)
sys.setdefaultencoding("utf-8")
def store_comment(token, page, book_id):
# book_id:1003354631 token:NZv1ty8GbjYLuCTm9PMpf7yONl12Ag... | [
"Alison@LJ-3.local"
] | Alison@LJ-3.local |
aa134928c752ba4aafcec27b5bfa762a3e9aaf3d | a2402496966e8467ec8dd81a4573d4d23d285193 | /setup.py | b297f6b4fb14fb3469aafa798bff1371bedb9696 | [] | no_license | yudhaputrama/ftrigger | d7af5582c08104b3c6204eb4948920c22cfc7d12 | 844fc16f053be3232c21c1e571717915d6c91b69 | refs/heads/master | 2021-08-18T21:07:11.196709 | 2017-10-11T22:51:32 | 2017-10-11T22:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from setuptools import find_packages
from setuptools import setup
install_requires = [
'confluent-kafka',
'docker',
'requests',
]
dependency_links = [
]
setup(
name='ftrigger',
version='0.1',
description='Triggers for FaaS functions',
author='King Chung Huang',
author_email='kchua... | [
"kinghuang@mac.com"
] | kinghuang@mac.com |
c8e1674f11b454b63e056013510f267b8012d7ee | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4085/codes/1601_820.py | eddecc99b1de0911e10f15980db5d2f52e5fcf8a | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | valor = float(input("escreva o valor do saque: "))
notas50 = valor // 50
resto50 = valor % 50
notas10 = resto50 // 10
resto10 = resto50 % 10
notas2 = resto10 // 2
print(int(notas50))
print(int(notas10))
print(int(notas2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e38633f152ab74822515801a7ecd0548cf4bd9e9 | 078f7d560323916082ef0749eca40f4d7df1b39a | /sklearnserver/__main__.py | 814dcc1443584f3c870d2b5878360c737a4fb198 | [] | no_license | wprazuch/imdb-movie-reviews | 5be0220fdc6b56907a90fcd9fd1375016cfa3976 | 5f18f3f0a61a59a45587bb42090b01468fa87ec2 | refs/heads/master | 2023-01-05T22:09:58.096013 | 2020-10-27T07:27:39 | 2020-10-27T07:27:39 | 297,391,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import argparse
import logging
import sys
import kfserving
from sklearnserver import SKLearnModel, SKLearnModelRepository
DEFAULT_MODEL_NAME = 'model'
DEFAULT_LOCAL_MODEL_DIR = '/tmp/model'
parser = argparse.ArgumentParser(parents=[kfserving.kfserver.parser])
parser.add_argument('--model_dir', required=True, help=... | [
"wojciechprazuch3@gmail.com"
] | wojciechprazuch3@gmail.com |
bc14ec5acd9e1d8d7585ac958b4c40c7f30579f3 | 7e22c340a8fde1a763d6b8c7bb19bc3032855ab1 | /apps/user/api/api_rest.py | 164844563b1e797a01b4f72f1b44810987a82d14 | [] | no_license | ivanAbregu/SKOL | af3c328d483f7b5077a3bde480e4a3fc49d992ab | 60a53c2daa903e322763eff7a3ed7365a862c89f | refs/heads/master | 2021-07-18T09:56:37.772524 | 2020-05-26T18:47:41 | 2020-05-26T18:47:41 | 174,054,858 | 1 | 0 | null | 2020-06-05T20:03:56 | 2019-03-06T02:20:30 | CSS | UTF-8 | Python | false | false | 1,013 | py | from django.contrib.auth.models import Permission, Group
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from ..models import User
from .serializers import UserWebModelSerializer
from .filters import UserFilter
from rest_framework.viewsets import ModelViewSet
from ..permissio... | [
"ivan.abregu@gmail.com"
] | ivan.abregu@gmail.com |
d45b04ebbf585fe633d6a67f062a7691a78c81b1 | df8b2f9a7a7e0baf387ec402c917d9b5f7abb3d4 | /apps/reports/migrations/0001_initial.py | 632053fb8a22ed740d5fd9a969d37a99daa7f7ed | [] | no_license | shaoyan163/TestTools | 624a3de2ba56440f9659e748d223bf985d29a20a | 768b081a328f99f2811217744106a8269fc47ef6 | refs/heads/master | 2021-05-24T09:19:21.773461 | 2020-04-12T15:04:21 | 2020-04-12T15:04:21 | 253,492,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | # Generated by Django 2.0.5 on 2020-04-12 13:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Reports',
fields=[
('create_time', models.D... | [
"Yanyan.Shao@geely.com"
] | Yanyan.Shao@geely.com |
6b3cd0e1c37c73fd2aefdfe95c80ab2119abae57 | bc5b0c07b74fdb5207355e9e07462a3921accd37 | /models/qc.py | cefc827f7029d33ccecf6e9234465207e104d3be | [] | no_license | yanuarpradanaa/pp_application | 357cd4de789d08a65c3d25199facec53977cc6f5 | 8489d5fa704294f01a3b9477f014986f91dd3c94 | refs/heads/main | 2023-08-23T11:20:38.102188 | 2021-10-14T06:39:25 | 2021-10-14T06:39:25 | 417,014,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from odoo import models, fields, api
class QcCustom(models.Model):
_inherit = 'qc.inspection'
jenis_kertas = fields.Char('Jenis Kertas')
grammatur = fields.Char('Grammatur')
panjang = fields.Integer('Panjang')
lebar = fields.Integer('Lebar')
tinggi = fields.Integer('Tin... | [
"54838397+yanuarpradanaa@users.noreply.github.com"
] | 54838397+yanuarpradanaa@users.noreply.github.com |
3f5afa1622f3c0cc7cf7c470041cc47ccd58c026 | 7e2419c7ad5a78d22dce018506e4cf2590a75193 | /default/mailParser.py | 8d22e382108781cf1891c0588c95d61cf9629ed0 | [] | no_license | bgirschig/MOTOR | 7f3387a3650900bd887e73b93965209416d7b80c | 3559c41160d3cde66d4657555888510921754d13 | refs/heads/main | 2023-08-18T21:44:33.548671 | 2019-12-03T14:53:35 | 2019-12-03T14:53:35 | 158,950,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | import re
import logging
from datetime import datetime
from datetime import date
def pre_validate(mail_message):
"""Validations that can be performed before parsing mail body (eg. email is
valid, message is not too old, etc...)
Arguments:
mail_message {MailMessage} -- The mail message, as received by the Inboun... | [
"bastien.girschig@gmail.com"
] | bastien.girschig@gmail.com |
56706326bf27f9ae132e9d86bf660a6e0caba942 | 32da8be38c8a205f620b758dc7a135bfbee93d91 | /dataframes.py | 37f89a49ef99fc86cdb27862944d650934cdce56 | [] | no_license | ThomKaar/CSC369-Lab4 | 2343b7508f3e7aad44327789fddffb2394051df8 | 328bac7c94790d989ddcb8db42a2e4f1e9e953e8 | refs/heads/master | 2022-07-15T08:05:56.765243 | 2020-05-12T06:46:45 | 2020-05-12T06:46:45 | 259,461,213 | 0 | 0 | null | 2020-05-12T06:25:23 | 2020-04-27T21:32:23 | Python | UTF-8 | Python | false | false | 2,178 | py | # Thomas Karr
# Wesley Benica
# Lab 4 - CSC369 - Spring 2020
from datetime import date
import pandas as pd
from output_html import Query
def get_df(q: Query) -> pd.DataFrame:
if 'track' in q.task:
df = get_track_df(q, q.task['track'])
elif 'ratio' in q.task:
df = get_track_df(q, 'ratio')
... | [
"43890908+wbenica@users.noreply.github.com"
] | 43890908+wbenica@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.