blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2dab3c4572f599087e9a031e18e2bfaff929b373 | 3258b071acd981bdab785c6de0de89db3e40ac97 | /useradd.py | da4638eecca129fa3beeb7ebb91c0bd6e9b01992 | [] | no_license | urQlikIp/gittest | 449695ed42b8600fd75dd8c0a273c70740e63675 | e3b42a95d5adf36be5bb4605dd90411b829fb6a4 | refs/heads/master | 2023-04-12T04:22:43.571939 | 2020-08-28T03:04:19 | 2020-08-28T03:04:19 | 363,427,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import time,http.client
from common.Login_Background import Log
class user_add:
def add(self):
sessionid = Log().login()
url = '/TinyShop_v1.7/index.php?con=customer&act=customer_save'
param = 'name=哈哈la&password=123456&repassword=123456&email=1lahjdycbbr2%40tiny.com&' \
'rea... | [
"niexie19960405@126.com"
] | niexie19960405@126.com |
5e4e4b99d01da7a4993b8896434ad8b652c976f1 | 616f369bdd502396594e009781b45bcbf8968946 | /SwordToOffer/PrintList.py | 74aeeeade26632b7c9df584971f56f5f4945c751 | [] | no_license | ryan623555007/interview-python | f75b1f03cd067b879e3bf122711b9e380f129b2b | cedb03a43dc2e9cdd8a5077a7802d04caafe55b9 | refs/heads/master | 2020-03-23T22:05:57.051982 | 2018-07-27T21:30:16 | 2018-07-27T21:30:16 | 142,152,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | class ListNode:
def __init__(self, x=None):
self.val = x
self.next = None
class Solution:
def printList(self, listNode):
if not listNode:
return []
result = []
while listNode.next is not None:
result.extend([listNode.val])
listNode = l... | [
"623555007@qq.com"
] | 623555007@qq.com |
b351ca90b3b3097863f1e9c4d1db09cc08919070 | d4ffc8822d1a3efd2d513636851e6258ae43d84d | /Line_task.py | ab8982c08f911b9d90988e70a66490b88116400e | [
"MIT"
] | permissive | joshuaLei/ROV | 05c9cd5517b21293f2b29f4a925c5151c68ca1fc | 9af22e66bc3a3d855fb1fc3902e1deef1f4b989a | refs/heads/master | 2020-04-27T06:43:55.323086 | 2019-05-22T09:25:36 | 2019-05-22T09:25:36 | 174,116,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,804 | py | import cv2 as cv
import time
import random
import math
#from video import Video
class ImageTool(object):
def __init__(self):
#self.video1 = cv.VideoCapture(1)
#self.video2 = Video(port=4777)
self.frame = None
self.pause = False
self.mode = 0
self.srcframe = None
... | [
"joshualei06@gmail.com"
] | joshualei06@gmail.com |
037e50418658ee008115d34ac0001eac2e505af5 | c4c9e81e9af2db426ed4cbfb3523664f927e5d5a | /0x16-rotate_2d_matrix/0-rotate_2d_matrix.py | f7d1b9cfb812aef67ce2cb1094d59a869f290153 | [] | no_license | Eddyszh/holbertonschool-interview | 3d4ffcca64464ce5c416d8f4bf2f83364fc14787 | b4ee82a46215757d2a1d5b69184f893f6c48f6a5 | refs/heads/main | 2023-04-21T09:26:16.485898 | 2021-05-27T22:20:00 | 2021-05-27T22:20:00 | 319,394,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!/usr/bin/python3
"""
Module rotate 2d matrix
"""
def rotate_2d_matrix(matrix):
"""Rotates 2d matrix"""
n = len(matrix)
for x in range(0, int(n / 2)):
for y in range(x, n-x-1):
temp = matrix[x][y]
matrix[x][y] = matrix[n-1-y][x]
matrix[n-1-y][x] = matrix[n-1-x]... | [
"eddyszh@gmail.com"
] | eddyszh@gmail.com |
fa43c1fe25521c71355b2ab08a11fffd84cbf13f | be5ca49e9fe765b24c284e70f0f03094b280f294 | /tests/__init__.py | 0dbda16f325bb8e4c2fdf51dd24bd705147891f8 | [
"Apache-2.0"
] | permissive | salesking/salesking_python_sdk | 584e37ed39057854b44172869ca1a1c88fb20f91 | 0d5a95c5ee4e16a85562ceaf67bb11b55e47ee4c | refs/heads/master | 2021-01-10T21:50:06.639171 | 2015-02-01T18:40:53 | 2015-02-01T18:40:53 | 7,263,808 | 0 | 0 | null | 2013-06-18T14:06:51 | 2012-12-20T20:28:20 | Python | UTF-8 | Python | false | false | 864 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import tempfile
import unittest
import logging
## logging
LEVELS = {'debug': logging.DEBUG,
'info': logging.INFO,
'warning': logging.WARNING,
'error': logging.ERROR,
'critical': logging.CRITICAL}
... | [
"frank.bieniek@produktlaunch.de"
] | frank.bieniek@produktlaunch.de |
b7588d77781e80e9850aab062925583a8dbd38b0 | 3104a6b3218dc99638e8f541669988a16fe778b7 | /data.py | 3e6fc1753790f7a32761e5a8e8009973afe80613 | [] | no_license | faaizuddin/Basic-Data-Preprocessing | ab5ae7e4b2626576afc44b23000333682f79ec17 | 5f232ea436ec015e345421d0a701b10ae0280743 | refs/heads/master | 2021-06-29T15:13:56.828395 | 2020-12-12T11:59:48 | 2020-12-12T11:59:48 | 182,529,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | #creating column names for airq402 data
nc=["City1","City2","Average Fair","Distance","Avg Weekly Passengers","Market Leading Airline","Market Share","Average Fair","Low Price Airline","Market Share","Price"] #header names
airq402=pd.read_csv("http://www.stat.ufl.edu/~winner/data/airq402.dat", names=nc, sep="\s+", hea... | [
"noreply@github.com"
] | noreply@github.com |
f8c70c1da41cfea53b6d1f02569fd71e0439f618 | 35e00d1996515ccf3151067ff28ff3357078f0b6 | /samples/generated_samples/pubsub_v1_generated_schema_service_validate_message_async.py | add86c6fa8941035f2205bc30efda5abdc9894e2 | [
"Apache-2.0"
] | permissive | googleapis/python-pubsub | 5bb18674307bd89236a61c0d7c5079f10e19467e | 1b9724324c58d27bcee42020b751cda58d80fddb | refs/heads/main | 2023-09-03T13:14:22.894233 | 2023-08-28T13:18:36 | 2023-08-28T13:18:36 | 226,992,581 | 321 | 195 | Apache-2.0 | 2023-09-10T23:29:10 | 2019-12-10T00:09:52 | Python | UTF-8 | Python | false | false | 1,876 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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... | [
"noreply@github.com"
] | noreply@github.com |
27a647aa0325fc6672f392661ec6acbcdbc62d55 | 63802a7c72a77489f0acb415550069627c198166 | /EmployerPanel/forms.py | 9d487dd70bf6327e827925920c93d5725ee161fb | [] | no_license | amit1992321/Placementcellautomation | 36e24944296d2efaf11aa286e5c20381d882dc82 | ac9dc8f78d03c65e8ba4723875f95b024bcbd421 | refs/heads/master | 2020-06-08T22:18:22.483068 | 2019-06-23T07:24:57 | 2019-06-23T07:24:57 | 193,316,348 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | from django import forms
import datetime
from . import models
from django.forms import formset_factory
class EmployerForm(forms.ModelForm):
class Meta:
model = models.Employer
fields = ['user', 'mobile', 'alternate_mobile', 'company_details']
class JobPostForm(forms.ModelForm):
class Meta:
... | [
"noreply@github.com"
] | noreply@github.com |
6f1fe808bbdf4766f29cd182eb50f6b82f93229a | f6f9facdef2ba878951239f0ff207c3dbee4aad7 | /NewTest2.py | c38555e6f1dbec702a564b502fb61228684e70f5 | [] | no_license | ssmaximilian/Maps2 | bd9a3b458a6e24fe3d11f04a6e041e3ca99a82ce | 419ba51a66fdc33651c515b4e23499ed6d6ca65a | refs/heads/master | 2022-11-17T06:31:52.717753 | 2020-07-19T16:39:59 | 2020-07-19T16:39:59 | 280,901,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import pandas as pd
import numpy as np
from IPython.display import display
import sqlite3
from sqlalchemy import create_engine
import string
from statsmodels.stats.multicomp import pairwise_tukeyhsd
from scipy import stats
import chart_studio as py
from plotly.tools import FigureFactory as FF
from plotly.graph_objs imp... | [
"noreply@github.com"
] | noreply@github.com |
1bab715b0c564a7a2941200a68f23a04ab4bfd58 | be2c022b270522fe24475b794d53a3fd973a5de1 | /영동/05_11049_행렬 곱셈 순서.py | 9a26a4594789aceefcc502611d23e25d9aedf66e | [] | no_license | zeroistfilm/week04 | ea4a358be0931fe28202b7ce543ed246536a1c50 | fdb5985e2d899c8b1a60cb81d660937304fa5bcb | refs/heads/main | 2023-02-09T09:35:27.795180 | 2021-01-07T02:29:28 | 2021-01-07T02:29:28 | 325,717,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # https://www.acmicpc.net/problem/11049
import sys
#sys.stdin = open("input.txt", "r")
N = int(sys.stdin.readline())
M = [0 for i in range(N+1)]
for i in range(N):
a,b = map(int, sys.stdin.readline().split())
M[i]=a
M[i+1] = b
Matrix = [[0 for i in range(N)] for i in range(N)]
for i in range(1,N):
r... | [
"zeroistfilm@naver.com"
] | zeroistfilm@naver.com |
05ce1b3fbd1318701f6cf0e64b26c7245bdb8cee | e4697742d4b745b5ce56537ccb7f852a481b2bb7 | /venv/bin/python-config | 931e68da668c19880b05905d5be9f5f5326f7a71 | [] | no_license | AbrarQuazi/Project-Midas-Stock-Prediction-Web-App | fde1b6b76b05af988a77b5dd27552931ac103aec | 45331718659b32e190432c7ff622f0a303da9484 | refs/heads/master | 2022-12-20T04:53:35.258381 | 2017-09-01T02:50:44 | 2017-09-01T02:50:44 | 98,698,506 | 0 | 0 | null | 2022-06-21T21:13:53 | 2017-07-29T00:50:37 | Python | UTF-8 | Python | false | false | 2,362 | #!/Users/abrarquazi/Desktop/stock_web_app/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if s... | [
"aquazi1109@gmail.com"
] | aquazi1109@gmail.com | |
af2aab80153959b6e9323af29d3835ba863fc16d | 3d1f5b69d9db15744b9f927634be002716419ddf | /b105_data_parallel.py | 92524a90aa03e37ca21f2dd558370bdc1bdd6b19 | [] | no_license | yexiaoqi/pytorch_learn | 5e87a3e85cbbbecc79fe75893a4a774cd35dbad7 | bf4c76de44d763580d4584d86387fb43763a4456 | refs/heads/master | 2023-02-07T07:30:06.863002 | 2020-12-31T07:51:10 | 2020-12-31T07:51:10 | 322,521,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import torch
import torch.nn as nn
from torch.utils.data import Dataset,DataLoader
input_size=5
output_size=2
batch_size=30
data_size=100
device=torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
class RandomDataset(Dataset):
def __init__(self,size,length):
self.len=length
self.data=... | [
"angel7ge7@163.com"
] | angel7ge7@163.com |
4c502425af4a0552d4ca6a8d65160670dab7b1f4 | a44cf7658e9c8f7805972a43caeb549d1edb86b8 | /vp/migrations/0094_auto_20191021_1923.py | 4f08b67e91648f2b377acf221cfd3b0646ebfdd4 | [] | no_license | almazim/vagonpodarkov | 11c36a51996c53909a762b2776239bce9a87932f | 37a724f7eb7dde62558ec226df3e9b829ae84fa0 | refs/heads/master | 2020-11-29T23:38:27.657192 | 2019-12-26T10:03:18 | 2019-12-26T10:03:18 | 230,240,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | # Generated by Django 2.2.6 on 2019-10-21 19:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('vp', '0093_remove_sweets_sweet'),
]
operations = [
migrations.CreateModel(
name='TypeBox',
... | [
"alimzagrick@gmail.com"
] | alimzagrick@gmail.com |
9a160c81fd980b2b5ae5b90944c631d5206f7566 | 5cd660b97c88b76f26ed5f349ebbec105567ba0e | /apps/sync/migrations/0006_auto_20180928_0813.py | 064716445484660e3687ca5509ca1c4be8c6096d | [] | no_license | JaredAvila/Django-Project | 4b42f6e9cc804cc9a8522d6f03098a6dd868af88 | bed080a72c320018999ca4f749084c32779d864a | refs/heads/master | 2020-03-30T05:12:56.678091 | 2018-10-29T22:59:56 | 2018-10-29T22:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-09-28 15:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sync', '0005_post_postrecipe'),
]
operations = [
... | [
"jared.c.avila@gmail.com"
] | jared.c.avila@gmail.com |
4e5e6edbef06d2952e8fc4d14209df3765306d1b | 600bed5ab71bdf29b6ce7f14bcfb996455e0356d | /contested_shots.py | 91f538ef264fb98480c0d62f0d86004501effbe7 | [] | no_license | shardul17/Shot-Quality | 3519de5144c511327aa2cdaeb8768c8a43f96423 | 28265eb6147588441af59d2e4629cbb607f28e70 | refs/heads/master | 2020-07-09T05:21:53.461514 | 2019-08-23T02:52:31 | 2019-08-23T02:52:31 | 203,892,097 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,813 | py | from selenium import webdriver
from pandas import *
import pandas
import numpy as np
import matplotlib.pyplot as plt
from sqlalchemy import *
import pickle
path_to_chromedriver = 'chromedriver.exe' # Path to access a chrome driver
browser = webdriver.Chrome(executable_path=path_to_chromedriver)
url = 'ht... | [
"noreply@github.com"
] | noreply@github.com |
ebb234d79ad5026002b45235c64c948c60818cae | f1f53fc9fdcc627492eff0a5dec96d3f72c6bcd1 | /app.py | b77d88c3b43de568526c20cbed6e343a96436062 | [] | no_license | corneliussteven/Camera-RaspberryPi | 3f1b00fdaa29a56890c30f5de3b97ba88215ab78 | 883c1773975e6e676416ecc827c149d1cd4315b3 | refs/heads/master | 2020-04-11T05:36:33.774618 | 2016-09-13T06:48:53 | 2016-09-13T06:48:53 | 68,079,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | #!flask/bin/python
from flask import Flask, jsonify, abort
from flask import make_response
from flask import request
from flask import url_for
from flask.ext.httpauth import HTTPBasicAuth
from flask import Blueprint
auth = HTTPBasicAuth()
app = Flask(__name__)
def make_public_task(task):
new_task = {}
for f... | [
"cornelius steven"
] | cornelius steven |
8120afa2fa7f150d257ef6033deff9fcab1f8f81 | 7085f2fa4a519bf5cc831313f45b8ca9cb619e73 | /main.py | 8d03510c11a869f1ff3a6e95899abc106e9709e7 | [] | no_license | andrewbates09/maxit | f3916560d365862c9f05ad5872cc069b64f92231 | 3f488907b9aae92cf5f24f051e879e30ac6c9a14 | refs/heads/master | 2016-09-06T14:57:10.072112 | 2013-12-04T19:43:06 | 2013-12-04T19:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | #!/usr/bin/python3
import playmaxit
# import testmaxit
# import curses
def controlMaxit():
userChoice = 0
anyKey = 0
while (userChoice != 2) :
playmaxit.clearScreen()
print('Welcome to the Most Awesome Xciting Inside Terminal game (MAXIT)!\n\n'
'Options\n'
'\t1.... | [
"andrewbates09@gmail.com"
] | andrewbates09@gmail.com |
23f2b61b669a1d020a56fe2145e8e5b58625908e | 0e89b2c2f0f281b110ae283de6471600bee6d0a5 | /style-token-master/StyleToken.py | d756ac548fd2626e1efa898fdf2440f56dc4c854 | [] | no_license | vmwaregit/sublime_common_packages | 556f0165eb83d930fe9ac98faef98f433d2269e3 | 06ca7204c5967fe1f8381fd99356249a5f6f07b5 | refs/heads/master | 2021-01-19T08:05:03.020537 | 2013-07-13T13:20:11 | 2013-07-13T13:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | import sublime, sublime_plugin
REGION_NAME = 'StyleTokenListener'
MAX_STYLES = 10
cs_settings = sublime.load_settings('StyleToken.sublime-settings')
styles = [cs_settings.get('styletoken_style'+ str(i+1), 'invalid') for i in range(MAX_STYLES)]
class TokenStyleCommand(sublime_plugin.TextCommand):
def run(... | [
"ee6662@gmail.com"
] | ee6662@gmail.com |
fa8d95911c385ecc64e8c6de19551c72cc6d6c37 | d40ee0fed27e784c56ce7257ddc91c10bc34b7c0 | /node_modules/bson-ext/build/config.gypi | f525d312e28569aded5ce63fb7cfae8529a26f4d | [
"Apache-2.0"
] | permissive | arizona2014/Knowledgebase | 3360f2efd11009515138a8558162eb73fce054db | 25bdb002180d564d69b8960c24cece92c0f497f6 | refs/heads/master | 2021-01-10T13:55:03.000203 | 2016-04-20T15:06:58 | 2016-04-20T15:06:58 | 53,052,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,784 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"host_arch": "x64",
"icu_data_file": "icudt56l.dat",
"icu_da... | [
"andy.lisac@gmail.com"
] | andy.lisac@gmail.com |
f96729b38a64cf05d84ab0e508ac4cb889ce989b | ce348e6f43e0eeb83a171f73dc924b95c121fe7f | /backend/sharedstory_24977/wsgi.py | 58a5c6babe8473b4c0580a501312c526f0f7ed5c | [] | no_license | crowdbotics-apps/sharedstory-24977 | ec19e35d67d0119dac3d30521e2aef050f60fa8c | 2dbd37503ab449981acbfb86f98d54580b4d6a92 | refs/heads/master | 2023-03-23T15:31:00.793794 | 2021-03-11T16:01:22 | 2021-03-11T16:01:22 | 346,757,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for sharedstory_24977 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
115fbb012b26456b279ce1b38eb085e54238ee4e | a15f8d9f509cdee635ccc822adf13908af47de51 | /pytagged/_mode.py | 75e86983d3dc7e32f1f9c8453951fd63d370cd5d | [
"MIT"
] | permissive | ntn9995/pytagged | 97eb0323b229c2b281f186dc26dabeed44d50c30 | bee423751ec63519abed1810af3326d5fa9770d3 | refs/heads/master | 2022-11-23T22:09:39.774184 | 2020-07-23T09:18:41 | 2020-07-23T09:18:41 | 279,422,157 | 0 | 0 | MIT | 2020-07-16T08:56:11 | 2020-07-13T22:10:50 | Python | UTF-8 | Python | false | false | 135 | py | from enum import Enum
class Mode(Enum):
"""Enum for PyTagged cli mode
"""
DEFAULT = 0
PRINTONLY = 1
BENCHMARK = 2 | [
"ngocnguyen9995@gmail.com"
] | ngocnguyen9995@gmail.com |
1ea20151d1db0d31a7b702522a6280ebbe9f68b6 | 2f519f09a296616846089f2ae405adeb8877fb5d | /mnist_seq.py | e80f100bd383f4b037b1badb0862c4fe233cc984 | [] | no_license | GMADHURIDSP/Convolutional-Neural-Networks | c025912433c5f991e59b0f14c5f6fdb1a04bfb35 | d753215f958fce2b098d4f993854358dc2ba3c91 | refs/heads/master | 2022-11-07T14:05:49.189633 | 2020-06-18T15:18:03 | 2020-06-18T15:18:03 | 273,272,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import Flatten
from keras.layers.convolutional import Conv2D
from keras.layers.convolutional import MaxPooling2D
from keras.utils import np_utils
(x_train, y_tra... | [
"noreply@github.com"
] | noreply@github.com |
1f4ddfa1c8bc8ae0575ee67ac34d8226efa92e7e | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /3.jvm/24-静态分派.py | 4057e69948dec7c7341531bc1d10fa9e78285067 | [] | no_license | xiongmengmeng/xmind-technology | 2bb67a0bf92cfd660cac01f8ab3a2454423ccba5 | e2fdb6987ef805a65f0a4feb52d84383853f4b77 | refs/heads/main | 2023-07-31T07:10:29.868120 | 2021-09-11T08:18:17 | 2021-09-11T08:18:17 | 307,636,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
import xmind
xmind_name="jvm"
w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind")
s2=w.createSheet()
s2.setTitle("静态分派")
r2=s2.getRootTopic()
r2.setTitle("静态分派")
cont... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
899d61119110a0fdcdba377335475e797ba20c50 | 34b1ab46a70fe81143874a40d6493c0254f1e5c9 | /python/flask_test_1.py | f8dd69799b9f664d6d21726091262f35e8b32f44 | [] | no_license | yama1968/Spikes | 5f974a20812dbd88f789cabf7720826d358f8e76 | 498b0cacfc23627ecee743f012a6fda6451cda7f | refs/heads/master | 2021-06-06T00:33:33.637745 | 2020-11-14T18:49:25 | 2020-11-14T18:49:25 | 29,531,065 | 2 | 0 | null | 2020-11-12T21:13:21 | 2015-01-20T13:29:35 | Jupyter Notebook | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
"""
Éditeur de Spyder
Ceci est un script temporaire.
"""
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
| [
"ymartel@gmail.com"
] | ymartel@gmail.com |
80092859c0ed3666cab7996e9c378ca9e0e5a49a | 7fcaf22d5880692598a38cad6f682795cbc13bf8 | /knowlege.py | 7135215a9601832aef3a8bd925a18afe7c2687cb | [] | no_license | xiaolong-liang/paralleldao | f0e6b57a519ffed604397a8e39d9598f02af8029 | 22ea10434746efedf4998c3b3e3b2489c6b55b13 | refs/heads/main | 2023-04-17T03:57:08.187886 | 2021-04-27T11:11:04 | 2021-04-27T11:11:04 | 359,088,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | class Knowlege(object):
def ask(self, stmt):
pass
def update(self, stmt):
pass
class Belief(Knowlege):
pass
class Intent(Knowlege):
pass
class Governance(Knowlege):
pass
| [
"dreammakerlxl@gmail.com"
] | dreammakerlxl@gmail.com |
948b79a6176688f080bc49d0afa3edff51db7ac5 | eeddbee377f4ae39513fdc9e2fc111b378d15fb0 | /MD5sig/deleteRe.py | 441b4d55e329ccc07f5d0cda1b7fb817939be7e3 | [] | no_license | Viwilla/MD5sig | af9811957ea8f421a047d75a0c5707da8ccbef99 | 3598b4e42f893d878d98c752093a4f87cf8e61b4 | refs/heads/master | 2021-01-10T15:23:18.364356 | 2015-12-03T05:29:33 | 2015-12-03T05:29:33 | 47,310,132 | 1 | 1 | null | null | null | null | GB18030 | Python | false | false | 844 | py | import os,sys,os.path
#import MySQLdb
reload(sys)
sys.setdefaultencoding('utf-8')
if __name__=="__main__":
md5total = []
md5 = []
count = 0
count1 =0
counttotal= 0
file1 = open ("MD5Sig.txt","r")
file2 = open("MD5Sig2.txt","a+")
lines = file1.readlines()
for line in lines:
... | [
"954116843@qq.com"
] | 954116843@qq.com |
cb90ab6fc8b20634eb92c304e768e063589475be | 887198d9dd6ec287f5c2fff96fb4c32295ab15a5 | /app.py | 00928a9e6756afad85cac26c606d61892fb57e89 | [] | no_license | thejoby/dogDoor | 28c9b695f8c2dac0493aa3a28cbee609a9da705f | e588a80ae208fc704f5da245ece99b6f0a3974ab | refs/heads/master | 2021-01-04T12:59:42.633377 | 2020-02-16T04:54:53 | 2020-02-16T04:54:53 | 240,561,092 | 0 | 0 | null | 2020-02-15T08:01:44 | 2020-02-14T17:15:48 | Python | UTF-8 | Python | false | false | 1,259 | py | from flask import Flask, request
import time
import datetime
import RPi.GPIO as GPIO
import sys
app = Flask(__name__)
@app.route('/')
def index():
now = datetime.datetime.now()
return 'Flask app is running at: %s' % (now)
@app.route('/open', methods=['GET','POST'])
def open():
if request.method == 'GE... | [
"thejoby@gmail.com"
] | thejoby@gmail.com |
a1d28dddbbd1f06c8bf3597513d5a740a98a5dcd | 786c0d355e04c885c196d421b74b53fa98ca2d0e | /test.py | f27358e2c62b03540f773611db597677ec2541ff | [] | no_license | underwatersaloon/bot.match | 9b071b3668797d61350d32290c12fe511d3e0a81 | caf2e4c3c2d60cc738cee788bc80aca69311a8a5 | refs/heads/master | 2020-04-24T17:54:17.547743 | 2019-02-27T03:01:44 | 2019-02-27T03:01:44 | 172,162,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from ship_test import ship
def prShip(lst):
for i in lst:
print('capID : {}, boat Index : {}, boat name : {}'.format(i.captain,i.index,i.subject))
def main():
capIds=[i+1000 for i in range(10)]
capNames=['captain no.' + str(capIds[i]) for i in range(10)]
crewIds=[i+10 for i in range(40)]
... | [
"m123oo@naver.com"
] | m123oo@naver.com |
ce699701faac3603c92fb933fe420ff5f4c0f5ed | 374dc7e7d3244a16b0ea5e616db81738bc6ad7ff | /Blog-Website/webapps/grumblr/views.py | 9ecf18c6c9b45eef1460ad74a80bd2618a8bbe2c | [] | no_license | calvinlee619/Projects | 018660c3631e133359aab10622d906ef9a17bf32 | d5f3ba6e3aa16b6c920d9a523a22526a365f1a1c | refs/heads/master | 2021-01-12T18:17:31.960738 | 2016-08-23T15:57:04 | 2016-08-23T15:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,024 | py | from mimetypes import guess_type
from django.contrib.auth.tokens import default_token_generator
from django.http import Http404, HttpResponse
from django.shortcuts import render, redirect,get_object_or_404
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
# Decrator to ... | [
"kangw@andrew.cmu.edu"
] | kangw@andrew.cmu.edu |
8ae3347d2a89108558a061fa27bf203aa8ebfd4b | 1b0e6de5485339a3b5dfff461d6239a3ac57a982 | /SpecialistAI/health/form_utilities.py | f74dafd220b5d4cb3e3ad02d7d50c11a4073ffc4 | [] | no_license | moemursi/DJango-AI-Medical-assistant | fd48b5e68033d71fc880f58903b89ceadca5d0d9 | bb5108cddb81e5909a172b29ba9628b524a04d60 | refs/heads/master | 2022-12-22T10:41:15.323896 | 2020-07-16T12:54:50 | 2020-07-16T12:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,141 | py | # Class which is responsible for everything regarding forms,
# I.e. sanitisation,
# email being valid,
# password matching and much more.
import re
from django.core import validators
from django.core.exceptions import ValidationError
from django.contrib.admin import models
from django.contrib.contenttypes.models impor... | [
"bulmer.neville@hotmail.co.uk"
] | bulmer.neville@hotmail.co.uk |
b5c4683595506c36f2bbe83636e6d3b5240a13b2 | 9404f0134c580cb18df4de6e434f4a6f83d1cd33 | /tfidf/tokenizer.py | 6473eec7812e1d55b8e80165689a1a11509e934c | [] | no_license | xyh97/JingDong-Dialog-Challenge | 77a1c7fee0bed551d39eef79b79049ddac1f74fc | 95c137e09606c39b5f8dd36c25f5baf178835ef0 | refs/heads/master | 2020-04-03T01:53:10.980316 | 2018-10-27T08:23:01 | 2018-10-27T08:23:01 | 154,941,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # -*- coding: utf-8 -*-
import jieba
from tfidf.util import read_lines
_STOP_WORDS_FP = 'stop_words.txt'
class Tokenizer:
def __init__(self):
self.stop_words = [i for i in read_lines(_STOP_WORDS_FP) if i]
def cut_for_search(self, sentence, filter_stop_word=True):
tokens = jieba.cut_for_searc... | [
"xiongyh@zju.edu.cn"
] | xiongyh@zju.edu.cn |
d6be6ba7b30d8faaec1895bb04e32de8fc239c7e | 3f507c5cd0386f3e4a7310f2675ae5ebb9c81426 | /manage_site/migrations/0004_auto_20180715_1404.py | 51e7e200d4dd7fdd9f57082b7c0adb32f20d5445 | [
"Apache-2.0"
] | permissive | Chocomilk-Leo/FITA | aa6af2b34ca032558393f06bb5a4dbacc464e4e6 | f2b04c9e40da11ed35732e9f69fc24ac5c31bc70 | refs/heads/master | 2020-04-15T01:39:16.363443 | 2018-10-30T04:43:02 | 2018-10-30T04:43:02 | 164,285,474 | 1 | 0 | Apache-2.0 | 2019-01-06T07:33:23 | 2019-01-06T07:33:23 | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.0.6 on 2018-07-15 14:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manage_site', '0003_auto_20180715_1338'),
]
operations = [
migrations.AlterField(
model_name='indexcourse',
name='im... | [
"1227085585@qq.com"
] | 1227085585@qq.com |
0dfab621a2eb3a0f601ca535af21b6bf1120739f | 5c1de66937151f56c739ed8b9ea4309c28e333c6 | /maxfw/core/api.py | e513d0746ecf471d9e4205ae99b3073ac6200b3a | [
"Apache-2.0"
] | permissive | cclauss/MAX-Framework | 40b0259da1aa84a4550ac897afb595142353bf85 | 2bc9c090058557a5ce863bbf19a18c7c47a78695 | refs/heads/master | 2020-04-09T12:21:36.033643 | 2018-11-29T01:08:07 | 2018-11-29T01:08:07 | 160,346,052 | 0 | 0 | null | 2018-12-04T11:20:13 | 2018-12-04T11:20:13 | null | UTF-8 | Python | false | false | 977 | py | from .app import MAX_API
from flask_restplus import Resource, Model, fields, reqparse
from werkzeug.datastructures import FileStorage
METADATA_SCHEMA = MAX_API.model('ModelMetadata', {
'id': fields.String(required=True, description='Model identifier'),
'name': fields.String(required=True, description='... | [
"djalova@us.ibm.com"
] | djalova@us.ibm.com |
8152f5de1e216e50d57f2ee029225b5144c4beb2 | ed2be337ce4b8a3c772862fce99ec99416784a62 | /play/models.py | c889f87afcafa52f0ca12af45ece8a4485629983 | [
"MIT"
] | permissive | fraferra/PlayPaloAltoServer | e5ecc7557a02b2b14750e929f656a121984a560f | a7128d363efd6059007df2c9da77f7bd033f7987 | refs/heads/master | 2020-05-20T05:30:19.020450 | 2014-07-08T02:34:14 | 2014-07-08T02:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,899 | py | from django.db import models
from datetime import date
from django import forms
from django.contrib.auth.models import User,UserManager
from django.utils import timezone
from django.db.models.signals import post_save
from django.utils.translation import ugettext as _
from utils import *
from social_auth.models import U... | [
"fraferra@cisco.com"
] | fraferra@cisco.com |
aa7ae0c68281ac9ce0ab5270f0a8c3357b63d971 | 3f287644cedc068e11d0d770e58a66771a721b97 | /TrainingExtensions/tensorflow/src/python/aimet_tensorflow/defs.py | eb9d2e516eddb45adcd051bf5cb9ba5f3c9dacf4 | [
"BSD-3-Clause"
] | permissive | Rohan-Chaudhury/aimet | a1c3d1f6b688a45bc333398cf23bba3d8cffad55 | 1c38cac8cc0fd32dca40ce5e39940805d29f7a4a | refs/heads/develop | 2023-04-03T08:57:13.982404 | 2021-04-01T22:35:01 | 2021-04-01T22:35:01 | 332,067,268 | 0 | 0 | NOASSERTION | 2021-04-01T22:35:02 | 2021-01-22T21:32:36 | Python | UTF-8 | Python | false | false | 7,393 | py | # /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
#
# Copyright (c) 2018-2020, Qualcomm Innovation Center, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modifica... | [
"quic_bharathr@quicinc.com"
] | quic_bharathr@quicinc.com |
18a82c0623cf3f9a43a6f936f07e388b4f2de0f4 | 9e4fe0016f8d322f1911df4c4fcfc07d090d4ef3 | /lab7/codingbat/warmup-2/5.py | c003f9559abfe1a21ddf9a3315526fea109d8ffa | [] | no_license | WooWooNursat/Python | e84055fed32aeee2d32dcd49dad6fe10ae02bb33 | b37e6ceb46b4fe068c9e989c1cde3c1cf8ad42f9 | refs/heads/master | 2021-04-04T03:43:48.143976 | 2020-04-17T05:58:17 | 2020-04-17T05:58:17 | 248,422,200 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def last2(str):
if len(str) < 2:
return 0
last2 = str[len(str)-2:]
count = 0
for i in range(len(str)-2):
sub = str[i:i+2]
if sub == last2:
count = count + 1
return count
| [
"noreply@github.com"
] | noreply@github.com |
1694e7e6f39b764c68f5192514499aab84206a67 | 7e133bf590000ad6bc06c18c77f174373f05af3b | /questao11.py | 674ba232f746316bfb7905dd3e1ae36545a0a493 | [] | no_license | LucasFerreira06/Exercicio1---Prova-2BIM | a716ed669b89b822fc431b0c25ed7a4f2c397168 | 6c9a97aa2fbf333b165df84b00a2a9a1836d2166 | refs/heads/master | 2020-12-05T03:11:33.581597 | 2016-09-04T01:52:05 | 2016-09-04T01:52:05 | 66,965,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | Numero1 = int(input("Digite um número:"))
Numero2 = int(input("Digite um número:"))
Soma = 0
for Numero1 in range(Numero1 + 1,Numero2):
print(Numero1)
Soma = Soma + Numero1
print("A soma dos números é:",Soma)
| [
"lucasnatacao@gmail.com"
] | lucasnatacao@gmail.com |
fec6a3aa31a220c668b93a5b34d034e735fbae41 | 233087c1eb99e1d13f80de6f43d2cc3264aa9ca6 | /polyaxon_cli/cli/version.py | e1a7f0433468d235fe651db2f75bb5fd16ca9f7f | [
"MIT"
] | permissive | DXist/polyaxon-cli | e33cd3b3633df5b21b9eb3cc48d7a6affed8e4ec | 0b01512548f9faea77fb60cb7c6bd327e0638b13 | refs/heads/master | 2020-07-08T07:02:43.248549 | 2019-08-15T16:00:05 | 2019-08-15T16:04:31 | 203,601,306 | 0 | 0 | MIT | 2019-08-21T14:27:56 | 2019-08-21T14:27:56 | null | UTF-8 | Python | false | false | 5,988 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import sys
import click
from polyaxon_deploy.operators.pip import PipOperator
from polyaxon_cli import pkg
from polyaxon_cli.client import PolyaxonClient
from polyaxon_cli.client.exceptions import (
AuthorizationError,
... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
505fdfd9abfb20f8f910c8177095e34659135c1c | a5e60d6bdc5ffa932e9d2638ee56e88ed4c07fc7 | /df_websockets/__init__.py | 3bbf7505c0fc1eea26fb8bed553558cc70657926 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | webclinic017/df_websockets | c5d82afe90e475731e61186fa8df39897c64252e | f0d072c4d6f2ddfa8bf17dd408236553fc154731 | refs/heads/master | 2023-04-16T05:45:42.293330 | 2021-04-16T08:50:42 | 2021-04-16T08:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # ##############################################################################
# This file is part of df_websockets #
# #
# Copyright (C) 2020 Matthieu Gallet <github@19pouces.net> ... | [
"github@19pouces.net"
] | github@19pouces.net |
0968061f1cd254b767175a9dfbd30f5d783bcc15 | 92a9ac5f4e66e37a6b07c1ed8cfa02966b66ed0e | /project.py | 6319f17892be739a28c0d19da5636980c267bf2f | [
"CC-BY-2.0"
] | permissive | dakshvarshneya/itemCatalog | 6898c53b9dfec596384eef05c3803f4a68e0fcd2 | 056bfa10896a35929eb8dff29911730e06df09ac | refs/heads/master | 2021-01-20T08:38:21.734878 | 2018-10-01T09:06:31 | 2018-10-01T09:06:31 | 101,568,599 | 0 | 1 | null | 2018-10-01T09:06:32 | 2017-08-27T17:26:37 | Python | UTF-8 | Python | false | false | 17,664 | py | from flask import Flask, render_template
from flask import url_for, request, redirect, flash, jsonify, make_response
from flask import session as login_session
from sqlalchemy import create_engine, asc, desc
from sqlalchemy.orm import sessionmaker
from database_setup import *
from oauth2client.client import flow_from_c... | [
"dakshvarshneya5@gmail.com"
] | dakshvarshneya5@gmail.com |
6a2b4d88152101f141b37064f7b8551c398301f3 | 513c664ac7e7b7aa34750c8fd21ca0cb2f9df309 | /Legacy Code/Display_weather.py | b4496dbae4d0a4eec4a169a5a0d1c5e2fbc345c0 | [] | no_license | BirchPrat/Raspi-Infodisplay | 656474533def8d7394b1e164ffbf658fdfc2f14e | de8f88752c6d59a63d8c0c2dc4a1b127344d7d50 | refs/heads/master | 2023-08-29T06:46:44.618313 | 2021-10-13T09:49:35 | 2021-10-13T09:49:35 | 327,003,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,522 | py | # Weather Display##
###################
# Importing necessary python libraries
import time
import json
import subprocess
import requests
from random import choice
import sys
sys.path.insert(1, '/home/pi/Desktop/PythonCode/Api_cred/')
import cred
import digitalio
import board
#Import for the temperature reader
from ... | [
"birchprat@gmail.com"
] | birchprat@gmail.com |
33ca4b9212fc1ec9f22bed0a9e440b4ae4f4f446 | 8338a6e2ae38b81baa0616eab9327b80a8a24b74 | /onlinelda/json_handler/jsonify.py | eaae24af162baeeb65916fef21622fc12354226a | [] | no_license | LeandroOrdonez/Topicalizer | 0b95f7b05d3e608e2f71e0ead44db591f0339299 | 62407827030d1e107ba454a0d4c1363da993d939 | refs/heads/master | 2021-01-19T14:56:28.275086 | 2014-09-27T03:04:32 | 2014-09-27T03:04:32 | 11,018,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,548 | py | #!/usr/bin/python
# jsonify.py: Generates a JSON file from the per-document topic
# distribution fitted by onlineldavb.py
#
# Copyright (C) 2013 Leandro Ordonez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free So... | [
"leandro.ordonez.ante@gmail.com"
] | leandro.ordonez.ante@gmail.com |
3d73e4bb4071a04e2289b417ddc0a5cbbc0b927b | 1293877cc3fde664f0b3b56a67f83ceff27e91f6 | /Leopold_Olivia/test.py | 8257fbdae1cefe37223d671bacbb8efd672207ba | [] | no_license | obalderes/pd7-miniproject1 | dbf5bd1d83100bcbcab9c9829880f5f3d8569180 | 7f89f376cd8ce804f39e73b065ab4df176e7ca75 | refs/heads/master | 2021-01-20T23:03:45.774203 | 2012-10-21T23:28:52 | 2012-10-21T23:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import mongo
def testing123():
#we will test our methods am i right!?
mongo.newStory("Jets")
mongo.addLine("Jets" , "The Jets lost today...again.")
if __name__=="__main__":
testing123()
| [
"leopoldsg94@gmail.com"
] | leopoldsg94@gmail.com |
638ad0a44f682b5e0f02d9d651d4f490a4ac7d49 | a8c0664b02ff552620bcee32846ef27686559361 | /validation/model.euler/euler-rayleigh.py | 2b912c8e2b276622c1c38b165adc70962292cdea | [] | no_license | ZhaoMY93/flowdyn | 6d8f22b71ab5a733bcb465ae52dc3c3216750c0b | 60625cc089fc17b7647a36ab98525c189a744f14 | refs/heads/master | 2023-06-20T23:42:48.673591 | 2021-06-05T13:21:12 | 2021-06-05T13:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | # -*- coding: utf-8 -*-
"""
test integration methods
"""
import time
import cProfile
from pylab import *
import numpy as np
from flowdyn.mesh import *
from flowdyn.field import *
from flowdyn.xnum import *
from flowdyn.integration import *
import flowdyn.modelphy.euler as euler
import flowdyn.modeldisc as mod... | [
"jeremie.gressier@isae.fr"
] | jeremie.gressier@isae.fr |
1be13eebadb30837a50498bf56c567f3ae17a166 | 4f00c6a08db5755b294bd519b9377866f5ff6c19 | /src/tests/google/appengine/api/xmpp/xmpp_service_stub.py | 8071acee686aa1637f430255e904c727b3a3af37 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cooljeanius/cauliflowervest | 02035a8455b1dde469ebfd0b202c02456820a679 | a9bc209b610a927083bf16274d8451c6c45227bf | refs/heads/main | 2022-12-24T15:28:30.616604 | 2020-09-25T23:55:15 | 2020-09-25T23:55:15 | 303,812,548 | 1 | 0 | Apache-2.0 | 2023-09-04T16:48:46 | 2020-10-13T19:46:58 | Python | UTF-8 | Python | false | false | 5,161 | py | #!/usr/bin/env python
#
# Copyright 2007 Google 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 o... | [
"egall@gwmail.gwu.edu"
] | egall@gwmail.gwu.edu |
6d4956a0ac9bb6cca1d3e068b2f69a2948fa6cc7 | 79b51123340f8fc97066c1647f536cb16e3308ec | /main/migrations/0005_auto_20180516_2301.py | cf1c6f0fade9f0751f2d2eb6f32650eba076e751 | [] | no_license | ox1230/capl | 1edb9bd130cba0133d0106e411545d79a7fd881f | 7f81937795699381b1df26e524a5e52d909ce462 | refs/heads/master | 2021-07-12T09:01:18.888306 | 2018-11-01T16:30:44 | 2018-11-01T16:30:44 | 132,298,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 2.0.4 on 2018-05-16 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20180516_2300'),
]
operations = [
migrations.AlterField(
model_name='category',
name='maxi',
... | [
"ox11223300@hanmail.net"
] | ox11223300@hanmail.net |
cee4a664fcc22aa71cfe586182065adf4a6ac247 | 0510d945b39e504fd9533d7aca630a46cea1d724 | /Francisco_Carvalho/loginSystem.py | aa0f9867236503e0cf56a561f7fd7cb550a80b53 | [] | no_license | HackerSchool/HS_Recrutamento_Python | b6d7c099aa6f5bc2325be5e3b0a8fa0e4d439b4a | 5d77d4f0e59da8d69edf02f03d9dd888e83fc33a | refs/heads/main | 2023-08-28T10:55:31.567770 | 2021-11-09T11:03:54 | 2021-11-09T11:03:54 | 425,946,545 | 1 | 1 | null | 2021-11-08T18:36:36 | 2021-11-08T18:15:41 | null | UTF-8 | Python | false | false | 1,211 | py | class LoginSystem:
def __init__(self):
self.currentUsername = ""
self.loggedIn = False
self.users = dict()
def logOut(self):
if(self.loggedIn):
self.currentUsername = ""
self.loggedIn = False
else:
raise Exception("Not logged in")
... | [
"francisco.parreira.fonseca@gmail.com"
] | francisco.parreira.fonseca@gmail.com |
d555bbcd2c811c9d1ec8cb0c3f6cdd62d05c4a97 | 951e36478d75044ba1895da343bc3930de4bd37c | /cone_side_code/source/various_tests/die.py | e85e8d8a424f99e56255f3d65c1d4fe828d10a69 | [] | no_license | orion2166/ConeDroneApp | 76c8f01b371a11da26e57a57869f5f91af49967f | af7b920e59b6501714e4560cf40f107148b26354 | refs/heads/master | 2023-01-23T15:49:49.115007 | 2020-12-03T12:58:44 | 2020-12-03T12:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import signal
import sys
import RPi.GPIO as GPIO
from smbus2 import SMBus #using smbus2 by Karl-Petter Lindegaard (I2C messaging)
import time
import sensor
import schedule
import indicator
GPIO.setwarnings(False)
indicator.clearLEDS()
indicator.lowerFlag() | [
"h38383838@tamu.edu"
] | h38383838@tamu.edu |
2f50c5d8fbaf7359990e0e5264f56327e41de7cc | 0e2a58dce33bb412f19d019b98168d68af9bdeec | /model.py | 9d1eb91c29159a77b3e6e6ab01503bc436ef9099 | [] | no_license | Naveenprabaharan/Salary_Prediction | 0ea2810a177b7c0d3de8f4044970f35d51efa820 | c36cf19545667c4e330cb08bb273c45afa74b06a | refs/heads/master | 2023-08-23T16:16:10.834688 | 2021-10-23T15:39:28 | 2021-10-23T15:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
import pickle
# MODEL TRAINING:
# dataset = pd.read_csv('__demo\Salary_Data.csv')
# X = dataset.iloc[:, :-1].values
# y = dataset.iloc[:, -1].va... | [
"you@example.com"
] | you@example.com |
7bf946dbafdf97b8a37a69fc222646baade45db5 | 2452d22a7aacf49d473dc414f6cc750af9857f8b | /src/facio/run.py | c7d8ffa7980c7db33fab17f031b7edfaa05c931a | [
"BSD-2-Clause"
] | permissive | krak3n/Facio | ce507edb0df5e161453ff04c402febeecd48e98a | 65ec0d078b133f0de77bfb7bc1c037acda63c193 | refs/heads/master | 2020-05-19T11:16:24.545548 | 2013-08-19T08:26:19 | 2013-08-19T08:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # -*- coding: utf-8 -*-
"""
.. module:: facio.run
:synopsis: Runs the Facio template process.
"""
import os
from facio.base import BaseFacio
from facio.config import (HOOKS_FILE_NAME,
Settings,
CommandLineInterface,
ConfigurationFile)
f... | [
"hello@chris.reeves.io"
] | hello@chris.reeves.io |
f7b4ee0dbde59d9bfb30f2f86c1500ec367ab637 | b557c7e9554e2d18f92b9b5f069839998c288737 | /tests_diff_between_times.py | ac47236d75f40655ef35303190e3177f567f4f50 | [] | no_license | davidone/misc | a50ed21ef61c40605ce21ea796167eda4f6da009 | 43a82a70f4378ad1cf1b91ba6b74a94c17ed4626 | refs/heads/master | 2021-09-27T22:55:24.120783 | 2021-09-15T13:20:50 | 2021-09-15T13:20:50 | 18,870,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | import pytest
import diff_between_times
def test_validate_date():
val = ('2021-09-15 00:00:00')
assert diff_between_times.validate_date(None, None, val) == val
with pytest.raises(Exception):
val = ('2021-09-15 00:')
assert diff_between_times.validate_date(None, None, val)
sinc... | [
"noreply@github.com"
] | noreply@github.com |
f9cf49601f28234a3dc2bbac71ed62fd49b12ede | 9dc77d85384f8a888e7d1699c2e519cafe7f8491 | /person/views.py | 69ece19fecbf722c83d4f0a363231e59cfc2219f | [] | no_license | ChaseKnowlden/2021SpringGroup1 | e5e93ebaf477ba87f7742f89cb5d990a720c74fa | fb820e5e852386310866894c7a6f289dff225ce1 | refs/heads/master | 2023-05-27T06:31:32.194596 | 2021-05-30T15:02:19 | 2021-05-30T15:02:19 | 375,468,835 | 0 | 0 | null | 2021-06-09T19:37:28 | 2021-06-09T19:32:07 | null | UTF-8 | Python | false | false | 1,920 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from .models import Person
import requests
import json
numberPerson = 10
PERSON_API = 'https://randomuser.me/api/?results='+str(numberPerson)
def person(response,id):
person = Person()
person.name = "bilal"
... | [
"4teko7@gmail.com"
] | 4teko7@gmail.com |
e407f871a1483c7da6a8d86f78c3ebf7f0942aeb | d2e822f47779dff3cec81e1c9e71f381a6ceb0f0 | /COURS/python/TP3/TP3 Ex2.py | 66b3a89b0c21ad0ebdee99bde9ba26dd50bd92d8 | [] | no_license | BrandidiCH4O4/Code-des-cours | fe019ba211785ade42d54fc1238d4944bb178373 | ac9eb6bf9042f2ceaca5e8e5a6de49848395bffb | refs/heads/main | 2023-01-21T02:03:51.412532 | 2020-12-02T13:41:19 | 2020-12-02T13:41:19 | 309,106,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """Ex 2-- Travail avec des chaînes"""
#######################################################################################
#1:
phrase=input("Entrer une phrase: ")
lettre1=input("Entrer une première lettre: ")
lettre2=input("Entrer une seconde lettre: ")
x=0
y=0
for ch in phrase:
if ch==lettre1:
... | [
"noreply@github.com"
] | noreply@github.com |
0547381d2254684900dcf79141d5b76f75c00912 | 65fce73a1e6a36718238cdef09a17493b19532a0 | /8/swagger_client/__init__.py | d6ffda23006c1131e1217a75ca10767be0046ebb | [
"Apache-2.0"
] | permissive | apitore/apitore-sdk-python | eb419589609efb86bd279cd1733c2a03cdc03680 | c0814c5635ddd09e9a20fcb155b62122bee41d33 | refs/heads/master | 2020-03-21T10:06:34.557781 | 2018-06-23T21:26:27 | 2018-06-23T21:26:27 | 138,434,217 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # coding: utf-8
# flake8: noqa
"""
Word2Vec APIs
Word2Vec.<BR />[Endpoint] https://api.apitore.com/api/8 # noqa: E501
OpenAPI spec version: 1.0.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import apis into sdk package
from s... | [
"keigoht@gmail.com"
] | keigoht@gmail.com |
9ab304a7e81f8015e16701fc650f207c2421c33b | d5e5c7e2fab03ecdb074435ea7a0d249e0da1514 | /sso_auth/authentication.py | 476c94c36bcb3001d0ade4be15ab04fd317cf7a9 | [] | no_license | th3abhi97/sso_auth | 9be8dc116ae7eb57004cf9577a8d3a15953782e5 | ad6cd34ef82a1cb3a9318ee875c0260c4808a7a4 | refs/heads/master | 2022-01-09T04:13:27.700722 | 2017-10-16T22:35:42 | 2017-10-16T22:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from rest_framework_sso import claims
def create_authorization_payload(session_token, user, **kwargs):
return {
claims.TOKEN: claims.TOKEN_AUTHORIZATION,
claims.SESSION_ID: session_token.pk,
claims.USER_ID: user.username,
}
| [
"abhi3@uw.edu"
] | abhi3@uw.edu |
143f92c1451594cde84b625fb24f6ce60b314439 | e7495daa51d48087da2cb1fb81e917d4923645e0 | /src/control_app (stable)/venv/bin/f2py | 01341ca47ad253e7725511c52003d92451b51ecf | [] | no_license | sebastiandlc/UCF-Duct-Inspection-Bot | a200a103b463cc40f1a31e5ff447bbd3a894d56d | 26499cccf3be393c7ff523a821ecbf84ca9941a6 | refs/heads/main | 2023-08-11T05:15:04.861545 | 2021-10-01T20:35:05 | 2021-10-01T20:35:05 | 412,609,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | #!/home/spiderbotgold/SeniorDesignSpiderBot/catkin_ws/src/robot_gui_bridge/gui/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'numpy==1.17.2','console_scripts','f2py'
__requires__ = 'numpy==1.17.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"sebastian.dlc@outlook.com"
] | sebastian.dlc@outlook.com | |
6736e09edf00b418607e71443127f44af7ec6cea | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/DXS3326GSR-SWL3MGMT-MIB.py | b6967e401b97f5dc7cbce020ce7e6f82e3f21569 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 43,774 | py | #
# PySNMP MIB module DXS3326GSR-SWL3MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DXS3326GSR-SWL3MGMT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:40:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
ed8d86ed590ce25d40ea9e13bcd9f423cfe2d0a5 | 989272dc1df2c994fa5e6ade63f844320e8def5a | /Using Regular Expression.py | 49943b9779543edb06fd89abbf2971eb13c5bd91 | [] | no_license | Mohiuddin-LU/Identifying-diabetic-users-in-twitter | b0d10ab5a65cc2e6b50280a190cf1172e8fc0b20 | 5e7611f0e45bbcfc2bb4d3c401dc6c3d90b0dacb | refs/heads/master | 2020-09-07T08:26:16.225955 | 2020-03-11T14:42:15 | 2020-03-11T14:42:15 | 220,722,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 10 14:50:05 2020
@author: mabdulq
"""
import re
def accuracy(count0, count1):
total = count0+count1
return (count1/total)*100
#reading label and text from a separate files
f = open("text.txt", "r")
l = open("label.txt", "r")
count0 = 0
count1 = 0
for i in range(1... | [
"55677245+mohiuddin02@users.noreply.github.com"
] | 55677245+mohiuddin02@users.noreply.github.com |
269593f796418ca7ab97be96aa100357de24da16 | 9622f1a3511ed13c79b109a92e57fed837c3f592 | /recursion1/reverse_string.py | ed5be07b56f627e48fa27710f1165e9876c284e4 | [] | no_license | elugens/leet-code-python | fb484ea52aa0dbef62d57d31a8a904e367e563f4 | 53e67e63078d629f19ed9b307b867eed912c1cec | refs/heads/main | 2023-08-07T20:58:35.001224 | 2021-09-20T18:32:25 | 2021-09-20T18:32:25 | 408,557,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py |
def reverseString(s):
left, right = 0, len(s) - 1
while left < right:
s[left], s[right] = s[right], s[left]
left, right = left + 1, right - 1
| [
"elugens@gmail.com"
] | elugens@gmail.com |
e877c55d2fc6c8d1ea93f772e9162375f77c38a6 | cd51ffd9715d8d5ad991db4b2d1e9da76310c0bc | /main.py | 74e0331027d03fd436dc8d48332c43726d89941f | [] | no_license | CLeDoPbIT/dl_rr_pipeline | 6235ce8e6771189aae634fad053aa709455ca540 | afba7682a0af5206a65f00e4d69aa48b05ba871d | refs/heads/master | 2023-04-04T17:42:33.055980 | 2020-04-09T20:48:33 | 2020-04-09T20:48:33 | 254,188,649 | 0 | 0 | null | 2023-03-25T00:38:49 | 2020-04-08T20:04:17 | Python | UTF-8 | Python | false | false | 2,218 | py | import importlib
import traceback
import time
import utils.mainUtils as mainUtils
import utils.misc
PROCESSOR_REGISTRY_CONFIG = "./processorRegistry.json"
CONSTANS = "./constants.json"
def run(processor_registry_config_path, constants_path):
"""
Main manager of processors. Run all processors from processorRe... | [
"Evgeny.Burashnikov@harman.com"
] | Evgeny.Burashnikov@harman.com |
82a8b3eab92e0cf6cf8a43a66206a1eef88a20d0 | 2212a32833776a5d5d2164d8efd11bd18bd3f768 | /tf_agents/networks/sequential_test.py | 001323efb5ecede3876c8fdbfa391b5b484a47d9 | [
"Apache-2.0"
] | permissive | tensorflow/agents | f39805fb98ef9af712dcaff3ba49e1ac6d42804b | eca1093d3a047e538f17f6ab92ab4d8144284f23 | refs/heads/master | 2023-08-14T04:56:30.774797 | 2023-08-02T17:43:44 | 2023-08-02T17:44:09 | 157,936,206 | 2,755 | 848 | Apache-2.0 | 2023-07-26T02:35:32 | 2018-11-17T00:29:12 | Python | UTF-8 | Python | false | false | 9,811 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d973653f84166354990b4df25cb162438aa56b9e | ed9b286cc1fba177abae3449540e95cde558b7e3 | /tests/unit/test_logging.py | 57a6cff2087deaf7e117e341b0311904534212d9 | [
"Apache-2.0"
] | permissive | AndrewNg/anchore | e706f0a0c47e298be3295d1aa6d167ec58788cd2 | 308e91881be65dd546dbfc79b9d3982b501252a8 | refs/heads/master | 2020-09-29T04:58:03.114023 | 2019-12-09T20:07:08 | 2019-12-09T20:07:08 | 226,957,427 | 0 | 0 | Apache-2.0 | 2019-12-09T20:06:16 | 2019-12-09T20:06:15 | null | UTF-8 | Python | false | false | 2,428 | py | import logging
import unittest
import anchore.cli.logs
import anchore.cli.common
import anchore.util
class TestLogging (unittest.TestCase):
@staticmethod
def do_generic(some_logger, name=None):
assert isinstance(some_logger, logging.Logger)
some_logger.debug('debug message - ' + name)
... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
630a17eceb74a3892bd59ab00b61f09ff63f75c5 | 949ebd7bc2ab1526b3d535def4c90c80fab907f0 | /Decision_Tree_Classification/decision_tree_classification_f1score.py | 543282a5320bd6834cdfb946ee193307187f8799 | [] | no_license | mbhushan/ml | 1c5c0d79f56dbc374f5163a032900da14ca5bc58 | 89441760c489bb265339bcdcbe975888686fc8a5 | refs/heads/master | 2021-05-15T05:31:47.801454 | 2018-05-12T17:34:23 | 2018-05-12T17:34:23 | 116,192,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | # Decision Tree Classification
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Te... | [
"manibhushan.cs@gmail.com"
] | manibhushan.cs@gmail.com |
8c049759037ec8218f98e394232db59d2162c027 | f79c7d8e68f520ccf27db7139dcdf7ade54d37d6 | /zerebralweb/goals/models.py | ec1233be4414a9835c09ba45eaa4bead5742cd73 | [] | no_license | JackMcGrath/Zerebral-Rewards | 84385693f9a34a30b98abca1908ff7dea7776a13 | cf0044985a43e7801f8b6ff9e80873d2a63b7473 | refs/heads/master | 2020-04-10T04:00:24.988277 | 2013-09-11T18:41:45 | 2013-09-11T18:41:45 | 11,531,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from django.db import models
from badges.models import Badge
class Goal(models.Model):
name = models.CharField(max_length=100)
description = models.CharField(max_length=500)
point_cost = models.DecimalField(max_digits=15, decimal_places=2)
# can this goal be earned?
active = models.BooleanField(... | [
"ericb@ericbarch.com"
] | ericb@ericbarch.com |
8e47ffdb9a7ff9e64f74027eb4f68986a2bc1daa | 712a0540264285214915e9fbd11c1d569622388b | /src/testFindAppAPI.py | 49db3cefd7f05cfccee98fc8ba38854769aaed50 | [] | no_license | helloluzhengfei/unitestAPI | ebd7c940aaa78024d538b2aee02609562588e225 | 4980104a260eefb02bc109e73a1540f8dcf3b54d | refs/heads/master | 2021-01-11T20:54:02.137663 | 2017-01-18T07:25:47 | 2017-01-18T07:25:47 | 79,206,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #coding=GBK
import unittest
from testFindApp import testFindApp
if __name__ == '__main__':
#unittest.main()
suite = unittest.TestLoader().loadTestsFromTestCase(testFindApp)
unittest.TextTestRunner(verbosity=2).run(suite)
| [
"1101113045@qq.com"
] | 1101113045@qq.com |
6b88975e6ef58157f6152dccba99b16643749118 | f49fbc09fce8c8a9e425ecca3695549330ad5ca0 | /vampire/praha_vfn.py | 9599e51f7bb55d01656f00d2294ea51505bf251f | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | honzasp/vampire | 716f42c205c91b9bee86c94addf8646d1a95fe75 | 752b9dea10626fd3f85d9139aff846e00ce7108c | refs/heads/master | 2021-12-14T13:53:34.295885 | 2021-01-07T23:26:32 | 2021-01-10T07:32:51 | 248,964,139 | 0 | 0 | Unlicense | 2021-12-13T20:35:13 | 2020-03-21T11:41:51 | Python | UTF-8 | Python | false | false | 907 | py | import re
from .helpers import get_html, inner_text, BLOOD_TEXT_TO_TYPE
UUID = "d052dc10eb314a96399c574fce480165"
SHORT_ID = "praha_vfn"
URL = "https://www.vfn.cz/pacienti/kliniky-ustavy/" \
"fakultni-transfuzni-oddeleni/aktualni-potreba-krve/"
NAME = "Všeobecná fakultní nemocnice v Praze"
COLOR_RE = re.compile(r... | [
"patek.mail@gmail.com"
] | patek.mail@gmail.com |
abf95e0dd4723e91a880d13b55defe3ee4660537 | 241579b4dba7e87bb5c3766da59b9f7bc796711e | /my_answers.py | 95736b80d4c7f236b394940a2d4c8e70b36a1e9a | [] | no_license | jmuras/bike-sharing | beac76075157391e9db352165a61f71d00513079 | e4ec3dac9488710be3efc21eee169d0ee424279f | refs/heads/master | 2021-01-04T22:11:37.182253 | 2020-02-15T20:07:46 | 2020-02-15T20:07:46 | 240,780,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,982 | py | import numpy as np
class NeuralNetwork(object):
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
# Set number of nodes in input, hidden and output layers.
self.input_nodes = input_nodes
self.hidden_nodes = hidden_nodes
self.output_nodes = output_nodes
... | [
"noreply@github.com"
] | noreply@github.com |
f2828219a52b0c680cb628ac7cd9cf04db168ac8 | 91654c7365c42424b57d5c7304f0f7f944cb1ea7 | /ballena_custodio/app6.py | 03d97957974533c70888cc863447cac61d2a0746 | [] | no_license | Antonio2401/t09_ballena.ramos | 8d9824a9e1fbd5828f34299aa91759ee2fcd8fb5 | 966696339446abba4eb7774ebb06827f36c4d14e | refs/heads/master | 2020-11-27T03:30:13.230560 | 2019-12-20T15:34:21 | 2019-12-20T15:34:21 | 229,287,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import libreria
import os
x=int(os.sys.argv[1])
y=int(os.sys.argv[2])
res=libreria.raiz_cuadrada(x,y)
print("la raiz cuadrada es :",res)
| [
"aballenac@unprg.edu.pe"
] | aballenac@unprg.edu.pe |
9a239cb2175eaae59444de0eb0c36e3ab608a4f9 | f6f24b57f4e3f5fdcea8006615d1c59f6d4adb06 | /router/poc/poc-publisher.py | b3d3c932ed69cfaa72bc398c210453654817f1a5 | [] | no_license | jeffmurphy/cif-v2 | 542640a59462193fa1ecda887b6391e98d8e57be | 09bd6694688cfb6c962d9adb97f564eea97097a7 | refs/heads/master | 2021-01-10T20:59:40.681466 | 2013-12-31T17:52:12 | 2013-12-31T17:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,118 | py | #!/usr/bin/python
#
# poc-publisher proof of concept
#
# poc-publisher [-c 5656] [-p 5657] [-r cif-router:5555] [-t #] [-c #] [-m name] [-h]
# -c control port (REQ - for inbound messages)
# -p publisher port (PUB)
# -r cif-router hostname:port
# -t secs between publishing messages (decimal like 0.5 ... | [
"jcmurphy@jeffmurphy.org"
] | jcmurphy@jeffmurphy.org |
112d2d8320692eba6ef70e6342254ab8abb37bd3 | 875921eb2b486923cfef0c2af249e8f456bdf0c9 | /config.py | 71df786a370703f818458fa7a87ac6837cb8727c | [
"Apache-2.0"
] | permissive | baozixifan/ASRFrame | c0d3d477409b0e262fbf760860c6c7b6ddd59caf | 307596dc729f7611b270b9f6d279fefa05ef488d | refs/heads/master | 2020-06-23T07:06:07.973172 | 2019-07-18T16:26:07 | 2019-07-18T16:26:07 | 198,550,805 | 1 | 0 | null | 2019-07-24T03:23:48 | 2019-07-24T03:23:47 | null | UTF-8 | Python | false | false | 1,964 | py | import platform
import os
project_path = os.path.split(os.path.realpath(__file__))[0] #
thu_datapath = None # 目录下应该有data/ dev/ 等目录
z200_datapath = None # 目录下应该有一大堆G../格式的目录
aishell_datapath = None # 目录下应有wav/和transcript/两个目录
prime_datapath = None # 目录下应有一个json文件和一个目录
stcmd_datapath = None # 目录下应该直接是音频文件
wiki_datapat... | [
"sailist@outlook.com"
] | sailist@outlook.com |
3f1fb4bbc6d2b5185a78deac4d61e6f99e71d675 | 6023b767f104d51288fed3e872777f4b974f083d | /4948.py | a1c036c2b0386239e0cdf05b50457a56ce356411 | [] | no_license | andyjung2104/BOJ-source-codes | daff7b804469473b898fb58500a1c8cff542b52e | a97b5e2b4bfb6d26fac67bb94d3d259836d875d3 | refs/heads/main | 2023-07-19T02:30:13.806978 | 2021-09-13T01:03:06 | 2021-09-13T01:03:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import sys
def pri(n):
sieve=[True]*n
m=int(n**.5)
for j in range(4,n,2):
sieve[j]=False
for i in range(3,m+1,2):
if sieve[i]:
for j in range(2*i,n,i):
sieve[j]=False
sieve[0]=False
sieve[1]=False
return sieve
a=[]
while True:
n=... | [
"noreply@github.com"
] | noreply@github.com |
d5d172753e17d1517f9584944e14c6b55bd48f89 | 69aebd774103a7eccbd2a175002f3dda15734c5e | /result/server.py | e74460e3e49f79a49d096dc71c8dccff2a15e4b2 | [] | no_license | AimeTPGM/BackendAPIsGenerator | b90c855ba852325e157837fe8da0f635dff3222c | 6843894e535c53cd92750c31b202922e5239d50a | refs/heads/master | 2021-01-02T22:49:22.821832 | 2017-10-11T15:54:42 | 2017-10-11T15:54:42 | 99,402,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from flask import Flask
app = Flask(__name__)
##########
# Description:
# Req: get
# Params:
# Return:
##########
@app.route("/test")
def test()
return
##########
# Description:
# Req: post
# Params:
# Return:
##########
@app.route("/lol")
def lol()
return
if __name__ == "__main__":
app.run(host='0.0.0.0',por... | [
"aim.ske09@gmail.com"
] | aim.ske09@gmail.com |
f66ea93a627b6da3eb08a72f0648757437501aaf | b06497b1d7cb19c03572e48a71b663185134b41b | /電子辭典client.py | d5b5ccfe516abdd9b45a9c6f77b95104addcaf43 | [] | no_license | wangdizzy/dictionary | b88f0e77adbbe1e96cd2ea77ac5ee1279eecdc57 | e64f43532b38af04357a4caac8e3d9aa30fe5e80 | refs/heads/master | 2020-04-17T11:11:57.153416 | 2019-01-19T09:54:08 | 2019-01-19T09:54:08 | 166,531,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | import socket
import sys
import os
import signal
import time
import pymysql
#發送連接請求
def main():
HOST = sys.argv[1]
PORT = int(sys.argv[2])
s = socket.socket()
s.connect((HOST,PORT))
while True:
print('''
============歡迎使用============
| 1.註冊 2.登入 3.退出 |
... | [
"kw65045566@gmail.com"
] | kw65045566@gmail.com |
8cdb24abd262545c7c71d44a9a66849c7c8fa418 | 8142f6ef075773be82e34d181d89ce07e6547139 | /api/database/migrations/0008_comment.py | 5054f0f1aa5f92463295cbfd9975df9b191c18ac | [] | no_license | Dazhuzhu-github/ASTA_website | 686e532681b9d4a332e152b728ead6fc758a932b | 0de1914f1b3a5b274860e52e34ac5170f63c4088 | refs/heads/master | 2023-03-23T00:18:32.706136 | 2020-10-11T16:41:42 | 2020-10-11T16:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # Generated by Django 3.0.2 on 2020-08-12 13:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('database', '0007_auto_20200812_1703'),
]
operations = [
migrations.CreateM... | [
"suikasxt@gmail.com"
] | suikasxt@gmail.com |
66e136cb864afc7b488c438d5291b80ea8ba357f | 1ba81f525d5e743dec31b9f8d9ffa29d59db38db | /manage.py | 80655c30fd495f7c62b912dcb614d1289a2ea543 | [] | no_license | apricotdonut/ConUHacks-text-recognition-server | 2dda327d12d8ac25a22e9957e2bd3d8661122040 | 425a80bbfdb50da6c38711cc6feb6fe38266e76d | refs/heads/master | 2022-12-25T01:26:34.931228 | 2020-01-26T18:54:54 | 2020-01-26T18:54:54 | 236,197,189 | 0 | 2 | null | 2022-12-11T21:59:15 | 2020-01-25T16:37:52 | Python | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NLServer.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"robbie.knowles@ucc.on.ca"
] | robbie.knowles@ucc.on.ca |
7c7f7d2371dc7a44fc32612820e0a7fc07035ce6 | b068787bc14c2963a9035abdc17850b6d656f59c | /lib_communication/testCommunication.py | f34d2495b7a789f08e96a67cda2ef1f4d192cd5e | [] | no_license | dariodotti/ICT4LIFE_ABD_indoor | b1f8f0b57b0c0fddf7d17d80db4be9b97f8c2158 | c1a32a5eeb5e00ac22121ae87eac540eb58319fb | refs/heads/master | 2021-07-09T15:49:49.738915 | 2020-09-19T10:56:15 | 2020-09-19T10:56:15 | 74,750,804 | 0 | 1 | null | 2018-07-02T08:56:10 | 2016-11-25T10:54:51 | Python | UTF-8 | Python | false | false | 444 | py | from communication.communication import Communication
from communication.domain.messageValueObject import MessageVO
if __name__ == '__main__':
try:
message_content = MessageVO(title='test', text="prueba envio", uuid_to="d20d7fc0-c0eb-4d49-8551-745bc149594e",
priority="HIGH")... | [
"dario.dotti@maastrichtuniversity.nl"
] | dario.dotti@maastrichtuniversity.nl |
95538e7aef91f2c0da0aabdfe2f36a93b27b9b60 | d363f11d8e5e640b365648ad544b540eb4386394 | /backend/src/people/migrations/0001_initial.py | f73b798f2fead2cc464cf61f0d237de000090661 | [] | no_license | mlytvynchuk/djreact | 0c2bd4c5bfb9fc0b1004d87121ef75b22931c878 | 0c52b08b7b31ed584e2326f2de96507df3cf1fd0 | refs/heads/master | 2020-05-05T11:50:59.016886 | 2019-04-07T18:32:51 | 2019-04-07T18:32:51 | 180,006,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # Generated by Django 2.2 on 2019-04-06 08:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Group',
fields=[
('id', models.AutoField(auto... | [
"lytvynchuk.maksym@gmail.com"
] | lytvynchuk.maksym@gmail.com |
1ecd30e9c26252e69351525d93da360caa3eaf0b | 533e773696d8cc09680eaf4c0ae6bc7cc6e7eb08 | /store/models.py | 0627c046cfad1c100c5a8998bf78991d1c120f92 | [] | no_license | pdave1573/Eshop | 2885cce3d0f157d4e9e35ee2cc911d97cbbab0ed | 788a3aab039adfcb2bdb0f9683435f382993e2e1 | refs/heads/master | 2020-04-06T03:59:49.769858 | 2017-02-24T19:40:40 | 2017-02-24T19:40:40 | 83,078,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
description = models.TextField()
publish_date = models.DateFiel... | [
"pdave1573@gmail.com"
] | pdave1573@gmail.com |
4c85a50a5aa40d7a5fff6322568792ac5f65f8a3 | 48b1feba376f24ca2e52ba0172a89cb69af852af | /hello.py | c49c730400d61888ec2cbc389dedb4fb0981c71e | [] | no_license | priyankasathiyaseelan/priyaa | 0bb205fd2e210ecd95557b51e1a70577a7c76f62 | 588d7fc47051b6a6f33238e629b5fcb988f41d77 | refs/heads/master | 2020-07-02T03:21:27.289532 | 2019-08-19T06:03:02 | 2019-08-19T06:03:02 | 201,400,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | n=int(input(" "))
for i in range(n):
print ("Hello")
| [
"noreply@github.com"
] | noreply@github.com |
7cae145eeb1765e1dc1249a7c25c4f9b5a5a80c0 | 2612f336d667a087823234daf946f09b40d8ca3d | /python/lib/Lib/site-packages/django/utils/formats.py | c23a37cb2b51c0f4fca23725608c0e1326cc71ee | [
"Apache-2.0"
] | permissive | tnorbye/intellij-community | df7f181861fc5c551c02c73df3b00b70ab2dd589 | f01cf262fc196bf4dbb99e20cd937dee3705a7b6 | refs/heads/master | 2021-04-06T06:57:57.974599 | 2018-03-13T17:37:00 | 2018-03-13T17:37:00 | 125,079,130 | 2 | 0 | Apache-2.0 | 2018-03-13T16:09:41 | 2018-03-13T16:09:41 | null | UTF-8 | Python | false | false | 6,513 | py | import decimal
import datetime
from django.conf import settings
from django.utils.translation import get_language, to_locale, check_for_language
from django.utils.importlib import import_module
from django.utils.encoding import smart_str
from django.utils import dateformat, numberformat, datetime_safe
from django.util... | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
a73f8302a9249594d2ed5b77f6688c6768dc5b63 | 6a2b0db7d6c4ecef8434f3b35fcaef71eeb0d896 | /VENV/py3_venv/lib/python3.6/site-packages/pyntc/templates/__init__.py | f9a12282a24b39159158a59ac474ea95c08b289c | [] | no_license | pseudonode/nornircourse | 9bf890ecfadd1a08691f113e0cd2acadd4b9bffa | 1ad0372f9673de784233937cc15779bc2391e267 | refs/heads/master | 2022-11-09T20:18:22.714703 | 2019-10-04T08:06:42 | 2019-10-04T08:06:42 | 211,856,983 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | import os
import textfsm
TEMPLATE_PATH_ENV_VAR = "NTC_TEMPLATES"
def get_structured_data(template_name, rawtxt):
"""Returns structured data given raw text using
TextFSM templates
"""
template_file = get_template(template_name)
with open(template_file) as template:
fsm = textfsm.TextFSM(te... | [
"andre@recursivenet.com"
] | andre@recursivenet.com |
977922ac36268edcaa041e79fd97eed215a5b6ac | 179577ecdd7fda84ad970b3aad573a575fef56bc | /exercicios/ex034.py | cc2175d2d31399159743980d7251f1a8965d04fb | [] | no_license | Elvis-Lopes/Curso-em-video-Python | 6c12fa17a5c38c722a7c8e9677f6d9596bc5653c | 65f093975af9bd59c8aaa37606ba648b7ba1e1c4 | refs/heads/master | 2021-02-11T12:15:13.580496 | 2020-05-05T21:55:06 | 2020-05-05T21:55:06 | 244,490,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | sal = float(input('Insira o salário: '))
aumento = float()
if sal > 1250:
aumento = (sal*15)/100
sal = sal + aumento
else:
aumento = (sal*10)/100
sal = sal + aumento
print(f'Novo salario R${sal:.2f}')
| [
"elvislopes1996@hotmail.com"
] | elvislopes1996@hotmail.com |
d97e382378d958796ce6131eaafaefa48e402bd5 | 8bb206d294da3f88cb928ea7b48cba1f13135566 | /SkilledIndia/contractor/migrations/0001_initial.py | 1fe7e724b162dfbfdcade31d05d1c4ab104f2c41 | [] | no_license | aadhityasw/Skilled-India | af3f4117e983938eda2e56a28f0362843d07be7a | 374ee40f308e0db91e56456cc5e8610b78f06ef8 | refs/heads/master | 2020-08-28T19:14:24.045836 | 2020-04-01T10:44:15 | 2020-04-01T10:44:15 | 217,796,096 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Generated by Django 2.2.1 on 2019-09-20 06:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('project', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='C... | [
""
] | |
ee53ecbdab905a3659c81e6f7d19a1e23fa95ec1 | 332e2c7016bffd65ce8eda9573fcc5d56f8d73cf | /02_monoplex_centralities.py | e144dd376e2321daa74b7026f44ad2f3acb21589 | [] | no_license | shizelong1985/Financial_Contagion_Network | 291a28b2ea8ae0455ab4cea84d6d7e1721dc81cc | c45674cb36667351c75402a5ee853233f3db775e | refs/heads/master | 2023-03-17T06:30:05.758133 | 2020-12-01T20:21:04 | 2020-12-01T20:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | import sys
import os
lib_path = './lib'
sys.path.insert(0, lib_path) ## add lib path to sys path
import igraph
import random
import copy
import scipy.stats
import pandas as pd
import numpy as np
from matplotlib import pylab as plt
from scipy.sparse import linalg as LA
import MultiContagion as mc
year = 2016
impo... | [
"huangchengyu16@gmail.com"
] | huangchengyu16@gmail.com |
b30388f626ab8501ab13c025023c2cf4d5f0ef61 | 0a0b31bed500d0714daf997b2d57b1eca4160672 | /2.py | 791fa0fc73a941e5e876687f63bb7847fa4fb74b | [] | no_license | jiapinjiea/test_project | 4ed191fc54f47624bbb6a799813c3828251ffc59 | 171a818ce99d354de4805ed24dfc4d4f20013f0b | refs/heads/master | 2020-05-02T01:51:41.003430 | 2019-03-26T03:48:29 | 2019-03-26T03:48:29 | 177,693,284 | 0 | 1 | null | 2019-03-26T03:48:30 | 2019-03-26T01:35:30 | Python | UTF-8 | Python | false | false | 41 | py | #!/usr/bin/python
print ("hello pyhhon")
| [
"xiaoqicn@163.com"
] | xiaoqicn@163.com |
3c53e42d5a2371b1683e62b91621f013f2474ebd | 7e50b94379132a4156fd693bc73d640ff6752ed9 | /tests/conftest.py | 6981e1f250018bce62a66937c9462a5ed171ebab | [
"MIT"
] | permissive | Pylons/plaster_pastedeploy | 145ac4c5310babf78ea7a0f7ad0639cc1b3f8a33 | c0a146cdfac61781057ecaaa1b7938ef53dae9af | refs/heads/main | 2023-06-12T04:08:37.382145 | 2023-01-03T02:44:28 | 2023-01-03T02:44:28 | 60,292,293 | 7 | 8 | MIT | 2023-09-09T04:19:56 | 2016-06-02T19:40:32 | Python | UTF-8 | Python | false | false | 515 | py | import os.path
import sys
import pkg_resources
import pytest
@pytest.fixture(scope="session")
def fake_packages():
# we'd like to keep this scope more focused but it's proven really
# difficult to fully monkeypatch pkg_resources and so for now we just
# install the packages for the duration of the test s... | [
"michael@merickel.org"
] | michael@merickel.org |
9a0760a05815cba73bcdc18ed1a4efc2c7ce1927 | b4155a5883522546d1bb50ac6f7af3e81f674d4c | /recaman.py | e922f827e6c93d3e6f310f6f94bc2c8202f04443 | [] | no_license | isennkubilay/iterators | 07f71c26b747e2f4e53afc2d2e09727e4afbe96b | 4114197277b181d3edad08507f2cedceb8ed2956 | refs/heads/master | 2023-02-19T08:31:28.462595 | 2021-01-11T10:47:35 | 2021-01-11T10:47:35 | 328,461,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from itertools import count
def recaman():
"""Generate Recaman's sequence
"""
seen = set()
a = 0
for n in count(1):
yield a
seen.add(a)
c = a - n
if c < 0 or c in seen:
c = a + n
a = c | [
"isen.kubilay@gmail.com"
] | isen.kubilay@gmail.com |
14c29cd5be9f391d57dffd9b957cf499b483dfd1 | 41a240365e242785bbdeaac9a75da03c8e200016 | /python_tools/src/multi.py | 3f48734103453be360770a1cbd1d3f858a05878d | [] | no_license | DHolmanCoding/python-tools | cff1e7bb9f16df803aa157c11944dc5dbfd4f839 | a65da40d801094ecfbe83b47e5e4fb1d1c16eba7 | refs/heads/master | 2023-01-23T02:44:48.509882 | 2020-12-13T00:19:43 | 2020-12-13T00:19:43 | 314,902,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import os
from multiprocessing.pool import ThreadPool
from multiprocessing.pool import Pool as ProcessPool
from enum import Enum
class MultiType(Enum):
threading = ThreadPool
processing = ProcessPool
def multiplex(function, data, multi_type: MultiType):
num_cpus = os.cpu_count()
with multi_type.val... | [
"DouglasHolman9@gmail.com"
] | DouglasHolman9@gmail.com |
9840214308b8f845fa25516ca9daa12b472d91d5 | 944ea7e9f80ff61c3d317d7c17f96d2e59c9b03e | /src/Main/FJSP_FolderReader_Model_Data_Process_CPE.py | de4f6d67b59e22e50642f737b0d5446b8d96715c | [] | no_license | bholland/NLP_Platform_Installer | 17995e03d27f6b15557a11159ce73a8010141eb0 | a24ece0076913b91725a0988e9b23367ce865bfc | refs/heads/master | 2020-06-22T04:43:53.569668 | 2019-08-01T21:15:53 | 2019-08-01T21:15:53 | 197,636,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,428 | py | from string import Template
from pathlib import Path
FJSP_FolderReader_Model_Data_Process_CPE = """<?xml version="1.0" encoding="UTF-8"?>
<collectionReaderDescription xmlns="http://uima.apache.org/resourceSpecifier">
<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
<implementationName>collec... | [
"ben_holland@abtassoc.com"
] | ben_holland@abtassoc.com |
789d37118fd4b3fcb65325a1552969fa73b32b45 | 964408953a7caf5f3f76f3e2f8539617ad2cdb1c | /config.py | ceff9672ffe611a83b45ef26ca3cdb1489a77b6c | [] | no_license | HS-1/udacityProj3Web | e94b0c994c9de0c46a9ef08f50a36c6dcad1e79f | 194610ef097d6ad092e34efec9b2ec16bdaeebfd | refs/heads/main | 2023-06-13T07:32:27.517521 | 2021-07-03T10:55:14 | 2021-07-03T10:55:14 | 381,586,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | import os
app_dir = os.path.abspath(os.path.dirname(__file__))
class BaseConfig:
DEBUG = True
POSTGRES_URL="hsproj3dbserver.postgres.database.azure.com" #TODO: Update value
POSTGRES_USER="serverAdmin@hsproj3dbserver" #TODO: Update value
POSTGRES_PW="P@ssword" #TODO: Update value
POSTGRES_DB="te... | [
"noreply@github.com"
] | noreply@github.com |
b4d24569e6cdaf40b25de41df54651caa9e68e90 | 69b66781ed31d316df76a7cc2e9a3bf2d5bf6aee | /filed_payments-main/application/services/payment/external.py | b7bd380f8a26ad6a777900a78eb326319f0daf2f | [] | no_license | Kiran2814/Filed_Payments | df27d7c2faa36b6c210d00b00ea3b8f7b327c8d6 | 594c45176ae136d6f93554c30ebeffea14eda6ee | refs/heads/master | 2023-03-04T16:43:04.483375 | 2021-02-03T05:10:22 | 2021-02-03T05:10:22 | 335,382,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | from application.services.payment import Card
class BasePaymentGateway:
def __init__(self, repeat=0):
self.repeat = repeat
self.gateway = None
def __repr__(self):
return "<{}>".format("BasePaymentGateway")
def connect(self, gateway=None, details=None):
if gateway != None:
if self.authenticate(detai... | [
"rajputkiran1410@gmail.com"
] | rajputkiran1410@gmail.com |
911067f08b17feb6bdfe3f68e6a758165fe00ec3 | 92126b8dcdf8b305abfbf31f3d2a7d8b8ae0daa5 | /nn_transfer/test/architectures/simplenet.py | 1444a04c10707c0ed285d321eea0be05fbf06368 | [
"MIT"
] | permissive | dantodor/nn-transfer | 52f943d71aa915b2c3c31ada39d551b8775e82d2 | 306f548ebb92ff6824c030352e5fe79fed8d1f55 | refs/heads/master | 2021-06-28T06:04:15.400892 | 2017-09-18T04:32:20 | 2017-09-18T04:32:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | import torch.nn as nn
import torch.nn.functional as F
import keras
from keras import backend as K
from keras.models import Sequential
from keras.layers import Dense, Flatten
from keras.layers import Conv2D, MaxPooling2D
K.set_image_data_format('channels_first')
class SimpleNetPytorch(nn.Module):
def __init__(se... | [
"me@guido.io"
] | me@guido.io |
8cae790bc88676a3b4ec3c1aef59e1a0ab4e5ecb | 50cf7a64b16ae511b4ce331d7f58f76117daedf4 | /codigos/machineLearning/KNNpandas.py | fd00598be189c7babae07e355e519441cd6edbc8 | [] | no_license | rachelreuters/cursoMachineLearningPython | 9870c9e8535b016bd7d2ad5ab82ec8495e0c6233 | 521b67e8c7c95209385ee8f96681421781ba4787 | refs/heads/master | 2021-06-21T22:31:05.203473 | 2017-07-16T20:38:25 | 2017-07-16T20:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | import pandas as pd
import numpy as np
from sklearn.neighbors import KNeighborsClassifier
train= pd.read_csv('train.csv')
test = pd.read_csv('test.csv')
cols = ['shoe size','height']
cols2 = ['class']
x_train = train.as_matrix(cols)
y_train = train.as_matrix(cols2)
x_test = test.as_matrix(cols)
y_test = test.as_matri... | [
"belchel@hotmail.com"
] | belchel@hotmail.com |
b86779e76407172f1c69c9bf41d4f6dd127dd9c5 | e4166b4467af98fa940d09be3a43c36b5702dd6f | /Train.py | c150bb020bc1a262fda3531c7aa0b902ba7fbcf6 | [] | no_license | parvathy22/Traffic-Sign-Detection | ead0621bfdb11a4061267177ca08491928c31151 | 8074c737ea61bb34d2fc916088ee107fe6ba1ea7 | refs/heads/main | 2023-06-02T12:35:27.700061 | 2021-06-26T07:04:49 | 2021-06-26T07:04:49 | 380,433,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.layers import MaxPooling2D
from tensorflow.keras.layers import Activation
from tensorflow.keras.layers import Flatten
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Dropo... | [
"noreply@github.com"
] | noreply@github.com |
cab6ce569e9667c2e8b5c3775c3cb0b9822e8160 | 530e37341af91071ffde01f6f84d39ec039272eb | /fetch.py | cf90eed1fcfb38c6900f528048bdad4a0bf9f79c | [
"MIT"
] | permissive | pauloadaoag/MMDA | da29e7187fd2406e005b9e5babfa881b577abd4d | 5fd69badb2a95d63c57a0eaf9748fc7052e7bbfe | refs/heads/master | 2020-05-29T12:45:24.530782 | 2015-06-28T07:22:09 | 2015-06-28T07:22:09 | 35,107,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | #!/usr/bin/python
import json
import urllib2
import time
import collections
import ConfigParser
import MySQLdb as db
import os
config = ConfigParser.RawConfigParser()
config_filename = os.path.join(os.path.dirname(__file__), 'config.cfg')
config.read(config_filename)
db_host = config.get('mysql', 'host')
db_user = c... | [
"paulo.adaoag@gmail.com"
] | paulo.adaoag@gmail.com |
af23bfe2581b749cad1c35dc75d23d8ece968b41 | e756bfb5290cd336d20f0cf0cde04eec2a35caae | /src/actions/custom/utils/pick_card.py | 9847ba74cd50d6deef5415fb9cb4dde04b52eee6 | [
"MIT"
] | permissive | StetHD/Lonabot | ff1b9113f1e8d6618a271a17752e86679e0c6274 | 615ce2c176607d6da71c84d38644d8aaaf0d3a0b | refs/heads/master | 2021-01-22T10:40:55.989293 | 2016-08-24T10:17:29 | 2016-08-24T10:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | from actions.action_base import ActionBase
from random import choice, randint
class PickCardAction(ActionBase):
def __init__(self):
super().__init__(name="PICK A CARD FROM THE DECK",
keywords=['pick a card (INT)',
'pick (INT) cards?'])
def a... | [
"totufals@hotmail.com"
] | totufals@hotmail.com |
c8b9cc3afa07f5a836da6e16b24aa34987c51fca | 3ea2ea9923ff838add0048f57e3609d48403421c | /code-imports-status.py | 4c457081f6726eb925407e1a276de068bbaa16fe | [] | no_license | ajkavanagh/release-tools | 9a85c2042de01bde13a27f2e0069622d2fd51378 | e7aa78af8f66868f85e5f331516b6fc0bad0f51f | refs/heads/master | 2023-05-11T00:55:27.644836 | 2022-10-18T12:42:24 | 2022-10-18T12:42:24 | 220,310,845 | 0 | 0 | null | 2022-02-24T22:12:41 | 2019-11-07T19:13:51 | Shell | UTF-8 | Python | false | false | 5,740 | py | #!/usr/bin/env python3
import argparse
import os
import glob
import sys
import git
import humanize
import yaml
from datetime import datetime, timedelta
from zoneinfo import ZoneInfo
from launchpadlib.launchpad import Launchpad
__author__ = "Felipe Reyes <felipe.reyes@canonical.com>"
__copyright__ = "Copyright 2022... | [
"felipe.reyes@canonical.com"
] | felipe.reyes@canonical.com |
ab49e989f2bae37ff7ec31c1ea2d57c21e95e39a | e9bcabc640d02dcd5d46f0ecccdd6c62a822ff2f | /Day_96_100/Day-99.py | fd108addde3ae80e96082a9477d6847612ae167f | [
"MIT"
] | permissive | analuisadev/100-Days-Of-Code | 8ef87aca0a3d21a88f23f3e9951ede8d2a2e7a25 | b1dafabc335cd2c3c9b1cecd50597b42d8959d4a | refs/heads/main | 2023-03-24T14:38:43.127753 | 2021-03-16T17:36:13 | 2021-03-16T17:36:13 | 316,727,335 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | """"
Parte 5: Criando Colisões
"""
#Importações necessárias para a criação da janela
import pygame
from pygame.locals import *
from sys import exit
from random import randint
#Inicialização das váriaveis e funções do pygame
pygame.init()
#Criação da tela
width = 640
height = 480
x = width/2
y = height/2
#Criando ... | [
"71856519+analuisadev@users.noreply.github.com"
] | 71856519+analuisadev@users.noreply.github.com |
a40183d91dc5ab741e0f4a91dfb2c05c5b73b66f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02628/s785161467.py | 3f9c154f8635eed3d0cb56f4538868a10a28d93d | [] | 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 | 64 | py | n,k,*p=map(int,open(0).read().split());print(sum(sorted(p)[:k])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ecdf91c2095e7d8ddff72afdfa9208fa7c93d5cd | 911728d1099740b7a6236db4f99df18a11f17fbe | /manage.py | 03a6362786e5c53e0b4c07ea678bce5d396feb9c | [] | no_license | A-deLuna/proyectopa | 2871f7bd9870e5ddc7c84f66cc32810701a3cff4 | 48b11ce37c114a2359635745d213addc3950175c | refs/heads/master | 2021-01-18T02:40:21.496850 | 2015-11-18T04:13:48 | 2015-11-18T04:13:48 | 46,501,565 | 1 | 0 | null | 2015-11-19T15:33:57 | 2015-11-19T15:33:56 | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "proyectopa.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"alonsowilhelmy@hotmail.com"
] | alonsowilhelmy@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.