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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ed879938793608419bcdcc581f3480b88054110 | 975e8d97133f0b0976eeecaa4f617217d6c826e9 | /smartsec2.py | 60d9440bb1f4e6918e83897f0555212f7df0c379 | [] | no_license | Harclerode95/SmartSecurity | 6cf0fc00f110b3dbee32d8561b06431411190438 | 2fc5c4333cfae22011e8dcbcf5e60a4243ac4770 | refs/heads/master | 2020-03-08T16:36:47.520904 | 2018-04-24T23:24:11 | 2018-04-24T23:24:11 | 128,244,243 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,412 | py | #####################################################################
# SmartSecurity Embedded System Software #
# Team: SmartSecurity #
# Tyler Harclerode, Brandon Lin, Zachary Davoli, Jonathan Griffin #
# CET/CSC Senior Project 2017/2018 ... | [
"noreply@github.com"
] | Harclerode95.noreply@github.com |
7ee32d8de3ee7f0fa4f59138e0e602a5cc31b513 | faa8b1645691ac6fa9d61f3cb73c2d86e7f507f4 | /favorite song.py | c1b55fd1c60b1eb3fcd2d7149aa51e133e087a08 | [] | no_license | Lu314/favorite-song | ffef6645a5acbc681c49d79cdd7b594cc524d9fa | 9fca5611a170548ad71d711b4315162d02f28447 | refs/heads/main | 2023-01-31T19:58:24.135260 | 2020-12-12T18:56:38 | 2020-12-12T18:56:38 | 320,902,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | """
Song selected for favorite song assignment - dead presidents II by Jay Z
"""
#Attributes: genre, name, artist, released, recorded, label, songwriter, producers, DurationInSeconds, sample, certification
genre = "Rap"
name = "Dead Presidents Two"
artist = "Jay Z"
released = "1996"
recorded ="1995"
labe... | [
"noreply@github.com"
] | Lu314.noreply@github.com |
2a441c0c95038ab8c333ab34fc45ff78b3a8f069 | 802f8cdf50a27dc962c0e926c4002533153c66a5 | /testsite/landing/apps.py | 95b76621f13c30ffef4fabc5d0673d377432fe76 | [] | no_license | avan989/django-apprenticeship- | d165fb2657ad1796326c69158fcf14e1f2792ca1 | 084842036eb5700d9376af887054a48af50c5787 | refs/heads/master | 2022-08-14T08:08:16.780627 | 2020-05-28T19:52:53 | 2020-05-28T19:52:53 | 264,060,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class HomepageConfig(AppConfig):
name = 'landing'
| [
"avan989@yahoo.com"
] | avan989@yahoo.com |
f45a1f0a4bc83ca381d3bb8cbabebd1574a92eea | abf7f7e2d47d22a560359520dcc2834f4c384391 | /assignment3/cs231n/rnn_layers.py | e5ec43b8f56af682c74ea273cdce2dd06deb15db | [] | no_license | YaqianZhang/cs231n_Computer_Vision | 2b7c2b73562dacb7b782b8641301cdfb32006245 | 3d166d6151b47e2fee7eb90cd4612a4aa11f30ee | refs/heads/master | 2022-12-12T11:25:09.783957 | 2020-02-27T07:22:14 | 2020-02-27T07:22:14 | 243,454,025 | 0 | 0 | null | 2022-12-07T23:33:19 | 2020-02-27T07:06:10 | Jupyter Notebook | UTF-8 | Python | false | false | 20,029 | py | import numpy as np
"""
This file defines layer types that are commonly used for recurrent neural
networks.
"""
def rnn_step_forward(x, prev_h, Wx, Wh, b):
"""
Run the forward pass for a single timestep of a vanilla RNN that uses a tanh
activation function.
The input data has dimension D, the hidden state h... | [
"zyqian77@hotmail.com"
] | zyqian77@hotmail.com |
3ef3d85d299dec52664d9fec93a4f18a50927c07 | f30187d4f61c2719e9904d369a11880e5f218d7b | /DatapreprocessingWithNotes.py | bfc50f32732f8395517940ddba3b042c492fc050 | [] | no_license | Ketaki2/ML | 8b9b29d84e0089f4908fd6515df443b9f30d99df | 241c183678c527224f980fc31ac7fc96fce563c0 | refs/heads/master | 2020-07-22T09:31:20.024428 | 2019-09-08T18:50:47 | 2019-09-08T18:50:47 | 207,151,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 15 14:41:10 2018
@author: Ketaki Vaidya
"""
#indexes in python start at 0
#ML models are mathematical models
import numpy as np #for mathematics
import matplotlib.pyplot as plt #charts plotting
import pandas as pd#for importing and managing datasets
dataset... | [
"noreply@github.com"
] | Ketaki2.noreply@github.com |
0ed0a470b8e20c51b15783399801293e4c38342f | 8fa1999cb8a973937d6629c553feca60dd3a73d7 | /Atividade E/fabio01_q06.py | 2f76792ccd7c7f87b12dc795ab7900fe3e71545e | [] | no_license | Isaias301/IFPI-ads2018.1 | 16cddbb278336a3e06738f9dc21d2d11053dcec4 | 026fe5c2ffbc8aed55c478b7544472c46b357e69 | refs/heads/master | 2020-03-22T20:15:13.789014 | 2018-08-09T03:14:48 | 2018-08-09T03:14:48 | 140,585,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """ Questão: Lista E 06
Descrição: Leia uma velocidade em km/h, calcule e escreva esta velocidade em m/s.
"""
def main():
# entrada
velocidade_em_km = float(input("Digite uma uma velocidade em Km/h: "))
# calculos, operacoes, processamento
velocidade_em_ms = velocidade_em_km * 3.6
# saida
print('Resultado: %... | [
"isaiassantana301@gmail.com"
] | isaiassantana301@gmail.com |
a4c192f4832cc23ab29fe8230ebd0a627dbbb017 | 81b7529556891d7649370dad0dc14127ee8bf5f6 | /chapter03/24.py | d9b90b9307cf1e037e0dfd4a1eea2581ab04f59d | [] | no_license | nagatea/NLP100knock | 4c492871cb21c1fc19f58371b0ae7133a6b81bf2 | 1bb463e1deadae43903a6a9281bdc76b61583ce0 | refs/heads/master | 2020-05-03T02:02:22.764581 | 2019-05-23T13:03:59 | 2019-05-23T13:03:59 | 178,356,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #%% [markdown]
# ## 24. ファイル参照の抽出
# 記事から参照されているメディアファイルをすべて抜き出せ.
# ### 方針
# * `ファイル.+\.[jpg|JPG].+`
#%%
import re
import common03
data = common03.get_uk_data()['text']
regex = r'ファイル:(.+\.(jpg|JPG))'
pattern = re.compile(regex)
for match in pattern.finditer(data):
print(match.group(1))
#%%
| [
"cheesecakebot@yahoo.co.jp"
] | cheesecakebot@yahoo.co.jp |
71784a81ff80649fd9fe1276d4e4e3c43ba8189a | d34f1fc9dd9a519579b2356cf0f7324201b8da91 | /setup.py | 0c27497faf18ae6b1d62dbb395716be92895eb9d | [
"MIT"
] | permissive | machinelearningdeveloper/stringfox | f12709712dab6fbc6e0ea4d03ecac104b862dd59 | b48c158406fc158704da6e65ee4b55a09192fece | refs/heads/master | 2021-04-18T21:47:23.523330 | 2018-03-24T13:19:30 | 2018-03-24T13:19:30 | 126,601,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', ]
setup_requirements =... | [
"tom@machinelearningdeveloper.com"
] | tom@machinelearningdeveloper.com |
728322e9058441a9966baf21b9d0aa1cd4b1530d | 9d7e9eeccac6f9d0c2d544b6ea508f3482037887 | /drf_06/wsgi.py | a7fbfb589d79252ede910a57d0d749193ceb03f7 | [] | no_license | lupeixin/drf_06 | eb12d390e8668f0620ec13d166fd17ba465d9997 | c0c2bd52dde6e890f7656dd6e6308a9b74dc49bd | refs/heads/master | 2022-12-19T21:30:35.525900 | 2020-09-18T09:22:24 | 2020-09-18T09:22:24 | 296,476,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for drf_06 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"813094269@qq.com"
] | 813094269@qq.com |
71de8ab94c91d087323136dda99bddbbcd9ec73f | 73c01a3f052f8ef63890ec3c2e28403ad41e9a71 | /service/migrations/0007_ticket_photo.py | 806039291d087ae7c08ce662cfe1a5f5ce6385fb | [] | no_license | Jokey90/aho | 4c007c65c819efb726a732a8f36067c5a0226100 | 8bcd41e9ef7d40f07499429f385d4fec590636f6 | refs/heads/master | 2020-03-21T22:28:36.395996 | 2018-06-29T09:25:05 | 2018-06-29T09:25:05 | 139,128,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-16 12:57
from __future__ import unicode_literals
from django.db import migrations, models
import service.models.ticket
class Migration(migrations.Migration):
dependencies = [
('service', '0006_auto_20170804_1420'),
]
operations = [... | [
"Kishkurno_AS@dsdf.cds.ru"
] | Kishkurno_AS@dsdf.cds.ru |
ca592bb99a1866b3bd5f87d00cf9884fb0e2e036 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /nncf/torch/dynamic_graph/operation_address.py | f9fe1e55d976d86a8bab71816c910f10257af01d | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 1,715 | py | """
Copyright (c) 2021 Intel Corporation
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 writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
05b0955fb5451b4b61e02e06f2e7ed854fbb91c2 | 16691764b8e5a464e624d2b73eddbe1e360d1ce8 | /fivepseq/tests/structures/test_fivepseq_counts.py | d34adc2db2f83bf336ebfc889dd098f7a3966163 | [
"BSD-3-Clause"
] | permissive | lilit-nersisyan/fivepseq | d21258a6e4f6a1514aa44f24961cbfdf9ed64546 | 79b171e13a5afbb4f5d6959796664b212496f973 | refs/heads/master | 2023-09-01T15:37:50.527965 | 2023-08-29T08:42:06 | 2023-08-29T08:42:06 | 151,094,382 | 6 | 2 | BSD-3-Clause | 2023-03-20T12:01:48 | 2018-10-01T13:36:09 | Python | UTF-8 | Python | false | false | 18 | py | # TODO add tests
| [
"lilit@rackham3.uppmax.uu.se"
] | lilit@rackham3.uppmax.uu.se |
5e88d07eb6043f3db7482af06f3f896f424f6639 | fe133c09a9834f35e297b30ae4cdfc8dacf0e576 | /Pd3Pt/Pd3PtH2_geometry_optimization.py | 6cdf03a43e7a1ac87cbf0184e0e6019705290289 | [] | no_license | MaxLenk/Pd_Alloys | 81af803823f7ff9f556995f7e8aacefdfac46d4d | ea04804c710cf913113e27a679e5869c2d45f001 | refs/heads/master | 2021-05-15T07:57:35.484001 | 2017-11-27T19:41:45 | 2017-11-27T19:41:45 | 108,686,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | from ase.io import read
from espresso import espresso
from ase.optimize import QuasiNewton
#f = open('WCl_adsorption/W_geometry_optimization_500_441/energy.txt', 'w')
#f.write('starting') # python will convert \n to os.linesep
Pd3Pt_slab_path = 'Pd_Alloys/Pd3Pt/Pd3PtH2.traj'
output_directory = 'Pd_Alloys/Pd3Pt/Pd3Pt... | [
"mlenk3@joe-6.pace.gatech.edu"
] | mlenk3@joe-6.pace.gatech.edu |
e3ad1ed44686ff90ccf33fb88d515259f946536c | b1c05dd82b879aea5721bc9ef328d1a23cddab71 | /api/sim_repo/handler.py | ba65433c5906e4521d6e38d451d03634533fd727 | [
"MIT"
] | permissive | max0ne/twinkeydow | 66d67eef7744969c1c71fd8d883ab1a5460bc18e | e1f40ef0e7c27f8d5ce5d659af9bfeaaa4a95aa8 | refs/heads/master | 2022-01-25T05:11:22.713136 | 2018-10-05T04:02:26 | 2018-10-05T04:02:26 | 125,097,721 | 4 | 0 | null | 2018-10-05T03:57:25 | 2018-03-13T18:35:25 | Jupyter Notebook | UTF-8 | Python | false | false | 4,463 | py | import json
import sys
import os
from io import BytesIO
import boto3
from pymongo import MongoClient
import numpy as np
from numpy import linalg as LA
# code generated from AWS Secret Manager
def get_db_credentials():
secret_name = "mongodb_credential"
endpoint_url = "https://secretsmanager.us-east-1.amazonaw... | [
"himax1023@gmail.com"
] | himax1023@gmail.com |
cdad51f5c22f7a1acdf954745aa1ca7cd922befa | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/network/ptp.py | 27fa36e319f1e78d559dded8881328498c85d2f6 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# 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... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
85498f6750b49ac59b66d7e9d9dc6f8569fe6002 | 39d4100d6361c1bfeb7cfaec489a5aa6fded738e | /blitterbike.py | cd3bb4f5d0e22787b0c0caf4984de60aed1b95a7 | [] | no_license | cdelargy/BlitterBike | ab8f5aed0bd11329d94391e234ee2528ce481a61 | 7d20eeaad06c1c24343d5d424b81238b432099d9 | refs/heads/master | 2020-12-25T12:47:14.059223 | 2012-05-16T00:46:52 | 2012-05-16T00:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | #!/usr/bin/env python
import sys, time
import socket
import atexit
import spi
import Image
from signal import signal, SIGTERM
from daemon import Daemon
HOST = '' # Symbolic name meaning all available interfaces
PORT = 31337
FPS = 30
GAMMA_TABLE = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... | [
"bhall@automatastudios.com"
] | bhall@automatastudios.com |
258c928472c76d118cb8cd138fbee4f94db6a4d4 | 19c7e48da4a7332f2afe331be976dd3fe3d46b04 | /dms/document/admin.py | 65b591c193372c5e3bde745f8e1e3141fe45852c | [] | no_license | gogobaba/Document-Management-System | 7b68db88462a416d5fd882043daa32d758578665 | 9601df4b89d1c2830b3d38e50340f20aa08f6b51 | refs/heads/master | 2020-08-02T13:03:16.403366 | 2019-09-27T16:40:22 | 2019-09-27T16:40:22 | 211,361,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.contrib import admin
from .models import AddUser,Uimage,Ufiles
# Register your models here.
admin.site.register(AddUser)
admin.site.register(Uimage)
admin.site.register(Ufiles)
| [
"noreply@github.com"
] | gogobaba.noreply@github.com |
793e590180c33c327bfbd1cf21a3315afd5f7617 | 76f6c4961993a129cf8ebc989d90bfdf5d2dfc17 | /week8_Wed_workshop.py | 69815613bbd3a61479c6d7bf081e97dd1a421a0b | [] | no_license | baldetorres/Python_Math_Game | e6ff7cb78578f1e424930f3ae40f4c3b6c945fa0 | a4cc62bb45738a873978b4fa23d23c26a46c663a | refs/heads/master | 2021-05-12T15:08:25.737376 | 2018-01-10T16:11:29 | 2018-01-10T16:11:29 | 116,976,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | import random
record = {}
record["counter"] = 0
record["correct"] = 0
record["incorrect"] = 0
incorrect_problems = []
user_answers = []
true_answers = []
def create_math_program():
play_math_round()
generate_summary_report()
def play_math_round():
problem, solution = generate_random_math_problem()
... | [
"baldetorres@gmail.com"
] | baldetorres@gmail.com |
a22a1bbfb6928658730bb0ad2a247aac022cdb7e | 30fbb000e51bdf57034e7b1cb793d86d376bcc67 | /venv/Scripts/easy_install-script.py | cba4b1a743a9f76aed73181c9787779f62bdbf39 | [] | no_license | jerryzhang2019/DataStructuresAndAlgorithm | 098eaf3e26f59c3d2935237689ef51569814ecd8 | 1e15d476682047b3ed33dd063d405dc20033741e | refs/heads/master | 2020-09-12T10:15:19.830686 | 2019-12-05T05:11:55 | 2019-12-05T05:11:55 | 222,391,276 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 454 | py | #!C:\数据结构与算法课堂练习题\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"engineerjerry1@gmail.com"
] | engineerjerry1@gmail.com |
b9e0d907e0eebe4a46bc206410c06c4e64095e43 | 5fde2c19e58b9ca6e434f94097340f902b7a53c0 | /deeplabcut/pose_estimation_tensorflow/dataset/pose_defaultdataset.py | 3fddae224b5a95b76eb6eba7a56f15fc746a7212 | [
"MIT"
] | permissive | kalpitthakkar/deeplabcut_mgh_pose | 59ac45f08fae95773cf6bab465b36a7e3434076b | 8fa4a59f422ff0357552e290230838239edcfe1b | refs/heads/master | 2022-11-06T06:38:54.536671 | 2019-08-30T23:59:18 | 2019-08-30T23:59:18 | 199,476,875 | 0 | 1 | MIT | 2022-11-04T09:42:04 | 2019-07-29T15:14:47 | Python | UTF-8 | Python | false | false | 10,717 | py | '''
Adapted from DeeperCut by Eldar Insafutdinov
https://github.com/eldar/pose-tensorflow
'''
'''
Adapted from DeeperCut by Eldar Insafutdinov
https://github.com/eldar/pose-tensorflow
'''
import os
import logging
import random as rand
import numpy as np
from numpy import array as arr
from numpy import concatenate as... | [
"kthakkar1605@gmail.com"
] | kthakkar1605@gmail.com |
2f4696ad14136a7e9e5a2811a77bbb4ba0dbec54 | 3c1a8bcfcb1ac1248f5971bb9420263d2636ec0e | /example.py | ecd7b73c703820e684c71603de2a1fa62e6b5763 | [
"MIT"
] | permissive | j7nn7k/designernews_api | 88ca5934d48f832169b7d9460bc428adf95d55b0 | 441d3863970bba439716c2d5de9a64b6f3445410 | refs/heads/master | 2021-01-23T02:40:17.340467 | 2013-11-25T17:49:59 | 2013-11-25T17:49:59 | 14,630,783 | 0 | 0 | MIT | 2019-11-04T03:24:28 | 2013-11-22T22:13:01 | Python | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
from dn import DN
dn = DN()
# print top 10 stories from homepage
for story in dn.get_stories()[:10]:
print story["points"], story["title"]
print '**********************'
print ''
# print 10 latest stories
for story in dn.get_stories(story_type='new')[:10]:
print story["points"]... | [
"jannik.weyrich@particulate.me"
] | jannik.weyrich@particulate.me |
0ce9db73072c3e48761b9c4e5242c152400b57d0 | 09bdcba669ca495dbb4c4fb44d21669420912345 | /Interface/EntryDefaultFunctions.py | 6546719723deba95a83038631520c6a3b573ba63 | [] | no_license | sd-2020-30431/assignment-1-HoreaHorea | 6ca444c1bdf3b4063e768b5ac9aa0441e6565f6b | eebd9963cdc0dd214822a116fbfb0e97aeb78513 | refs/heads/master | 2021-04-12T14:31:23.120491 | 2020-04-12T03:05:24 | 2020-04-12T03:05:24 | 249,084,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import random
foods = ["Chocolate", "Apples", "Milk", "Bread", "More Chocolate", "Even More Chocolate", "Bacon", "Honey"]
values = [100, 1000, 300, 350, 800, 150, 250, 333, 500]
dates = ["2020-04-11", "2020-04-12", "2020-04-13", "2020-04-14", "2020-04-15", "2020-04-16", "2020-04-17", "2020-04-18"]
def entryStringDef... | [
"HoreaHoreaStefan@gmail.com"
] | HoreaHoreaStefan@gmail.com |
613ad35a3b3c957595cef4dbc365deb2fe4f805e | 65e3bd4e1f155402c1a00198dacde4ee8668dd51 | /DRAW/drawgan.py | aa05c7b7aeb49266bdbd5c08ccf12c36c92c1557 | [] | no_license | shijy07/deep-learning-project | b3bc1c80d0f1f967f7155e468e105d4836146599 | 27f1ce6deaa3ed0ac2ac869bdde6a8f05dffa0df | refs/heads/master | 2020-04-09T06:10:21.064728 | 2016-12-15T01:19:17 | 2016-12-15T01:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,951 | py | import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials import mnist
import time
import os
from helper import *
class DRAWGAN():
def __init__(self, sess, build_encoder, build_decoder, build_discriminator, read_attn = False, write_attn = False, T = 10, dec_size = 128, enc_size = 128, batch_... | [
"jucheng1992@gmail.com"
] | jucheng1992@gmail.com |
07084edfc0a38c7c3bdc4a84284b065fa40acf3e | 769545480dd9b4ba0b98dce0511846f10370c2b1 | /RESTVer03/settings.py | ee2efe256431c3a2e11843bbf4e49c5496de496c | [] | no_license | YellowZYHuang/RESTVer03 | 52e57758fc195ff595eb9a5e4cabb1a068a366ad | bcae27f63a5df2de9ee2176e405f16e74cc02471 | refs/heads/master | 2022-11-05T23:03:16.172204 | 2020-06-15T11:46:35 | 2020-06-15T11:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,747 | py | """
Django settings for RESTVer03 project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"yellhuang63@gmail.com"
] | yellhuang63@gmail.com |
d97ae80bb9f7ee568c7dd90340ff4af6c68a81e9 | 6a02fede45d612f776a539edb623f0d6a0e0404e | /nodes.py | 470f1ae5af5db5bb9b1df66c3f4911565d48af96 | [] | no_license | shmunj/QUEST-FOR-EUTOPIA | b4f7042b7fc19b87b69bc468d8787a7829b11b19 | 82ce590c10f1965d7a6b5c28e25b20938e398afa | refs/heads/master | 2021-01-22T09:17:55.439334 | 2015-04-17T23:56:45 | 2015-04-17T23:56:45 | 32,012,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | import pygame
from random import randint
class Node:
def __init__(self,position):
self.position = position
self.building = None
self.wait = 0
def drawOnMap(self,map):
(self.position[0] + map.x,self.position[1] + map.y)
class Building:
def __init__(self,object_type,node,key... | [
"shkrulj@churchbank.(none)"
] | shkrulj@churchbank.(none) |
fb24842332a1d4553a27ced6b2f8e60c9554ad3d | c50fb310d8c52284be2c636f951de796eededae9 | /47.py | f181b2c679dcf18046f30a11c88ec47c1b317684 | [] | no_license | Deepakdk7/Playerset3 | 6f46f638f22d894b9cc93d81b27c221f9dcdaad3 | 636e1feed0f97bbc9e9495a5dbb81a512ed980c5 | refs/heads/master | 2020-06-03T07:35:23.203780 | 2019-08-06T08:56:16 | 2019-08-06T08:56:16 | 191,497,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | ax=list(map(int,input().split()))
if ax[0]+ax[1]+ax[2]==180 and ax[0]!=0 and ax[1]!=0 and ax[2]!=0:
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | Deepakdk7.noreply@github.com |
9e8c025cca33e27a3072ad32fb7757cdb531f6a6 | f66910b11822bd10b55f4633d97a91a24ca6323c | /app/user/urls.py | cba566d29727cc2c654fae274c21e8a040d252c1 | [] | no_license | JJBon/MoneyApi | 4b5dcf100eafd9196a606ae745c9af3a09d7d28d | 61a25c253f329862f1b4f57012a0f6c976ed723c | refs/heads/master | 2023-08-19T12:19:44.291908 | 2021-10-08T23:32:01 | 2021-10-08T23:32:01 | 414,680,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.urls import path
from django.urls import path
from user import views
app_name = "user"
urlpatterns = [
path("create/", views.CreateUserView.as_view(), name="create"),
]
| [
"jjbonillatroncoso@gmail.com"
] | jjbonillatroncoso@gmail.com |
e05f101b910e6ec1755efaff0ee9b8ba03d4a292 | a7da4d9b203adbc72452c64d8403971108182d41 | /udp-tcp_client-server/UDP_Client.py | ffd79bc41ca55665b553f935626ee6da591c46f6 | [] | no_license | tylercardwell/udptcp-clientserver | 5270d31d0084976666ee76336e169404b65b9a53 | d805a8d3df940b86170fb3f8c692cc9b6dd981ea | refs/heads/main | 2023-01-08T23:41:23.983417 | 2020-11-09T06:50:32 | 2020-11-09T06:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py |
import socket
HOST = 'localhost' # The remote host
PORT = 8080 # The same port as used by the server
while True:
usrInput = ""
usrInput = input("Enter in Cal server name along with loan amount, years, and rate ")
if usrInput == "":
s.close()
break
with sock... | [
"noreply@github.com"
] | tylercardwell.noreply@github.com |
3c6d1df4a078962da98463d4f64e2fde79dabb3f | 0e0bd9d0082bf71918db9f6c92c2cefd32fd23bd | /guild/plugins/summary_util.py | 212871690080b5a3fec85b0eb605897c66cddc10 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | christabella/guildai | b911d9758296503c431b571dc4696a3690f44b3d | 10d34eb9aa02aa4a374c340e75b5d44d9f3d8a25 | refs/heads/master | 2022-12-17T18:34:45.766299 | 2020-08-31T12:42:25 | 2020-08-31T12:42:25 | 294,189,964 | 0 | 0 | Apache-2.0 | 2020-09-09T18:02:13 | 2020-09-09T18:02:12 | null | UTF-8 | Python | false | false | 8,533 | py | # Copyright 2017-2020 TensorHub, Inc.
#
# 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 writ... | [
"g@rre.tt"
] | g@rre.tt |
ecd9588c319c4da7f54f4b8a4a417892354d5db3 | 5264b8b29534dc67b3245a13f608375257bcb14c | /digit_prediction.py | a9d35aaeeef445a237da12b378e9e1fd724e6efc | [] | no_license | georginawan/ML_course_projects | 3f5064e078733910e6ad61b14be99e5141f16016 | bf0648292cb2fb2f58f0cc93a7e33c92e2c644fd | refs/heads/master | 2022-11-19T01:59:15.185718 | 2020-07-24T02:12:00 | 2020-07-24T02:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import matplotlib.pyplot as plt
from sklearn import datasets, svm, metrics
# Load dataset
digits = datasets.load_digits()
images_and_labels = list(zip(digits.images, digits.target))
n_samples = len(digits.images)
data = digits.images.reshape((n_samples, -1))
# Create a classifier: a support vector classifier... | [
"noreply@github.com"
] | georginawan.noreply@github.com |
1b30a24117e56b65631b71bd52bc2032fb37e417 | ccd8c45aad7ec1beaac9af5d419e61e35e996b35 | /djangoapp/base/settings.py | 278e3ac8bd1b4cbfbc66dd57d853c5022fe85c10 | [
"MIT"
] | permissive | bdabrowski/web-security-training | f3ec2e08f1c196afca5cd79ddd99690fd67fe6be | aaa8ba8f130e3fa2fbac474fdb59a2051cda463c | refs/heads/master | 2022-12-18T04:32:55.643745 | 2019-08-07T16:06:58 | 2019-08-07T16:06:58 | 200,509,626 | 0 | 1 | MIT | 2022-12-11T01:03:34 | 2019-08-04T15:29:47 | Python | UTF-8 | Python | false | false | 4,649 | py | DEBUG = True
DEBUG_SQL = True
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
MEDIA_ROOT = 'public/media'
MEDIA_URL = 'http://localhost:8000/media/'
MEDIA_DEV_URL = '/media/'
STATIC_ROOT = 'public/static'
STATIC_URL = '/static/'
AUTHENTICATION_BACKENDS = (
'django.contri... | [
"bar.dabrowski@gmail.com"
] | bar.dabrowski@gmail.com |
1250d50dc0a283fb5f560c425cfd1a5399737f7e | 8fc31285a4b9cff3542ba54d774b63139f62b905 | /todoapp/serializers_first.py | 4ae6d2aaa195542c8beddd2e29ab5a6de05f152d | [] | no_license | Aashritha1/Todolist | dd364f4db1cc134340cac8da21a257312e8f9fd0 | f37a7b1f3392a0b8870ba35a603d05b66b61a6f6 | refs/heads/master | 2021-06-05T18:09:47.668476 | 2020-05-13T09:42:07 | 2020-05-13T09:42:07 | 102,403,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from rest_framework import serializers
from .models import *
class ToDoListSerializer(serializers.ModelSerializer):
class Meta:
model=TodoList
fields=['name','createddate','user']
class TodoItemSerializer(serializers.ModelSerializer):
class Meta:
model=TodoItem
fields=['name','d... | [
"Aashritha Reddy"
] | Aashritha Reddy |
b231f1fd255cfccba0004ae6b8f9dde538a072e6 | 5adfa64b0b9b1a2256012534c34667f062b1db6f | /html/cgi-bin/get_accounting_user.py | 44228e92800d82bd5b773497074cee5fad6da7dd | [] | no_license | jasonshih/torque-monitor | d7839f75d0cb3458fb1107ef459db4122f10f7da | 33fdc59c2327b5f7ebea16e2517d2984782e91ee | refs/heads/master | 2020-03-29T02:34:41.123355 | 2015-04-21T10:35:39 | 2015-04-21T10:35:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,297 | py | #!/usr/bin/env python
try:
import json
except ImportError:
import simplejson as json
import math
import datetime
import sqlite3
import os
import re
import sys
import cgi
import logging
import inspect
import time
import gzip
import pprint
sys.path.append( os.path.dirname(os.path.abspath(__file__)) + '/../... | [
"h.lee@donders.ru.nl"
] | h.lee@donders.ru.nl |
17b84f99d3e57c256b1ffbac40d061af960d3799 | b5e81f496d3e0877209909d43510c33a8f30656e | /Best_movies_project/wsgi.py | 4ebcb04856197e3131fb58e3698f5bbfdc18f223 | [] | no_license | DenissLee/BestMovies | 37a8947b9b73281dd3f16eef45fccdca3aef4d6b | 4df9c62774bbcd6227ff8c4a7732e22bccadea3b | refs/heads/main | 2023-07-02T16:40:45.524036 | 2021-08-05T10:32:57 | 2021-08-05T10:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
WSGI config for Best_movies_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"834480718@qq.com"
] | 834480718@qq.com |
70b6a96a5e86590af626b1850c97c43fdc5aef74 | cb94daeef1c8443c2b9623ea5aaa47e9977766ef | /src/gedml/launcher/managers/__init__.py | e1861012b92bd2c1e69655bd062d4f43540cb743 | [
"MIT"
] | permissive | TrendingTechnology/GeDML | ce1cec59d03d00a8d11917f2b04f1668106b37eb | 1f76ac2094d7b88be7fd4eb6145e5586e547b9ca | refs/heads/master | 2023-07-17T20:06:51.955273 | 2021-09-06T13:23:57 | 2021-09-06T13:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | from .base_manager import BaseManager | [
"zhang-br21@mails.tsinghua.edu.cn"
] | zhang-br21@mails.tsinghua.edu.cn |
de4358321e7b35ee720bfbc1c35f7cda306421b0 | ce3172021a4a443f39868a92ed1b675af32e1e60 | /dethi10.py | 3daf10310f2359114123392c5ee5bc163553e630 | [] | no_license | trongthanhqvo/xulyanh | fb99b3c1d25404bf00d23dd88b447fb37e727275 | 3119a96ce44cdaba786c8af6b642bf5e36801f0b | refs/heads/master | 2023-06-01T07:33:24.639648 | 2021-06-20T19:43:21 | 2021-06-20T19:43:21 | 374,326,464 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import cv2
import numpy as np
# 1
I = cv2.imread("./anhthi/anh5.jpg")
# cv2.imshow("I", I)
# 2
Ihsv = cv2.cvtColor(I, cv2.COLOR_BGR2HSV)
print("Muc sang lon nhat cua kenh V:", np.max(Ihsv[:, :, 2]))
# cv2.imshow("Ihsv kenh S", Ihsv[:, :, 1])
# 3
Iv = cv2.blur(Ihsv[:, :, 2], (3, 3))
# cv2.imshow('Lam tron kenh V', Iv... | [
"thanhlio3625328@gmail.com"
] | thanhlio3625328@gmail.com |
e6b0a3e92b20d1044f067e0198c9f8279749e6ea | 08ff63c3e210d277621f683b4df43f4b6e839d94 | /project-name/src/app/utils/importer.py | d65ecb65e9fca782843be9b38ae934d7c7396a27 | [] | no_license | JiaWeiXie/django-project-template | 68b9cab52df800564c1d4d46789a3c192d7ee25f | 9ddd9b6d89c6ce318d609fae442ffaed20ee451e | refs/heads/master | 2021-05-24T07:43:19.532953 | 2020-10-21T15:40:18 | 2020-10-21T15:40:18 | 253,455,633 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # https://github.com/encode/databases/blob/master/databases/importer.py
import importlib
import typing
class ImportFromStringError(Exception):
pass
def import_from_string(import_str: str) -> typing.Any:
module_str, _, attrs_str = import_str.partition(":")
if not module_str or not attrs_str:
mess... | [
"jasonxie@ntub.edu.tw"
] | jasonxie@ntub.edu.tw |
4ad331771c2d6a9e184381b0059bd839356bffe9 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /PythonCrashCourse/chapter_04/exercise4_07.py | d80abad384bb92b361dcbd5dacbb69f125bfe00a | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 75 | py | #!/usr/bin/env python3
numbers = [i for i in range(3,31,3)]
print(numbers) | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
1fccb71e2e7399c3f6bc3a31de7d3f14c55ec2ed | a8c30380881c4003a5eb9cad1094dc30a963c838 | /models.py | a5933db8af456bbb2de7a17a9047df8580be3c56 | [] | no_license | manuvallee/qa_matching | 2c31be5a90881e22a8207c9110a972f4c4903b74 | 3d3f1b4b2ec45788a4240f2fd8693246cd048c92 | refs/heads/master | 2022-12-17T11:17:53.906076 | 2019-07-24T13:57:55 | 2019-07-24T13:57:55 | 168,342,834 | 1 | 0 | null | 2022-12-08T02:33:35 | 2019-01-30T12:54:52 | Python | UTF-8 | Python | false | false | 15,076 | py | import keras
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras import optimizers
from keras import backend as K
from keras import regularizers
from keras.models import Model
from keras.utils import plot_model
from keras.callbacks import EarlyStopping
from k... | [
"noreply@github.com"
] | manuvallee.noreply@github.com |
19836803dd62e45c2e35725ab7852bcf6087723b | 070a6843e24c0eee6397d47495effcce5e8130df | /rcs/adapter/apps.py | 9aec4366173455225132846a4a25482b4f4e6e80 | [] | no_license | Forrest-Z/rcs | 5e86edd08d292adafcf9ef694ed7894ff12bf2ef | 9dd5cd9d3693b6bae9014dff365b2968b45313b7 | refs/heads/main | 2023-07-06T13:39:38.938705 | 2021-08-10T08:30:35 | 2021-08-10T08:30:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class AdapterConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'rcs.adapter'
| [
"18507132980@163.com"
] | 18507132980@163.com |
1367272170c6c2fe4e9fdfa587a3138dc85931cb | 8ec02d2d8537b83420f5a0bdbb28b9d3f4fd64ef | /rotkehlchen/tests/utils/history.py | 5a8272b8490e3fadbad03dca13de372191d00ceb | [
"BSD-3-Clause"
] | permissive | sponnet/rotki | c571f5cc7586592711aa2af3107f83528ef8ae47 | 7991d254f60ee6db2764db7b12296a5b5a732e18 | refs/heads/master | 2020-12-14T04:37:05.447563 | 2020-01-04T09:12:54 | 2020-01-04T09:28:38 | 234,641,916 | 0 | 0 | BSD-3-Clause | 2020-01-17T21:45:13 | 2020-01-17T21:45:12 | null | UTF-8 | Python | false | false | 25,577 | py | from typing import Any, Dict, List, Union
from unittest.mock import patch
from rotkehlchen.constants.assets import A_BTC, A_ETH
from rotkehlchen.exchanges.data_structures import AssetMovement, MarginPosition, Trade
from rotkehlchen.fval import FVal
from rotkehlchen.rotkehlchen import Rotkehlchen
from rotkehlchen.tests... | [
"lefteris@refu.co"
] | lefteris@refu.co |
1eed8db7a047b19919eb49133235bfec5abfbdc6 | 13cae418da6a601a952af8d0a0b1f5f7400f6add | /Semana10/main.py | 0f5a06aff52c4d66030e557180c5c80f03e151bd | [] | no_license | fabian-capunay/UTEC_ICC_104_Grupo02 | 59d48ae240d8a6f06022a146024f4182847c3274 | 9b8ba9780771f5ef1ec325f12428d3b68942fdb8 | refs/heads/main | 2023-06-01T05:32:45.798653 | 2021-07-12T04:46:49 | 2021-07-12T04:46:49 | 379,392,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | from graphviz import Graph
from graphviz import Source
n = int(input("Ingrese cuántos países va a ingresar: "))
paises = []
for _ in range(n):
paises.append(input("Ingrese el nuevo país: "))
dicc = {}
############### DICCIONARIO ###############
for pais in paises:
v = int(input(f"Ingrese la cantidad de paises vecin... | [
"gabriel.espinoza.h@utec.edu.pe"
] | gabriel.espinoza.h@utec.edu.pe |
31a1a0b1cc8d8d0ceb692ff3f27aa50bde473558 | 6f4fda663a11cfe40281efb69eae548559ec767c | /src/finn/transformation/qonnx/qonnx_activation_handlers.py | 3336b1eee7fa9d54092cd56b9ba0edaf9d0884b1 | [
"BSD-3-Clause"
] | permissive | VincentSeven1/finn | 833bd133f5188abefd61d34382a997824bf8dde9 | d1cc9cf94f1c33354cc169c5a6517314d0e94e3b | refs/heads/main | 2023-08-30T17:52:38.683357 | 2021-11-05T14:49:29 | 2021-11-05T14:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,901 | py | # Copyright (c) 2021, Xilinx
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the follow... | [
"hendrikborras@web.de"
] | hendrikborras@web.de |
dd26986cca4679b0a9e6a16fce3c20db4e78af5e | 4b7006c000b396ae5f9fa6c904920012ae106564 | /XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/ADeIi1-LryDNFxrvGNDFajA7b1dquV2HmbhB0_8uy0U=/_ctypes.cpython-37m-x86_64-linux-gnu.pyi | 61443d376a962b0f8982fac7ddacf6aa7069dc55 | [] | no_license | JairEscamilla/Puntos-de-inflexion | 7280b70a2e1e8c1e6c1ca5ebe939b0a59574bd03 | 43e8c381bbe2ae1dd7aef12588338ccabd5e1cc6 | refs/heads/master | 2020-06-04T12:35:20.696310 | 2019-07-16T05:28:36 | 2019-07-16T05:28:36 | 192,024,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,870 | pyi | import builtins as _mod_builtins
PyCFuncPtr = PyCFuncPtrType()
class ArgumentError(_mod_builtins.Exception):
__class__ = ArgumentError
__dict__ = {}
def __init__(self, *args, **kwargs):
pass
@classmethod
def __init_subclass__(cls):
'This method is called when a class is subclas... | [
"hernandez_yo14@outlook.es"
] | hernandez_yo14@outlook.es |
a7c65bdf2c3d76a9d0bef4bc19e8fa9001e6129b | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/dialogflow/__init__.py | 53f4af3ef55ac638fe4d82d7edb0b86755a4101d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,194 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
9c613702a7a4f5d6686f7fe5dbb23f642b6f271b | c1656c1b54d2b6d5ead355845fb890b0a37d50e9 | /bookshelf/node_modules/mongodb/node_modules/kerberos/build/config.gypi | 313ea013ab1c83dfbfb2fb7c63bd47d2fc5f3c42 | [
"Apache-2.0"
] | permissive | joshthedudeoflife/javascriptstuff | ae4c90c04f882daddcbb0eee38087ad62c94fcd2 | 7d81b368f3b79681a77bd63d83b717423b7f51c5 | refs/heads/master | 2021-01-01T17:16:42.880719 | 2013-12-12T03:52:00 | 2013-12-12T03:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | 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": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"josh.chou@ses-technologies.com"
] | josh.chou@ses-technologies.com |
f6080fc0663a5816d1a10eaf5fd0a3b5597058dc | 86c1714953d583f37a74579e38424144dd520510 | /getting_started/keras/pred_w_netwk_2node.py | 6735513c1ef57695c387f3ffbd9299d3bf1e48ea | [] | no_license | DestrosCMC/Machine_Learning | 1320eef12a30c69f270ce8e03652149826994126 | 4b0a040cbca23f375ac69ecbb1dd46997b95218e | refs/heads/master | 2022-12-12T19:45:52.370192 | 2020-09-10T20:56:14 | 2020-09-10T20:56:14 | 286,491,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | def predict_with_network(input_data):
# Calculate node 0 in the first hidden layer
node_0_0_input = (input_data * weights['node_0_0']).sum()
node_0_0_output = relu(node_0_0_input)
# Calculate node 1 in the first hidden layer
node_0_1_input = (input_data * weights['node_0_1']).sum()
node_0_1_out... | [
"noreply@github.com"
] | DestrosCMC.noreply@github.com |
27d1a3c411b12208e8d4fb289eb2af4bf85cb440 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/239061968.py | 6824dca6f32823cb12a5f3a0a45879a6c8761224 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,180 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 239061968
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 2, 4)
assert board is... | [
"noreply@github.com"
] | kozakusek.noreply@github.com |
636edf3467c9802e246c2feb9878287eb93494af | 22827671ddef7a74a58ebd7e7e451c796046a6ae | /ExamPrep/Shit Comp/Python Code/PythonShit(UpToRoots)/arangelinspace.py | 0c043e7262118d009fe2e086e0c23ac82febcc0f | [] | no_license | FHomewood/ScientificComputing | 1fb06c15ad553d4ad68325ee2ae67f1344a57c00 | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | refs/heads/master | 2021-09-04T06:13:06.814700 | 2018-01-16T15:57:37 | 2018-01-16T15:57:37 | 110,961,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py |
'''arange'''
# an arange returns evenly spaced values (where you give the space size) within a given interval and is part of the numpy package
#numpy.arange(start,stop,step)
#where start is a number that you want to start with, the interval includes this value
#stop is the end of the interval the interval does not ... | [
"fhomewood98@gmail.com"
] | fhomewood98@gmail.com |
eb39a04674e7ca8db1a3f4abf668f05b3cbc5162 | d6a09b1ff1ef6e7f63e6e0ecd4f6a3860de546a3 | /UI.py | 54724463c33ebd9109e2acfc483cb65d80de032f | [] | no_license | yichongsan/Phone_number_recognition | c7a593a978bbd67a6a30bfb02ccf5555f351520c | 8bba9d4e7cc6625e8e63096ad60ec6f5a6c32f77 | refs/heads/main | 2023-04-25T06:19:16.988245 | 2021-05-14T14:28:32 | 2021-05-14T14:28:32 | 367,386,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,627 | py | from tkinter.filedialog import *
import cv2 as cv
import cv2
from PIL import Image, ImageGrab
import os
import tkinter
import tkinter.filedialog
import time
from PIL import ImageGrab,ImageTk
import pho_reg as pr
from tkinter.messagebox import askyesno
import numpy as np
from keras.models import *
class... | [
"noreply@github.com"
] | yichongsan.noreply@github.com |
cddfc9177257df40d436d50cbb8e5b8c6df0014d | 0b86600e0288c0fefc081a0f428277a68b14882e | /code/test-tex.py | 88494d5f2d9c294df67876d5ebb5c013470ef015 | [] | no_license | Byliguel/python1-exo7 | 9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350 | fbf6b08f4c1e94dd9f170875eee871a84849399e | refs/heads/master | 2020-09-22T10:16:34.044141 | 2019-12-01T11:52:51 | 2019-12-01T11:52:51 | 225,152,986 | 1 | 0 | null | 2019-12-01T11:51:37 | 2019-12-01T11:51:36 | null | UTF-8 | Python | false | false | 128 | py | # Ceci est un test de code Python
# Accents a verifier à é ù
def fonc(x):
"""Fait ceci à é ù"""
return x ** 2 + 1 | [
"arnaud.bodin@math.univ-lille1.fr"
] | arnaud.bodin@math.univ-lille1.fr |
ff404499125718c7bc23a7e03718afe076a5d95d | 1efb2e0b945a82e039c2a58f46ce842dc59ca3d9 | /train.py | e787ffe6d6bf8e4a63efe8dfb9a27fdb9639f1b8 | [] | no_license | YuPengg/liveness-detection | 764590dc1b34a8c4eb503554f98f3265133be5bf | cbc7337c5f3df59d98151321171911a903e8f575 | refs/heads/master | 2023-03-09T23:57:34.780108 | 2021-02-28T13:47:02 | 2021-02-28T13:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,253 | py | from livenessnetwork.livenessnet import LivenessNet
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.optimizers import Adam
# fro... | [
"zhaohengheng@outlook.com"
] | zhaohengheng@outlook.com |
f7a3a1e5c2415d25674c3cecc6fa65aaa8ac1e0c | e791b4be5de2c21db2f0eb26559be983a0b4a00f | /app/main.py | e54f954c018d75ebd9afe720e5475032bdd99788 | [] | no_license | jefersonpassos/sms-api | dea66600c28f93feec3591fa9ca998f7a9aa114d | 0ada642591e4b65a55605390c88f9792ab090d52 | refs/heads/master | 2021-08-22T07:20:25.333787 | 2017-11-29T15:56:01 | 2017-11-29T15:56:01 | 110,285,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from flask_api import FlaskAPI
from flask import request
from flask_cors import CORS, cross_origin
import os
from datetime import datetime
import moment
from .blueprints.ranking import ranking_blueprint
from .blueprints.retencao import retencao_blueprint
# def create_app(setting=None):
# Inicia uma aplicacap f... | [
"noreply@github.com"
] | jefersonpassos.noreply@github.com |
f7ebec68295acdd8c2ebd01fc77f111c36a1808c | 4f2199e03cda9c64a1d0975f35201dd833cce1cc | /Image_Blending/Convolution.py | 301b751d9a754731027752b6cf32742b630d18b1 | [] | no_license | SurajMondem/Computational_Photography | e158ab204c44bf3e201d08278e0ce1ee07f5ce2a | 3c0b98e4c6a80dfb8b8325640e1319e906487cfe | refs/heads/main | 2023-03-19T19:41:18.556787 | 2021-02-25T19:19:23 | 2021-02-25T19:19:23 | 336,098,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | import numpy as np
import cv2
def convolutionColor(image, kernel, average=False, debug=False):
# Color Convolution of the Image with kernel
# Implements 3*3 kernel on all 3 layers(RGB) of the images
print("Image Shape : {}".format(image.shape))
print("Kernel shape : {}".format(kernel.shape))
if ... | [
"surajmondem@gmail.com"
] | surajmondem@gmail.com |
4cf15cbfe94f9f32ba11698d036f5b9b377319d2 | 6ed5878c79f2f192e8cbe322c4e755837c8fc57c | /lib/colourize.py | 8c7a85a2057cbc492af0375326890106e0e89968 | [
"BSD-3-Clause"
] | permissive | MnM/tomcat-ear | 655ad42a9c84cc1e267241a632b6c83a44f7569a | 9ce7d5e05392de86377fe78e8c8e367ac15a1991 | refs/heads/master | 2020-06-08T08:02:03.479673 | 2011-11-29T21:21:34 | 2011-11-29T21:21:34 | 2,721,019 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
def colourize(s, colour):
return COLOR_SEQ % (30 + colour) + s + RESET_SEQ
| [
"matthias.maiershofer@gmail.com"
] | matthias.maiershofer@gmail.com |
325ce60a54f9b633e41e0764919b0fe431c94705 | 4fd5860beb1e6809eee297509bcc776dfca40aca | /phase_coh_1871_2016/codes/figs.py | 2ab4b1d42585720a11853ce5c3f3f57bcec0ac8f | [] | no_license | manmeet3591/fingerprint-volcano-enso-im | 40a41eca517abdd09079feb7ae58cc866343d6a8 | 21f39125ece4d03c5ee2961e4aae3768ee61cdb8 | refs/heads/master | 2021-07-05T09:49:28.858614 | 2021-04-19T02:55:45 | 2021-04-19T02:55:45 | 229,057,834 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,588 | py | #! /usr/local/opt/python/libexec/bin/python
"""
Functions used to plot the output figures
=========================================
"""
# Created: Thu Nov 16, 2017 02:05PM
# Last modified: Fri Nov 17, 2017 09:02AM
# Copyright: Bedartha Goswami <goswami@pik-potsdam.de>
import numpy as np
import datetime as dt
from... | [
"manmeet20singh11@gmail.com"
] | manmeet20singh11@gmail.com |
3f2a7f48be046e9abe32337895e250822e9e5371 | d7ef3b2dd88641d7b220d8714d8f378be2ac6045 | /MacOSX10.11/tools/csv2xml.py | eef4f7f24281ca27b6447572618e6dc8e3665e97 | [
"CC0-1.0"
] | permissive | scaponapple/scaponapple | 6744a215ec74b4fc592f2a1775575b3b619d74bf | bcd088ba5ae38183ec54b414082b2ca667939d23 | refs/heads/master | 2020-12-24T07:28:41.462347 | 2016-08-31T21:14:27 | 2016-08-31T21:14:27 | 57,238,564 | 15 | 6 | null | 2016-08-31T21:14:28 | 2016-04-27T18:59:02 | HTML | UTF-8 | Python | false | false | 2,607 | py | #!/usr/bin/python
#Read in CSV data and write to XML file
import csv, os, sys
def xml_encode(input):
output = str.replace(input, '&', '&')
output = str.replace(output, '>', '>')
output = str.replace(output, '<', '<')
output = str.replace(output, '\n', '<xhtml:p/>')
return output
#Files to read an... | [
"maura@eclipse.ncsc.mil"
] | maura@eclipse.ncsc.mil |
4fc209e569dd61f383f6074f9cb0cf3bf4e9fea9 | 1fd6cbaf8e7cf562b83c8223d6dc7f8ec70ecb4a | /0665_Non-decreasing Array.py | 47b18c646ee5c0a0b61069dfc93b701ca8534794 | [] | no_license | Yyyyyjkim/LeetCode | 2ddb186aa71b1e06911387d6989ed74bb2ac818e | c9b4dfcda763550447f1ae0b46ebd3f479946dd4 | refs/heads/main | 2023-02-16T15:28:38.245498 | 2021-01-18T11:28:08 | 2021-01-18T11:28:08 | 329,005,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | nums = [4,2,3]
nums = [4,2,1]
nums = [3,4,2,3]
nums = [1,2,3,1]
# mine
class Solution:
def checkPossibility(self, nums):
for i in range(len(nums)):
nums_copy = nums.copy()
nums_copy[i] = nums_copy[i-1] if i>0 else float('-inf')
if nums_copy == sorted(nums_copy):
... | [
"dbwjd159753@hanmail.net"
] | dbwjd159753@hanmail.net |
7dabc2769284f27f4c536e8a0c19b53b4c1b217a | 571d1ec6972b75f0d0515195e8062d9b4fc624bd | /_tests/hough/test_hough_against_all_artsy_test_images.py | 32d99c3d88703dc4fd24e5ae4a6ed8a6ce93f826 | [] | no_license | timpowellgit/allweveeverhad | 2b1a36ffc6e328caf5e340698a87d9e03b1959a6 | c1cf0e16a9e06a96a26ae37d1feebd3094635202 | refs/heads/master | 2022-12-01T20:16:32.655243 | 2019-02-24T21:50:49 | 2019-02-24T21:50:49 | 170,889,209 | 0 | 0 | null | 2022-11-22T02:22:56 | 2019-02-15T15:50:29 | Python | UTF-8 | Python | false | false | 4,160 | py | from collections import defaultdict
from matplotlib import cm
from multiprocessing import Pool
from PIL import Image
from scipy import spatial
from skimage import color, data, exposure, filters, measure, feature, io, color, draw, transform
from skimage.color import rgb2gray, rgb2grey
from skimage.draw import line
from ... | [
""
] | |
c94ac4a2779b3b2949f4abc2a3c22adf85b777d8 | 67180e35b2ab3a25b80c0e7ed75cae52828083e4 | /main.py | 8b93fda6ea02991202826366c657aac5aaf1a771 | [] | no_license | fabiobr05/Cotacao_Bitcoin | 61f669f22c03ef0b669469376cf6750520747c05 | 3a9d074d2c4e6520adc15afd760a4c1eb81a965c | refs/heads/master | 2023-06-25T10:24:28.482725 | 2021-07-26T23:45:22 | 2021-07-26T23:45:22 | 389,200,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 19 18:55:29 2021
Program: bitcoin.py
@author: Fabio Batista Rodrigues
"""
# Este programa recebe dados atuais do bitcoin por um determinado tempo e imprimi
# ao final um grafico
# Ou seja, enquanto estiver rodando recebe e armazena
# Importar bibliotecas
imp... | [
"noreply@github.com"
] | fabiobr05.noreply@github.com |
7a877964c195ba8b4611fc1c614aab2598a7d346 | b2301365d220ff0295b8beddbed38b0581f9610d | /Django/landscapes/landscapes/urls.py | 6bb380064f3a5011c960add9367daf6a83339d72 | [] | no_license | JoA-MoS/Python | db246a5ff2201c6ef1dfb9d9b0fd8a37e1d7c46d | 4547c2667f3eaf0a001532bb2b103aab3c344fbe | refs/heads/master | 2021-08-16T11:18:20.420868 | 2017-07-21T05:52:18 | 2017-07-21T05:52:18 | 96,125,892 | 0 | 0 | null | 2021-06-10T18:40:09 | 2017-07-03T15:34:52 | Python | UTF-8 | Python | false | false | 786 | py | """landscapes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"justin.r.dietz@gmail.com"
] | justin.r.dietz@gmail.com |
d100847697c1f5a0e4ae4d5ce2e679021a087bee | ba5040cfb937048fc54e016c5f241af3ae065ba4 | /rasp_log_system/rasp_log_system/asgi.py | 9dcd2031f4bee776814ff62ea76e6178b0156b60 | [] | no_license | nick-pessim/rasp-log-system | dd303c03fb7cb88f1b7e87a162d6df64afd11058 | 0c52f39abfc0a30792e6f84c978ffcef2239d375 | refs/heads/master | 2022-06-09T06:25:30.972792 | 2020-05-06T09:07:32 | 2020-05-06T09:07:32 | 255,386,491 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for rasp_log_system project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"nickolaspessim@hotmail.com"
] | nickolaspessim@hotmail.com |
ecd93e403f59177af30c79be215d4ebf01bfa725 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_068/ch27_2020_03_11_11_55_56_463054.py | 48928ddb084204cf2ffd0f1ab7892e1dc62e802c | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | a = input("Você tem dúvidas? ")
while a != "não":
print("Pratique mais")
if a == "não":
print("Até a próxima")
| [
"you@example.com"
] | you@example.com |
652fe2511ee0e10c397c5ab430f14834d4cdc55c | 7099c2f4e6cc452dc661a7687447ee3b41ef261a | /config.py | bcb385220b98a629c880e82b0d33216d8da73f68 | [] | no_license | BEaStia/flaskProject | b2ae6d95fee39d6f8dd1e5530c5b281074967943 | 46335aaa56177cc9ec8c4e9ef9d3386684eb30e9 | refs/heads/master | 2016-09-01T08:49:04.894793 | 2015-10-14T07:07:59 | 2015-10-14T07:07:59 | 44,230,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') | [
"gophan1992@gmail.com"
] | gophan1992@gmail.com |
9652627954c15e9e7a7cc860e1713a90b8f9787f | dada5dee63a8d798e18ffc06bb2b8870defcfefc | /autoconf/boost_math.py | 8c01b02804cfa71901f004633073f756eb536e68 | [
"MIT"
] | permissive | edubois/sconsProject | 2bd66324ce7c4006a8a31bf43c1e18950e267f67 | d75c6172f30c09ba8c68ef74f49f8b5b78c01dd8 | refs/heads/master | 2020-05-18T15:54:25.074815 | 2015-05-10T20:04:53 | 2015-05-10T20:04:53 | 32,820,146 | 0 | 1 | null | 2015-03-24T19:28:04 | 2015-03-24T19:28:03 | Python | UTF-8 | Python | false | false | 305 | py | from _external import *
from boost import *
boost_math = LibWithHeaderChecker(
[
'boost_math_c99',
#'boost_math_c99l',
'boost_math_c99f',
'boost_math_tr1',
#'boost_math_tr1l',
'boost_math_tr1f',
],
'boost/math/special_functions.hpp',
'c++',
name='boost_math',
dependencies=[boost],
)
| [
"fabien.castan@free.fr"
] | fabien.castan@free.fr |
d275ecad38aeb449dc641572882ba7440eddee8e | dc109564d5113713b36bec07ca3951a66347595f | /main/migrations/0004_alter_client_user.py | 0a6d691e61855c302745772ae9b9dc709b1d8bc8 | [] | no_license | Spanite/market | a7ca0db4c16191f7ab92f556c7fb4cfbac528fcb | 3fd039102f891a18d931ba048f5b3c55a3bc36d3 | refs/heads/master | 2023-07-25T19:08:42.697072 | 2021-09-10T10:39:31 | 2021-09-10T10:39:31 | 404,367,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # Generated by Django 3.2.7 on 2021-09-09 14:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main', '0003_auto_202109... | [
"sspanite@gmail.com"
] | sspanite@gmail.com |
06610cfadfa7b7f1355f379fc9b4d330bce025b0 | a1e7457b5d1ef03ea9d891a6886718b3029c2ba4 | /zoe_scheduler/state/blobs/__init__.py | 35e47533ccc22fcd06c1ecf2657d097af0742752 | [
"Apache-2.0"
] | permissive | ddcy/zoe | 06bd104b0d3b632ed18ff8a8cc5b580b1f140b1f | bd1ac8cdefeda3ebd1ccc941243b781cb7c0beb2 | refs/heads/master | 2020-12-26T21:46:17.128925 | 2016-02-26T17:52:20 | 2016-02-26T17:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # Copyright (c) 2016, Daniele Venzano
#
# 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 w... | [
"venza@brownhat.org"
] | venza@brownhat.org |
e1cdcdbfa81d45685ca6cfc07ad06b79cc989344 | 0eae8f1acdfbdc674cff5ac042fc0cb154bd6b1f | /src/api-service/__app__/onefuzzlib/azure/creds.py | e630d6c85a6f29189631e390e3ec61bfb6fc2f8b | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | weiplanet/onefuzz | 9138ce609a0ff5056c9bc5e2710bfb4176143cf7 | 24f43478ddaf40cf8ad525e8c8a04a21d6693bd4 | refs/heads/main | 2022-12-19T09:14:13.680230 | 2020-09-30T22:54:25 | 2020-09-30T22:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | #!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import logging
import os
from typing import Any, List, Optional, Tuple
from azure.cli.core import CLIError
from azure.common.client_factory import get_client_from_cli_profile
from azure.graphrbac import GraphRbacManagemen... | [
"bmc@shmoo.com"
] | bmc@shmoo.com |
24c9c23e085951b4e2693a0a4745c82be1c58e40 | 687c9aae1e34451a00b846561c5358006d34457d | /Simple-Streaming-Gateway/sources/__init__.py | df055438323bec395b97349ab522f5dad7847447 | [
"BSD-3-Clause",
"MIT"
] | permissive | altaga/Near-Extinct-Bird-Detector | ec5c2092f29836a5ff86fac739d448c7f9093223 | ebbd7f318b1c671b1bde827e9b14ac672d9850c4 | refs/heads/master | 2023-04-26T21:32:51.074162 | 2021-05-28T22:32:52 | 2021-05-28T22:32:52 | 354,477,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | import sys
from sources.test import TestStreamReader, TestResultReader
from sources.serial import SerialStreamReader, SerialResultReader
from sources.tcpip import TCPIPStreamReader, TCPIPResultReader
from sources.fusion import FusionStreamReader, FusionResultReader
if sys.platform not in ["win32", "darwin"]:
from ... | [
"v.a.i@hotmail.com"
] | v.a.i@hotmail.com |
abf528a8445ff395f6976061a018674f5c1ab9f9 | ea707a82e963f258094b3ef8778c908f4f57786f | /scripts/motors2.py | 1f90c5ae37abf83ee87382132269ad1b85c56ffe | [] | no_license | EitoHayashi/pimouse_ros | 9f3bf307c51e44c883213d4ced404878612b722c | 64a6fee42406e4883b991c1cfa4964c6d5b43523 | refs/heads/master | 2020-06-10T07:42:25.129422 | 2019-07-02T02:26:09 | 2019-07-02T02:26:09 | 193,619,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | #!/usr/bin/env python
#encoding: utf8
import sys, rospy, math
from pimouse_ros.msg import MotorFreqs
from geometry_msgs.msg import Twist
from std_srvs.srv import Trigger,TriggerResponse
class Motor():
def __init__(self):
if not self.set_power(False): sys.exit(1)
rospy.on_shutdown(self.set_power)
... | [
"dragon@arche1.co.jp"
] | dragon@arche1.co.jp |
27fbb0ae54c359c770b98b0045daae02c6544609 | 2eb1d501e6b7c3b7d553a538340361b523ed2895 | /car_manager.py | f44f1ed0c4e217e37c3c7b980e2d385d0d666c48 | [] | no_license | gadgetjoseph/turtle_crossing | 4b286d530060bfb07befde0ccd707a573fe2d992 | 5d2a680f3f9bb025d91f097c044e86f8059213ce | refs/heads/master | 2023-07-31T11:33:15.795209 | 2021-09-13T01:35:04 | 2021-09-13T01:35:04 | 405,483,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | from turtle import Turtle
import random
COLORS = ["red", "orange", "yellow", "green", "blue", "purple"]
STARTING_MOVE_DISTANCE = 5
MOVE_INCREMENT = 10
class CarManager:
def __init__(self):
self.all_cars = []
self.car_speed = STARTING_MOVE_DISTANCE
def create_car(self):
random_chance... | [
"joe@mahaffey.us"
] | joe@mahaffey.us |
9a1703eb7f7b932b4a275cc28f1f541f4328efb5 | 3a460b4bb6a4cc2c8a0d8d724ddb1a14c94f81fb | /shot_win32.py | 8e969a1f1dbde18c85af94c9bbffba62a099a6d2 | [] | no_license | MSCMonster/screenshot | ddec768972d09bc533172c86fb1e93e2dec7b57c | 3698d20261d45a4de9f31df72ee792d64d7761b6 | refs/heads/master | 2022-05-12T21:17:56.525466 | 2019-08-01T10:16:25 | 2019-08-01T10:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
# author: Dongye<dongye_bio@qq.com>
# 2019-08-01 14:29
import sys
import time
import win32gui, win32ui, win32con
from PIL import Image
args = sys.argv
def window_capture(window_name, filename):
hwnd = win32gui.FindWindow("Notepad", window_name)
left, top, right, ... | [
"dongye_bio@qq.com"
] | dongye_bio@qq.com |
47ca697e284e6664d1e966bda357bb112aa56356 | d3b80b8de39d4bb4bab02b0e8b5092c2e32aff24 | /login-getmileage.py | d3256d39233544095f5551a9f87de3fbfbd22e09 | [] | no_license | brightparagon/learn-python-crawl-scrape | 658a058fee4ecdb31c92be54b5cb684f5d4d4658 | f28769fd469f69a485e560dc42d20aa08c51dc77 | refs/heads/master | 2021-05-02T05:23:13.512441 | 2018-07-02T14:58:54 | 2018-07-02T14:58:54 | 120,919,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin
USER = "<TEST>"
PASS = "<TEST>"
# start a session
session = requests.session()
# login
login_info = {
"m_id": USER,
"m_passwd": PASS
}
url_login = "http://www.hanbit.co.kr/member/login_proc.php"
res = session.post(url_login, data=logi... | [
"kyeongmo2@gmail.com"
] | kyeongmo2@gmail.com |
626aa752a07696a76a2dd11c4ad7dc35dfb6c474 | 546b8e9907be6a33e2a466e7ae7592a9c593f0ef | /pyslogger/demo_server.py | cf1c03d0dcf9cce82ca1407975ebcd9e4eefcb22 | [] | no_license | wuyun252/python_user_lib | e7df40b79ed7f5171fe80f994cabbe3afa787050 | e7d71c479b57be70caf94239b630d95399796d07 | refs/heads/master | 2020-04-07T12:15:24.498503 | 2018-11-20T09:15:54 | 2018-11-20T09:15:54 | 158,360,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | # coding: utf-8
import pyslogger.server
def main():
pyslogger.server.main()
if __name__ == '__main__':
main()
| [
"cloudywu@tencent.com"
] | cloudywu@tencent.com |
2d8a814710552b67a0235f2559da8a69b2da366e | d2068164bcf7604011cd56fd15562b7105592547 | /utils/security.py | e74afc6db128071c510a43d3986dd62664d19ab1 | [] | no_license | mmunozpatino/pricing_python | 11091c8a3848e99c502b9cac83ef6cd7ffd1d0fe | ef6a94af2d51aa4938ff8ff20f6bffbdc6adc07c | refs/heads/master | 2020-03-30T07:52:56.313602 | 2018-11-17T03:08:53 | 2018-11-17T03:08:53 | 150,972,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | # coding=utf_8
import http.client
import socket
import utils.json_serializer as json
import utils.errors as errors
import memoize
import utils.config as config
memoKeys = {}
memo = memoize.Memoizer(memoKeys)
"""
@apiDefine AuthHeader
@apiExample {String} Header Autorización
Authorization=bearer {token}
@apiEr... | [
"mercedesmp1305@gmail.com"
] | mercedesmp1305@gmail.com |
ace4177b9eeb6385234840817570d41259aafab4 | ea6c8d7faac953011826ef322b4ac94ad3d3a35f | /src/inference_algorithms/_0_evaluate_suffix_and_remaining_time.py | 830888cfd95da2e64307bf378fbfe14d9a245bbb | [] | no_license | kaurjvpld/Incremental-Predictive-Monitoring-of-Business-Processes-with-A-priori-knowledge | adf0def67c0246486b9b56d288fed4c878a2ac85 | 90f79f9f8c753d9e9742ec52e3b9865f88124d9b | refs/heads/master | 2021-05-09T19:06:05.606889 | 2018-07-03T00:52:49 | 2018-07-03T00:52:49 | 118,630,830 | 0 | 4 | null | 2018-12-07T12:06:22 | 2018-01-23T15:39:43 | HTML | UTF-8 | Python | false | false | 9,568 | py | '''
this script takes as input the LSTM or RNN weights found by train.py
change the path in the shared_variables.py to point to the h5 file
with LSTM or RNN weights generated by train.py
Author: Niek Tax
'''
from __future__ import division
from keras.models import load_model
import csv
import copy
import numpy as np
... | [
"kaurjarvpold@gmail.com"
] | kaurjarvpold@gmail.com |
a07d321a6e3487ba98ccbee43b741ebdeb3f6ade | e8f4a641ae13c1638ff3011a50817aaf6d355cae | /scripts/py/s3_delete_domain_list.py | 7be444a0e09c0f6118812f9ea8a44e0441a17b5b | [] | no_license | RY-2718/frontera_crawler | f9bd9d00bc70264e04bdc2de934b547d77b47663 | 12eea4ae4d6d791ddd7c0d2cdabec9c602edc0ab | refs/heads/master | 2021-09-04T11:19:07.566067 | 2018-01-18T06:36:24 | 2018-01-18T06:46:54 | 117,086,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # -*- coding: utf-8 -*-
import re
from six.moves.urllib.parse import urlparse
import gzip
def blacklist(file_name):
blacklist = set()
with open(file_name,'r') as f:
for row in f:
s = row.strip()
if len(s) > 0:
if s[0] == "#":
s = s[1:]
#print("debug: %s" % s)
bla... | [
"ry.3607x5531@gmail.com"
] | ry.3607x5531@gmail.com |
d71f2466df1c9554cae2cf12998556a240bc251a | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/optimized_46960.py | 25862edd43771c3123d24cf36d218bdacaf22006 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,505 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
377ffc81461d55b5d2c5387bd29f399deb97784d | 833df5de8df0ab4e79536e869e971faace8f34cf | /imitation learning.py | 6cca09b405e194af6374f287ddfdbfee230bc6fe | [] | no_license | Hehua1311553678/RL | 936e701a04f03117437c6d9ea62237c567c49b73 | e0000fb9c36fdd9359dfbe1944cdd820eb45f387 | refs/heads/main | 2023-06-19T07:24:18.635487 | 2021-07-20T02:34:29 | 2021-07-20T02:34:29 | 353,001,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | """Loads CartPole-v1 demonstrations and trains BC, GAIL, and AIRL models on that data.
"""
import pathlib
import pickle
import tempfile
import stable_baselines3 as sb3
from torch import nn
import torch as th
from imitation.algorithms import adversarial, bc
from imitation.data import rollout
from imitation.util import... | [
"1311553678@qq.com"
] | 1311553678@qq.com |
1c0e4264cfc25c5b85b1d1754a31fa9653f0732f | 610f934ae016ce7e340a5e574ca841d5f575fd0e | /penguin_backend/penguin/models.py | 4ad219c69a0eb0158160ebd1bf503e140b734bfc | [] | no_license | dd8917vk/penguin | dd1eb86c0aa67da4098856301a8c52ea907a68dd | 10d5985e503edcb2539ced4f2135c899255da2b1 | refs/heads/main | 2023-01-31T21:49:32.634773 | 2020-12-16T18:22:36 | 2020-12-16T18:22:36 | 318,674,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
# Create your models here.
class Commands(models.Model):
command = models.CharField(max_length=255)
description = models.TextField()
link = models.CharField(max_length=255)
html = models.TextField(... | [
"dd8917vk@metrostate.edu"
] | dd8917vk@metrostate.edu |
94bd1bddec577b769e43f9aa0f141e09eda1b616 | 1fee0eaa0950488fc473d7d5ab2cffb10aa076be | /mdls/mode13/v13_na_ri_8r64dr_ver101_config/read_snap_adcout.py | 4d98734bd6edaef507ecc4286c6a1c1b3be8fd59 | [] | no_license | demorest/vegas_devel | 19a9a18890ffeebb426521c0cc53d31a5c26cd80 | 43633271af6dd1e01b73de5b12bacc40740886ce | refs/heads/master | 2021-01-21T00:07:48.109003 | 2013-03-25T18:31:45 | 2013-03-25T18:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #!/usr/bin/python2.6
import numpy, corr, time, struct, sys, logging, pylab, matplotlib, scipy
#connect roach
fpga = corr.katcp_wrapper.FpgaClient('192.168.40.70')
time.sleep(1)
#pay attention, the snap module is controled by the inner software register
#as snap64_ctrl which can be found at /proc/pid/hw/ioreg/
#the ... | [
"jayanthc@gmail.com"
] | jayanthc@gmail.com |
6f2ef6cef4cd514a8ee3cf4342b58b1a61f6666c | c2777c1e132642ae033fd0eaeabb617823fc7e7b | /5month/0509.py | 65a493bae12c1319c1fe8a9d4816d4d309e2cd0f | [] | no_license | Ludug323/python | 278e7c30f082e6e6e823e17b04e376cc4f2c98c2 | b822098059dd0be69c11b6dc0406134d1c321da3 | refs/heads/master | 2022-11-14T07:46:24.155364 | 2020-06-27T09:59:35 | 2020-06-27T09:59:35 | 272,355,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from sklearn.linear_model import LinearRegression
import numpy as np
import matplotlib.pyplot as plt
temp = np.array([18,16,25,34,35,36,27,24,28,16,36,32,22,24])
time = np.array([0.8,0.4,3.5,8,10,14,5,2,7,0.4,13.5,9.8,1.2,2.7])
tempRes = np.reshape(temp,(len(temp),1))
timeRes = np.reshape(time,(len(time),1))
lm = Lin... | [
"60188596+Ludug323@users.noreply.github.com"
] | 60188596+Ludug323@users.noreply.github.com |
04da9389ac359b4f61f4129ca3324127ec46c3c1 | ad5a2092eda8af1c5cf1816fe0c1c7a91f016fda | /snap/settings.py | fdfd4daaefd15f1e0814c1f539fc9ca4bf054e0b | [] | no_license | namanarora00/batchsnap | d578578ab1359d3d2a924d43d1ac190d5f65a95e | 7a278cdd0492c2d408142ce1e58c5728616d21e0 | refs/heads/master | 2021-10-23T08:34:08.532926 | 2019-03-15T20:06:53 | 2019-03-15T20:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for snap project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"36225548+palindrome69@users.noreply.github.com"
] | 36225548+palindrome69@users.noreply.github.com |
0a895f1f4937acd75b9c99d191c3306bff7ea81a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02951/s718036718.py | 3cccf0c6bef0cc9a94bcd2b254316aabdb7fd13e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | a, b, c = map(int, input().split())
a = min(b + c, a)
c = b + c - a
print(c) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
243ee64845d2473fb88e9c2168eb03387905fc78 | 48d6378907d4ec555d5d4a9e2822311df4b853d3 | /atken/buildApp old1/urls.py | 2da23cff00234ab3aac9a5f8f7bd9b137a8a1082 | [] | no_license | Alucard121/ATKenterprises | 5a2cb4edd74b186cf1adb607ec309ab7acfa0423 | 44c59eb156b27ee4273f5a3eb19335b662de0c7c | refs/heads/master | 2023-08-20T12:46:07.035179 | 2021-10-11T13:18:08 | 2021-10-11T13:18:08 | 414,189,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | """buildmart URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"nadiraziziyah@gmail.com"
] | nadiraziziyah@gmail.com |
17a1df7dcac84bf1d45a7d01c7f032668282338c | 711504efdf973fecea6071b2c74e1ce7edeeab9d | /venv/Scripts/easy_install-script.py | f471931b9378d550d8db7822817f35da80812979 | [] | no_license | lost222/pycharm-git | 182addf8d8f4ac72081f823cee0e41cb7b6c914c | 14c588cdd984c43431fc524ecb76ffa38c31c470 | refs/heads/master | 2021-04-27T00:18:43.327974 | 2018-03-04T13:37:01 | 2018-03-04T13:37:01 | 123,791,253 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 458 | py | #!C:\Users\ÑîÆð\PycharmProjects\untitled4\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"1610299@mail.nankai.edu.cn"
] | 1610299@mail.nankai.edu.cn |
53a2ec0ea80c41078c9b9e85a70dd1a64e5b0e07 | 4014c430ae4ee311e10a5eb483e15a616c01621c | /Training/Tkinter.py | 3b69872ae749534dce18da3a0fbf22b62aa547a1 | [] | no_license | nsotiriou88/Python | 8f1ed1e21c31ee1cbbca0bb7cc7d7eec3ea03063 | 3cd73ba67d2131272464fd6eb29745393b6447ec | refs/heads/master | 2021-04-29T14:39:58.493147 | 2019-04-23T00:33:48 | 2019-04-23T00:33:48 | 121,779,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | try:
import tkinter # python 3
except ImportError: # python 2
import Tkinter as tkinter
# print(tkinter.TkVersion)
# print(tkinter.TclVersion)
# ============ Example with button ===========
# class Application(tk.Frame):
# def __init__(self, master=None):
# tk.Frame.__init__(self, master)
# ... | [
"nsotiriou88@gmail.com"
] | nsotiriou88@gmail.com |
c4386633e969bdc40babc225c48ae49a7ef5cfcc | ae0e6d02edd97a6d6e88b6483d92abca3bf55f63 | /delphi_analysis/LorentzTrials.py | 4c71699cc8b7fa3f723ff1c20459fe684c2322f5 | [] | no_license | thongonary/CMS_Deep_Learning | 7a3ccb4ea341434ae083e6f5e0bf43e7df11d963 | 80e914f935d9cd6ca2f1237bc61fad5519b52906 | refs/heads/master | 2021-04-06T20:16:08.054349 | 2018-03-15T21:15:02 | 2018-03-15T21:15:02 | 125,426,799 | 2 | 0 | null | 2018-03-15T21:13:40 | 2018-03-15T21:13:34 | Jupyter Notebook | UTF-8 | Python | false | false | 9,553 | py | import sys
if __package__ is None:
import sys, os
sys.path.append(os.path.realpath("/data/shared/Software/"))
sys.path.append(os.path.realpath("../"))
p = "/home/dweitekamp/mpi_learn/"
if(not p in sys.path):
sys.path.append(p)
from CMS_Deep_Learning.utils.deepconfig import deepconfig
deepconfig("cpu",... | [
"dannyweitekamp@gmail.com"
] | dannyweitekamp@gmail.com |
b306dcb0889d1ec282242b257ade90f599f43fea | 227b02ca30168c31accd1b7d38c3436b737a2f8e | /lenstronomy/Data/image_noise.py | 3ab46bd7ca164bfecd4003235a32c6a0ead736ba | [
"MIT"
] | permissive | Thomas-01/lenstronomy | b7d802c6213f0b7780acb7946b9bb150081b5d34 | 36db4c7f43ba28d6bdecdab1f15c537043f4a286 | refs/heads/master | 2020-06-03T04:22:06.123622 | 2020-03-31T18:33:47 | 2020-03-31T18:33:47 | 191,435,987 | 0 | 0 | MIT | 2019-07-11T03:22:29 | 2019-06-11T19:21:27 | Python | UTF-8 | Python | false | false | 4,711 | py | import numpy as np
class ImageNoise(object):
"""
class that deals with noise properties of imaging data
"""
def __init__(self, image_data, exposure_time=None, background_rms=None, noise_map=None, verbose=True):
"""
:param image_data: numpy array, pixel data values
:param expo... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
fec2216ac15dc2b197773932ae980fce4c6e8343 | 61f17c0982247fdefcd7b80d185bbb6aecf27174 | /exercise2/twitter/tweet.py | abcb1671c0155aef20dc312d0026ed82096ed5cd | [] | no_license | mantaspanos/python-2-3-exercises | 25b560a44710910573510343413044c48b8a0a5d | e18ac86f470544da731a7121273b6db9cc01a0ce | refs/heads/master | 2020-12-30T16:39:58.513232 | 2017-05-07T01:02:56 | 2017-05-07T01:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import json
class Tweet:
def __init__(self, raw):
self.raw = raw
def followers(self):
return self. raw['user']['followers_count']
def __cmp__(self, other):
return other.followers() - self.followers()
def __str__(self):
return '@{0} at {1}: '.format(
self... | [
"ben@straub.cc"
] | ben@straub.cc |
5c94e0ecd48a3e1e6b1341ab6049f1b1c6cc7455 | e0e55462707e8257559736f212ad086fbb5f9af5 | /util/path_config.py | 47d0bb3fd2df3e4777e54233ca5de1acb9a0a277 | [] | no_license | jtpils/SSRNet | 45e5c97f82e21c4f672d3c7e61de0c6036b7a95c | 05d70706f4ecdecd502890a799b0d316db15ebd3 | refs/heads/master | 2022-11-26T11:46:24.597002 | 2020-07-28T02:56:33 | 2020-07-28T02:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import sys
open3d_path = '/mnt/A/jokery/projects/Open3D_test3/src/build/lib/'
tc_path = '/mnt/A/jokery/projects/08_2/'
sys.path.append(open3d_path)
from py3d import *
def get_tc_path():
return tc_path
| [
"noreply@github.com"
] | jtpils.noreply@github.com |
57111e7c74861ad16035159097e6cf4ed1e7deae | 57052243ada8b556c47d3eb03d705991a740fe26 | /plugins/misc.py | 894d3edb16ab7662dbc4096f1c3429688c3fa9a6 | [
"MIT"
] | permissive | Fusxfaranto/Robcxjo | 0868299b28eefcf044aed8f0393f39b3a9a150c7 | 943721c5126d232e16cf40f74e37180a9178b26b | refs/heads/master | 2020-12-02T15:58:22.632670 | 2013-10-20T02:10:33 | 2013-10-20T02:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # -*- coding: utf-8 -*-
# This is just a lot of inside-joke type of scripts, so I don't know how much use someone else will get out of it
from time import sleep
name = 'misc'
enabled = False
operator = False
def inline(self, c, e, line, message_source, target):
if line[0] == "@seen":
sleep(1)
self... | [
"fusxfaranto@gmail.com"
] | fusxfaranto@gmail.com |
e68336ec767b58d17ef407f423fa9edde1ddc8a0 | 0b1c431960238934476941104d45bf907c0e35c2 | /myapp/admin.py | 70f88d44c9e37518e18d48736308a4380d626b65 | [] | no_license | jjmerchante/2015-sat-pfinal | 9d2d63974f0e04dda12311de53295b0ed3127acd | a5ff13f97a24021210cda7de04cdcb317e798f14 | refs/heads/master | 2021-01-10T09:11:10.520052 | 2015-05-24T17:05:32 | 2015-05-24T17:05:32 | 36,181,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from django.contrib import admin
from myapp.models import Actividad, Usuario, UsuarioActiv, UltimaActualiz, ComentActiv
# Register your models here.
admin.site.register(Actividad)
admin.site.register(Usuario)
admin.site.register(UsuarioActiv)
admin.site.register(UltimaActualiz)
admin.site.register(ComentActiv)
| [
"jj.merchante@gmail.com"
] | jj.merchante@gmail.com |
7bcb803514e2cca016a206f9f03f15936cec735d | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /sleekxmpp/features/feature_starttls/starttls.py | eb5eee1d5f5b8798c4f721522214b325b276dc94 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 2,100 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import logging
from sleekxmpp.stanza import StreamFeatures
from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin
from sleekxmpp... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
ec3e99c49cd07250adacf2d417ff14a17a27c5f3 | eea704186322a0441124bae2eaefc185c75a69f1 | /setup.py | 581f4773531a0ab6f4988a45d2bc94e64bcfe9dd | [
"BSD-3-Clause"
] | permissive | ScottTaing/taolib | ff5c78c8e6ba0522f5d932975fdc8805c0564b4e | fbd4138d1be9a3ef032284a52662213833921efc | refs/heads/master | 2021-01-17T23:27:14.511401 | 2011-05-06T05:04:55 | 2011-05-06T05:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python
import os
import sys
from distutils.core import setup, Extension
def main():
if not float(sys.version[:3])>=2.4:
sys.stderr.write("CRITICAL: Python version must be greater than or equal to 2.4! python 2.6.2 is recommended!\n")
sys.exit(1)
setup(name="taolib",
ve... | [
"vladimir.liu@gmail.com"
] | vladimir.liu@gmail.com |
c42dd898b991312680a9eb77d014cb786b502475 | dd5508ec479d89a7cce216cf137958a9c815490e | /plugins/countdown.py | 1130f21f6caa0ce9791e3793e56c9ed49519b825 | [
"MIT"
] | permissive | GoodiesHQ/Daddy | c938f1b67ac411164374ee36953fcf076d2e981f | f77a1caf13bfb0fbf5134e9f4a69293307bf5656 | refs/heads/master | 2020-09-08T08:27:14.900199 | 2017-08-23T23:14:07 | 2017-08-23T23:14:07 | 94,431,719 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from daddy import utils
from discord.ext import commands
import aiohttp
import discord
import json
class Countdown():
"""Crypto exchange API for Daddy"""
def __init__(self, bot):
self.bot = bot
@staticmethod
def create_url(src, dst):
return Exchange.API_URL.format(src, dst)
# @ut... | [
"goodies@protonmail.com"
] | goodies@protonmail.com |
7b0a55694d1435894517e844d37b1f4ae01df83b | fa7afdc030327f92471b6f0d91519592a47b83ab | /systemAntiplagio/module.py | 4568c08e89bc3c8c34896ca7a7adf2b6828674f3 | [] | no_license | danisveloso/Projantiplagio | 3ed080f7e177b8bdda389e59253741ecd2d06c81 | 3417208cc5766117c28009a06da4721e27500c68 | refs/heads/main | 2023-03-31T07:12:29.991753 | 2021-04-08T22:06:42 | 2021-04-08T22:06:42 | 356,038,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django_python3_ldap.utils import format_search_filters
def custom_format_search_filters(ldap_fields):
# Add in simple filters.
ldap_fields["memberOf"] = "foo"
# Call the base format callable.
search_filters = format_search_filters(ldap_fields)
# Advanced: apply custom LDAP filter logic.
se... | [
"danisvcosta@gmail.com"
] | danisvcosta@gmail.com |
98d44008e60806c5aadf01aac3861768c9bcf4d2 | be1d9c48ec562b1418b4a0ac0aa6c320ca09eb97 | /collect_eval.py | c0614ae54ad9df9490971bc3e54137b2ba116ced | [] | no_license | littlefish12/spatial-pytorch | c9c99dc7f69e4274499233c6f141d943ff4b7484 | 14ffe976a2387669f183a3fbe45fffd82b992c83 | refs/heads/master | 2022-02-19T12:56:30.336001 | 2019-09-16T13:54:37 | 2019-09-16T13:54:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | DATA = '/data/theory/robustopt/engstrom/store/spatial_eval'
import itertools
from cox.readers import CollectionReader
from cox.store import Store
r = CollectionReader(DATA)
metadata_df = r.df('metadata')
res_df = r.df('results')
def get(orig, attack):
orig_model = metadata_df['resume'].apply(lambda x:x[46:-19])
... | [
"engstrom@mit.edu"
] | engstrom@mit.edu |
d2f5121ef49d129c365b76e47b453d55e931648c | 0ace1c9cec78ea498ec401a8300bf2fe3352ebdb | /kdezero/functions/utils.py | c524d339c1ee89bdef19c2c53280d827cf021965 | [
"MIT"
] | permissive | kotabrog/K_DeZero | fca36a63dec29465c916c48c53ff476b896b206c | e8145a539874956bc235d4577fa38211c01c30ea | refs/heads/main | 2023-04-15T20:22:44.648836 | 2021-04-17T05:29:45 | 2021-04-17T05:29:45 | 349,944,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | import kdezero
from kdezero import as_variable, Function
from kdezero import cuda
from kdezero.functions.ndarray_functions import matmul, sum_to, sum
class Linear(Function):
"""y = x * W + b
"""
def forward(self, x, W, b):
y = x.dot(W)
if b is not None:
y += b
return y
... | [
"suzuki.kota0331@gmail.com"
] | suzuki.kota0331@gmail.com |
725c9e41fbe161ba6460b685d3543af0633d13e5 | 2c7305b9228b3ec79e11db264fa8bf2e437b3c18 | /gag/migrations/0014_auto_20170418_2032.py | b7a17196a2bad9585ec03f9e070dc1fa65897e19 | [] | no_license | vikrant67/gaggy | 7f4265de3a0f7f782ccbec7c39de8f541f0eecfe | 1c23ca52b35e3a796284de4f7762b9a663aa9e97 | refs/heads/master | 2021-01-20T04:21:43.474989 | 2018-02-14T10:13:12 | 2018-02-14T10:13:12 | 89,678,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-18 15:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gag', '0013_auto_20170418_2027'),
]
operations = [
migrations.AlterField(
... | [
"vikrant.juit@gmail.com"
] | vikrant.juit@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.