blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b2292edfd105992c36aa4fca01ce951238696ab | 439add47001009e173418b30cfb820b0e92989ed | /apps/users/urls.py | 03905571d8e624a6de7bd52b2762f03ca522ec43 | [] | no_license | AngelMercado/primeTed | 31b410d7c64da1001f40bae824f7a700f46dcd40 | 7a05d2ea257334cb726d39e80e2209f9cdbf0578 | refs/heads/master | 2021-01-01T17:59:28.360220 | 2017-07-24T17:27:57 | 2017-07-24T17:27:57 | 98,215,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from django.conf.urls import patterns, include, url
from .views import PanelView,RegistrateView,LogOut,LoginView
from apps.home.views import HomeView
urlpatterns = patterns('',
url(r'^$',PanelView.as_view(),name='panel'),
url(r'^login$',LoginView.as_view(),name='login'),
url(r'^registrateGratis$',RegistrateView.as_v... | [
"myjava@outlook.es"
] | myjava@outlook.es |
5f32e4fa86ea444a96fde64ff2b9e4259b98b9f7 | 5002037a61b129ade69f675137cd9e16966518a2 | /apps/gallery/migrations/0007_auto_20190801_1340.py | 1f0c84144319147a27c1d5b54a3f020d9da65176 | [
"Apache-2.0"
] | permissive | mrtaalebi/sitigo | e290f1e952a3c47b9fb356177e5c7ea708dcd708 | cce8b4f5299b58d7365789ead416d4568b443743 | refs/heads/master | 2022-12-11T00:09:07.196902 | 2020-11-19T20:34:58 | 2020-11-19T20:34:58 | 194,496,364 | 0 | 0 | Apache-2.0 | 2019-07-05T14:29:39 | 2019-06-30T09:06:47 | JavaScript | UTF-8 | Python | false | false | 489 | py | # Generated by Django 2.2.3 on 2019-08-01 09:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gallery', '0006_auto_20190801_1338'),
]
operations = [
migrations.AlterField(
model_name='image... | [
"the.doors.are.locked@gmail.com"
] | the.doors.are.locked@gmail.com |
b8b058c24e942784ccc2a2b2ef0ed358711175a1 | 400086979e153dea632339ff23e0a2cce3e40d77 | /starting_kit/code/model.py | eb9f26fa61b3eeba03160dc4ff64357707d068ca | [] | no_license | PhamAlexT/MOSQUITO | 99b1c7c3eb2490ec5c073bbf1da1d5697d4032bf | 6c93a49367c62b9159bfa3291b0dd0de9a4558e4 | refs/heads/master | 2020-12-30T05:19:39.235458 | 2020-05-09T12:37:11 | 2020-05-09T12:37:11 | 238,873,909 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | '''
Sample predictive model.
You must supply at least 4 methods:
- fit: trains the model.
- predict: uses the model to perform predictions.
- save: saves the model.
- load: reloads the model.
'''
import pickle
import numpy as np
from os.path import isfile
from sklearn.base import BaseEstimator
from sklearn.ensemble im... | [
"liliaizri99@gmail.com"
] | liliaizri99@gmail.com |
cf3ee11aac574e0f1e461602f57fd51ffa9135bb | 4fdc839b92bf50d342467d7f453093fa4233af9d | /templateLoader/help/source/conf.py | b2993fe10b57ab82126175183061902aef62b806 | [] | no_license | lpofredc/Qgis-plugin-templateLoader | f8d848192639018d655eb2ca6c8846d608ad2a4d | c3b46eecd5481693315e7d294cd82a513508bdc8 | refs/heads/master | 2020-03-27T14:13:54.580319 | 2017-05-10T13:51:48 | 2017-05-10T13:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,047 | py | # -*- coding: utf-8 -*-
#
# templateloader documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 12 17:11:03 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"amandine.sahl@gmail.com"
] | amandine.sahl@gmail.com |
f66d8eca2d435b8587e7ca130d23d12400ed0211 | 3fbd28e72606e5358328bfe4b99eb0349ca6a54f | /.history/a_Young_Physicist_20210607193741.py | 863458084f547b6a9bf662840ab4c6ff7880d758 | [] | no_license | Tarun1001/codeforces | f0a2ef618fbd45e3cdda3fa961e249248ca56fdb | 576b505d4b8b8652a3f116f32d8d7cda4a6644a1 | refs/heads/master | 2023-05-13T04:50:01.780931 | 2021-06-07T21:35:26 | 2021-06-07T21:35:26 | 374,399,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | n= int(input())
x=[]
for i in range(n):
p=map(int,input().split()))
x.append(p)
a=b=c=0
for i in x:
a+=i[0]
b+=i[1]
c+=i[2]
if a==b==c==0:
print("YES")
else:
print("NO")
| [
"tarunsivasai8@gmail.com"
] | tarunsivasai8@gmail.com |
20076d99682732c095519240df2c951bfe0aae37 | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/startup/tila_OP_SmartDelete.py | cc9ba649d4972b3487b5351419e9a875b4d2745a | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 2,449 | py | import bpy
bl_info = {
"name": "Tila : Smart Delete",
"author": "Tilapiatsu",
"version": (1, 0, 0, 0),
"blender": (2, 80, 0),
"location": "View3D",
"category": "Object",
}
class TILA_SmartDeleteOperator(bpy.types.Operator):
bl_idname = "object.tila_smartdelete"
bl_label = "TILA: Smart... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
2e0c29033010b2955a644b542267326c9713f927 | 0581b4564d1e9683b49d754565c9b6f21a75d387 | /shop/models.py | 428c095c6557bc850101eca14ab7d66adb31631d | [] | no_license | AndreyIvanyutin/Webshop | 0deffcf5094fb86e74c6fe8b2d06d4dd2cdda93d | 8839824a5513b2e8d1c0d7f73f442095474cc8aa | refs/heads/master | 2020-12-14T09:56:12.219190 | 2017-07-08T17:25:29 | 2017-07-08T17:25:29 | 95,473,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,618 | py | from django.contrib.auth.models import User
from django.db import models
# Модель категории
class Category(models.Model):
name = models.CharField(max_length=200, db_index=True)
slug = models.SlugField(max_length=200, db_index=True, unique=True)
image = models.ImageField(upload_to='category', blank=True, n... | [
"andrey.ivanyutin@gmail.com"
] | andrey.ivanyutin@gmail.com |
efdf6baebd3af374b832d92ff380d8150baa87ab | 5b41d2e551982784a1e53e49f12c7b058403bca8 | /venv/Scripts/easy_install-script.py | 1bbb1a2552e96f5fe5ac7d0cb9794956d25349a1 | [] | no_license | TsvetkovEvgenij/HelloWorld | 79b67793bc49e9f1fe717e3dc5ec98f2f9ea58cf | 1fa97bbb2015502c1289828fc36e598fb874d29a | refs/heads/master | 2020-09-23T21:33:43.203083 | 2019-12-03T10:27:07 | 2019-12-03T10:27:07 | 225,592,335 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 469 | py | #!C:\Users\Ковшикова\PycharmProjects\HelloWorld\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"tsvetkov.evgenij@gmail.com"
] | tsvetkov.evgenij@gmail.com |
5570cc0247c6ea3b0cdc3dc2629e40b676e7e7e7 | 02ec15c829f1755fb7981c561a40c8f4a968a028 | /corn/consumption.py | 5e852833107ff9c83d9df7d77a7a7a7763de6f50 | [
"MIT"
] | permissive | UGA-BSAIL/Corn-Segmentation | 0cf2b4beadf99c0f0ecf679264a50892188e6d14 | 79df856e3fc487508e24e9821e5ca49911064c73 | refs/heads/master | 2023-02-19T01:52:48.751927 | 2021-01-17T23:13:57 | 2021-01-17T23:13:57 | 250,403,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,312 | py | # -*- coding: utf-8 -*-
"""
@purpose: This file is used for batch detection of images using all models.
@input: Add all Model paths to "weights" list, and test image directory path "strDirectory".
@output: Masked images along with percent consumption will be saved under output/ directory. A matlab file will be created ... | [
"noreply@github.com"
] | UGA-BSAIL.noreply@github.com |
175fc58cdec9dfa2614265d9e8687f6653571759 | 9ddb76f8bac669e89e2ae0c5de68bef6e81b7dd6 | /GamebotsParser.py | 865a444d3a048ea5f293af25aac7c910f18928bf | [] | no_license | formica-multiuso/ugc | 51598755823c912c9ba0af8fc75fa1c0b26817db | 0aa35de26412bc3855acb2407abafde77a430137 | refs/heads/master | 2016-09-06T16:25:06.158155 | 2013-08-05T10:31:56 | 2013-08-05T10:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import sys
import socket
import threading
import select
class GamebotsParser(threading.Thread):
def __init__(self,socket,name):
threading.Thread.__init__(self)
self.socket = socket
self.name = name
def run(self):
while 1:
rlist, wlist, elist = select.select( [self.socket], [], [] )
self.messageBuffer... | [
"formica@member.fsf.org"
] | formica@member.fsf.org |
2a632ed951bfbd64396511d30034e84b2fb566c2 | 6a1174a7215cfd4c345cc8723cfb9a3bf053b108 | /conditional_image_manipulation/data/preprocess.py | 5b8fe0e726ad94bbe9b499668959e940bd8b6a00 | [
"MIT"
] | permissive | jlezama/disentangling-jacobian | e55e84bafe3c4f41d76e108bcb1dfb9cd6697b1e | c570945055c735a15b9adba093b7c688c7310aad | refs/heads/master | 2021-06-30T03:09:21.393511 | 2020-10-06T14:35:11 | 2020-10-06T14:35:11 | 169,459,503 | 26 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | # Code from FaderNetworks by Facebook
#!/usr/bin/env python
import os
import matplotlib.image as mpimg
import cv2
import numpy as np
import torch
N_IMAGES = 202599
IMG_SIZE = 256
IMG_PATH = 'data/images_%i_%i.pth' % (IMG_SIZE, IMG_SIZE)
ATTR_PATH = 'data/attributes.pth'
def preprocess_images():
if os.path.isf... | [
"jlezama@gmail.com"
] | jlezama@gmail.com |
37c86035036c62d52190241df1ef24d041718a06 | 35212726c5c6d60eb48660068c962eeebea3353f | /utils/options/example.py | b1e24cce6a10d3ffa407ad7a1f94a33b54562f5a | [] | no_license | frankfralick/Charted | 5dfaa8c2e56f239c89d107ed5722d3d30cefa074 | 3ee6053549074da03f8c9881baf5b44d8d1c81ac | refs/heads/master | 2021-01-10T19:37:04.746769 | 2013-06-20T15:43:30 | 2013-06-20T15:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,136 | py | """
Demonstration code used in, or while writing, the documentation.
"""
from options import Options, attrs, Unset
class ClassicShape(object):
name = 'Shapes Rule!'
color = 'purple'
height = 50
width = 50
def __init__(self, name=None, color='white', height=10, width=10):
self.nam... | [
"frankfralick@gmail.com"
] | frankfralick@gmail.com |
fed740e3a86c5c0992ca482c58875e9b14269012 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/learnedmdtinfo/learnedmdtinfo.py | b27f8bb6f94a4485f17effd4ef1a42a2e0f065ba | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 4,210 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
e7af462a10aa2b01aba8dc9f51eaeb8d8f8f1589 | d9df48207e020367a2195bc3381db61c4eee4d9a | /Python/05.plot/01_bar.py | e31d9ea8c39aa23c9988a0b5448584e37556d445 | [] | no_license | surkjin/kosmo41_surkjin | d1872c39784b9c34f3016bf9cc1f347414b61816 | 2a262c4ae44415690034e8ce04e858732aa12c70 | refs/heads/master | 2020-03-21T04:42:09.070599 | 2018-12-12T06:52:33 | 2018-12-12T06:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 11 14:38:07 2018
@author: kosmo30
"""
#!/usr/bin/env python3
import matplotlib.pyplot as plt
plt.style.use('ggplot')
customers = ['ABC','DEF','GHI','JKL','MNO']
customers_index = range(len(customers))
sale_amounts =[127, 90, 201, 111, 232]
fig = plt.figure()
ax1 = fig... | [
"surkjin@gmail.com"
] | surkjin@gmail.com |
27460d30d032a0d1bdc979b8ff2544520320a468 | 240f4b564a53ead9076276258e5f3749fc9efb99 | /yproblem/utils.py | 68982c510dd39d6f80232e5fd0460f3e155bc350 | [
"MIT"
] | permissive | dbojanjac/effective2D | fe7c5fd8d53684274b3ffa28f43723d5d4d8c276 | 8d124a103a5bd8e68d1bc23c4e10fe4d3cd27759 | refs/heads/master | 2023-02-17T12:06:08.483294 | 2020-09-10T17:23:21 | 2020-09-10T17:23:21 | 168,364,828 | 1 | 0 | MIT | 2021-01-13T16:35:32 | 2019-01-30T15:21:40 | GLSL | UTF-8 | Python | false | false | 386 | py | import dolfin as df
import matplotlib.pyplot as plt
def save_field_plots(output_folder, f1, f2):
df.plot(f1)
plt.savefig(output_folder + "/plots/f1.pdf")
df.plot(f2)
plt.savefig(output_folder + "/plots/f2.pdf")
def save_pvd(output_folder, f1, f2):
f = df.File(output_folder + "/PVD/f1.pvd")
f ... | [
"darko.janekovic@fer.hr"
] | darko.janekovic@fer.hr |
66e2289930010858f17f6b47cd882273cfaacfe3 | 2d009dceeb7893d7441e42b1944b7ef317e561ab | /Bisection.py | 7ffb910041ff7d3efd04283482a133810206349c | [] | no_license | dweatherstone/calculusdrw | d22a3abf238aa29657ece79c8227411c38e82709 | 9eaf7f059ed219cdfc1f8968dadafdb2387ea059 | refs/heads/master | 2022-04-18T20:24:02.323455 | 2020-04-20T15:44:05 | 2020-04-20T15:44:05 | 257,258,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,793 | py | from Generalroots import RootStatus, Root
class Bisection(Root):
"""The simplest root finding algorithm is the bisection method. The
algorithm applies to any continuous function on an interval where
the value of the function changes sign from to . The idea is simple:
divide the interval in t... | [
"davidweatherstone@gmail.com"
] | davidweatherstone@gmail.com |
76ba16f3571ee2c45140eede623e32fb986c8881 | 25cab1a6c2d5370be53ba54236f5947e2eb9cb28 | /data/audio/__init__.py | bf7c93a9fb836f15bd0979177f3a783ab03b8c24 | [] | no_license | chenliming-1/tr_apiCode | b9aca368e656ae4651dc9e2a4bfae80ecb59ec95 | 36cd39a9d1dac4df5a4ecc57c1bb391a863c0035 | refs/heads/main | 2023-08-26T22:49:25.086745 | 2021-10-20T10:22:55 | 2021-10-20T10:22:55 | 402,780,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!Date:2019/02/21 17:02
# !@Author:龚远琪
from .uploadaudio import uploadaudio
__all__ = ['uploadaudio'] | [
"gongyq@histudy.com"
] | gongyq@histudy.com |
26f2074d53662e3b75784826d1b3d465efd230e4 | 91397c476203a77c597f80769b9b8ac850a2dedb | /mongodb app/main.py | 2501f63bdb9279a0539f7b97b9511c019bf851c3 | [] | no_license | firdaussalim/Perpustakaan-App | 29cdf2d0963065f6d89901a19a0f258ebc165ac6 | dcf579f725b8ef90a3f6412599b77ac47b7b50a4 | refs/heads/master | 2023-06-06T11:34:05.261274 | 2021-06-25T10:06:23 | 2021-06-25T10:06:23 | 380,193,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from fastapi import FastAPI
from books_route import router as books_router
app = FastAPI()
app.include_router(books_router)
@app.get("/")
async def read_main():
return {"message": "Hello Bigger Applications!"} | [
"firdaus.salim24@gmail.com"
] | firdaus.salim24@gmail.com |
95141bfe82d59cd91b74d094bbf932c628c5c5be | 04d76de80ac3d57c6b7428cfed3d86f85cef3ab5 | /Week-4-Good-Programming-Practices/Problem_Set_4/Problem 2 - Dealing with Hands.py | 89c250947d83b8c8b29ec2b5484cb6273e1737f9 | [] | no_license | ojwills/MIT-6.00.1x-Intro-to-CS-and-Python | 2d1e7bfff3af302ffb7377528e81c5e423dd36aa | e92a8421e8967d4f482868334bdb16e0aaf0fea8 | refs/heads/master | 2022-06-24T19:36:13.595243 | 2020-05-09T16:57:18 | 2020-05-09T16:57:18 | 139,490,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,712 | py | #Problem 2 - Dealing with Hands
#10.0/10.0 points (graded)
#**Please read this problem entirely!!** The majority of this problem consists of learning how to read code, which is an incredibly useful and important skill. At the end, you will implement a short function. Be sure to take your time on this problem - it may... | [
"noreply@github.com"
] | ojwills.noreply@github.com |
964276026958767292e65a825344e9d65be28f17 | aedc785e2666674aa638e09b39f990956e01e546 | /src/testoob/running/processed_helper.py | ce9c99487e3afb02b805b3964c4a4035cd146d2f | [
"Apache-2.0"
] | permissive | callmewilko/testoob | 9be21f2b0d6b6a95cb6a0e14918c55e6e9c1593f | b71b53c15d1b0a736ab40dbad4255e0984968373 | refs/heads/master | 2020-04-04T08:00:35.098595 | 2018-11-05T16:41:10 | 2018-11-05T16:41:10 | 155,756,643 | 0 | 0 | null | 2018-11-01T18:20:24 | 2018-11-01T18:13:15 | Python | UTF-8 | Python | false | false | 1,616 | py | # Testoob, Python Testing Out Of (The) Box
# Copyright (C) 2005-2006 The Testoob Team
#
# 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
#
# Un... | [
""
] | |
544f012ed613c50b88a731844aa93e3c38e64a57 | 79047f578878605269c454b05a43e7fb085dbe48 | /fairseq/playaround.py | 76821ecd0a59bace39acbd2cc08c31c94be313c2 | [
"MIT"
] | permissive | PANhuihuihuihui/NLP | 463249d7a7e374cf157096785363becd5da850eb | 9b00d54ad3e64355f02feeb4f045cacf7fca0bc9 | refs/heads/main | 2023-06-06T03:55:36.571861 | 2021-06-29T06:12:48 | 2021-06-29T06:12:48 | 330,099,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import pandas as pd
import numpy as np
df = pd.read_csv('../input/alldata.csv') | [
"phjhk@connect.hku.hk"
] | phjhk@connect.hku.hk |
d5ccdd17e5f6a90bc2827ddfac825f3f325a9b19 | 11ef04d5323d2972429adc93ca3795f4c9b3ca35 | /blog/views.py | cbf3e15b60fcf326667bb452194741102230c997 | [] | no_license | ZveRuss/my-blog | b976895cc89f2896c39cfb45c2e4bcb13f4a3393 | 46913b368d13d6a724ae25278d3b43d3695c02ca | refs/heads/master | 2020-04-15T16:44:39.905856 | 2019-01-11T08:59:27 | 2019-01-11T08:59:27 | 164,848,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django.shortcuts import render
from .models import Post
from django.utils import timezone
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request, 'blog/post_list.html', {'posts': posts})
votes =... | [
"jack8644@yandex.ru"
] | jack8644@yandex.ru |
ff224afdc46082bd19994708a0dc8289239eb5e4 | 9bc0d33e1c3454393ea74d85b531801d6aa28a55 | /baselines/duet/test_ranking.py | 20ddb3c6a7f5158fc67751c3eb22e468eb15f604 | [
"MIT"
] | permissive | skallumadi/mnsrf_ranking_suggestion | 4c604ce5fc394c6d1d1efebb68af08bd2349c696 | 37cbf55d27e8595b990c0a66449e7bfe3027cc8c | refs/heads/master | 2021-01-25T14:03:23.465568 | 2017-10-09T06:40:10 | 2017-10-09T06:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | ###############################################################################
# Author: Wasi Ahmad
# Project: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/10/wwwfp0192-mitra.pdf
# Date Created: 7/23/2017
#
# File Description: This script evaluates test ranking performance.
##################... | [
"wasiahmad@ucla.edu"
] | wasiahmad@ucla.edu |
954aed060f4c9eddef7723e818e80e360517b911 | 7d6cb605a02dff3031da0bc6a334fdf9f0579412 | /Project/nn trim and preprocessed/muti_layer_nn.py | ec1d62419cb8c0181e7fe1dd5b192f402c5f26f1 | [] | no_license | 18369766918/Matthew_Project | f98fc4aec156e8920521863b25abf805649cf5c5 | 938a5b20865f842ef8695b2a0413ece31766fe00 | refs/heads/master | 2020-12-30T16:58:47.804504 | 2017-05-12T21:16:00 | 2017-05-12T21:16:00 | 91,042,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,203 | py | import tensorflow as tf
import numpy as np
from math import exp
from LoadDataSet import load_and_process_training_Data,load_and_process_test_data
tf.set_random_seed(0)
# Get all pre processed data
# load training data, test data
#train_x,train_y= load_and_process_training_Data('targfeatures_train.txt','nontarg... | [
"matthew@desktop-jo4saar.algomau.auc.ca"
] | matthew@desktop-jo4saar.algomau.auc.ca |
63f0aa6fed60ac58358fb125d683f0e2d987078c | 706d5ff4707793a225f41c469f19a4f1891078da | /代理ip/dao/save2mysql.py | f163a4e4c6a028cfa5735492a16e9fe3c177e889 | [] | no_license | dcc668/PyDemo1.2 | eb5f13a19343e4d9d82fdd7c54f6f45622c5c00e | f883ca1d9bc04673beb9b40d889da74d2aaa5095 | refs/heads/master | 2020-04-15T02:23:16.000157 | 2019-01-30T23:57:41 | 2019-01-30T23:57:41 | 164,312,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | # -*- coding: utf-8 -*-
import pymysql.cursors
import time
from sshtunnel import SSHTunnelForwarder
class Data2MySql():
# Connect to the MySQL database
def __init__(self):
self.server= SSHTunnelForwarder(
('39.108.122.83', 22),
ssh_password="Dcc1234&",
ssh_username=... | [
"1187053696@qq.com"
] | 1187053696@qq.com |
93fe75d32ccb18339ef6ff1b37d1cfbe0b3c0c1e | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/dlymuh001/question2.py | 34d73fd549c0a400164a5301a2e7cc2b38ba5c3b | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | def cat():
lick = input("Did the cat lick it? (yes/no)\n")
if (lick == "yes"):
healthy = input("Is your cat healthy? (yes/no)\n")
if (healthy == "yes"):
return "Eat it"
elif (healthy == "no"):
return "Your call"
elif (lick == "no"):
return "Ea... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c124ea30bcfbbcba93bb65a323ba6e966cc49570 | 4c56f7e21fead7114e175fe621ea45c053345719 | /main.py | 574da7f0d5de04ac527e1b7cd093c7f607b0a1f2 | [] | no_license | M1keShum/ChatBot | 61e698c75f01b462c1fb9f062c849ddbf91b1ca4 | 2df6d4782f008acccff8a90b25300e304b632f46 | refs/heads/master | 2022-12-24T15:06:38.986797 | 2020-10-05T12:58:00 | 2020-10-05T12:58:00 | 301,353,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | import datetime as dt
import requests
DATABASE = {
'Сергей': 'Омск',
'Соня': 'Москва',
'Алексей': 'Калининград',
'Миша': 'Москва',
'Дима': 'Челябинск',
'Алина': 'Красноярск',
'Егор': 'Пермь',
'Коля': 'Красноярск',
'Артём': 'Владивосток',
'Петя': 'Михайловка'
}
UTC_OFFSET = {
... | [
"shumaher.mih@yandex.ru"
] | shumaher.mih@yandex.ru |
17e914aac8110ab19e8448f67594dcc2b1be380c | cee96536d5115a20bd271d7ff5626da496197ac6 | /test_coco.py | ce245527e8ec25e646dbf982ae9dda955ca58fb4 | [] | no_license | YaojwDefgun/new-YOLOv1_PyTorch | 0855a8b0dcf8960057ccf82dcf341f480069a789 | f81b1b033fe2ad9a62bd61ad0bab0f47a4463f42 | refs/heads/master | 2023-01-03T21:28:34.243705 | 2020-10-22T12:21:31 | 2020-10-22T12:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,138 | py | import os
import argparse
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
from data.cocodataset import *
from data import config, BaseTransform, VOCAnnotationTransform, VOCDetection, VOC_ROOT, VOC_CLASSES
import numpy as np
import cv2
import time
from decimal import *
parser = argparse.Argume... | [
"1394571815@qq.com"
] | 1394571815@qq.com |
18cb6da4a1dcaa779b3ef0b93d2dd0af8d8ec46b | e4eabccc6d971289cf13653d1b6f290e39b870ab | /1651-shuffle-string/shuffle-string.py | 806acf60e20549daab09a587a9cd68b2470fb226 | [] | no_license | HEroKuma/leetcode | 128b38a9f559dc9e3f21c86a47ede67ad72f7675 | b3045aaedbe98eddc7e4e518a03a9337a63be716 | refs/heads/master | 2023-01-03T12:12:31.018717 | 2020-11-01T16:56:47 | 2020-11-01T16:56:47 | 260,488,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # Given a string s and an integer array indices of the same length.
#
# The string s will be shuffled such that the character at the ith position moves to indices[i] in the shuffled string.
#
# Return the shuffled string.
#
#
# Example 1:
#
#
# Input: s = "codeleet", indices = [4,5,6,7,0,2,1,3]
# Output: "leetcode"
#... | [
"zx8733520+github@gapp.nthu.edu.tw"
] | zx8733520+github@gapp.nthu.edu.tw |
fd86f23ab21b460ee4463ec6469061d189cf97eb | ed31a4c17c88e39f8ac70f17f8efd057dc334d7e | /1-OOP/test3.py | 6fe4ab8cb0ff4132352025d277f050a36403e143 | [] | no_license | 1216225797/python | e31d4a75f28ef204cac244d8d3e15ca1054fdb07 | a8be63e39740705615000ed7b76e5f8b48c43b41 | refs/heads/master | 2020-04-15T09:10:16.003542 | 2019-07-18T08:19:35 | 2019-07-18T08:19:35 | 164,539,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # 定义一个集合的操作类
# 包括的方法:
# 1.集合元素添加
# 2.集合元素的交集
# 3.集合元素的差集
# 4.集合元素的并集
class SetInfo():
def __init__(self, s):
self.s = s
def add_value(self, v):
self.s.add(v)
return self.s
def intersection_value(self, s2):
# 取交集的另外一种方法是用 & 符号
return self.s.intersection(s2)
# r... | [
"1216225797@qq.com"
] | 1216225797@qq.com |
9876a9af35eb3649f4f3c68253359af8c252f427 | 54df8336b50e8f2d7dbe353f0bc51a2b3489095f | /Front End/Kivy/project8/pro8.py | ca78447ed453ab88b83ef4fdd5468ca01be6e9f2 | [] | no_license | SurendraKumarAratikatla/MyLenovolapCodes1 | 42d5bb7a14bfdf8d773ee60719380ee28ff4947a | 12c56200fcfd3e5229bfeec209fd03b5fc35b823 | refs/heads/master | 2023-06-17T15:44:18.312398 | 2021-07-19T10:28:11 | 2021-07-19T10:28:11 | 387,358,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | from kivy.uix.screenmanager import ScreenManager, Screen
from kivymd.app import MDApp
from kivymd.uix.screen import Screen
from kivymd.uix.textfield import MDTextField
from kivy.lang import Builder
from kivymd.uix.label import MDLabel, MDIcon
from helpers8 import screen_help
from kivymd.uix.button import MDRectangleFla... | [
"suendra.aratikatla1608@gmail.com"
] | suendra.aratikatla1608@gmail.com |
8dcc2947e1a739ffad867c6bf674d20d81008c49 | 0abd812a50ba3330734fcbb0088a74c5ad6735a2 | /python/utf8_for_emojis.py | 695f4f879e0986f5202ac4876ea2878fd0bf97aa | [] | no_license | scMarth/Learning | a914af6f6327454234e5f98dfc8cf95d6d4f8077 | ae696461c2c8edc9944879503cce01d525cf4ce0 | refs/heads/master | 2023-08-03T05:13:03.162533 | 2023-07-28T22:58:51 | 2023-07-28T22:58:51 | 120,689,926 | 2 | 0 | null | 2022-12-11T13:14:07 | 2018-02-08T00:33:42 | JavaScript | UTF-8 | Python | false | false | 3,984 | py | # convert json to csv
import arcpy, os, shutil, numpy, json, codecs
fields = {
'request' : [ \
'id', \
'master', \
'addDate', \
'addDateUnix', \
'lastAction', \
'lastActionUnix', \
'dept', \
'displayDate', \
'displayLastAction', \
'st... | [
"vlantaca@gmail.com"
] | vlantaca@gmail.com |
3a1d3308126fb1c080d42123898ce41d4a3cc0db | 9e49e30b70de98649149dafb711447ba52262d33 | /recommandation/forms/profileForm.py | a62ce88bb861cea5e7f6190dac7f90caf1f5bc42 | [] | no_license | EasyProjectGTID/Give-me-a-movie | 30cf5fbd5c6cdc76381a0a19fe009442abca1d13 | 0fa0f0a5d4b696d48d79c13727e69fd8b104ef05 | refs/heads/master | 2020-04-07T18:04:34.099339 | 2019-06-10T14:56:28 | 2019-06-10T14:56:28 | 158,595,866 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django import forms
class ProfilForm(forms.Form):
"""
Pour la page de login
"""
username = forms.CharField(
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Compte utilisateur'}))
email = forms.EmailField(
widget=forms.TextInput(attrs={'class': "form-control", 'type': "text", 'pla... | [
"hhoutmann@gmail.com"
] | hhoutmann@gmail.com |
1c9e3b879141282edd5569d79e16594bb83d4f29 | f51ac19ce4d1df15eba02c4b3481533087d5ef9e | /day03/xiaohuar/start.py | 06058cbe787a1bb3530230ff1fa09be09169f548 | [] | no_license | disenQF/xpy903_scrapy | c9e0818f4ad08614f933ec800d680439e3f22ea6 | 7fd1f89f2cbf046b59774071c48801dfc3c5b54d | refs/heads/master | 2022-08-09T13:53:10.104037 | 2019-09-27T09:06:15 | 2019-09-27T09:06:15 | 210,261,888 | 1 | 0 | null | 2022-07-29T22:35:50 | 2019-09-23T04:05:10 | Python | UTF-8 | Python | false | false | 156 | py | #!/usr/bin/python3
# coding: utf-8
from scrapy import cmdline
if __name__ == '__main__':
cmdline.execute(['scrapy', 'crawl', 'hua', '-o', 'hua.json']) | [
"610039018@qq.com"
] | 610039018@qq.com |
72b4b3a87f62dba1dfc842f832c5cdb8caf9ab99 | b68723013bdd990176625b9e4e5c0a61a89c1ce6 | /photoenv/lib/python3.5/types.py | 71566f81e684dcdbeb0c3e20ef4d235deadf3e64 | [] | no_license | TZhouEnigma/InstagramClone | 00ca37a1dc8212fb53ab978486d4d4357cc57118 | 4b3ae3381de54a969832fdb2dec14b82afcb591e | refs/heads/master | 2021-01-23T01:26:21.257975 | 2017-05-10T19:01:18 | 2017-05-10T19:01:18 | 85,908,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | /Users/chuxiangzhou/anaconda/lib/python3.5/types.py | [
"chuxiangzhou@CHUXIANGs-MacBook.local"
] | chuxiangzhou@CHUXIANGs-MacBook.local |
8c58420b17067a043d83a13e81e8f3ba80e49f63 | c12b491e9a5c855a1fe835acdbc86a3ee2062d88 | /clean_conllu.py | 9bcf3e859f1eaf0198d898825f38d32a1b5b2849 | [] | no_license | ikwattro/corenlp-swedish-depparse-model | fd8def78a8e60b8d77c6bcc0bed2e641136a95f8 | fd1629ad486d15fa08e21cabb4d0a21330475f93 | refs/heads/master | 2020-04-24T12:23:27.665258 | 2017-11-22T18:13:32 | 2017-11-22T18:13:32 | 171,953,162 | 1 | 0 | null | 2019-02-21T22:10:41 | 2019-02-21T22:10:41 | null | UTF-8 | Python | false | false | 210 | py | # clean conll files
with open('sv-ud-dev.conllu') as f:
content = f.readlines()
content = [x for x in content if not x.startswith('#')]
with open('swedish-dev.conllu', 'w') as p:
p.write("".join(content)) | [
"andreas.klintberg@meltwater.com"
] | andreas.klintberg@meltwater.com |
2b8f12babeff6dcb5935f88b5bbc52db63205ad7 | 3b1a27c72024dc6ac932b39df28d2fb3a6e26a5b | /22_sum_floats/sum_floats.py | ac5da9e7fe7bc8d0012faf56b9f8f6f6c2894334 | [] | no_license | petermoyano/py_ds | 423f95dd5ae308343e52db9a7178936062c8ce36 | 3b1ff9880a8a1c08ee1061c2f239be31c167a0fc | refs/heads/master | 2023-07-18T05:43:07.387039 | 2021-09-07T23:21:58 | 2021-09-07T23:21:58 | 402,805,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | def sum_floats(nums):
"""Return sum of floating point numbers in nums.
>>> sum_floats([1.5, 2.4, 'awesome', [], 1])
3.9
>>> sum_floats([1, 2, 3])
0
"""
# hint: to find out if something is a float, you should use the
# "isinstance" function --- research how ... | [
"pedromoyano454@gmail.com"
] | pedromoyano454@gmail.com |
89e6683e391279884270bae480df6b3a56146ac5 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /comisr/lib/model.py | b3f2d2423bbd3b56d18ce8e090b7122e47b40d2c | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 4,846 | py | # coding=utf-8
# Copyright 2023 The Google Research 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0e5f8dad633573efa423a07619bc2d96e0e6736b | 340e25f879c0f96d9be68882bf986e302c762c9b | /compsocsite/polls/record.py | 1e1975ceda6f28202b364230fe581a1cde9420c3 | [
"MIT"
] | permissive | lengzi/opra | 5a9077a2d7d9f30d5b96f05af8270f7d3f6a54e6 | db4ee82dde5b95a5db4ea76281154be0cec7dfa5 | refs/heads/master | 2020-03-29T22:35:00.919465 | 2018-09-19T01:04:33 | 2018-09-19T01:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,200 | py | import datetime
import os
import csv
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponseRedirect, HttpResponse, HttpRequest, JsonResponse
from django.core.urlresolvers import reverse
from django.views import generic
from django.core.files import File
from .models impor... | [
"tomjmwang@yahoo.com"
] | tomjmwang@yahoo.com |
6273169a24e167c2d6402bebc827c0e25f504dd3 | 82a736afc90d728530b5fdaf8f628e892b8f888c | /flash/pointcloud/detection/model.py | 155126d78555c4bc313965de8b4ef3a440bca26b | [
"Apache-2.0"
] | permissive | mahdipira/lightning-flash | e3b725c01e37de1a933b627017a3077400540bc7 | 3b88e74e54cf8269e41859e3d218973d9e1e9979 | refs/heads/master | 2023-08-11T00:33:00.510246 | 2021-09-14T22:51:38 | 2021-09-14T22:51:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,765 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | mahdipira.noreply@github.com |
2847b874f3e1df1652fe93cb406913574a4bd82c | e7bfe1de1cb66bf82d1723896eb7a9fb9fc843ac | /cesar.py | 62401cbc475f87a05ef3ae21749e3e29f3a68e9a | [] | no_license | Derekas/module1_p2 | 14ea6e648a2189b05592a6053b2d91c7cc3d4631 | af8f6a8b44393a59bc87dc80905c511cc4607c69 | refs/heads/master | 2023-09-02T10:17:22.757017 | 2021-11-14T18:00:30 | 2021-11-14T18:00:30 | 428,001,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from typing import Text
def encrypt(text,s):
text=text.upper()
result=""
for i in text:
if i.isspace():
result+=""
continue
result+= text[(text.index(i)+shift)%len(text)]
return result
text=input("Introduce un texto")
shift=int(input("Introduce el shift"))
... | [
"derekinformatica619@gmail.com"
] | derekinformatica619@gmail.com |
b46b95696facf08a3eaebf1ce39922c26140cb50 | f2b5ed13116eff2eecef88e941e2498585040fc2 | /WEEK4/reschedule_exams/submit_pass!.py | 3beb44193ced0705cbbeebc00976acfd4fa2e82b | [] | no_license | sinhalok/Coursera-Advanced-Algorithms-and-Complexity | 74cf0a6ee27a883e5fcfeedab3c01e5269dc63f6 | ae66df98cfa1aae772ac03e71c7022dedd96a59d | refs/heads/master | 2020-04-29T02:56:36.468546 | 2019-03-15T09:55:03 | 2019-03-15T09:55:03 | 175,789,466 | 12 | 9 | null | null | null | null | UTF-8 | Python | false | false | 7,717 | py | # python3
from enum import Enum
import collections
import sys
import threading
sys.setrecursionlimit(10 ** 6) # max depth of recursion
threading.stack_size(2 ** 26) # new thread will get stack of such size
class Ordered_Sets(collections.MutableSet):
def __init__( self, iterable=None ):
self.end = end ... | [
"aloksinha422@gmail.com"
] | aloksinha422@gmail.com |
faf3b5ffc73b80f5cb5728f55014305a2b80da4e | 738aedb8035e49951f83ce3f4291eee149cad5fb | /OB Damage - Li-Hopfield Model/All the code/SLURM setup files/dir_setup_OI-flat_10_2D.py | 2e83d567ac9f3004eca045a3289376859981b1dd | [] | no_license | jkberry07/OB_PD_Model | fb453303bfa64c1a3a43c7d81d2b5373950e1f4d | 1ce30205354dc30cab4673e406988bfa76390238 | refs/heads/master | 2022-11-21T09:39:09.692654 | 2020-07-25T23:25:11 | 2020-07-25T23:25:11 | 282,358,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 23 16:09:06 2019
@author: wmmjk
"""
import os
f = open('dir_setup_OI-flat_10_2D.sh','w+')
here = os.path.dirname(os.path.realpath(__file__))
subdir1 = 'OI-flat_10_2D'
f.write('mkdir '+subdir1+'\n')
f.write('cp OI-flat_10_2D.py '\
+'H0_1... | [
"noreply@github.com"
] | jkberry07.noreply@github.com |
92149e98faa52eebca609f4efe75225452feba29 | 49b1671e85fe800d89faa15ed1499014c0b75fad | /toggle.py | a4bc209049b3575f06190ec75f047daf11c73377 | [] | no_license | NBPat/mightyC | 17f53fb22704b50f8a89df3fc5c254cb91c1d0fe | ace8218eb5f87fd9a3bd577c2a0f694b02eeb826 | refs/heads/master | 2021-02-28T08:37:37.046859 | 2020-03-09T15:41:15 | 2020-03-09T15:41:15 | 245,678,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | # toggle p0
from microbit import *
while True:
pin0.write_digital(0)
sleep(500)
pin0.write_digital(1)
sleep(500)
| [
"noreply@github.com"
] | NBPat.noreply@github.com |
d7eee39604fef2837377fb81e7d77c58c31765e1 | 635596e8f165717d5b8d0d83b3c434b24eb5629d | /tenkou.py | 7c1e85a0a888cad03474fbf0ef2db84cd857e850 | [
"MIT"
] | permissive | aaray6/bgm_tenkou | 58733ade90148a6c74ff5ef534a55bb04ee6306c | 8b01d98c5ad5479d931ee0096498062ad0dbbc8b | refs/heads/master | 2022-07-19T16:05:40.914407 | 2020-05-23T09:28:55 | 2020-05-23T09:28:55 | 266,247,912 | 0 | 0 | MIT | 2020-05-23T02:27:23 | 2020-05-23T02:27:22 | null | UTF-8 | Python | false | false | 14,139 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# version 0.0.2
import urllib.request, urllib.parse, urllib.error
import argparse, re, os, sys, copy
from bs4 import BeautifulSoup
def ptStrLiterally(str):
for i in str:
try:
print(i, end='')
except UnicodeEncodeError as e:
pa... | [
"aaray21cn@gmail.com"
] | aaray21cn@gmail.com |
8c28fb51601157fcd64fda227a3c3f719d5b5f4d | 69814c9c3881855e6a8981eb7fc3d869549d3cd0 | /sedfitter/sed/cube.py | 3eeab29c13a149243e1fb9efb4b41d7ba633b166 | [
"BSD-2-Clause"
] | permissive | xueyingtianhua/sedfitter | 83c2f94ba0fdba0af56ccc8a4ad6fd92b62085ab | ec8722ec423ac684e4930fe23a98cd7b2d5b9f50 | refs/heads/master | 2021-01-13T03:29:23.032572 | 2016-07-31T21:27:58 | 2016-07-31T21:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,222 | py | import abc
import numpy as np
from astropy import units as u
from astropy.io import fits
from astropy.extern import six
from astropy.table import Table
from ..utils.validator import validate_scalar, validate_array
from .helpers import parse_unit_safe, table_to_hdu, assert_allclose_quantity
__all__ = ['SEDCube', 'Po... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
0df5df687aaa9a0594fde9bd2120516095951eea | 94ce20de2c4fb82d5295c005541766400d64a8e9 | /cli/raft-tools/tools/ZAP/run.py | 8e2b6bd08dc365f1154e0dfd96d281f91ec2d02c | [
"LGPL-2.1-or-later",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | hookjr/rest-api-fuzz-testing | 27da0baab26472ede83609c6d3319a353dc9bf3a | d549b12f7213326e10d4cf5340c93d7803b0c839 | refs/heads/main | 2023-02-02T04:23:32.878185 | 2020-12-14T18:59:23 | 2020-12-14T18:59:23 | 318,024,547 | 0 | 0 | MIT | 2020-12-03T00:09:42 | 2020-12-03T00:02:58 | null | UTF-8 | Python | false | false | 2,068 | py | import json
import os
import subprocess
import sys
work_directory = os.environ['RAFT_WORK_DIRECTORY']
run_directory = os.environ['RAFT_TOOL_RUN_DIRECTORY']
def auth_token(init):
with open(os.path.join(work_directory, "task-config.json"), 'r') as task_config:
config = json.load(task_config)
auth_co... | [
"noreply@github.com"
] | hookjr.noreply@github.com |
09228ff571e986a20c1511f785929ab92911067b | 53e44e08fe946dc9c648e570ba4fc7f0024b9dac | /apps/mascota/views.py | b4902ed20653e87d6e8a18ab58555f159f92a94c | [] | no_license | JPablo1997/Refugio_Django | 19079c30324aacb517132b05079336bf697d19a7 | 78044ae3249cf9ecccb642afbee6da821eda8a28 | refs/heads/master | 2021-05-01T15:03:12.817638 | 2018-02-13T19:50:23 | 2018-02-13T19:50:23 | 121,028,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.core import serializers
from apps.mascota.forms import MascotaForm
from apps.mascota.models import Mascota
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
# ... | [
"dc16009@ues.edu.sv"
] | dc16009@ues.edu.sv |
dd9ab3be8fc316483e7dbfc10219138f8cc4d984 | 2c41f838c5d5d43776a7520bc63b7b796f1618df | /is_prime/solution.py | 031c73627e158b20cf684a69ce1b81f13416a86f | [] | no_license | EmanuelStoyanov/homework1 | f1c4f849cb80ca1acb5c88bc7746747e8bf6398e | c693fcfb892fb126dbb40516c4f2711501c924bc | refs/heads/master | 2021-01-10T19:02:35.604292 | 2014-03-28T13:02:12 | 2014-03-28T13:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | def is_prime(n):
return sum_of_divisors(abs(n)) == abs(n) + 1
def sum_of_divisors(n):
return sum (divisors(n))
def divisors(n):
if n != 1:
arr = [1, n]
else:
return [1]
for i in range(2,n):
if n % i == 0:
arr.append(i)
return arr | [
"emanuel.stoyanov@gmail.com"
] | emanuel.stoyanov@gmail.com |
234f2f9400de6d64a16b1c44c642412687a10389 | 75da525ace4ee9d994f37b25405cbf878523eb55 | /RLForTrade.py | f9752deb3a03a7232f89a44670188821e20d2bce | [] | no_license | wuter/RLTrading | 06c4a09cd9bb23cb2d0f30c0b53639405e149d1e | 1141059061804486e83498dd634edef9259089df | refs/heads/master | 2020-03-21T04:29:24.964724 | 2018-06-21T02:50:20 | 2018-06-21T02:50:20 | 138,110,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,680 | py | import numpy as np
import tensorflow as tf
import pandas as pd
from sklearn.preprocessing import StandardScaler
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from Market import Market
np.random.seed(5)
tf.set_random_seed(5) # reproducible
# Superparameters
OUTPUT_GRAPH = False
MAX_... | [
"noreply@github.com"
] | wuter.noreply@github.com |
8685c3131ab6f05892fa4bb1a02fb52814f79a92 | 5332ecf5b6bed264bc8da450c14157f84aa5e5c8 | /server/models/user.py | aa63d51f62ab5b95a78fd99a8475ec51079acd59 | [] | no_license | marukosu/raspi-login-checker-server | 69878e9c863c0a3fe0d399c691c167cdb006600b | 14f6c0b0cb790b55dd51189bfd7f8f2747544ca4 | refs/heads/master | 2020-03-09T09:37:20.510592 | 2018-04-22T08:12:52 | 2018-04-22T08:12:52 | 128,716,909 | 1 | 1 | null | 2018-04-22T08:12:53 | 2018-04-09T05:02:17 | Python | UTF-8 | Python | false | false | 1,010 | py | from datetime import datetime
from server import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), index=True, nullable=False, unique=True)
cards = db.relationship('Card', backref='user', lazy=True)
logins = db.relat... | [
"ozeki.haru@gmail.com"
] | ozeki.haru@gmail.com |
721ccccfd423803b244512a2e06e67214b3cbb31 | cdc770bb64d90010f503df093436403395d54896 | /python/sklearn/metrics/ranking.py | 48344a767436b07f5dc58d36dda4da57387d280a | [
"MIT"
] | permissive | Decoder996/entity_resolution | 5a43f5f5f95ba7cd281ce9489e6e5f9bee1694ce | 4fe98701422bbceebc0dfbfc2733add2b9695f2a | refs/heads/master | 2023-05-24T20:57:29.800001 | 2015-10-02T18:49:49 | 2015-10-02T18:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,114 | py | """Metrics to assess performance on classification task given scores
Functions named as ``*_score`` return a scalar value to maximize: the higher
the better
Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize:
the lower the better
"""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.... | [
"barnes.matt.j@gmail.com"
] | barnes.matt.j@gmail.com |
59ca4aee3ddbe2bc9a8b423ae134935be38ca795 | b84ad47aac690d4f97b9948923785bb70ee9f8c1 | /settings.py | 6713816e3821d41a80ac35cd018ae987ad1cd75d | [] | no_license | shadabahmad01/alien_game | ec84b6c133f909e6304fd16272b0f5bab5bb2bdb | 616e695e4c8887082f8a47ac5bd2af7f6eb031d1 | refs/heads/main | 2023-06-27T04:42:38.138066 | 2021-07-22T18:00:33 | 2021-07-22T18:00:33 | 388,549,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py |
class Settings:
"""class to store all settings for alien invasion."""
def __init__(self):
"""initialize game settings"""
# screen settings.
self.screen_width = 1400
self.screen_height = 800
self.bg_color = (230,230,230)
# ship settings.
self.ship_limit = 3
# bullet settings.
self.... | [
"noreply@github.com"
] | shadabahmad01.noreply@github.com |
7f86da3f8807c7398288210caa1a6b17f88d9d2d | 474afaa013b85973039d5f158921c419538193b3 | /obselete/8healthDebug.py | 531384b6324ce9bf436125d0a0366f9dfd77324e | [] | no_license | killeronline/Madagaskar | db04b07e78d728e55f4264a8ae247cd41e793bc1 | 6683248824fb4526a57baff930ad158702fd2b4a | refs/heads/master | 2020-05-18T07:25:52.553129 | 2019-05-28T20:48:17 | 2019-05-28T20:48:17 | 184,264,565 | 1 | 0 | null | 2019-05-02T22:36:11 | 2019-04-30T13:12:39 | Python | UTF-8 | Python | false | false | 1,540 | py | # Load libraries
import os
import datetime
import pandas as pd
def get_health(filename):
df = pd.read_csv(filename)
volumeColumnName = 'No. of Shares'
opriceColumnName = 'Open'
hpriceColumnName = 'High'
lpriceColumnName = 'Low'
cpriceColumnName = 'Close'
prices = [opriceColumnNa... | [
"KILLA"
] | KILLA |
b8adf479dd7dc6ab41347cb682ab8c219f906b4c | e98500bcaa07f164126c4c819e519ecb67b63049 | /scripts/python/travis-before-install.py | 2b96d96945d68acf49ba9ba29828911e72b345b1 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | drodri/core | 6cc05f6af4f725d19b1084bceeba42b3a7a267a8 | ffc52c9c2049546828b20440f176c36cb73e6be6 | refs/heads/master | 2021-01-20T18:58:05.981071 | 2015-03-12T14:49:49 | 2015-03-12T14:49:49 | 32,041,598 | 0 | 0 | null | 2015-03-11T21:15:30 | 2015-03-11T21:15:30 | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from utility import make_executable
from utility import DownloadError
from utility import EnvironError
from utility import download
from utility import execute
from utility import getenv
from utility import which
from utility import ex... | [
"tres.walsh@mnmlstc.com"
] | tres.walsh@mnmlstc.com |
aed3eadc0c76d956c2c586e2a70d16eaec9aee78 | f36ea11d9055c4016f405ce4e59e63509a0200e7 | /FinancialBot/views.py | 4ea61f9985d100967fe78d69c8e3975582e78bd2 | [] | no_license | EricHu214/FinancialBot | 20136fbf1f59e1b5e700d63245adfa497cb90f73 | 9788d443b6b2b3c5335b2d19a4c8fc3b8f80363d | refs/heads/master | 2021-01-20T06:17:45.347025 | 2017-08-26T17:23:30 | 2017-08-26T17:23:30 | 101,499,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """
Routes and views for the flask application.
"""
from datetime import datetime
from flask import render_template
from FinancialBot import app
@app.route('/')
@app.route('/home')
def home():
"""Renders the home page."""
return render_template(
'index.html',
title='Home Page',
year=da... | [
"Eric.Hu214@outlook.com"
] | Eric.Hu214@outlook.com |
0109518040f1eac4f295b8006aa89a09b6316e58 | 57f1ceb6d03771ab7ce3ef50e423d69c97321e89 | /Top10StockBundle.py | 4f22b42c2fc3cdbfecc5d325008b19f37e97df2b | [] | no_license | SamSklar/EarningsCallTranscriptAlgo | 7f0a8d599780e297e392b47960c0f8923c50735e | 551eec0321958cc9f6407ff9b04f56e65d0478e1 | refs/heads/master | 2021-08-24T04:46:48.709751 | 2017-12-08T03:18:47 | 2017-12-08T03:18:47 | 113,525,491 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | """
This is a template algorithm on Quantopian for you to adapt and fill in.
"""
from quantopian.algorithm import attach_pipeline, pipeline_output
from quantopian.pipeline import Pipeline
from quantopian.pipeline.data.builtin import USEquityPricing
from quantopian.pipeline.factors import AverageDollarVolume
from quanto... | [
"noreply@github.com"
] | SamSklar.noreply@github.com |
61d10d9f7cf9442710afea9bf8178f84460771bd | 93935f5d37641fa5b76ff709188a5a2fc5c908d7 | /test.py | 1f5fcfd87656659d7140f1a1aa129eb3debf5433 | [] | no_license | br4bit/TDP_Queue | d32812edee004535b06f4f11793cfdfc4832d2e4 | f13621c62578b543846917e69fd3ce588252c163 | refs/heads/master | 2021-07-08T18:11:34.174147 | 2017-10-07T22:24:39 | 2017-10-07T22:24:39 | 106,134,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from Collections.ArrayQueue import ArrayQueue
f = ArrayQueue()
f.enqueue(1)
f.enqueue(2)
f.enqueue(3)
f.enqueue(4)
f.enqueue(5)
f.enqueue(6)
f.dequeue()
f.dequeue()
f.dequeue()
f.dequeue()
f.dequeue()
f.dequeue()
f.enqueue(6)
f.enqueue(5)
f.enqueue(4)
print(len(f))
print(f)
print(f._front)
| [
"luxifero@live.it"
] | luxifero@live.it |
bb6067cb36c939472c10f118b81728af08833449 | fca51db47e2cea902a96bfee11275e2b5cb50978 | /dendrobium_inference.py | 4266ddaaebbe5edaaef15252d3faf44db6f8953a | [] | no_license | LeonHardt427/dendrobium_tensorflow | 5cbf97af3a721a39996db56432dd86e17bd69728 | e289aa178dcb5a7aa43b355352355fda33993e63 | refs/heads/master | 2021-08-09T03:04:05.702945 | 2017-11-12T02:36:19 | 2017-11-12T02:36:19 | 108,624,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/10/27 上午10:01
# @Author : LeonHardt
# @File : dendrobium_inference.py
import tensorflow as tf
# Set parameter
INPUT_NODE = 784
OUTPUT_NODE = 10
LAYER1_NODE = 500
# using 'tf.get_variable' to get variable.
def get_weight_variable(shape, regularizer)... | [
"leonhardt427@126.com"
] | leonhardt427@126.com |
03247b25e26aeb726a52530199ae1a3d33719eff | 9f457c291a17e8dc6e43b26cdcb6cc18d128ad81 | /print_array_in_pendulum_form.py | f82d2a10b17d435a1165d232fb4f1d8e97904d04 | [] | no_license | agvaibhav/arrays | 2d19254bf3983602644dd3978721ade4ca3981d5 | 857857ccca04ce6384330a7fd2ef529b8430d5f6 | refs/heads/master | 2020-03-26T03:10:43.912686 | 2019-08-07T05:04:21 | 2019-08-07T05:04:21 | 144,442,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | '''
ques
Write a program to input a list of n integers in an array and arrange them
in a way similar to the to-and-fro movement of a Pendulum.
The minimum element out of the list of integers, must come
in center position of array. If there are even elements,
then minimum element should be moved to (n-1)/2 ind... | [
"noreply@github.com"
] | agvaibhav.noreply@github.com |
8acd740c72e0419c3de95ec78794587b7345aea1 | e6ab93f7f58ba12318959b4f415c9f042e1e9bec | /Test3/test3-3-3.py | 5665c7529b884146f945c074c2415b627f3e849b | [] | no_license | dlvguo/SklearnTests | 3281c961faece67012b9e0fed652a64637e248a4 | 785ec9259b8d0a2bd962b8b0df41e44a06ca7c2d | refs/heads/master | 2022-11-15T12:05:37.405873 | 2020-07-10T05:42:54 | 2020-07-10T05:42:54 | 272,647,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | import numpy as np
import time
from sklearn import preprocessing
from sklearn.feature_selection import VarianceThreshold
from sklearn.metrics import silhouette_score
from Test3.S_Dbw import S_Dbw
from sklearn.cluster import AgglomerativeClustering
# 实验3 第(3)步骤3 使用层次聚类计算
mobilePath = "../实验数据/移动客户数据表.tsv"
np.set_print... | [
"dlvguo@qq.com"
] | dlvguo@qq.com |
06d28ed6d203c6790e5e808bd8033beb090b6c7d | 9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1 | /examples/mcscf/31-cr2_scan/cr2-scan.py | cd23eb7028ad7e19891993db6645713ad6ae6e11 | [
"Apache-2.0"
] | permissive | sunqm/pyscf | 566bc2447d8072cff442d143891c12e6414de01c | dd179a802f0a35e72d8522503172f16977c8d974 | refs/heads/master | 2023-08-15T18:09:58.195953 | 2023-03-27T21:02:03 | 2023-03-27T21:02:03 | 159,149,096 | 80 | 26 | Apache-2.0 | 2022-02-05T00:19:24 | 2018-11-26T10:10:23 | Python | UTF-8 | Python | false | false | 2,329 | py | #!/usr/bin/env python
'''
Scan Cr2 molecule singlet state dissociation curve.
Simliar tthe example mcscf/30-hf_scan, we need to control the CASSCF initial
guess using functions project_init_guess and sort_mo. In this example,
sort_mo function is replaced by the symmetry-adapted version
``sort_mo_by_irrep``.
'''
imp... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
f239f2736f85aeccab8749fde1c583519836fcc6 | 95d33d03cdf8414ad5f76c6d5be28f9ea40998bb | /06-dynamic-programming-and-recursion/memoization.py | c54413fcfdcdb81ee5fe99e82422a2bf22376797 | [] | no_license | dominiquecuevas/dominiquecuevas | b93326f8cc9f720aa61b7ee4004dde56706e4551 | 10674e86ed50693fbbb3371a52dfa83f45bf088e | refs/heads/master | 2021-05-21T08:57:37.439066 | 2020-04-22T20:26:17 | 2020-04-22T20:26:17 | 252,626,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | class Fibber:
def __init__(self):
self.memo = {}
def fib(self, n):
if n == 0 or n == 1:
return n
if n in self.memo:
return self.memo[n]
result = self.fib(n-1) + self.fib(n-2)
self.memo[n] = result
print('memo:', self.memo)
return re... | [
"cuevasdominique@gmail.com"
] | cuevasdominique@gmail.com |
c7f104841f354af7596f72b7daaf1092f49b6f9f | 5b0ad97cb6924e487c0921965dacb3dd18f19a1a | /src/FourierTransformation/src/utils.py | 1f58c19f5b54c36b5d15affd8b83a12457005f7f | [] | no_license | sinoyou/ImageProcess_and_PatternRecognition | bcde442b00a86f3dcb6c49f5f1e2857b48c41ad5 | dffee2c21ac789066a3f4ceddf69172e417f84e7 | refs/heads/master | 2023-01-28T04:24:10.700353 | 2020-11-30T05:35:55 | 2020-11-30T05:35:55 | 247,293,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import numpy as np
def mirror(array):
"""
Apply mirror transform to 2D array.
The array will be equally split to 4 parts by vertically and horizontally.
Then in each part, up-down and left-right flip will applied.
Finally, 4 parts will be concat as original order.
Application Area: frequency ... | [
"youzn99@qq.com"
] | youzn99@qq.com |
c82b4cc15838b566a9c92ee0f9e2ac5b48dae623 | 380dfac9b68ef8663db5a9d1b30fc75636dec3d3 | /billforward/apis/roles_api.py | de864151b5300fd22c12648fd85530ca1110525f | [
"Apache-2.0"
] | permissive | billforward/bf-python | d2f549e0c465d0dc78152b54413cac4216025a64 | d2b812329ca3ed1fd94364d7f46f69ad74665596 | refs/heads/master | 2021-12-13T22:10:16.658546 | 2018-06-19T14:44:45 | 2018-06-19T14:44:45 | 63,268,011 | 2 | 1 | Apache-2.0 | 2021-12-06T12:59:41 | 2016-07-13T17:57:37 | Python | UTF-8 | Python | false | false | 30,334 | py | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | [
"alexander.birch@billforward.net"
] | alexander.birch@billforward.net |
83c234db09049cf8803edc2703c52326a9257c03 | 6023d9958b0d03ba905d8052f6fff8bbeb43bd8a | /ch01Sort/HeapSort.py | 1b082d94d87602575ef3fb6b41c4f1218c59cd65 | [] | no_license | EchoLLLiu/Basic_Algorithm | bd9a4f20803b951420411b2acdfa701cd73e1aa9 | f6acb797a9ae3b23dddd8a49bec4478f1a4cd6c4 | refs/heads/master | 2020-03-19T20:10:39.492699 | 2018-06-11T07:39:12 | 2018-06-11T07:39:12 | 136,890,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | # -*- coding:utf-8 -*-
__author__ = 'LY'
__time__ = '2018/6/11'
# 堆排(完全二叉树:直接利用列表)
# (1)从最后一个非叶子节点开始,构建初始大根堆:根比孩子大
# (2)将第一个元素(最大)与最后一个元素交换,此时[0,...,n-1]为无序,[n]为有序,对[0,...,n-1]进行(1)
# 再将第一个元素与无序列表中最后一个交换,此时[0,...,n-2]无序,[n-1,n]有序,对[0,...,n-2]进行(2),以此类推
class HeapSort:
'''堆排类'''
def Max_Heapify(self, heap, hea... | [
"echoliu61@foxmail.com"
] | echoliu61@foxmail.com |
8022f12b6bdc80820f79b896a18b71ea2aca5b72 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03844/s016048975.py | 61fa23d2d0067a90a0b12e2ac15e028d6958db57 | [] | 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 | 85 | py | a,b,c = input().split()
print(int(a) + int(c)) if b =="+" else print(int(a) - int(c)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eac538b8e2eeb2e15edebc2f6e8215ce91a5b457 | d682f7ada09b47205af2d633cdcd2e301bec4f02 | /web2py/applications/dctools/controllers/appadmin.py | 86282a23097ccfd8a2a3f9bd32738de6244638e9 | [] | no_license | Arsylk/destiny-child-forum | f15ef9f8cf7d151bab41e352983d012e2bd2dc49 | 35398a0f83175b1eed97c508c999adfa37685b45 | refs/heads/master | 2021-06-29T20:51:08.871312 | 2020-12-01T12:59:49 | 2020-12-01T12:59:49 | 186,180,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,938 | py | # -*- coding: utf-8 -*-
# ##########################################################
# ## make sure administrator is on localhost
# ###########################################################
import os
import socket
import datetime
import copy
import gluon.contenttype
import gluon.fileutils
from gluon._compat import ... | [
"darkangelice6@gmail.com"
] | darkangelice6@gmail.com |
49fa812649395ceaca60266b1cbbfc310e8da3bf | cd839f096fff4d14709841de4ceb25bb38224075 | /vertualizor/vertualizor/rest_api/dev.py | 309c8c408e044cae1f991eeb74da55088db7a118 | [] | no_license | aliscie/Tweet-clone-Tweetme-2 | 2506f92d9b10f17f26594d524395f569c7e79b82 | b8c9c8d66c8de3daf33d43d8e8236fc4afecdd29 | refs/heads/master | 2023-01-31T01:12:56.647684 | 2020-12-15T07:13:20 | 2020-12-15T07:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from django.contrib.auth import get_user_model
from rest_framework import authentication
User = get_user_model()
class DevAuthentication(authentication.BasicAuthentication):
def authenticate(self, request):
qs = User.objects.filter(id=1)
user = qs.order_by('?').first()
return(user, None)
| [
"weplutus.1@gmail.com"
] | weplutus.1@gmail.com |
9abb36093dd4eb32eac15ae3bed936f6cee0244f | 840c4a703bcf96346cf52f4ea01d98c915939246 | /src/models/train_model.py | 2db599f10b412ff3bbc113e405cb8fa0b439f208 | [] | no_license | alphagov-mirror/tagging-suggester | 4b5b8c4e67ffc65e5e8b588b30b5725b0086182b | 1d5a6d54cefbf03efb32f67ae779eedd2f3d0071 | refs/heads/master | 2020-07-13T23:34:12.543645 | 2019-12-16T10:49:10 | 2019-12-16T10:49:10 | 205,177,279 | 0 | 0 | null | 2019-08-29T14:02:20 | 2019-08-29T14:02:19 | null | UTF-8 | Python | false | false | 146 | py | from models.apex_node_predictor import *
if __name__ == "__main__":
apex_node_predictor = ApexNodePredictor()
apex_node_predictor.train() | [
"oscar.wyatt@digital.cabinet-office.gov.uk"
] | oscar.wyatt@digital.cabinet-office.gov.uk |
b61514eb1142df5237a51fdb02a3262b95cadbd4 | dfe65f843d446493ca43afe6b054595c977c953b | /store/migrations/0001_initial.py | 29feddddb5fa60a54b9b68f57d59e49cb56159e4 | [] | no_license | omprakashn27/djnagoecom | a7d40066ec93b3244dc6c7a736f8c288147d5f46 | 7a1061c39f04a35c1dc95fcde352041a48285475 | refs/heads/main | 2023-07-21T21:35:46.498539 | 2021-09-07T10:25:52 | 2021-09-07T10:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | # Generated by Django 3.1.7 on 2021-08-15 12:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import store.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MO... | [
"omprakash95844@gmail.com"
] | omprakash95844@gmail.com |
c78bd46d107941971e5ccbb87a5f346b8584d902 | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ago-Dic-2019/Luis Llanes/Practica1/ejercicio4-6.py | 947b7bb18c11b7094451454ce8f7d6b447784ac4 | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 113 | py | #del 1 al 20 mostrando pares
pares=[]
for i in range(1,21,2):
pares.append(i+1)
print(i+1)
print(pares) | [
"luis_llanesn@hotmail.com"
] | luis_llanesn@hotmail.com |
3779d30cfebeda301d57e818ebe55098983d539e | 5809b21a6f0ad038ec512ad597776000f0c0f5a1 | /week_four/task_two_src/apptwo/migrations/0003_auto_20191127_1753.py | b5eb05a48c94255481f19560418799d903611a99 | [] | no_license | Bisoyeolaiya/crud-django-api | 4f9db1514c0c97b5496b3a2b8d635bf58e24ca52 | 90e51f30a133adc97ec69fea1ba5bb180e45b922 | refs/heads/master | 2021-06-28T15:30:02.067316 | 2020-02-03T04:19:06 | 2020-02-03T04:19:06 | 237,881,616 | 0 | 0 | null | 2021-06-10T22:32:32 | 2020-02-03T04:02:56 | Python | UTF-8 | Python | false | false | 1,190 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-11-27 16:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apptwo', '0002_auto_20191127_1722'),
]
operations = [
migrations.AlterFiel... | [
"olaiyabisoye@gmail.com"
] | olaiyabisoye@gmail.com |
d40be46a3520e3def20e3f28cbda8d6a19e18912 | 10d748be435d190fe15ce4e3080bba5fffd2156d | /blogapp/views.py | 71c08d5e2093ef9600656c92d903cc373285240d | [] | no_license | liomotolani/Blog | 9c35883d0dcdbd5634617c9446991d4755353754 | 4c6301f430354389096380907e1cc012e4c7ffd5 | refs/heads/master | 2020-09-04T07:58:39.069406 | 2019-11-05T08:13:57 | 2019-11-05T08:13:57 | 219,690,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from django.shortcuts import render
from django.utils import timezone
from django.shortcuts import render, get_object_or_404
from django.shortcuts import redirect
from .models import Post
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte... | [
"ligaliomotolani@gmail.com"
] | ligaliomotolani@gmail.com |
8bab3f142dc7c1a3aad90c1a9a629d069ef615f9 | b952f8b08eca66765c2063a5ad54039fd46884fd | /erp/apps/simplewiki/views.py | 0ac320929d7bb22ceca59c57ccf77e9ca77d5fa3 | [] | no_license | Marine-22/ERP | 5585ea21ec1880dbbd9e0154574c1c0ba3e5a095 | b55d6f3cc5010f4231f8859a61579b3aa42cdec6 | refs/heads/master | 2020-05-27T09:27:54.877448 | 2014-10-09T15:18:21 | 2014-10-09T15:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,842 | py | # -*- coding: utf-8 -*-
import types
from django.core.urlresolvers import get_callable
from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseServerError, HttpResponseForbidden, HttpResponseNotAllowed
from django.utils import simplejson
from django.shortcuts import get_object_or_404, render_t... | [
"root@Debian-60-squeeze-32-minimal.(none)"
] | root@Debian-60-squeeze-32-minimal.(none) |
30743d0660f99cca916c12814e164669ead70026 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/expr_lists-45.py | 9aff4784319ac14303406fc9b8c82678ed9274ee | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | x:[int] = None
y:[object] = None
z:[bool] = None
o:object = None
x = [1, $Exp, 3]
x = []
y = [1, True]
z = [False, True]
x = None
o = x
o = x = [1]
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
66eee5b3e6193fdd3fbf93572531c18f032831fc | 5905ed0409c332492409d7707528452b19692415 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/artifacts/print_settings/gradle.py | 82a99b6bd2e49073fe4da73c767a02d9c12bb651 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | millerthomasj/google-cloud-sdk | c37b7ddec08afadec6ee4c165153cd404f7dec5e | 3deda6696c3be6a679689b728da3a458c836a24e | refs/heads/master | 2023-08-10T16:03:41.819756 | 2021-09-08T00:00:00 | 2021-09-08T15:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"gcloud@google.com"
] | gcloud@google.com |
a68135e8c64df81ffe1e024edfa94cffcb8b9e5c | d911c8f76968a9d6e5bce9824ed922ece1778199 | /src/ieee754/part_ass/assign.py | 00cebc6dab33a25f93d4e790dd7883fc859bae9e | [] | no_license | ChipFlow/ieee754fpu | 1d85bf9907c7e456b4e1c281dfcbd7dc2b7e9016 | 0cdf4be4df5c0fbae476442c1a91b0e8140e2104 | refs/heads/master | 2023-08-16T11:31:05.619598 | 2021-10-02T09:39:43 | 2021-10-02T09:39:43 | 412,763,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,401 | py | # SPDX-License-Identifier: LGPL-2.1-or-later
# See Notices.txt for copyright information
"""
Copyright (C) 2021 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
dynamically-partitionable "assign" class, directly equivalent
to nmigen Assign
See:
* http://libre-riscv.org/3d_gpu/architecture/dynamic_simd/assign
* http://b... | [
"lkcl@lkcl.net"
] | lkcl@lkcl.net |
ed79ebe24351df128ab470b7dd0dec754bb1d13a | 86634c50729039cc31a36bc077f8184d518b5129 | /significant_qso_pairs.py | 5d392b6866969e7c26791e07c7463e50584c8af0 | [
"MIT"
] | permissive | yishayv/lyacorr | 6332df2c534e9ac7d139023674ecd279181181c2 | deed114b4cadd4971caec68e2838a5fac39827b1 | refs/heads/master | 2021-01-23T00:06:41.776274 | 2017-05-09T13:25:32 | 2017-05-09T13:25:32 | 85,701,601 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import numpy as np
class SignificantQSOPairs:
def __init__(self, num_elements=20, dtype=float, initial_value=np.nan):
self.ar_qso1 = np.zeros(shape=num_elements, dtype=int)
self.ar_qso2 = np.zeros(shape=num_elements, dtype=int)
self.ar_values = np.full(shape=num_elements, fill_value=initia... | [
"yishayvadai@mail.tau.ac.il"
] | yishayvadai@mail.tau.ac.il |
0b5b7f88519fa9b9b26e3ad6652ff1a4672c1541 | f2c773e7ccdd60caf5a7c062305cfcd14d11beec | /AR_Scripts_1.0.16_R21_Deprecated/AR_SwapObjects.py | 85e406b4c862dc6ca5dea0e0ae5157af60259cd3 | [] | no_license | aturtur/cinema4d-scripts | 4ccfbc3403326a79076d9bcf001189cd5427f46a | a87fc6c835db5d205f8428cc67ccd30fdd4b4d4b | refs/heads/master | 2023-07-03T13:34:58.735879 | 2023-06-19T09:57:22 | 2023-06-19T09:57:22 | 63,731,563 | 316 | 49 | null | 2022-04-24T02:31:17 | 2016-07-19T22:15:05 | Python | UTF-8 | Python | false | false | 2,091 | py | """
AR_SwapObjects
Author: Arttu Rautio (aturtur)
Website: http://aturtur.com/
Name-US: AR_SwapObjects
Version: 1.0
Description-US: Swaps selected objects between each other. Holding SHIFT while executing script swaps also objects place in hierarchy.
Written for Maxon Cinema 4D R21.207
Python version 2.7.14
"""
# Lib... | [
"rautio.arttu@gmail.com"
] | rautio.arttu@gmail.com |
463eaab959122d3d7a4c548f6fb1790870651e6d | d75baa992299c5547f92fcebcfcf35d314e5b010 | /app/models/Estado.py | 94cd9c094892fee9dc2c1d89f8c901bfc61c725b | [
"Apache-2.0"
] | permissive | GeovaneCavalcante/Jeffson | f5af44cbdcca433a9b216d89316f3e490fc85fac | efb0232a9d79106a07b01655c82ec56572373a59 | refs/heads/master | 2021-06-13T03:39:21.142367 | 2017-04-17T15:23:05 | 2017-04-17T15:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.db import models
class Estado(models.Model):
id = models.IntegerField(primary_key=True)
uf = models.CharField(max_length = 2)
nome = models.TextField()
| [
"geovanefeitosacavalcante@gmail.com/"
] | geovanefeitosacavalcante@gmail.com/ |
86afbabd7bc5ba70376460b1ae08e5e9179e22d3 | af060eff34662f1140ab1869c2024f01f5a01f10 | /backend/config/settings.py | 46629ccce45910002fcf746b3201c8a7e0b2ce72 | [] | no_license | pnowosie/containers-play | 3a93f468cb526f7eb5498e10ab1af4f460a8fc2c | cf762cc97bdb20d34d1b20147214842aa9063c5e | refs/heads/master | 2023-05-26T23:43:28.415436 | 2020-06-02T14:41:12 | 2020-06-02T14:41:12 | 268,602,257 | 0 | 0 | null | 2023-05-22T23:29:15 | 2020-06-01T18:35:00 | Python | UTF-8 | Python | false | false | 144 | py | import os
DEBUG = True
# SQLAlchemy
db_uri = os.getenv('DATABASE_URL')
SQLALCHEMY_DATABASE_URI = db_uri
SQLALCHEMY_TRACK_MODIFICATIONS = False | [
"Pawel.Nowosielski@imapp.pl"
] | Pawel.Nowosielski@imapp.pl |
e3f7f37be4044ecc2be0cf56b77dcda369682d5b | f377d304987293a2c957699d7228587513982180 | /python/mig/run_engine.py | aa56ae0d475482a11026f952a941525102def2c6 | [] | no_license | georgeliu95/trt-practices | e0e048658cf15d8586b7021ca039a05d1b585573 | 9c1f0a0f70335b1c56afb397abc939dada2c737c | refs/heads/main | 2023-06-01T23:36:14.691387 | 2021-06-18T03:30:20 | 2021-06-18T03:30:20 | 361,679,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | import tensorrt as trt
import pycuda.driver as cuda
import numpy as np
# import nvtx
import os
import sys
sys.path.insert(0, '..')
from common import HostDeviceMem, BuilderCreationFlag
from common import allocate_buffer, printIOInfo, get_trt_type
# CUDA Context Init
cuda.init()
CURRENT_DEV = cuda.Device(0)
ctx = CURR... | [
"georgel@nvidia.com"
] | georgel@nvidia.com |
3ff91aed860feace941ae6655b6fa87c1da6c541 | 7ab1948dd28fa099ac115f5799440896e1ef7359 | /DiscerningBot.py | 00b57af996e64669181e72b478d144f38f7f6f9b | [] | no_license | gliliumho/halite-bot | 7ea2a265fe7c712b1050f31ba0bbad63add9411d | b3cfaf2133e77fee7dcd58f29a97b06110546013 | refs/heads/master | 2021-01-19T07:35:23.194349 | 2016-12-21T03:20:36 | 2016-12-21T03:20:36 | 77,011,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import hlt
from hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square
import random, math
myID, game_map = hlt.get_init()
hlt.send_init("DiscerningBot")
def nearest_enemy_direction(square):
min_direction = WEST
max_dist = min(game_map.width, game_map.height)/2
for direction, neighbor in enumerate(gam... | [
"gliliumho@gmail.com"
] | gliliumho@gmail.com |
4993e813cca3a6c0f29f72c606f7d8504040e365 | ac737323d19a04047cd157534553a7744acfabdb | /daily_coding_problem/sliding_max_window.py | 870277cc5407677558d3821d0f2a5bcbb8578e87 | [] | no_license | sahaia1/coursera_algos | 57a36b56a2fb1077a0806e0d07f8531f6ce35e48 | d1c4f5b374aea6fdd1ee225c3cebf25b39073cae | refs/heads/master | 2020-05-03T17:39:45.943959 | 2019-07-17T15:23:32 | 2019-07-17T15:23:32 | 178,748,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | '''
Problem # 18
Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Given an array of integers and a number k, where 1 <= k <= length of the array, compute the maximum values of each subarray of length k.
For example, given array = [10, 5, 2, 1, 8, 7] and k = 3, we shoul... | [
"adityasahai@WHS-1334.local"
] | adityasahai@WHS-1334.local |
0203ec0c496d3d7b043d6d733f646b329d84abbf | d195dcfcb725ff3a83339ef8274bde6f61757fca | /show_anchorage_detail.py | 9746022da3787df6a34198258c034e459dc774fb | [] | no_license | deknapp/ak_redistrict | 3214b8859a27fb74682720247a2f21a8157d4102 | 18503cc47ec514361b7006ed293e3cca89b77d42 | refs/heads/master | 2020-07-07T20:49:42.540662 | 2019-10-28T04:53:51 | 2019-10-28T04:53:51 | 203,474,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | import geopandas
import matplotlib.pyplot as plt
import pandas
import os
import osr
import legislators
import districts
leg_gdf_plot = legislators.get_leg_plot('rep')
district_gdf = districts.get_district_gdf()
final = district_gdf.plot(ax=leg_gdf_plot, color="none", edgecolor='black', facecolor="none")
final = dist... | [
"nathaniel.knapp@gmail.com"
] | nathaniel.knapp@gmail.com |
d88ff67bb52cc64f1e70570aa1c997e0def7e762 | 5dae58198d59db3c11bead79f28d47f45eeb9e5c | /state_manager.py | 03125b616f44c10034ebd771df8c224b3fe97f18 | [] | no_license | Brakahaugen/hex | 65eb66d70df157e89e2d60fafbc18b67b48372e5 | 2921f9208a911af7cbe456bc0a35bffc47ff1846 | refs/heads/master | 2021-04-17T01:09:41.567527 | 2020-04-29T06:02:05 | 2020-04-29T06:02:05 | 249,398,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,421 | py | import time
import copy
import termcolor
import numpy as np
class StateManager:
def __init__(self, size: int = 5):
self.size = size
self.hexNeighbours = [[-1,0],[-1,1],[0,1],[0,-1],[1,-1],[1,0]]
self.random_player = 1
# def get_best_action(distro: list = []):
# best_action = i... | [
"espenbragerhaug@gmail.com"
] | espenbragerhaug@gmail.com |
3f0f5477db60e2c10a868ce2c3f8c576f327c1dc | 0a345f37466570e8e85829c8d89b2c6337fe8633 | /src/products/migrations/0002_product_pricechangedate.py | 5b288de16e90b4756ef0a7b37b9008e07edaf9b2 | [] | no_license | priyankarenty/ecommercev1 | 4cc30d892497d57b68349a5f0395bd8e0b9e8c61 | 93115db1072d5fb51deb57bac8dc383b1e686e6e | refs/heads/master | 2022-12-09T04:28:22.326099 | 2018-04-17T10:51:01 | 2018-04-17T10:51:01 | 129,889,874 | 0 | 0 | null | 2022-12-08T01:00:14 | 2018-04-17T10:49:00 | Python | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-19 05:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"priyanka@Priyankas-MacBook-Air.local"
] | priyanka@Priyankas-MacBook-Air.local |
782514ab58f61ab1d5123c7b936f964f11b8761c | 446275695cb2161ab2b8e79126236e41fa41d781 | /greatest of n numbers.py/greatest of 3 num using if-else.py | 0a18ab01bc78903a0bb4bc16803341598da13d60 | [] | no_license | arshleen18/python | b54591c2790942260fa7d2c0eabace6051d50423 | 9933e5422a171f189662577f361895c984e63b64 | refs/heads/main | 2023-07-01T14:01:47.102240 | 2021-08-04T11:54:09 | 2021-08-04T11:54:09 | 368,593,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #wap to find the greatest of 3 numbers using if-else statement
n1=int(input('enter num1: '))
n2=int(input('enter num2: '))
n3=int(input('enter num3: '))
if n1>n2:
if n1>n3:
print('greatest number is:', n1)
else:
print('greatest number is:', n3)
else:
if n2>n3:
... | [
"noreply@github.com"
] | arshleen18.noreply@github.com |
1f807950196eab859ffa0f58de11ee271eca3ad7 | 2fcd0ffb60632dc831542f12eed6c334f1e888d3 | /api/tests/test_models.py | c18c91207d43d716bcdc3c092677d4596219d1bd | [] | no_license | ncrousset/mainDoctorNote | 49daaff0819de57ecf3ac5dceade302de96dc79c | bdaf98bd7babe0da97e1394c5b94fa10253eddb6 | refs/heads/main | 2023-08-25T02:05:02.373649 | 2021-10-22T16:49:30 | 2021-10-22T16:49:30 | 406,190,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | from django.db import models
from django.test import TestCase
from django.contrib.auth import get_user_model
from api.models import MedicalStudy, MedicalTreatment, Patient, Background, MedicalHistory
from django.urls import reverse
def create_user():
return get_user_model().objects.create_user(
usernam... | [
"natanael926@gmail.com"
] | natanael926@gmail.com |
d2ea9493af1117d1f5dfbb512c53ab69b79f579c | ae7299517299b41f0b27a604165fe5ca6059b7ef | /ASPDNet-pytorch/val.py | 47dc392621ae71b87fb2e62a9f71751b76b6a255 | [] | no_license | liuqingjie/ASPDNet | 4372d6b8fbe99c2778b23e23ae57f6317f1ea07c | 26e9ee197465f31081d5d3bf65a6ec8ce6a1e36b | refs/heads/master | 2021-04-07T20:18:07.681040 | 2020-04-02T09:29:18 | 2020-04-02T09:29:18 | 248,705,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import h5py
import scipy.io as io
import PIL.Image as Image
import numpy as np
import os
import glob
from matplotlib import pyplot as plt
from scipy.ndimage.filters import gaussian_filter
import scipy
import json
import torchvision.transforms.functional as F
from matplotlib import cm as CM
from image import *
from mode... | [
"liuqj.irip@gmail.com"
] | liuqj.irip@gmail.com |
5913906913996061e38731e8c5765a849316493e | 4dbf730249e343fa424bb5202fd67e7570d44784 | /example/controller/tests/controller/methods/__init__.py | 05536fc710eb4fe6bfa598b4b2f7e8a761bea971 | [
"MIT"
] | permissive | why2pac/dp-tornado | 76da68df3c6082fce8d381da90eab526f064f38a | 4a73b9fd81448c195146ea2003ac5aa88ae792d9 | refs/heads/master | 2021-01-24T06:02:21.785754 | 2020-11-14T07:39:45 | 2020-11-14T07:39:45 | 25,281,793 | 19 | 11 | MIT | 2020-02-28T07:56:24 | 2014-10-16T01:50:49 | Python | UTF-8 | Python | false | false | 126 | py | # -*- coding: utf-8 -*-
from dp_tornado.engine.controller import Controller
class MethodsController(Controller):
pass
| [
"me@dp.farm"
] | me@dp.farm |
67033abb78a0b3fefc67b9051476e1e6829ab474 | b0abd89a991603e0f9454012b8abfca6c85595bc | /soundrl.py | 230db80dcd1956f23306e4554d974f2bb7f19cf4 | [
"MIT"
] | permissive | AresCyber/Alexander | f05ae24a9ce1a7b0287ce6f128dfe53b6094d4c1 | a76a0f8779db5c84c2b0f8257bf1b1e6deb8e7e8 | refs/heads/main | 2023-01-21T08:05:59.211081 | 2020-12-07T11:37:10 | 2020-12-07T11:37:10 | 319,167,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,901 | py | import speech_recognition as sr
import pyttsx3
from time import sleep
def voicepass(password):
fcount = 0
engine = pyttsx3.init()
engine.setProperty('rate', 150)
engine.setProperty('volume', 0.9)
r = sr.Recognizer()
speech = sr.Microphone(device_index=1)
while fcount != 6:
try:
... | [
"31662642+nickalholinna@users.noreply.github.com"
] | 31662642+nickalholinna@users.noreply.github.com |
1cba4d3d707cd89b529a4bc616bd90f92866b747 | 12b74d16e7d5590423f4aaa61d03ab1acc1f7dc3 | /ptr.py | d9c888117b0cf092f72d3109f4d1bb633116be3c | [] | no_license | bigger404/ptr | 33dc062cb2f39e76009639aed6988636997e1333 | 1c681703c7a46a42143542cd6d8c8089cf2a922f | refs/heads/master | 2021-05-06T05:16:42.500794 | 2017-12-22T02:35:45 | 2017-12-22T02:35:45 | 115,068,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | from random import randint
class ptr():
def __init__(self,size,allocation):
self.size=size #size in pages
self.limit=100 #max process size in pages
self.allocation=allocation #max frames to allocate
self.ptr=[]
# self.ram=[None]*64
... | [
"noreply@github.com"
] | bigger404.noreply@github.com |
3b7e228cc7b10cf7e42e8765eabbe4009f2a6e69 | 847a0217508a39502509ebab74dfcd626180137a | /NTU/CZ4015/Evaluation.py | b9b38f07ddeca82e3f1cb5d7cc54ea482af966d4 | [
"MIT"
] | permissive | JahodaPaul/FIT_CTU | 757c5ef4b47f9ccee77ce020230b7309f325ee57 | 2d96f18c7787ddfe340a15a36da6eea910225461 | refs/heads/master | 2021-06-04T20:16:44.816831 | 2021-03-13T10:25:06 | 2021-03-13T10:25:06 | 133,488,802 | 29 | 20 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | import pickle
import matplotlib.pyplot as plt
import numpy as np
#This class is used for evaluating and processing the results of the simulations
class Evaluation:
def __init__(self):
self.results = []
def ProcessResults(self,n_of_blocked_calls, n_of_dropped_calls, n_of_calls, n_of_channels_reverved):... | [
"pavel.jahoda3@seznam.cz"
] | pavel.jahoda3@seznam.cz |
183fc2b5c228e64de1cc3a850c8daf99131d5c99 | 9a3c820c630cd11a804dbe95be97d2c778659175 | /test3.py | 650e9fb5b9e668300e2782267bac03851a41033b | [] | no_license | harshramandas/terrabluext | 297d1aaf5e187c268e51ed63165e4f18fdb30a88 | 0ca1e2e0349b33ec3a35962bac8a5e2e203d52a9 | refs/heads/master | 2020-12-03T07:29:58.703393 | 2020-01-02T13:32:08 | 2020-01-02T13:32:08 | 231,242,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import operator
n = int(input("Enter no. of rows/records: "))
A = []
for i in range(n):
j = tuple(input().split(','))
A.append(j)
A.sort(key = operator.itemgetter(0, 1, 2))
print(A) | [
"harshramandas@gmail.com"
] | harshramandas@gmail.com |
77768229229ae4667e63aa8ba2bc58cbdb4d4797 | 865324b144ec2dc598c40cecab05856c36302eca | /passwordCheck.py | d82733f3c263433f4a8416126b4e98b7082c667d | [] | no_license | yashu0598/Code-Signal | 66264cd4c54258fc45f12824f9c1042623cf1dd8 | ac8fa26c4130dd520f1b8385f138f2cf920860a8 | refs/heads/master | 2021-06-03T01:12:24.714897 | 2020-12-12T06:07:14 | 2020-12-12T06:07:14 | 154,334,355 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """
A password is complex enough, if it meets all of the following conditions:
its length is at least 5 characters;
it contains at least one capital letter;
it contains at least one small letter;
it contains at least one digit.
Determine whether a given password is complex enough.
Example
For inputString = "my.Passw... | [
"noreply@github.com"
] | yashu0598.noreply@github.com |
f32468540c2660589bb48972b342c3055c197c3b | 374c3997dcad3dbc64f42b57c518b8f10db84b68 | /plotting/config_fast.py | eb2deb21c7e56017db8927b8213f6338a253d6f1 | [] | no_license | nichrome-project/nichrome | 69a5887c49fd55f67b1cc381127d907ae459a12e | cc4eafa3c58e1175134392ffe7fe2e2ffb6b233f | refs/heads/master | 2021-01-12T00:17:04.924279 | 2019-02-18T17:09:34 | 2019-02-18T17:09:34 | 78,697,844 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | benchmarks = ['raytracer','montecarlo', 'sor', 'elevator', 'jspider', 'ftp', 'hedc', 'weblech']
raceConfigs = ['staticAggr', 'staticCons', 'dynamic', 'bagged', 'oracle', 'uniform']
ptsConfigs = ['dynamic','oracle']
runFolder = '../main/ursa_bench'
dataFolder = '../data'
plotFolder = '../plots'
backupFolder = '../... | [
"xin@Xins-MacBook-Pro.local"
] | xin@Xins-MacBook-Pro.local |
0cc5253cebc09fd4951eaa0a8e6114bad0c1e75b | 8b05073c8bd4c61df78acb10dcd00962cad5d794 | /amlink/socket_server.py | 432345ab4847f6f3597c6e5a7902ec2d082858a0 | [] | no_license | gundamMC/animius-link | bc97610883810c0d64ff744243474342b323c318 | 2ba71d6485282deeed6beb3329e5fd047485fd05 | refs/heads/master | 2022-12-13T22:37:04.994630 | 2019-10-23T08:16:42 | 2019-10-23T08:16:42 | 176,075,906 | 0 | 0 | null | 2022-12-08T05:06:37 | 2019-03-17T08:38:46 | Python | UTF-8 | Python | false | false | 2,425 | py | import asyncio
from amlink import utils, connect_engine, network_controller
class SocketServer:
def __init__(self, link_port, local, pwd, max_clients, engine_ip, engine_port):
self.host = '127.0.0.1' if local else '0.0.0.0'
self.link_port = link_port
self.engine_ip = engine_ip
sel... | [
"admin@siujoeng-lau.com"
] | admin@siujoeng-lau.com |
84e78c1a893885296dad6d324856bc1da539d264 | 2d195a77979c254674ddd79f5b3afa48ac20795c | /backend/API/migrations/0001_initial.py | 4c5b05e6effb5f9709faea3daa9cd53700e6b05a | [] | no_license | noha133/Graduation-Project-backend-1 | c5c82f09ddb2b0013be219cc008bd593733f4ba4 | f5e824fcffc40fa463118e001495880f19c13eea | refs/heads/main | 2023-06-15T20:46:28.775422 | 2021-07-14T14:26:34 | 2021-07-14T14:26:34 | 336,609,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # Generated by Django 3.1.6 on 2021-02-06 21:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"nohamesllhy133@gmail.com"
] | nohamesllhy133@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.