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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa3d71e2ea62b064980ca47bda05ad3822b8f0a9 | ab13952a85e5d58fec5aadb5d978b4f1f822035d | /tests/test_api_functions.py | f1551ec62ed5270bcc53b845b198e123affefd33 | [
"MIT"
] | permissive | edison12a/portal_glance_api | da62e5a60e2608ccaf555c36f6300f32f8d8df22 | 76692df23ee5e8d05169e0e2af6b8ddbaee75b01 | refs/heads/master | 2023-05-27T14:38:51.749470 | 2019-01-17T19:31:29 | 2019-01-17T19:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,605 | py | """
This module contains all tests for glance_api.modules.functions.py
"""
import os
import pytest
import requests
import sqlalchemy
from glance_api.modules import functions
from glance_api.modules import models
from glance_api import api
# TODO: Finish testing Item
# TODO: Currently using sqlite3 database for tes... | [
"rory.jarrel@gmail.com"
] | rory.jarrel@gmail.com |
0daa335585b3be2faeb308e446ff223bc54d6ac7 | e41b8e6aa152ce0650f7cdafe044b465a4466ad2 | /chap03 decision tree/decision tree.py | 1094ebbf532af4205b6dde685fa5e6ed71f517cc | [
"MIT"
] | permissive | apachesep/code-of-machine-learning | c73040b24cd75149af769832b620a5a24642b026 | 843a1a23c801b97bba3a818e5adb143d869c8286 | refs/heads/master | 2022-11-22T06:48:51.117693 | 2020-07-24T07:52:41 | 2020-07-24T07:52:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: Zhiqiang Ho
@contact: 18279406017@163.com
@file: decision tree.py
@time: 7/23/20 8:38 AM
@desc:
'''
from sklearn.datasets import fetch_california_housing
from sklearn.model_selection import train_test_split
import seaborn as sns
from sklearn import tree
import panda... | [
"18279406017@163.com"
] | 18279406017@163.com |
bd34cba713330f49ee188c81630715aa396f5f11 | 13c3028d52bdb7a647921b52367a9c804e07cc25 | /epyseg/gui/preview.py | fcb5b0ef61019349c9a1db85bc7000fb0a38a4e4 | [
"Apache-2.0",
"MPL-2.0",
"HPND",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | baigouy/EPySeg | 8b1a062f5e88405ca07bd33c6427686182bdae9d | 5ce46ce981c7607c74d9a8f82ef942b207bdb210 | refs/heads/master | 2022-07-26T10:30:41.056239 | 2022-05-24T13:03:50 | 2022-05-24T13:03:50 | 272,421,806 | 19 | 5 | BSD-3-Clause | 2022-05-23T08:27:41 | 2020-06-15T11:34:48 | Python | UTF-8 | Python | false | false | 7,311 | py | from PyQt5.QtCore import QRect, Qt, QRectF
from PyQt5.QtWidgets import QWidget, QApplication, QGridLayout, QScrollArea
from epyseg.draw.shapes.square2d import Square2D
from epyseg.draw.widgets.paint import Createpaintwidget
from epyseg.img import Img
from epyseg.draw.shapes.rect2d import Rect2D
import sys
# in fact th... | [
"baigouy@gmail.com"
] | baigouy@gmail.com |
3559b52d2c097d90ee4e42b0914bc1c2f4394ae1 | 0b1079e405bad2950a8799c30a46fc6984b922bf | /venv/Scripts/django-admin.py | 5596281abc86563d7351294fdfe04acdbc24d41c | [] | no_license | dpridoy/employee_test_api | ddc3786aecd9a3efd8f1d09c2749f237a2c31dee | 7b5da0f3bd6cd25500234952a701f34fc80c0a70 | refs/heads/main | 2023-03-07T14:38:50.817090 | 2021-02-09T09:25:50 | 2021-02-09T09:25:50 | 337,337,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!c:\users\dma-ridoy\documents\django projects\api_test\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"dpridoy@gmail.com"
] | dpridoy@gmail.com |
fbdcda5ade7f09825d2bccbf2d035d00975e7893 | 6861adad57bdd1fd357829e3f422081ac4a25c60 | /S7_CIFAR10_Modular/models/S7_Model.py | 7afee0cfe07dc2fdb10f3556b3846715bae7bac7 | [] | no_license | anilbhatt1/Deep_Learning_EVA4_Phase1 | 21373061cd5ec318d2eaa8d615262d7340a59472 | b1a0bb5c55de087a3dd065648cd8690b8f22a912 | refs/heads/master | 2020-12-27T06:53:59.858580 | 2020-04-25T15:12:54 | 2020-04-25T15:12:54 | 237,800,803 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
dropout_value = 0.05
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
# CONVOLUTION BLOCK 1
self.convblock1A = nn.Sequential(
nn.Conv2d(in_channels=3, out_channels=32, kernel_size=(3, 3), pa... | [
"noreply@github.com"
] | anilbhatt1.noreply@github.com |
ee193694d08978ec07e06b3a43be5b022a396bef | 4b4558c6cbc3cf2a5c0517a9d388572aa5a216ec | /Computer Science/Artificial Intelligence/Pacman/search/search.py | 36c79159ff511165c9be6e3665892fbea901d891 | [] | no_license | cow-coding/School-Project | 15269e3f7078521381453871c88ed36ff1008cff | 1e8fa3347da14f381cb73f2cd59d3ea144612bf8 | refs/heads/master | 2022-06-22T01:22:42.025813 | 2022-06-08T18:32:21 | 2022-06-08T18:32:21 | 247,887,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,202 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"kbp0237@gmail.com"
] | kbp0237@gmail.com |
5c49b4a8a73336da08a895778349ad6859231a04 | e4e4ed8338a389e1e329562d253224d95d9080c6 | /ml/sample/pipelines/large_graph/subgraphs/new_subgraph_c95b.py | 2d17b3d8152ab9e09f21de757ee8366fd254f437 | [] | no_license | lalala123123/project_template | 854361ac6b9b714dc23be9a439506310e04f1952 | a1aef8b2509388e47ebf51b21066169b977286de | refs/heads/master | 2023-08-30T13:51:49.135769 | 2021-10-28T07:06:46 | 2021-10-28T07:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | from datetime import datetime
from azure.ml.component import dsl
from resources import generalselectcosmos_func, generalselectcosmos_func
print(datetime.now(), "Declaring pipeline: new_subgraph_c95b")
@dsl.pipeline(name='new_subgraph_c95b', default_compute_target='cpu-cluster')
def new_subgraph_c95b(
in1,
in2... | [
"henu_rz@163.com"
] | henu_rz@163.com |
b73d1826be68e566cc4418a478ee654d378cc0a6 | 073d40d3ea58e37d8a130794910068005f3f259d | /processing/surface_based_analysis.py | 56afba929f609a17760fcae36ccf26cd024a0541 | [
"BSD-2-Clause"
] | permissive | KamalakerDadi/public_analysis_code | bd925f442d32fbedc56e145ad0bc981d5ac3924c | b8770d485fd2697838b911120c41d91250671636 | refs/heads/master | 2020-03-20T21:10:33.759118 | 2018-07-30T18:27:10 | 2018-07-30T18:27:10 | 137,727,239 | 0 | 0 | null | 2018-06-18T08:27:58 | 2018-06-18T08:27:58 | null | UTF-8 | Python | false | false | 5,182 | py | """
This script does 2 things:
1. Freesurfer segmentation
2. project the coregistered fMRI images to the surface:
the surface is the grey-white matter interface of the subject
The purpose is to perform proper group analysis on the surface on fsaverage,
and use existing atlases on the surface.
Author: Bertrand Thirio... | [
"bertrand.thirion@inria.fr"
] | bertrand.thirion@inria.fr |
6c5aeaeaa97a6a6c63f493f4001386755a32d850 | 1e160d6f6b400a38e36e237e74f37296c8637513 | /src/colony/center/hall.py | 762ca3d6be24645d7064e11a1d21ab8c1dccc1ec | [] | no_license | max97292/Pirates | 22e3bb1df9cddd51f1bbbf13aada5668084cdb83 | 1bc3fd6f25c9a8c4c123fb60bd0850f6bfdf225c | refs/heads/master | 2022-12-25T02:35:07.171626 | 2020-09-30T20:43:36 | 2020-09-30T20:43:36 | 291,234,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
import random
import time
import telebot
import sqlite3
from telebot import types
from src.config import TOKEN
bot = telebot.TeleBot(TOKEN)
conn = sqlite3.connect("DataBase.db", check_same_thread=False)
cursor = conn.cursor()
| [
"max97292@gmail.com"
] | max97292@gmail.com |
28623b218914214e68ec618ce9c1d580488e0449 | b12f6c2e4e35cf51956c6a887dcf47eaccc8ed21 | /File Write &Read.py | 4abdc291cb0f82e7845110f4665039908616a353 | [] | no_license | VanyashreeS1/Python-flask-projects | 76873da41be0190abb54813256f3386f7d7addf6 | fcf2f4fabb3d1fa45f9e3545aa8b961408a4c944 | refs/heads/master | 2021-01-05T23:47:18.193419 | 2020-02-21T17:45:20 | 2020-02-21T17:45:20 | 241,170,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | f = open("file3.txt", "a")
f.write("Now the file has more content!")
f.close()
#open and read the file after the appending:
f = open("file3.txt", "r")
print(f.read())
| [
"vanyashree.s@gmail.com"
] | vanyashree.s@gmail.com |
b33dc6ed7a11b4a2e3127592c66b9d813072b574 | e62a8943ea2cc45b660b17ab10e238e7cb4642dc | /CompareMatchingMethod_Codec_ORB.py | 0a47f5d8d3a1da1bab046fd0ef44a1cec40c6526 | [] | no_license | mkjubran/HMS | 6229fd36e7f01b93be6f572e59e26a42a1058257 | 2402380d4e68c9b924303a8e1efac6af434d3a57 | refs/heads/master | 2021-04-09T15:18:07.334487 | 2020-11-10T19:49:30 | 2020-11-10T19:49:30 | 125,491,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,171 | py | #Frame1: Type POC QPoffset QPOffsetModelOff QPOffsetModelScale CbQPoffset CrQPoffset QPfactor tcOffsetDiv2 betaOffsetDiv2 temporal_id #ref_pics_active #ref_pics reference pictures predict deltaRPS #ref_idcs reference idcs
#print >> fid, 'Frame1: P 1 5 -6.5 0.2590 0 ... | [
"mjubran@birzeit.edu"
] | mjubran@birzeit.edu |
cd15183227ca013ef8df4b0a9c35e52023611ad0 | 4d332c45578246847ef2cdcdeb827ca29ab06090 | /modules/Bio/Blast/Applications.py | 634372703b80657a8c7039c95ba7de9db2e186ef | [
"MIT"
] | permissive | prateekgupta3991/justforlearn | 616cc297a2a6119fa959b9337a5e91c77a11ebf7 | 3984c64063b356cf89003e17a914272983b6cf48 | refs/heads/master | 2021-03-12T22:09:12.184638 | 2014-01-28T10:37:07 | 2014-01-28T10:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /usr/share/pyshared/Bio/Blast/Applications.py | [
"prateekgupta.3991@gmail.com"
] | prateekgupta.3991@gmail.com |
f371da24e39dc65c8a368916d0897107542f39c0 | 652dc8c22b929b3b75bdf68fdc4c7905794f9e74 | /Reverse_Int.py | e5bc8fc2c2eff64e776421d33a779d379b57250f | [] | no_license | jaysurn/Leetcode_dailies | 29ea9cc866e0f39a5573e39dc7b4bbd4157b4ea9 | 4593e396327aa8965c130dde97975612a75cc285 | refs/heads/main | 2023-04-07T22:07:38.869051 | 2021-04-07T07:06:55 | 2021-04-07T07:06:55 | 350,246,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # Goal : Return a 32-bit int with its digits reversed, if the value is outside the 32-bit range, then return 0
# Given : 32-bit signed int
# Assumption : Assume given int is between -21^31 <= x <= 2^31 - 1
def Reverse_int( input_int ):
result = int( str( abs ( input_int ) ) [ ::-1 ] ) # Take absolute value of... | [
"noreply@github.com"
] | jaysurn.noreply@github.com |
9aa9799855d7fe837b31652aa8140412a8ac1779 | 911117a97349f26be8f72e3c7b84b8fce8de265a | /mysite/migrations/0002_maker_pmodel_pphoto_product1.py | 43c655b7986ca5b361ab49240feb8b34d7b8cf7b | [] | no_license | tlsvie/PMSYS | 99cd7d6fb58819699e6a9ca44e4366686ecad52c | e13fef6bde7eeef7bc292b1f09c9d5efeedf4c1c | refs/heads/master | 2020-03-24T07:33:40.582690 | 2018-08-05T12:10:21 | 2018-08-05T12:10:21 | 142,568,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | # Generated by Django 2.1b1 on 2018-07-27 05:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mysite', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Maker',
fi... | [
"hirenzhao@hotmail.com"
] | hirenzhao@hotmail.com |
42e44d36df2d8995690e0ac00535e4955d8b3472 | 94d5467b1315791fa75165eb862fdd8fef300958 | /yunyan_baotou/src/business_ultra/init_data.py | 61600784148a3a71b91b0ae55c58a09ba84d4b62 | [] | no_license | scmsqhn/code | e31926174c247d49c1db8f121e3ec1b82f8a2d9d | b389d7dc5fafad8a4185a03cd6d5519ccf8f99df | refs/heads/master | 2022-12-09T05:37:07.065840 | 2019-05-14T01:55:07 | 2019-05-14T01:55:07 | 185,903,771 | 1 | 0 | null | 2022-12-08T05:05:51 | 2019-05-10T02:22:28 | Python | UTF-8 | Python | false | false | 5,621 | py | #!/usr/bin/env python3
import datetime
import pandas as pd
from datetime import datetime
import json
import os
import codecs
import numpy as np
import traceback
import sys
sys.path.append(os.environ['YUNYAN'])
sys.path.append(os.environ['ROOT'])
sys.path.append(os.environ['WORKBENCH'])
#import gensim
#from gensimplus.... | [
"2364839934@qq.com"
] | 2364839934@qq.com |
35c107479c099af9ea0ca70ffefed3c45c7af786 | adb03bb1735a2bc87c4bbb0c6037e835e28563d9 | /scripts/teleop.py | 4d281e1e50dfc697db182a6980ed71ce9ccc3439 | [] | no_license | 2038prob/lab6 | d5a415859dad2cbc2335880366db247bdea4a67c | 4d1fa120d12c208fbcb6698eff8d87a602a85fcc | refs/heads/master | 2023-04-15T18:18:14.828425 | 2021-04-26T17:24:54 | 2021-04-26T17:24:54 | 361,834,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from std_msgs.msg import UInt16
import sys, select, os
if os.name == 'nt':
import msvcrt
else:
import tty, termios
MAX = 180
MIN = 0
msg = """
Control Your Traxxis!
--------------------------------
Controls:
w
a s d
... | [
"christopher.m.korpela.mil@mail.mil"
] | christopher.m.korpela.mil@mail.mil |
c6d6095b6aecf8907d6dbe353e20a0cf0c58d042 | cc36d7ba409dfc2c9b7252b3c4efa55ca829adb7 | /tests/test_split_and_export.py | 354a7a0d37f2c8667857f6c75d9617afb5048cbd | [] | no_license | shinglyu/MusicPupil-tf | e09b2615047e9b87caa797fd7108b8ae35b34cf5 | 5ae05dc23fef1f9daf9deecd378adee9353a9e66 | refs/heads/master | 2021-05-15T18:10:37.284122 | 2017-12-30T15:34:46 | 2017-12-30T15:34:46 | 107,603,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | import os
import sys
sys.path.append(
os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'..',
'feature_extractor'
)
)
from unittest.mock import patch, MagicMock
import music21
import csv
import split_and_export
def test_split_train_test():
samples = ['a', 'b', 'c', 'd', '... | [
"shing.lyu@gmail.com"
] | shing.lyu@gmail.com |
a6518773dbefe07cc7d1820e140f06c7535c0a7b | 4316f9a62c7d09fc8ff74b0b27251bce2090462b | /camelot/view/album.py | cad8592a0b5df30d74a86464d0cabb68c4a52aab | [] | no_license | SaChiBon/project-camelot | 9739a70623cbd732edbf3eff4d61acca77516ad6 | b7aa839753f534a38aebc031004091e095843bdc | refs/heads/master | 2021-04-09T13:43:32.559201 | 2018-03-18T01:23:12 | 2018-03-18T01:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,614 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from django.http import HttpResponse
from ..controllers.albumcontroller import albumcontroller, AlreadyExistsException
from ..forms import AlbumCreateForm, UploadPhotoForm
"""
Album views
"""
@login_required
def cr... | [
"docz2a@gmail.com"
] | docz2a@gmail.com |
f28f2b8d0a341418b14873cfe5a8cf5027367013 | b37c943e29f3cac3cb733ecb7a93b8f8ba070547 | /Hangman.py | d384fd1448bb58d00a578c8c037a720443da1e45 | [] | no_license | NicholasKao/Hangman | 30c5f9cde02ad9b46a41dbebf00a6426923d08b2 | 1bbe8883143a6b433d891db3a11f750ab12cb5da | refs/heads/master | 2021-01-24T16:33:41.801712 | 2018-02-28T00:17:43 | 2018-02-28T00:17:43 | 123,201,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,008 | py | def hangman():
word = input('Player 1: Please select a word or phrase: ').lower() #word to play with in lower case
letters = [] # to be used later for the letters in the selected word
### function for player 1 to select a word
def selectWord(word):
for x in range(len(word)): # iterate tho... | [
"noreply@github.com"
] | NicholasKao.noreply@github.com |
cbf6bc2fa02f3077d4a2e66ac887debcce4bae36 | aba1d17ddc7d7ad9f49e2d6d87600e9e0387ba14 | /mi/dataset/driver/flort_kn/stc_imodem/flort_kn__stc_imodem_recovered_driver.py | 4fe4de3d18ce68d6534b32380e50fd98fe6bab2f | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | oceanobservatories/mi-instrument | 3ad880c1366b1a8461fc9085768df0e9ddeb6ef5 | bdbf01f5614e7188ce19596704794466e5683b30 | refs/heads/master | 2023-07-23T07:28:36.091223 | 2023-07-14T15:54:49 | 2023-07-14T15:54:49 | 24,165,325 | 1 | 32 | BSD-2-Clause | 2023-07-13T01:39:22 | 2014-09-17T22:53:22 | Python | UTF-8 | Python | false | false | 877 | py | from mi.dataset.parser.flort_kn__stc_imodem import Flort_kn_stc_imodemParser,Flort_kn_stc_imodemParserDataParticleRecovered
from mi.dataset.dataset_driver import DataSetDriver
from mi.dataset.dataset_parser import DataSetDriverConfigKeys
from mi.core.versioning import version
@version("0.0.2")
def parse(unused, sourc... | [
"petercable@gmail.com"
] | petercable@gmail.com |
77bec3ab8b9e6134f5d4e804a0775b0ffb29825b | 74f382e96cc6f60092ec25878bcaeef280c7acdf | /core/api/models.py | 136ed4467bbd2eec39f63bf7caf919cf569c8585 | [
"MIT"
] | permissive | vroxo/api-flask-users | f2bfe57e1466bc0461fa35977fa766b2708ba192 | c464537b8df260e7cf4e8654f34aacd4959297ee | refs/heads/master | 2021-06-27T21:40:25.580338 | 2017-09-14T08:08:05 | 2017-09-14T08:08:05 | 103,499,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import datetime
from core import db
class User(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(128), nullable=False)
email = db.Column(db.String(128), nullable=False)
active = db.Column(db.Boolean(), default=False, ... | [
"vitorroxo.dev@gmail.com"
] | vitorroxo.dev@gmail.com |
7fb6b02760faa33f68b8c94a97b6b44671597bd2 | 99cedc8927edc502db3270008608358fe6f507a1 | /Salasah/urls.py | f19b44bf90984327a35c5c64526922d377067945 | [] | no_license | maulanasdqn/django-salasah | b2d76735997cb5562cc1f876e8513d4a040c228b | c386b8fca75f383e66a89ea4ad27922d60aaf6ea | refs/heads/main | 2023-01-01T04:22:06.130164 | 2020-10-24T13:02:13 | 2020-10-24T13:02:13 | 306,884,437 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.urls import path
from .import views
urlpatterns = [
path('', views.home, name= 'home'),
] | [
"sodiqincahyana1@gmail.com"
] | sodiqincahyana1@gmail.com |
e7216dadcd35fa5652fd49a944bc5e806253d1fb | feca738182b7bcac3fe4f70a8eca2b628b2d0809 | /LojaSyst/Models/Equipamento.py | 6c526f70c11adeb03c9d023d668c04fc96d8d6a0 | [] | no_license | ViniciusAugustoRR/LojaSystem | bd82ae2a7fecbddc6df14af7f2c4331a2fe5e550 | 510d53343d7c9b083ff5fafe89b016288335ecd7 | refs/heads/master | 2020-12-09T01:21:47.131777 | 2020-02-13T23:11:53 | 2020-02-13T23:11:53 | 233,149,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py |
'''nserie: str,
equipamentoNome: str,
modelo: str,
marcaid: int,
acessorios: str'''
class EquipamentoMD:
def __init__(self):
self.Id = int
self.Serie_N = str
self.Nome = str
self.Modelo = str
self.Marca_id = int
self.Acessorios = str
| [
"vini.rios.rocha@gmail.com"
] | vini.rios.rocha@gmail.com |
60f501dd33bc408bb5b0ce9ae012cb0765548801 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_144/ch20_2020_03_09_20_17_14_756367.py | 0730239956a1947237866393bd5dc6de5401f7cc | [] | 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 | 251 | py | distância=float(input("Digite a distância a percorrer:"))
multa = distancia - 200
excesso = multa * 0.45
if distância <= 200:
passagem = 0.5 * distância
else:
passagem = passagem + excesso
print("Preço da passagem: R$ %7.2f" % passagem)
| [
"you@example.com"
] | you@example.com |
ceacf929311c32f3db1575b140d2548b6ce06f9d | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/asr/models/k2_sequence_models.py | 087e9e41b85dd8673ac6e2ff667bad355c5e747f | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 13,426 | py | # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
1da4cd6e7a958faab83c1099e1a7f95e2a6fd87f | c00790236ba746596f205bcb609aee44a369800b | /pi_scale_server.py | 5e1567c8433fdc197e8310ca9ea7b7118f567950 | [
"MIT"
] | permissive | lhenkel/ToledoScalePiServer | ab6e335735bb4fa84bef60e2c36f9c895ee1ea7b | 1fa8f675d971cd92c84206b639b72858d81f0598 | refs/heads/master | 2020-04-10T07:11:32.851377 | 2018-12-07T22:41:14 | 2018-12-07T22:41:14 | 160,874,884 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,433 | py | from serial import *
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
import re
import subprocess
import socket
import urllib2
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
import glob
import os
PORT_NUMBER = 8675
def find_usb_tty(vendor_id = None, pr... | [
"lee.henkel@kng.com"
] | lee.henkel@kng.com |
5daabd0e42aacc1ce5f197f6154547f200ab892b | 4bb9cde4a8aa41d883a9f139ebf476993d3ab8a1 | /listing/migrations/0004_auto_20201129_1211.py | 0d371dc556f3c9188c8d97a13670faad836e042c | [] | no_license | sajalmia381/real-estate | bc380328046899406ec97524697b87cbfc0e45ec | a2602f9333e677b362020123789b68933703b3c6 | refs/heads/master | 2023-01-21T06:16:50.992361 | 2020-12-05T18:19:55 | 2020-12-05T18:19:55 | 318,859,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # Generated by Django 3.1.3 on 2020-11-29 12:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('listing', '0003_auto_20201129_1205'),
]
operations = [
migrations.AddField(
model_name='listing',
name='square_feet'... | [
"sajalmia381@gmail.com"
] | sajalmia381@gmail.com |
aa82b974a22240b99dced283997bfed6a235f20a | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/inline_response20094_site.py | 60809a21527af5e7d917c54707fe326dad72bc22 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
011b6cd63f0e69535e48f048f9780470226cac42 | 5313fe47b0dd453af3ea51bb707a9882242c37d3 | /VisualPIC/Views/createVTKAnimationWindow.py | 6ff5f3f8f51e19a3a73d3137be7aeecf2dae2e38 | [] | no_license | QJohn2017/VisualPIC | c347d0864907b5261ed737cfa1a4b780ab69fe78 | 5b7e0c10f8b0589ec24f41fc8c631d1c6cd34bfd | refs/heads/master | 2023-03-03T07:16:58.382512 | 2018-06-05T17:14:04 | 2018-06-05T17:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,007 | py | # -*- coding: utf-8 -*-
#Copyright 2016-2018 Angel Ferran Pousa, DESY
#
#This file is part of VisualPIC.
#
#VisualPIC is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at you... | [
"angelmail_97@msn.com"
] | angelmail_97@msn.com |
134f1ee4050d20ac333a4b35da4222bf51a32243 | cce0f3939036f536a182d7541b636874cd8247b6 | /xicam/core/data/bluesky_utils.py | f93d436d1f70f7dd0bcf439a14fb2df9fa7ab9e4 | [
"BSD-3-Clause-LBNL"
] | permissive | Xi-CAM/Xi-cam.core | b942ab7935935b4b514cd8593afcfba83ce7b042 | f993699391439402624934daafe329024165bb0b | refs/heads/master | 2023-08-25T16:16:19.231948 | 2020-05-01T17:28:29 | 2020-05-01T17:28:29 | 111,475,839 | 0 | 0 | NOASSERTION | 2020-04-28T22:51:49 | 2017-11-20T23:55:13 | Python | UTF-8 | Python | false | false | 907 | py | from databroker.core import BlueskyRun
def ndims_from_descriptor(descriptor: dict, field: str):
return len(descriptor['data_keys'][field]['shape']) # NOTE: this doesn't include event dim
def shape_from_descriptor(descriptor: dict, field: str):
return descriptor['data_keys'][field]['shape']
def fields_fro... | [
"ronpandolfi@gmail.com"
] | ronpandolfi@gmail.com |
69bf66e39c764d3908167da27714165e6daf5213 | 865ca1055efa25c137aa0b3d977b028c0cc19d70 | /forkedapps/voucher/config.py | 8aa11027d9488feb15986136cbace374bd5dc320 | [] | no_license | mnzil/mnzil-test | f76ab8b5924e9810ad8e03d485b721e091da8980 | f7234f9e0306ceb126b774c0615740d4395d1b23 | refs/heads/master | 2021-01-20T19:57:02.588470 | 2016-03-14T16:17:36 | 2016-03-14T16:17:36 | 49,824,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from oscar.apps.voucher import config
class VoucherConfig(config.VoucherConfig):
name = 'forkedapps.voucher'
| [
"root@ip-172-31-28-4.us-west-2.compute.internal"
] | root@ip-172-31-28-4.us-west-2.compute.internal |
32194e3ebe219fc0fafff1a524d1df176a58bd46 | e6dd07c0f9104051ac850d90045f38b2f4ae5c79 | /advance/apps.py | 888bee437ed3fc702f0f2e32d27113550ff20e64 | [] | no_license | mostaq22/drf-vue | 70fb3846814dd4814b0cd4b4544f1c2a7b4ff11e | 76061ff46831fe70c6b482b20b10377287f806ff | refs/heads/master | 2022-06-08T04:55:28.948466 | 2020-05-06T20:09:55 | 2020-05-06T20:09:55 | 257,530,726 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class AdvanceConfig(AppConfig):
name = 'advance'
| [
"mostaqcse@gmail.com"
] | mostaqcse@gmail.com |
5279c267aee7c9ab4445a98576cfcfaf40093b5f | d75b740cfe43b283fda6ea7370cbea6aaf3deb6c | /collective/constants.py | 0b9bdb55087adaab89664ab1952c5708baca2d04 | [] | no_license | HaySayCheese/OpenCorporaUA | 0911c29bf5d37880b130bfee2c0eb4793ce32c67 | 794254c65a098bcf38b2999704840e2614dc28f4 | refs/heads/master | 2021-01-17T05:19:19.519345 | 2015-09-14T11:58:10 | 2015-09-14T11:58:10 | 42,046,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | #coding=utf-8
class AbstractConstant(object):
def __init__(self):
self.ids = {}
self.count = 0
def set_ids(self, ids_dict):
# check for duplicates
if len(set(ids_dict.__values())) < len(ids_dict.__values()):
raise ValueError('Duplicate id detected.')
self... | [
"dima.chizhevsky@gmail.com"
] | dima.chizhevsky@gmail.com |
4ce26279b22d0826b7b738a468f20d2e3d818f58 | 61b6e904a9e3d0bdf9cab361a08bd028b4ab0c77 | /cybo/training/trainer.py | 1759a571b982df55128f63976d309c54b47727e2 | [
"MIT"
] | permissive | bo-ke/cybo | 81c5e94ca7c6c78fa8342b35384d6e7cacc22140 | 612f30b0466b4ed6d04f5c2128b133367b55e576 | refs/heads/master | 2023-06-04T11:46:37.612829 | 2021-06-22T13:22:34 | 2021-06-22T13:22:34 | 321,707,325 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,198 | py | # -*- coding: utf-8 -*-
'''
@author: kebo
@contact: kebo0912@outlook.com
@version: 1.0
@file: trainer.py
@time: 2021/05/12 01:09:57
这一行开始写关于本文件的说明与解释
'''
import tensorflow as tf
from functools import wraps
from cybo.data.dataloader import Dataloader
from cybo.models.model import Model
from cybo.training.utils impo... | [
"itachi971009@gmail.com"
] | itachi971009@gmail.com |
bce41ae64991eaa9ef5e290859b7196415b1c8d0 | e5a62b970378386ec1b19ee7adc707c445e19a4f | /problems/p072/p072_solution.py | dba19258f0c7370a6a37dc881615ca2677071f15 | [] | no_license | lawrencium/project_euler | a39976d9b3619c2edae3e3f1b4f0bdd1ec82162d | 96ac5684b449d327e7f63a8c63cdb46660bff731 | refs/heads/master | 2021-01-17T07:46:43.603066 | 2017-09-25T05:56:05 | 2017-09-25T05:56:05 | 23,099,118 | 0 | 0 | null | 2016-07-22T22:24:47 | 2014-08-19T06:15:47 | Python | UTF-8 | Python | false | false | 1,467 | py | from abc import abstractmethod
from problems.util.prime import sieve_of_eratosthenes, get_factorization
from problems.util.solutiontimer import time_function
d = 1000000
# d = 8
sieve = sieve_of_eratosthenes(d)
sieve_set = set(sieve)
def main():
number_reduced_fractions = 0
factory = DenominatorHandlerFacto... | [
"ltc35@cornell.edu"
] | ltc35@cornell.edu |
f8b68369b0629d62b060a8a9ec9b70d6ad94d184 | 7d53faedef395ca31eb5d056da358ee9dfcc05a1 | /venv/bin/names | cd6580c21a1b060b9ed11b4b24fdc77cb1f6c7ac | [] | no_license | MaciejSwierad/hd_generator | 343622f129e96d805027bddef4ca38c522e5ecb8 | c5e855d08303113410786f9d6f0f67a0abd2800d | refs/heads/master | 2020-09-14T21:08:24.551584 | 2019-11-21T20:09:22 | 2019-11-21T20:09:22 | 223,256,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | #!/home/macias/PycharmProjects/hdGenerator/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'names==0.3.0','console_scripts','names'
__requires__ = 'names==0.3.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"maciej.swierad@gmail.com"
] | maciej.swierad@gmail.com | |
3afdb2cb66231d75fca8ddb8c9b16ecc1bd4b320 | 856460e5bdbb4046b43258e48baaf26b314762be | /client/client_main.py | 743256e53901a2a668faa2810cba9e4d58633e6f | [] | no_license | imwiwiim90/robotZero | 7a6e510eaf007311ce803201f0939808188804fd | d2e6cbbaadc7cdad6c86f1c58a6a1f5c46e9e76b | refs/heads/master | 2020-05-26T15:15:35.855059 | 2017-04-07T22:18:07 | 2017-04-07T22:18:07 | 82,491,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from controller_alt import PS4Controller
from MessageUDP import MessageUDP
from videoStream import Video
import cv2
import json
import threading
import time
lock = threading.Lock()
#ip_dir = '192.168.0.5'
#ip_dir = '127.0.0.1'
#ip_dir = '186.31.47.239'
ip_dir = '190.24.142.149'
PORT = 8000
ctrl = PS4Controller()
mail... | [
"wilsondaniel95@hotmail.com"
] | wilsondaniel95@hotmail.com |
6adb63d5796714f98ca7a02f21d5d0837cf0acc6 | 60cf6e400ec093268cf7b89ed818119e9c59f0ff | /miller_rabin_fermat_lucas_lehmer.py | fcb278c36a1f76adaf30538372be9a24a7e0d693 | [] | no_license | lion137/Python-Algorithms | 7b5e396ebcb113e112907661f88715791c90b0fe | 91502619f03c4be2229dd1f591e07ec1bb150859 | refs/heads/master | 2022-01-28T13:23:12.087976 | 2022-01-06T06:56:22 | 2022-01-06T06:56:22 | 79,455,277 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | # Primality Tests
#
# Copyleft 2018 lion137
#
# 1. Fermat Test
from random import randint
def modularexponenation(base, exponent, modulus):
"""modular exponentiation"""
if modulus == 1:
return 0
result = 1
base = base % modulus
while exponent > 0:
if exponent % 2 == 1:
... | [
"lion137@gmail.com"
] | lion137@gmail.com |
fbb4658c90d6d28b0bdc3e8198164c1013309d5a | 31e048782f9161894587489ff2a3f0ee1ddb8d7a | /leet_code/Tree/sum_of_left_leaves.py | 20b70e4cee9c2493b72d1f9eb49a7ba4574844e5 | [] | no_license | sankeerth/Practice | f2c81f0273ba5edbb4491f473278c5d2c4cd5e1e | df9791d18e98bd175bcddf47fcd24f06aef46258 | refs/heads/master | 2021-01-11T14:53:32.958725 | 2017-01-27T20:28:21 | 2017-01-27T20:28:21 | 80,243,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | class TreeNode:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
def __repr__(self):
return 'TreeNode({})'.format(self.val)
def deserialize(string):
if string == '{}':
return None
nodes = [None if val == 'null' ... | [
"sankeerth456@gmail.com"
] | sankeerth456@gmail.com |
1553d5d277a72ef2274a5f58479348835444fb15 | c1e31f49a59beb6089328d09040f6f48d2e12cde | /lib/python2.7/tests/test_plotants.py | 7a7cdc4a579d40018e4ad412b42fcc84faf8eb45 | [
"Python-2.0"
] | permissive | kernsuite-debian/casalite | 3d81761e0d8ae497f97ea242e98d4357618a7591 | b620981f14f4ba5b77f347f649cd2c16d498db04 | refs/heads/master | 2021-06-22T16:22:51.765703 | 2021-02-25T13:28:05 | 2021-02-25T13:28:05 | 80,822,139 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | import os
import string
import sys
import shutil
import unittest
from __main__ import default
from tasks import *
#from taskinit import *
from __casac__ import tableplot
'''
Unit tests for task plotants. It tests the following parameters:
vis: wrong and correct values
figfile: if output is crea... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
4feb8e94c1009ed1a7bd4e668bd531bd760e00c5 | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/plotly/graph_objs/parcoords/line/_colorbar.py | 257f038abfbb04d2dbc94a73796c799953fc8c52 | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 70,590 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "parcoords.line"
_path_str = "parcoords.line.colorbar"
_valid_props = {
"bgcolor",
... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
8f2e3caa6aa3e8037118946cc4681495f25b6c40 | 9e4003f3a5974663a8ef49263fb3bb3028581604 | /hw24/EoS Game/level.py | 00e2747b8b692b3b07f1f0b6a8dff9ddafb127b5 | [] | no_license | RMeiselman/CS112-Spring2012 | 624fc89745eacbf08f7931dcd8041eeda2bb808c | dc55b3c04cb59d3ad26a6836c31c0c6e86781018 | refs/heads/master | 2021-01-18T12:17:01.315712 | 2012-05-06T00:35:43 | 2012-05-06T00:35:43 | 3,266,344 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/env python
import os
import pygame
from pygame import Rect, Surface
class Level(object):
def __init__(self, size):
self.bounds = Rect((0,0), size)
def restart(self):
self.player = Player()
self.player.rect.center = self.bounds.center
def update(self, dt):
self... | [
"Dagerothmeiselman@gmail.com"
] | Dagerothmeiselman@gmail.com |
105b5bf8cb48f2ba85f5700e00a2b72766734d88 | 303d119180421b6cb7b2fbbf41f6c4959b54b2cd | /MON/osm_mon/plugins/CloudWatch/prod.py | 36766dc2add21579bae64a07f0ea39a19baa0022 | [
"Apache-2.0"
] | permissive | usmanjavaiduj/OSM | 2c508b1fcf89ccc80f7b9054743e9ceeb389f056 | 8a65c37e90cec9e896d52ea41eded8ac3541e063 | refs/heads/master | 2021-08-28T04:46:26.803468 | 2017-12-11T07:40:17 | 2017-12-11T07:40:17 | 106,265,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | import os
import sys
sys.path.append("../../core/message_bus")
from producer import KafkaProducer
from kafka import KafkaConsumer
from kafka.errors import KafkaError
import logging
import json
from jsmin import jsmin
producer = KafkaProducer('create_alarm_request')
producer.create_alarm_request( 'create_alarm_reques... | [
"usmanjavaid9423@gmail.com"
] | usmanjavaid9423@gmail.com |
5577c038a68b1019ac4522c163caa04ecaebe6be | c39c0449f8efbc3bf39cebe9a33724dfa237f670 | /ss_dnn/merlin_scripts/src/layers/mdn_layers.py | f8318e1a77b6a548a8a67efd3d43a3778da2f298 | [] | no_license | pbaljeka/world_merlin | 81561f8817e516e90adf4dd60ce2847ffd17127f | 5cf1cdfd75b570dda5e35c74bc2b5e500437786e | refs/heads/master | 2021-01-11T17:45:46.706562 | 2017-01-25T21:28:51 | 2017-01-25T21:28:51 | 79,839,178 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,415 | py | ################################################################################
# The Neural Network (NN) based Speech Synthesis System
# https://svn.ecdf.ed.ac.uk/repo/inf/dnn_tts/
#
# Centre for Speech Technology Research
# ... | [
"pallavibaljekar@gmail.com"
] | pallavibaljekar@gmail.com |
8dbe860dcd142c6356ebf8fbb80b5b2200bcd6e4 | 0feb885020bda66d4828e7a5b73caac4ca944303 | /code/test/integration_tests/pages/header_page.py | 21377146a2565c293081bfde0ff97440ab17dd47 | [] | no_license | OlehHappy/smartnest | 0bcfb373ca1dd9770d0cb5f7a983ab07be5db38f | 18757cf5576b7a6880c6aabf7f3da7539a8cf19a | refs/heads/master | 2021-01-12T05:08:02.818394 | 2017-01-02T22:44:33 | 2017-01-02T22:44:33 | 77,866,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | __author__ = 'Juraj'
from selenium.webdriver.common.by import By
from pages.page_base import Page
class Header(Page):
def __init__(self, driver):
self.driver = driver
# page elements locators section
# link pointing to user's name in page right upper corner
# self._user_name_link_... | [
"olegtranslator@gmail.com"
] | olegtranslator@gmail.com |
a03b0d31c5006e59062ef309a36e5e16b33b6c54 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/web/v20190801/web_app_private_endpoint_connection.py | 61880949796fac9550f145ecc6ea0878b1e34616 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,253 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
12bfd823bba8659e67c22af6c2bd0062937a4c5f | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_orm/courses/courses/settings.py | d11c36f0bb97c266c1f7db84060415fcde1a5412 | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | """
Django settings for courses project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
0fad5455bca400dc1c8cd50c5e7720d7187ce031 | f5a5599df7be4f05365f3c10138a32064bdf19d9 | /WorldHappinessReport-InsetPlot.py | ed317eb07efac99a4766f64f7fe019a373b11819 | [] | no_license | ErkanCetinyamac/Data-Visualization-with-Plotly | c09bdf90989794dca4319760f9574928e5c829c3 | 445d5cc54f7402f3b98760a90df690d6b918a2ab | refs/heads/master | 2020-05-07T06:04:40.086268 | 2019-04-09T07:41:59 | 2019-04-09T07:41:59 | 180,300,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 8 18:09:22 2019
@author: Erkan Çetinyamaç
"""
import pandas as pd
# Plotly library usage in Spyder
from plotly.offline import plot
import plotly.graph_objs as go # import graph objects as "go"
data=pd.read_csv(r"C:\Users\eceti\Desktop\phyton\DataAi\Data Vis... | [
"noreply@github.com"
] | ErkanCetinyamac.noreply@github.com |
c49b770e7e0eb0e6b026077bfc57767e6170ae0f | 9badb76369f2bb081afced41bb97900fb9b29245 | /site-packages/kivy/version.py | e6674be5c3ed45cf8eac5642212118096718451c | [
"MIT"
] | permissive | officekamiya/5yen | 69a8ba0f2edd10d56934b2806fa3644f46847406 | cb0e8a03b6a9decde0b5ab9329871da1ed1ba85f | refs/heads/master | 2020-12-05T20:08:54.191521 | 2020-03-04T01:34:40 | 2020-03-04T01:34:40 | 232,232,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # THIS FILE IS GENERATED FROM KIVY SETUP.PY
__version__ = '1.11.1'
__hash__ = 'Unknown'
__date__ = '20190717'
| [
"hayato@officekamiya.co.jp"
] | hayato@officekamiya.co.jp |
f6a28321d328796b38fa66f112d42b2f54807025 | d37a6c5982a4dd768898dfad13b93f3e30ff8497 | /Code/model_compactor.py | 5595e2272d6ca1e541666aa8520cd3841810776f | [
"MIT"
] | permissive | Jinwon-DK/GaitAnalysis | 691a4fc815dbaf2f59b6d0a45834627a40ae3a32 | 6b7be4aae9963b8986519af5bcbff39f32ebf2cd | refs/heads/master | 2022-11-22T13:02:52.675870 | 2020-07-21T13:26:14 | 2020-07-21T13:26:14 | 281,865,622 | 0 | 0 | MIT | 2020-07-23T06:05:54 | 2020-07-23T06:05:53 | null | UTF-8 | Python | false | false | 3,435 | py | import tensorflow as tf
from keras.backend import set_session
from keras import backend as K
import keras
from Code.Model import basic_10_network as BasicNet
from Code.Model import resnet as ResNet
from Code.Model import vgg_network as VGGNet
from Code.Model import base_model as dcnn
from Code.Model import lstm_model a... | [
"hchan11@naver.com"
] | hchan11@naver.com |
dd65586916f290702c8d0c8f526cdfa0b8907fc7 | 22e3a62bdd5922c2a7ff70216cf9a6b0d30ed3c3 | /TestQARTRole.py | 3103c53120e2fa86773f6c871b99d089362a0f48 | [] | no_license | RobQA/test | 74d7416ac2c5f9ae52e59a04fddd03c1a3615cd1 | be2106c013fb08dbbdf982e348a6f8e7060764a6 | refs/heads/master | 2020-07-13T02:43:25.327197 | 2019-09-01T13:53:04 | 2019-09-01T13:53:04 | 204,971,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,638 | py | from selenium import webdriver
from Logout import Logout
from Roles import Roles
from SearchFillAll import SearchFillAll
from Payroll import Payroll
from TestGroup import TestGroup
from TestCase import TestCase
from Obligation import Obligation
from IncreaseOverpayment import IncreaseOverpayment
from DecreaseOverpaym... | [
"r-akopyannn@mail.ru"
] | r-akopyannn@mail.ru |
4e6731c513f7aa97ea99261cc61ad55cdfee5dcf | d7a03a982239e5bb11b98f05cee0ce79f418cf72 | /schedule_class.py | d07bf08e4355d3e68e013868495a3936dbcabed8 | [] | no_license | furfa/Pulkovo.Hack | 6d6c869ac131faa14a086b4f81f89ecd466dbf86 | 30b088149e182124ae0ab75d665bf7d4fa0f7fb7 | refs/heads/master | 2022-11-30T05:13:47.496860 | 2020-08-16T15:36:52 | 2020-08-16T15:36:52 | 287,518,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | from entity_classes import *
from entity_getters import *
from datetime import datetime
import pandas as pd
class Schedule_item:
def __init__(self, time:Time, task:Task, teacher:Teacher, audience:Audience):
self.time = time
self.task = task
self.teacher = teacher
self.audience... | [
"gleksandr.myashin@gmail.com"
] | gleksandr.myashin@gmail.com |
f821bfab7ae9d9781d32c46492f098dc9b856612 | 91e2f963ec4b13d38c3d5d0258ad0c48d4d674f1 | /wrappers/BlockDataWrapper.py | 84aca9a6dbc6f9535d864b0cfd6f2876d1b654ce | [
"MIT"
] | permissive | WouterGlorieux/BitcoinSpellbook-v0.2 | 6265589afc1197fe52e41b9dc701e4cc5294187f | 93b5480f87f4dc41c2d71093aa98d1fbdd83625c | refs/heads/master | 2021-06-02T06:48:25.607028 | 2016-09-23T20:03:55 | 2016-09-23T20:03:55 | 61,746,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import json
import urllib
import hashlib
import hmac
import base64
import logging
class BlockDataWrapper():
def __init__(self, url):
self.url = url
def utxos(self, addresses=None, provider=''):
if not addresses:
addres... | [
"wouter@valyrian.tech"
] | wouter@valyrian.tech |
6df3222d955efd0abe5781c7c48aced830dbed13 | 5dcaf0c31a8362d64134d0dcd9131fb8e827307a | /footmark/vpc/router.py | 9ca6687ef880578501b031e2b61357f50519bf50 | [
"Apache-2.0"
] | permissive | lixue323/footmark | 10a94ef97cefdab2264088cda70c937c63b819ec | 30cbb2f4b61546d530d955079ccbb38f22fa3edb | refs/heads/master | 2020-08-11T21:57:07.782124 | 2019-10-15T16:15:17 | 2019-10-15T16:16:08 | 211,007,645 | 0 | 0 | Apache-2.0 | 2019-09-26T05:34:05 | 2019-09-26T05:34:05 | null | UTF-8 | Python | false | false | 1,532 | py | """
Represents an VPC Security Group
"""
from footmark.vpc.vpcobject import TaggedVPCObject
class RouteTable(TaggedVPCObject):
def __init__(self, connection=None, ):
super(RouteTable, self).__init__(connection)
self.tags = {}
def __repr__(self):
return 'RouteTable:%s' % self.id
d... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
88e8f0be914f7822411fdb479f9868d5490751f1 | b3ab02d32b7ed543d95f5a4a38d6cc3cbda138d9 | /Python-数据结构-青岛大学/线性表实现/数组(序列类型)/数组.py | ac9ab4ea381d47a5d68dcde000ab8840076aa8ae | [] | no_license | reallyz/Beta | b09d7a53d4cd4a9cfdea984be8c61eade28d5a15 | 0c91b162d0f7367df13930390dd306aca5d20b3d | refs/heads/master | 2021-01-02T17:12:27.478572 | 2020-05-08T04:08:15 | 2020-05-08T04:08:15 | 239,717,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | # 一维
array=[]
# 二维
array=[[],]
import numpy as np
array=np.array() | [
"zhuruilicust@163.com"
] | zhuruilicust@163.com |
2f5b97a5828fd10e996f4e639fd1fd2130a65158 | a367b9dc148be03616c10eb76e169561789acd43 | /src/predict.py | 9fc99791e365c7a5c765bbda37efd244fd060225 | [] | no_license | Rabahjamal/Visual-Question-Answering | 9e66d62eeb3da33a6e2bacc40349908f1c983992 | d5d8bdeb5d7fe7ac8518c11d489e229e81a99318 | refs/heads/master | 2020-03-21T03:32:01.288282 | 2018-06-30T13:33:06 | 2018-06-30T13:33:06 | 138,059,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | import numpy as np
import keras
import pandas as pd
from keras.models import Sequential,Model
from keras.preprocessing.text import one_hot
from keras.preprocessing.sequence import pad_sequences
from keras.layers import Concatenate,Reshape , Input ,LSTM, Dense, Dropout ,concatenate , Flatten ,GlobalMaxPooling1D
from ker... | [
"rabah9686@gmail.com"
] | rabah9686@gmail.com |
6d150af553878700d5df20c1eccef683e5acb322 | c3ffb020314af5894242073c23c7138a9aa6ea6e | /Past/Rest/script.py | 66cc3e50b6f1c8087cc3a27b882438816d74bbb2 | [] | no_license | mohammedjasam/CleverNator | 1fa8a54c8dca281696de1f33c4c62d7ab78725a1 | dd04b975c4caaa201ccdf92df51635213156c920 | refs/heads/master | 2020-05-18T15:13:40.667968 | 2017-11-25T17:44:35 | 2017-11-25T17:44:35 | 84,256,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | """# Pull the existing Tensorflow Environment
docker run -it gcr.io/tensorflow/tensorflow:latest-devel
# Download the multilabel data from internet to a single folder
# Ex: Place Darth_vader pics folder + Darth_Maul Pics Folder in Star_Wars folder
# Move the multi-label image folder(star_wars) to docker
mv "c:../.../... | [
"mnqnd@mst.edu"
] | mnqnd@mst.edu |
42be3d1e9cacde54e580d4767efb954f52e2fdd4 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Ruthwik/Python/4mar/list_even.py | 287949f2c9dd5179c08725f9c845b5ed20460460 | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 206 | py | #Python program function to print the even numbers from a given list.
n1=[15,42,40,85,96,80,34,50,55,12,23,24]
def even(n):
for i in n:
if i % 2 == 0:
print(i, end=" ")
even(n1)
| [
"ruthwikraja@gmail.com"
] | ruthwikraja@gmail.com |
9cd5a7daa2bcddd413ea13e5c88b3ae9de3aece4 | 6b3870bb321d930c34c6f65f19091169425f4dee | /scripts/scil_print_header.py | aabdeebfb6da8f04cf27aa6d65dae5373a64ada6 | [
"MIT"
] | permissive | fred-laberge/scilpy | a15b3c525be892ca99b1dad25e35a3667ac116db | b0055521a87eb803876b8122eddc77608f520e89 | refs/heads/master | 2021-03-13T05:12:25.237411 | 2020-03-11T17:44:20 | 2020-03-11T17:44:20 | 246,642,805 | 0 | 0 | NOASSERTION | 2020-03-11T17:55:22 | 2020-03-11T17:55:22 | null | UTF-8 | Python | false | false | 1,554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Print the raw header from the provided file or only the specified keys.
Support trk, nii and mgz files.
"""
import argparse
import pprint
import nibabel as nib
from scilpy.io.utils import assert_inputs_exist
from scilpy.utils.filenames import split_name_with_nii
d... | [
"francois.m.rheault@usherbrooke"
] | francois.m.rheault@usherbrooke |
0b2318f827065c29077d00fa717ad062eba5b34e | 3260490045fd2bd929b3861fe2b4dd35a14cc9fb | /exercicios/Mundo01/ex028.py | 588c922a2dab89987d43e367d451858bb5652dcf | [] | no_license | lucaslamdev/cursoemvideo-exercicios-python3 | a07292bffd8733ce56192f80fb80b20fd6b5bfb9 | 545ca6dc2952019f5d29da71d6293f80d5f99a73 | refs/heads/main | 2023-08-03T14:46:36.619723 | 2021-09-17T00:44:27 | 2021-09-17T00:44:27 | 353,704,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from random import randint
numeroPensando = randint(0,5)
print("O computador pensou um número entre 0 e 5 tente adivinhar!")
numeroDigitado = int(input('Que número você acha q eu pensei? '))
if numeroDigitado == numeroPensando:
print('Parabéns você acertou!')
else:
print(f'Que triste você perdeu, o número era ... | [
"50436012+lucaslamdev@users.noreply.github.com"
] | 50436012+lucaslamdev@users.noreply.github.com |
64c6e624e5cdc1d68562c50856c653259e6a714f | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/spanner/v1/spanner-v1-py/tests/unit/gapic/spanner_v1/test_spanner.py | 48c0e610faf11dbdc0bd2728018980965350473f | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150,377 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
68d23317f6f0a24c9995428930f87cb7863815ca | 53c309591a91b014c30421e8af4dfe20eb532a3b | /testsite/settings.py | 4b7f1fec52669ed0e7ff8616bb73a147db004d8e | [] | no_license | codecampNick/TestSite | af4e2dea0077bfc1f6cc9084dcef2125bfa0bdfa | 1221c644ed5d4be3ad366dbf3eedda079e30edf6 | refs/heads/master | 2020-06-03T06:50:33.674154 | 2019-06-20T02:14:26 | 2019-06-20T02:14:26 | 191,269,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | """
Django settings for testsite project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"nick.jp.ross@gmail.com"
] | nick.jp.ross@gmail.com |
cd2488e6fb072ad9466b9e8656c5c2ce6f99929e | c839961aeab22795200d9edef9ba043fe42eeb9c | /data/script1161.py | d205b142ad1e49664fe6d443dda932a4ef1e8727 | [] | no_license | StevenLOL/kaggleScape | ad2bb1e2ed31794f1ae3c4310713ead1482ffd52 | 18bede8420ab8d2e4e7c1eaf6f63280e20cccb97 | refs/heads/master | 2020-03-17T05:12:13.459603 | 2018-05-02T19:35:55 | 2018-05-02T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,556 | py |
# coding: utf-8
# # A Laconic Approach - EDA (Version 1)
# In this notebook, I will be doing exploratory data analysis for given data for text normalization in laconic fashion. The task given to us in this competition is to convert written text into spoken forms, for example - 6ft will be converted into 6 feets, or $... | [
"adithyagirish@berkeley.edu"
] | adithyagirish@berkeley.edu |
3bed628c0eefc76fd507d162f5644a7d9a624739 | 29ca59f02597d1241817233def8fb433823f959c | /nth_node_from_end_of_linked_list.py | a3e494a301f2ff054cb0fe01baf9c84e07f3ed5c | [] | no_license | rupalisinha23/problem-solving | eebb5690cf226f49d8d3fd79fb7d1382d7d716a3 | 85e4eb2b5d762c99b34683dac0cb4ac42c1683dc | refs/heads/master | 2020-05-18T03:16:28.982448 | 2020-01-31T12:23:58 | 2020-01-31T12:23:58 | 184,141,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | class Node:
def __init__(self,val):
self.val = val
self.next = None
class Solution:
def remove_nth_node(self, head,n):
dummy = Node(0)
dummy.next = head
first = dummy
second = dummy
for i in range(n):
first = first.next
while(first.... | [
"rupalisinha23@gmail.com"
] | rupalisinha23@gmail.com |
276cdbfd909177b2431c7eae9a27253766a28570 | 654b2ece53bddd8c059cfe3e0e07d02c7dcfb6dd | /parladata/migrations/0023_alter_personmembership_role.py | 6fe9585d7c9949adb45d0d6aaab321d54cbf5884 | [] | no_license | danesjenovdan/parladata | a5bfa85b63f773a60ff393e6377192006da1eb67 | b2a4a5d622b9286f902edea817f4128dfad806fe | refs/heads/dev | 2023-08-16T20:26:26.851218 | 2023-07-07T15:34:48 | 2023-07-07T15:34:48 | 113,332,736 | 1 | 0 | null | 2023-07-11T08:39:57 | 2017-12-06T15:24:26 | Python | UTF-8 | Python | false | false | 483 | py | # Generated by Django 3.2 on 2021-05-12 19:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('parladata', '0022_alter_law_passed'),
]
operations = [
migrations.AlterField(
model_name='personmembership',
name='rol... | [
"filipdobranic@gmail.com"
] | filipdobranic@gmail.com |
2e83051cab98c6e966a89981f641b396e0630240 | efde9197a0a0ea1e11113e79bce87c3ded80573e | /hackerRank/cyclic binary string.py | 00f79a18ec9e5abbffb5f41d0b5d339823f58e5e | [] | no_license | dkarthicks27/ML_Database | bb370366e7b4d2ad06d992778c02815304a30f2d | 9f3856b1ac2aead5df4e3ef05e1800b1152f777e | refs/heads/master | 2021-10-27T10:45:47.258344 | 2021-10-24T10:42:55 | 2021-10-24T10:42:55 | 238,627,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | """Algorithm: 1011010
So it is actually left rotation
So what we can actually do is that we can probably shift each time convert to decimal and see if there exist a integer log for this number but I don’t know if this method is feasible
Take the input string save it to a variable original
1. Convert it to decimal a... | [
"dkarthicks27@gmail.com"
] | dkarthicks27@gmail.com |
86c6bda0603c609d70afe20bb9b6a60d1be9327b | 7dfc850b1e82ba852c1b6f81153f499466faa426 | /database_imports/dataimport_symbols_Single.py | 1313e169132fd7a17ec7ba0543934ba76b18e179 | [] | no_license | ollieboard/CodeA | e06053989e55da7b468f0f567eb614995ffb0393 | 497e51a6d7f555ec9fb709f22fc04c57139f233a | refs/heads/master | 2020-12-14T16:03:53.764505 | 2017-06-12T16:45:16 | 2017-06-12T16:45:16 | 52,689,792 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # Python script for filling database from csv file
import sys, os, csv
# Full path and name to csv file
csv_filepathname="FSE-datasets-codes.csv"
# Full path to your django project directory
your_djangoproject_home="/home/oliver/Repositories/CodeA/codea/"
sys.path.append(your_djangoproject_home)
os.environ.setdefaul... | [
"ofeindt@hotmail.com"
] | ofeindt@hotmail.com |
fdeba04ec009c89a271ec8cdbf952115c6138d06 | e7580d924666db728ea02611819f6cc0e5077ec3 | /accuracy.py | 66a275b7a12436fae14b5ccc913ca13a3d8a6858 | [] | no_license | lawauditswe/Pokemon-Battle | ee48c3625c2a2816d16c9cf321096a05280c3669 | 54585b466f39f9b986d745e4ea08e0934a67826e | refs/heads/main | 2023-07-07T22:16:40.707571 | 2021-08-25T20:27:34 | 2021-08-25T20:27:34 | 349,981,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # Accuracy checks
from random import randint
import random
def accuracy(move):
miss = random.randint(1,100)
if miss > move.accuracy:
return 0
return 1 | [
"noreply@github.com"
] | lawauditswe.noreply@github.com |
e07a47abfbe7d722114af4192739a875854c3f68 | aac55184b20defb682c781fd4bf7aae2a402d439 | /RedditAnalyzer.py | ce5d93ec2a226b043796109732da5f9b94701bbd | [] | no_license | bianchima/reddit_corona_scraper | 632824ed151cbf38d25621660352d681489850d3 | 6442c12e8b495c450b49ff760e6d25e0411ce34c | refs/heads/master | 2022-06-19T05:35:45.724944 | 2020-05-11T06:25:04 | 2020-05-11T06:25:04 | 262,848,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import json
import operator
from datetime import datetime as dt
# Load from File
with open("data.json", "r") as fp:
data = json.load(fp)
words = {}
authors = {}
dates = {}
for key in data:
# Words in Post
title = data[key]["title"]
title_words = title.split()
for word in title_words:
if wo... | [
"Nomentum@10.145.253.205"
] | Nomentum@10.145.253.205 |
721e3853f3a1799fc3552d4f8d2e08bdd76aa6cc | 54004129b8d5933aeed28e71aabf34daf2fb061a | /venv/untitled/hp/models.py | 4e468419d44d8983dc3c2615cd795f975c6d5aff | [] | no_license | eva990417744/zsxywwhp | 1e6c9a4e1831891630e9ea22b49a3c4eb3e18603 | 5a2d46ef68b9028fa30cd1f5a66b175b84cf39fc | refs/heads/master | 2022-12-07T14:06:20.942616 | 2016-11-02T18:08:05 | 2016-11-02T18:08:05 | 69,695,877 | 0 | 1 | null | 2022-11-18T03:41:59 | 2016-09-30T19:29:31 | Python | UTF-8 | Python | false | false | 4,860 | py | from django.db import models
class Excle(models.Model):
name = models.CharField(max_length=10)
excle = models.FileField(upload_to='%Y/%m/%d/')
add_time = models.DateField(auto_now=True)
class HP(models.Model):
name = models.CharField(default='', max_length=50, verbose_name='hp_name')
blood = mod... | [
"990417744@qq.com"
] | 990417744@qq.com |
a450a16b1200362256b6935d2e9e58dab3f43813 | ffa967abfb47af7a370f02a09dd0df14318c20a3 | /Modelling/Regression/Gradient Boosting.py | f6a1efbb99eaab0c297a6706364083c64894061b | [
"MIT"
] | permissive | fraunhofer-iais/IAIS-Python-Snippets | f564d4ba4f9ee633fbda1bb3aa00ed8970fac55c | a3ee610d6270cda2c891688851696c34831ffa2b | refs/heads/master | 2023-01-08T19:59:05.055937 | 2020-11-11T10:00:46 | 2020-11-11T10:00:46 | 293,539,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from sklearn.ensemble import GradientBoostingRegressor
from sklearn.model_selection import GridSearchCV
parameters = {'n_estimators':[2, 5, 10, 50, 100],
'max_depth':[3, 4, 5],
'learning_rate':[0.001, 0.01, 0.1]}
model = GradientBoostingRegressor()
regs = GridSearchCV(model, parameters, ... | [
"hammam.abdelwahab@iais.fraunhofer.de"
] | hammam.abdelwahab@iais.fraunhofer.de |
5299c187799270f860c642046f4536a3f2a2a679 | 6ca758d6f2edad22e0029c283e65d5826f065461 | /nodes/freeplay_sandbox_supervisor/launcher.py | 3bd255c2c46dbfc5209122efa988b7f3270ec63f | [] | no_license | aaramirezd/web-supervisor | 2f98d1f2c060bb92275df008fb7a8ea35d0c617c | 1beed6cd86db6dc90dfc1c0b64012c1fd3941246 | refs/heads/master | 2020-04-11T04:35:17.567292 | 2017-06-28T14:40:06 | 2017-06-28T14:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,872 | py | import time
import sys
import subprocess
import psutil
import rospy
import roslaunch
import roslaunch.xmlloader
from roslaunch.core import RLException
from roslaunch.config import load_config_default
from rospkg.common import ResourceNotFound
class Launcher:
def __init__(self, package, launchfile):
se... | [
"severin.lemaignan@plymouth.ac.uk"
] | severin.lemaignan@plymouth.ac.uk |
3c68bcd1c8eb969fe6f027f047b84e08c321097f | 0b2acfb420f4f1354c1f0db78a5fb192f7ffa3fb | /ds_in/sampler_base.py | 7ecf9a7af0460ebfa27a6b151291ac232d78ef68 | [
"WTFPL"
] | permissive | wsfreund/decoder-generative-models | 0ef7aed7fb53e5307a1d27738e153cbcf5dc8902 | 927409dda96d5e886156214ecb6960eb2072a9fd | refs/heads/master | 2023-06-04T19:47:49.322157 | 2021-06-25T13:35:09 | 2021-06-25T13:39:47 | 279,616,507 | 0 | 1 | NOASSERTION | 2021-03-25T20:25:44 | 2020-07-14T15:00:39 | Python | UTF-8 | Python | false | false | 11,774 | py | from abc import ABC, abstractmethod
import numpy as np
import tensorflow as tf
import copy
import itertools
from ..misc import *
class SpecificFlowSamplingOpts(object):
def __init__( self, batch_size
, take_n = NotSet, drop_remainder = NotSet
, shuffle = NotSet, shuffle_kwargs = NotSet
... | [
"wsfreund@gmail.com"
] | wsfreund@gmail.com |
eb1e71aacc3892c3756d3e6efab1d5dbebcb4e7a | 4331279865c4b1262179068ba5ac85d8d75123b6 | /final/home/views/insurance.py | ae8d65e45714f7c174c4d5d0273a66627fdbf017 | [] | no_license | manankshastri/NYmed-Scripts | fb4633c19dadfdf982f127454a5dd643ba0f8a8b | 993af47223ca7cb38a2e9af88a2fc99baa7f3d88 | refs/heads/master | 2020-04-07T11:29:01.839909 | 2019-05-16T22:39:50 | 2019-05-16T22:39:50 | 158,328,115 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | from django.contrib import messages
from django.contrib.auth import login
from django.contrib.auth.decorators import login_required
from django.db import transaction
from django.db.models import Count
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse_lazy, reverse
from dja... | [
"manank.shastri@gmail.com"
] | manank.shastri@gmail.com |
1083aa60275a7e289d9f75c45560aab1ae17ed3d | 5700c42a07f271b94ca2a647fbdb388b9c249469 | /pages/basket_page.py | c53c003ee205bfaa80f1083a4058196ee3df5629 | [] | no_license | aurika-pixel/stepik---auto-tests-course | 175503d2989d6ce7d8ab6cb9c8b3a356437401dc | cfc75e66eb7d1e39dfd8cff65c6d058f983dbf16 | refs/heads/master | 2021-08-10T13:20:20.089086 | 2020-04-13T17:35:49 | 2020-04-13T17:35:49 | 253,438,666 | 0 | 0 | null | 2021-06-02T01:26:33 | 2020-04-06T08:28:26 | Python | UTF-8 | Python | false | false | 425 | py | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def should_be_basket_is_empty_message(self):
assert self.is_element_present(*BasketPageLocators.BASKET_IS_EMPTY_MESSAGE), "message not exists!"
def should_not_be_product_in_basket_message(self):
... | [
"aurikatu@mail.ru"
] | aurikatu@mail.ru |
c882342fe074152a5d6c323af163893ccd169ee5 | 33dafb9bedaaa7a78a857ef6c6e77d4559c444cc | /mysite/mysite/settings.py | d45d021079ef5ad58b63c766001ea7f38fb9de2f | [] | no_license | geraldojosesanto/my-first-blog | 09e44a2fe3ef2c93b6266a6573ab2647380560f3 | 77159e58d4795ef89c15579ae1ffbd871b8c1189 | refs/heads/master | 2022-11-21T19:40:06.986886 | 2020-07-22T20:25:38 | 2020-07-22T20:25:38 | 281,736,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.14.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"geraldojosesanto@hotmail.com"
] | geraldojosesanto@hotmail.com |
d2ef8d920e4103f095845cc5539c6c544a985b29 | 10ea8247d4493496f940c565881d572bebd9acd5 | /MyParser.py | e8c2879f4a028a4d2cef5eb2e40b4a1f255a60ca | [] | no_license | arizalsaputro/simple-parser-tba | 6fbcd80d1a17c6c90b04c534098284d61eca7257 | 3040c155897e90a8af274d6d697a9709bce99e39 | refs/heads/master | 2021-08-23T08:53:14.154547 | 2017-12-04T11:27:22 | 2017-12-04T11:27:22 | 112,942,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | #Tugas Tahap 1
operator = ['+','-','x',':']
def parse(inputan,index,output,hitungBuka,error):
if error :
return output
if index is len(inputan):
#if hitungBuka > 0:
# output += "error "
return output
count = index
if inputan[count] is " ":
index = index + 1... | [
"muharizals@students.telkomuniversity.ac.id"
] | muharizals@students.telkomuniversity.ac.id |
230e44d52e7267776c7ad0dd6590c9ae3760fd4c | 87da2a20260a8ba81aef92c517a51b46dfc0689c | /luhyacloud/walrus/urls.py | 4745abff359740bdc0d79f4a219f0166d20384cb | [
"CC-BY-4.0"
] | permissive | cloudfirst/eduCloud | 244e84ce2242f33854ed9fe197414fc9ef3d8313 | ac45bcbcdb9dae60e6c29056a75776fee43c361d | refs/heads/master | 2021-12-01T17:02:56.260817 | 2020-03-17T13:01:21 | 2020-03-17T13:01:21 | 22,567,057 | 0 | 1 | null | 2017-10-10T12:24:20 | 2014-08-03T04:18:24 | HTML | UTF-8 | Python | false | false | 210 | py | from django.conf.urls import patterns, url
from walrus import views
urlpatterns = patterns('',
#url(r'^main/top/$', views.admin_top_view, name='main_top_view'),
# API 1.0
# Web Page
) | [
"4167023@qq.com"
] | 4167023@qq.com |
da0854259a59bf045f2fa9cfc0c521134bcc7d32 | e39e0a8676c8a5b24b37d949e3fe6c05e48ab817 | /client/file/messages.py | 1c042ac5c8bb9181ef4ddd30e10fa027b224218d | [] | no_license | Joselsneto/ECOTorrent | a3966c0d58a3880524977458ebc35ac297e67be7 | 50d1c076a2adcb0ce8476d58795e50b11c52775e | refs/heads/master | 2022-10-20T14:15:23.820944 | 2020-07-01T00:33:25 | 2020-07-01T00:33:25 | 265,071,710 | 0 | 0 | null | 2020-06-30T22:31:23 | 2020-05-18T21:54:48 | Python | UTF-8 | Python | false | false | 373 | py | class Messages:
def __init__(self):
pass
def handshake(info_hash, peer_id):
hs = "146EcoTorrent0000000{}{}".format(info_hash, peer_id)
return hs
def verifyHandshake(hs_message):
pass
def getInfoHash(hs_message):
return hs_message[20:84]
def getMessageType(message):
return message[0... | [
"joseitamonte@hotmail.com"
] | joseitamonte@hotmail.com |
c18989b9fc9e25bf40b4ac083d12d27f4d5d3a0e | 96b2009e5a3bcaa4a0a6bb699015e5d2d62e3ccc | /卷积神经网络+keras/__init__.py | c9f26105c126796a86360adc6512fe8d3d8fda08 | [] | no_license | zlszhonglongshen/NLP | 612d9f73ca017d387c48b8b3ebae24510dad6732 | 8f373f737b309c7441b516c0d408e43aebacff61 | refs/heads/master | 2022-07-24T20:18:12.465840 | 2019-11-27T09:06:57 | 2019-11-27T09:06:57 | 125,830,945 | 0 | 0 | null | 2022-07-15T20:19:20 | 2018-03-19T09:11:40 | Jupyter Notebook | UTF-8 | Python | false | false | 7,572 | py | #coding:utf-8
import os
import numpy as np
np.random.seed(1337)
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras.utils.np_utils import to_categorical
from keras.layers import Dense,Input,Flatten
from keras.layers import Conv1D,MaxPooling1D,Embedding
from ... | [
"593956670@qq.com"
] | 593956670@qq.com |
0e7c3b828694480c0b910383edc2dc5f6294ab81 | a728a685fa841388da0d27c8d596ce2178a60ad0 | /app/core/tests/test_models.py | 55151200fda78a0faad3fa52acf148c40fe6a526 | [
"MIT"
] | permissive | aikinyi/recipe-app-api | bd3c037acf650a09cdae35497c8e62b4988ad454 | 419ab18f715f66d044af125680ce3417f7af61f4 | refs/heads/main | 2023-03-19T13:46:50.341555 | 2021-03-20T22:39:36 | 2021-03-20T22:39:36 | 321,140,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
# Helper functions
def sample_user(email='test@gmail.com', password='test123456'):
return get_user_model().objects.create_user(email, password)
class ModelTest(TestCase):
"""
Creating Model TDD
""... | [
"learntoprogress@yahoo.com"
] | learntoprogress@yahoo.com |
ec342f342906642d2e195b79e2e610331c52b5c2 | 73bc168768a5f8bb139b53bd618ecf19cf61ac66 | /courses/courses/spiders/udacity.py | 5ba4add5845f5846ff109726c7ba8043505c928f | [] | no_license | rodrigo-ghiraldeli/udemy_python-com-scrapy | 9cd905457992b3804cebb79286dbd68f204e8cea | 6342a5da6afebdbe09c188918991efb0109587fc | refs/heads/master | 2022-12-03T18:29:40.887923 | 2020-08-19T00:42:27 | 2020-08-19T00:42:27 | 288,595,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | import scrapy
class UdacitySpider(scrapy.Spider):
name = 'udacity'
start_urls = ['https://www.udacity.com/courses/all/']
def parse_detail(self, response):
title = response.xpath('//h1/text()').extract_first()
headline = response.xpath('//div[contains(@class, "legible")]/text()').extract_f... | [
"rodrigo.ghiraldeli@gmail.com"
] | rodrigo.ghiraldeli@gmail.com |
91015339d5385a43b17af97fd72bce9f241c9932 | 41a9fcc8df963ffb3c58b196d0d5c8053cb08509 | /RegEx.py | 9959375b6ca3da6b3426232b556cfb6528d7e5b3 | [] | no_license | oun1982/gitrepo | 89c267b61e2dd555d049a8296b4949a7f1639621 | 73e4b5798f8e0ed805a7ee49d1e54cef2b7b51c1 | refs/heads/master | 2021-05-09T04:00:33.667791 | 2019-02-24T04:52:56 | 2019-02-24T04:52:56 | 119,258,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | __author__ = 'oun1982'
import re
if re.search("cat","A cat is eat fish"):
print("Have a Cat")
else:
print("Haven't Cat")
print(r"\\\\!@_!")
| [
"oun1982@gmail.com"
] | oun1982@gmail.com |
e98ddaa42ba0de08f5058b25bd20b30991dc607c | fc87b90aebfef2fa618241bbf3a95fbe0e5c2f18 | /manufactureview/pt/apps.py | 94de0ae640b39ad003b7948167b403b9d6adac09 | [] | no_license | ofiryak12/ManufacturerRoom | ce31570247ae6848e4cf6f97cdeedf3a2fee5217 | d942defec030d9ae3415028423f3e071e7f0561a | refs/heads/master | 2023-07-15T05:00:28.661909 | 2021-08-30T06:28:08 | 2021-08-30T06:28:08 | 400,302,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from django.apps import AppConfig
class PtConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'pt'
| [
"ofiryak12@gmail.com"
] | ofiryak12@gmail.com |
96cdbb081e5c25bb5168b73c58283eac5eec2ae4 | 642dde87cfbfd67178a02ec9536ea627526058f7 | /bpfe/vectorizer/BPFEVectorizer.py | 6154201b05b7fb37d9654bd825ab3f764089a267 | [] | no_license | JesseBuesking/dd-bpfe | 3f463b5ee474740c5a47b5cd17a0e2609862fc0d | 9521205ec82baf661076ff41b58178d9e04723dc | refs/heads/master | 2020-12-25T18:16:30.177324 | 2015-01-10T05:45:01 | 2015-01-10T05:45:01 | 26,792,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,747 | py |
from collections import Counter
import re
from sklearn.base import TransformerMixin, BaseEstimator
from sklearn.feature_extraction import DictVectorizer
from bpfe.entities import Data
from bpfe.feature_engineering import all_ngrams_list
from nltk.corpus import stopwords
from nltk.stem import SnowballStemmer
sbs = S... | [
"jessebuesking@gmail.com"
] | jessebuesking@gmail.com |
cd604accecbe1e3a174eb64d58aa50cb702a0acf | 26771494974942f4ab18d2cd8247506c344e1d14 | /895-maximumFrequencyStack.py | 4a40053b7ed6952b9019de75037801c0192ff639 | [] | no_license | wangyunpengbio/LeetCode | 9f4c6076e067c5e847d662679483f737d40e8ca5 | cec1fd11fe43177abb2d4236782c0f116e6e8bce | refs/heads/master | 2020-04-29T22:28:25.899420 | 2020-04-03T07:37:26 | 2020-04-03T07:37:26 | 176,448,957 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | class FreqStack:
# 超时
def __init__(self):
from collections import defaultdict
self.stack = []
self.dic = defaultdict(int)
self.maxFrequency = 0
def push(self, x: int) -> None:
self.stack.append(x)
self.dic[x] = self.dic[x] + 1
self.calculateMaxFrequen... | [
"wangyunpeng_bio@qq.com"
] | wangyunpeng_bio@qq.com |
47de7604ce9f3dbba2dceae866ce17732272dc3e | b8c91ddeffe49d5aa2dcfd82d4cb5c2fb63f1c38 | /SC001/Homework/Assignment1/CheckerboardKarel.py | b6bce685148dfe4815e11a49b4552b3613b53763 | [] | no_license | astrochialinko/StanCode | 121ac5fb52f931c2148ca19c4a87b9f288dcdb38 | ec3a81ba94a4600ab20ebe8e31049bf3a372bae8 | refs/heads/master | 2023-05-27T22:36:21.979603 | 2021-06-13T14:26:31 | 2021-06-13T14:26:31 | 334,227,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | from karel.stanfordkarel import *
"""
File: CheckerboardKarel.py
Name: Chia-Lin Ko
----------------------------
This program instructs Karel to draw a checkerboard using
beepers, as described in Assignment 1.
The program works for all of the sample worlds provided in
the starter folder.
"""
def main():
"""
... | [
"chialinko@Chia-Linde-MacBook-Pro.local"
] | chialinko@Chia-Linde-MacBook-Pro.local |
bed170e3a61e169e68a386884050efbff4067342 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/labels_20200908183820.py | 429c534d5ee867e57cc47bc486a667f5c91d2405 | [] | 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 | 135 | py | def labels(S):
if len(S) == 0:
return 0
output_arr = []
last_indices = []
for i in range(len(S)):
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7ef7011e89b8d22c40c5908a8f87b85e6bf1c799 | cc1c69962b0bcbb3bd01523f5366a75c36933b58 | /condiconales_bucles/Condicionales_ejercicio.py | 04adef891aa9129980c55c50f5a57925d1662ef7 | [] | no_license | JuanLuisRepositorio/Bloque-1 | 6acd7ef3e740da3c010ead47593b9e0e07bcec30 | c32b025dc8a2eb6a6f31e98cdec8f25a38d2a268 | refs/heads/master | 2020-08-23T04:29:49.133595 | 2020-01-10T08:49:34 | 2020-01-10T08:49:34 | 216,543,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #cambia los textos para que se muestre el mensaje de acceder al contenido solo si es mayor de edad o es un menor que esta con sus padres
edad = int(input("¿Cuántos años tiene? "))
if edad < 18:
padres = input("¿Estan tus padres contigo(S/N)? ")
if padres == "S":
print("No puedes acceder al contenido")
... | [
"noreply@github.com"
] | JuanLuisRepositorio.noreply@github.com |
3eb1a57dc99966d684dbbc8a94e98154248c5de1 | 092bb75936bbccf339a44fd13ce7040b8f2c305a | /gui.py | bbb847d0a409e822d87f1e363f35e6a3c23a357f | [] | no_license | bishop254/NetMon254 | c4794c2382aaa7311fee7d91d9217ebdf887f952 | 7f255fc6a58927ffb56e9bb74e512c42aa7d3d25 | refs/heads/main | 2023-08-18T17:52:44.691888 | 2021-09-29T19:43:40 | 2021-09-29T19:43:40 | 408,805,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | #! /usr/bin/env python3
import random
from ipaddress import IPv4Network
from typing import List
from scapy.all import ICMP, IP, sr1, TCP
# Define IP range to scan
network = "192.168.43.0/24"
# Define TCP port range
port_range = [22,23,80,443,449]
# make list of addresses out of network, set live host counter
addres... | [
"noreply@github.com"
] | bishop254.noreply@github.com |
83af6f83dc179242e5d702547f4e5a827285eb53 | 7ba9ec427aac637aa25788971114b4520909b4da | /test_scripts/continuous_transmissionv3.py | 2df4b37c1d7efada2b9ffc941ba4dbcea319f19b | [] | no_license | matthew-william-lock/intelligent-spectrum-sharing | 95160dc5de3dfdf08285b55c4a162696972b4471 | 34c2174f8de0ddb24d3f7ac886625c7bbd7e1533 | refs/heads/master | 2022-12-26T06:12:31.116608 | 2020-10-13T11:53:28 | 2020-10-13T11:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,090 | py | import select
import socket
import time
import _thread
import threading
import getopt
import queue
import random
from time import sleep
import signal, os
import sys
sys.path.append('../../')
sys.path.append('../../communicator/python/')
from communicator.python.Communicator import Message
from communicator.python.Lay... | [
"zz4fap@gmail.com"
] | zz4fap@gmail.com |
5fb7177c8751886429fb169f1f3e13e7e8f37aa0 | 6c9017f9a7ff020e5a5931ae0746becf13df2080 | /worker/parent/testdata/printloop.py | 326c71015207eeaa70c8fb49b8917322697b7172 | [
"MIT"
] | permissive | FDlucifer/gocrack | 995bac075aa36452cce5417df6e93ba600b665b2 | e3b20e43e39d5fc0fbf3a1c652462559ebbec2cf | refs/heads/master | 2021-04-10T05:47:41.610567 | 2019-08-01T14:47:20 | 2019-08-01T14:47:20 | 248,914,857 | 1 | 1 | MIT | 2020-03-21T05:44:10 | 2020-03-21T05:44:09 | null | UTF-8 | Python | false | false | 494 | py | import argparse
import time
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Prints numbers')
parser.add_argument('--max', type=int, default=5, help='max number to print')
parser.add_argument('--rc', type=int, default=0, help='return code to exit as')
args = parser.p... | [
"chris.schmitt@mandiant.com"
] | chris.schmitt@mandiant.com |
2285f53714843af0c12d3e5bbffe3461fd1b8067 | eefc395d096b5849d66e4e3a5083a3fbd50719b6 | /MEG_experiment_script.py | e3246113a5c24d7e8801500281b2b8e248d99f49 | [] | no_license | gvilidaite/meg_contrast_discrimination | 0e522b83fa654ab89505cac2b342f2d138a9d214 | b58bbea861e4d7f403de19e1af200f819b0dd179 | refs/heads/master | 2020-03-22T16:44:59.347677 | 2018-07-09T22:27:46 | 2018-07-09T22:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,163 | py | # MEG contrast discrimination script
# Last edited 25/10/16
# INFO:
# The script is set up so you can quit at any time by pressing ESCAPE and then waiting for the next trial
# HOWEVER, when restarting the experiment, will need to change the number of blocks in the GUI (defaults is 4)
# Presents four identical blocks o... | [
"vilidaite@gmail.com"
] | vilidaite@gmail.com |
44ef95a9011192ce453982424085607440c05159 | b7bbbd60eb783208a4e7c8159d833526170b5a3c | /examples/log.py | f9812667113f1d6fb9e44c3ca0d5684a12ecbb60 | [
"ISC"
] | permissive | ericfaurot/py-app | a9a2923001b164968e8929f836d1333e5b74d0b3 | b0f25adf8b644073ef7074d24514ec35448a532e | refs/heads/master | 2018-10-12T07:41:40.367991 | 2018-09-19T16:52:39 | 2018-09-19T16:52:39 | 125,370,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import time
import getopt
import sys
import app.log
procname = None
foreground = False
logfile = None
opts, args = getopt.getopt(sys.argv[1:], "-df:p:")
for opt, arg in opts:
if opt == '-d':
foreground = True
elif opt == '-f':
logfile = arg
elif opt == '-p':
procname = arg
app.l... | [
"eric@faurot.net"
] | eric@faurot.net |
59ccae351bb923ec178b9c7535c647e37c13a56c | 25f8871f4cd871d0513a24486201fdd0cc2ceb91 | /user/signals.py | 86aeb47245c8ae4208755b975e128d80117a9e91 | [] | no_license | CaptainVee/Rest | c58b094f3e2481a88851b34daf2870f72f319f0b | b3427b131ea91096cf778dfebd8133c2cf34c5ce | refs/heads/master | 2023-03-15T00:06:39.817192 | 2021-03-29T00:28:27 | 2021-03-29T00:28:27 | 347,763,138 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
from rest_framework.authtoken.models import Token
@receiver(post_save, sender=User)
def create_profile(sender, instance, created, **Kwargs):
if created:
Token.o... | [
"captainvee3@gmail.com"
] | captainvee3@gmail.com |
bda797b01eb94234034539602752492f10e15b46 | f1acc7a7c1ec6ea6545816c65655ab664ce85197 | /website/apps/clothing/migrations/0004_auto.py | 60721c07996441f32a702517cdf851ab1432c8b9 | [
"MIT"
] | permissive | saeschdivara/myclothing | be3727e148ade6844a23bc98461bdaab7f510921 | aef10e165c7e767028e8cf8a2ac7d01013231a9e | refs/heads/master | 2020-04-05T22:49:41.969650 | 2014-05-16T06:02:05 | 2014-05-16T06:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding M2M table for field clothing_time on 'Clothing'
m2m_table_name =... | [
"sascha.haeusler@netzbarkeit.ch"
] | sascha.haeusler@netzbarkeit.ch |
2829631b6c5dbf23e71b80e88443771bec8ef460 | 9bed8867761870372e955cd54b4d33b6cd59cd6c | /ch9/grid.py | dbe670c428cbd6a6af293fcd4682b7961bec3361 | [
"MIT"
] | permissive | fxyyy123/book_codes | 15b3e266e8b8edf1c85a9fff7292ead0c54cfde6 | 64e4ac2b33c54cde4671291a6203e94cd96de4ba | refs/heads/master | 2023-06-02T04:44:58.525053 | 2020-05-18T05:24:57 | 2020-05-18T05:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | from tkinter import * #导入tkinter模块
window = Tk() #创建主窗口对象
window.title('Grid Example') #设置窗口标题
colors = ['red', 'green', 'light blue', 'yellow']
#展示padx, pady设置效果
labels0 = [
Label(window, font="Arial 18", text=' grid(%d,%d) ' % (0, j),
bg=colors[j]).grid(row=0, column=j, padx=j * 5, pady=j * 5)
... | [
"python_programming@163.com"
] | python_programming@163.com |
4c374d623b41f4b08ccaf0d7c3dc45adefcbee20 | 233928d206e13e068cf8cb5ff7888c9a2d84ad61 | /BOJ/BOJ_2920_음계.py | d99e9a4bb4060c1a3c802597873370a6c6437450 | [] | no_license | Jinwoongma/Algorithm | 7f6daa2d3c2c361059c09fb4fe287b1cce4863e2 | 78803f4572f1416451a9f4f31f53b7d653f74d4a | refs/heads/master | 2022-10-07T22:53:20.333329 | 2020-06-07T13:27:47 | 2020-06-07T13:27:47 | 237,114,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | data = list(map(int, input().split()))
if data == list(range(1, 9)):
print('ascending')
elif data == list(range(8, 0, -1)):
print('descending')
else:
print('mixed') | [
"jinwoongma@gmail.com"
] | jinwoongma@gmail.com |
7728b2672b63c0955fa31c15489a21301c6c50f8 | 291d0103d1012e02d0882b029ea3e5129a9c2ef7 | /src/hai/urls.py | f546a93c4f0a51847b96d409e391d9ad8243b41d | [] | no_license | lcmencia/hai | 318431b23c6391f728946bd434c2ca3a72fc3c13 | 1c7c0e2bd6bbf0e371bc4e09483cb68a187751e1 | refs/heads/master | 2021-01-18T18:12:01.407068 | 2017-08-18T17:21:32 | 2017-08-18T17:21:32 | 100,516,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | """hai 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-based v... | [
"lcmencia2@gmail.com"
] | lcmencia2@gmail.com |
45ae2421cf59a4a43dd3dd496139b32a58f76e45 | 6d1f401129b8a3891be699e81ac145a1f47c77f2 | /marine_ferrary/google-python-exercises/basic/list1.py | a3d3924556dc24a4ac5b80a500ec683cbeb8ecc9 | [
"Apache-2.0"
] | permissive | olivier-loison/INFMDI721 | 1364ddf382cd4e21adff293b50dad5718ac971f0 | 12ec2acff229e4ec1053607ef29e8ece871fe9fa | refs/heads/master | 2021-07-05T18:54:46.370068 | 2017-09-21T22:22:58 | 2017-09-21T22:22:58 | 104,406,207 | 0 | 0 | null | 2017-09-21T22:49:34 | 2017-09-21T22:49:34 | null | UTF-8 | Python | false | false | 3,260 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic list exercises
# Fill in the code for the functions below. main() is already set ... | [
"marine@dhcpwifi-23-39.enst.fr"
] | marine@dhcpwifi-23-39.enst.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.