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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb5d81611f58b26a2fceac11bd14ca8653373c86 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /python/paddle/optimizer/optimizer.py | 5187a651b97830ab24fe04e8fa4ce452fea65510 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 66,327 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
9a9896bbf00e4f6f26308c7699d8939dd2d12b92 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/LongLivedChi0/LongLivedChi0ToNuLL_MSquark_1000_MChi_700_CTau1mm_to_1000mm_TuneCUETP8M1_13TeV_pythia8_cff.py | 989f40b6f2ad7b491251cf3a1f09bb503852f142 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 41,743 | py | COM_ENERGY = 13000 # GeV
SQUARK_MASS = 1000 # GeV
CHIZERO_MASS = 700 # GeV
GLUINO_MASS = 5000 # GeV
CROSS_SECTION = 0.02296 # pb
CHIZERO1_CTAU = 1 # mm
CHIZERO2_CTAU = 10 # mm
CHIZERO3_CTAU = 100 # mm
CHIZERO4_CTAU = 100 # mm
SLHA_TABLE = """
#
# ======================
# ... | [
"sheffield@physics.rutgers.edu"
] | sheffield@physics.rutgers.edu |
cac5b0b5b2f7e7883151a7b8d959a7fd876f2169 | 721721a2eed17432279ee184df4d1080eb60ce6f | /server.py | dfdb4fe9df4dcf4fac276b0feca9974241092545 | [
"Apache-2.0"
] | permissive | grepme/CMPUT410Lab02 | c17dc0b53ccd81a741377e9167c4539e9e14c9f2 | 47129f9b680acf115e97cf881662fa6517e87455 | refs/heads/master | 2021-01-18T14:22:54.262722 | 2015-01-20T16:56:07 | 2015-01-20T16:56:07 | 29,540,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | """
Code taken from: https://docs.python.org/2/library/asyncore.html#asyncore-example-basic-echo-server
Modified by Kyle Richelhoff
"""
import asyncore
import socket
class EchoHandler(asyncore.dispatcher_with_send):
def handle_read(self):
data = self.recv(8192)
if data:
formatted_data = data.strip()
print... | [
"kyle@mythcomputers.ca"
] | kyle@mythcomputers.ca |
494aff1c24d6117476f11ab965437fac14f43806 | 20c80f722c451b64d05cc027b66a81e1976c3253 | /commons/libs/pyblish/version.py | c978ffa548ff2ad57bbaba63dc1da19b5ff66f43 | [] | no_license | flypotatojun/Barbarian | 2d3fcb6fcb1b4495b6d62fc5e32634abf4638312 | efe14dd24c65b4852997dad1290e503211bcc419 | refs/heads/master | 2021-07-18T01:43:14.443911 | 2017-10-24T03:37:43 | 2017-10-24T03:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
VERSION_MAJOR = 1
VERSION_MINOR = 4
VERSION_PATCH = 3
version_info = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
version = '%i.%i.%i' % version_info
__version__ = version
__all__ = ['version', 'version_info', '__version__']
| [
"lonegather@users.noreply.github.com"
] | lonegather@users.noreply.github.com |
0b7d4358df0164358509d171022dd0a5642cc851 | ef53e7f462eb6661ca577c855ff3cac65cb4c8b3 | /exe027.py | 6acc51dea5e14a7f4e540545e4272bf1351cd368 | [] | no_license | InayaraMartins/Curso-Python_01 | f8c8d2aff5ed25ca2882495ef648bfd819effa22 | 78523f8c8bc5c19ee014f4a2a2bae5b5bbd27e06 | refs/heads/main | 2023-08-29T14:53:11.227411 | 2021-10-25T23:05:20 | 2021-10-25T23:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 22 20:20:53 2021
@author: Inayara
"""
''' Faça um programa que leia o nome completo de uma pessoa,
mostrando em seguida o primeiro e o último nome separadamente.'''
nome = str(input('Digite seu nome completo: ')).strip()
lista = nome.split()
print('Muito p... | [
"noreply@github.com"
] | noreply@github.com |
c20bbf4e431a445006a8d967f77a35893e083190 | a992a2bcea0e40a9cc3d947466a7eaafaf337280 | /arguments.positional.py | f14647733517bdd5b4f6c768e86e6e08161a55b6 | [] | no_license | rodrigoferrazazevedo/dojo-python | 6bcfb4bf27435b5e60fa1c992840e319fe2dbbb3 | b3aebfae8b0dae2c2b898431ed747dd9236706e3 | refs/heads/master | 2022-12-24T10:25:10.692833 | 2022-06-22T02:12:18 | 2022-06-22T02:12:18 | 107,460,652 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | def func(a, b, c):
print(a, b, c)
func(1, 2, 3) | [
"rodrigo.azevedo@sintesoft.com.br"
] | rodrigo.azevedo@sintesoft.com.br |
5b2cd57f8e2194ec3817a24a6915598c622ca1b2 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/sphinx/sphinx/sphinx/search/nl.py | 485c32c00bfbebd3c13c6fc237cc638855547bc0 | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:691f5261422e51d9e03272aae70ab30a0ad6712d65759be6a8f9a41bd904a565
size 21944
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
7003acb4f3816d60e19ac4b06f49d305dda66cfb | 2cb120360192dfdf9afa233c8585232cb3df6e8c | /samples/tf_study/prettytensor/funcs/register.py | 4d06d359b79901fe2eaade7d27002d9a528b7ee5 | [] | no_license | CosmosShadow/MLPythonLib | 6323583bca8c6ff5757465fb1a0d5c4f23deb56c | 3a2da2601330a032b737ff0addf71f679eeee94b | refs/heads/master | 2020-05-21T15:08:58.082575 | 2017-04-30T17:03:15 | 2017-04-30T17:03:15 | 44,087,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # coding: utf-8
import tensorflow as tf
import prettytensor as pt
import numpy as np
import cmtf.data.data_mnist as data_mnist
@pt.Register
def leaky_relu(input_pt):
return tf.select(tf.greater(input_pt, 0.0), input_pt, 0.01*input_pt)
x = tf.Variable([1, 2, 3, -3, -2, -1], dtype=tf.float32)
x_pretty = pt.wrap(x)
y =... | [
"lichenarthurml@gmail.com"
] | lichenarthurml@gmail.com |
712d26eeeaaca1eded2fb8fb9dd1621220a32f80 | 2b163cd57c2fde061c49a2f18b66ac5718de8066 | /editortools/select.py | 9433262afcd0848e49008189b2ed5fb13cf2e032 | [
"ISC"
] | permissive | JeremyButt/GDMC | 4275b177835d1b61dca32f1a527785d9191355d8 | 57c288fea35410b997b38aed5ef294dffb266b76 | refs/heads/master | 2022-04-27T11:41:42.288184 | 2020-04-17T21:07:46 | 2020-04-17T21:07:46 | 254,891,891 | 0 | 0 | ISC | 2020-04-11T15:00:41 | 2020-04-11T15:00:40 | null | UTF-8 | Python | false | false | 55,156 | py | """Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA... | [
"mcgreentn@gmail.com"
] | mcgreentn@gmail.com |
dc5ad6aa9def9da50f8949530c289dc48e8e62bb | d55f28542c05c55a0f48d59fe5a0bb7e873d6ff1 | /principal.py | f9f1672bac969be567ae48bb42524811a1e3bc52 | [
"Apache-2.0"
] | permissive | brlimgu/DevOps-ADS2D-05 | ef69a84a6405823d6486851b85f55dcd8cd63405 | 177026ebaf3d468f97326c894af960bd3f86de07 | refs/heads/master | 2021-05-23T13:43:52.762655 | 2020-04-05T21:41:36 | 2020-04-05T21:41:36 | 253,318,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | def soma(x, y):
return x * y
def subtrair(x, y):
return x - y
| [
"bruno331996@gmail.com"
] | bruno331996@gmail.com |
39142d3a18c5126ba04f1f9e17ffafeeb030315c | 3777a263e5bbe10bbbe3de46dd239f3ffc6938d3 | /lagou/pipelines.py | abcc24097fa805e3c3e3a67f8f9c1ddc5514d22c | [] | no_license | chenzutao92/lagouspider | a8a96dd5a2550de9269f80591dace83ffae5fa7e | f92c355d2b8329beeb24517c265e33d670e23079 | refs/heads/master | 2020-03-22T04:53:19.581139 | 2018-07-03T04:04:45 | 2018-07-03T04:04:45 | 139,527,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from scrapy.exporters import JsonItemExporter
from twisted.enterprise import adbapi
import MySQLdb
import MySQLdb.cursors
cl... | [
"534213375@qq.com"
] | 534213375@qq.com |
5c3ac31704aef9b0aaaef4fc533ebe55ef259e75 | 2a7fd05f661586b8277ef2172a120cb64b333c5a | /c/ch12/plotobstacle3d.py | 5d8fcc7f9e6e0b8b0acdaf71dd7823e97aec4e83 | [
"MIT"
] | permissive | LeilaGhaffari/p4pdes | 682c7776effd753583158dc8ad8fdc87b2c57735 | f7781d4c1bd0868ac31543badf1a6c4afedaf4b0 | refs/heads/master | 2023-03-18T09:21:59.619352 | 2021-01-12T15:51:51 | 2021-01-12T15:51:51 | 320,081,702 | 0 | 0 | MIT | 2021-01-12T15:51:52 | 2020-12-09T21:17:01 | C | UTF-8 | Python | false | false | 2,422 | py | #!/usr/bin/env python3
help = '''
Plot solution and obstacle in 3D figure. Reads output from obstacle using
option
-obs_dump_binary foo.dat
Requires access to
petsc/petsc/lib/petsc/bin/PetscBinaryIO.py
petsc/petsc/lib/petsc/bin/petsc_conf.py
e.g. sym-links.
'''
# generate figure in book by:
# ./obstacle -... | [
"elbueler@alaska.edu"
] | elbueler@alaska.edu |
417553759dccdcd819e59f61567979e2cf968a62 | 7130f4a2fc202592bcbe64188489cfb9aef7fbaa | /r2als/views/subjects.py | ef91cc747785ddb17290c7c02bcb45059a486366 | [] | no_license | mildronize/R2ALS | 62b22764b75b75cce8312c3b75bb07745f8c5128 | 16e315915414209f4816475ade2a31191a74aa12 | refs/heads/master | 2020-04-22T07:35:00.566118 | 2015-03-06T08:42:14 | 2015-03-06T08:42:14 | 23,252,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | __author__ = 'mildronize'
from pyramid.view import view_config
from mongoengine import Q
from r2als import models
from r2als.libs.logs import Log
from r2als.libs.functions import response_json
l = Log("view/subjects").getLogger()
@view_config(route_name='apis.subjects', renderer='json')
def index(request):
resu... | [
"mildronize@gmail.com"
] | mildronize@gmail.com |
1da4e801534d62f6dd66e8e20d6416e134ff44f3 | 938f9e4e9057bb3dbbd14c8a2810286fd143ad0e | /loss.py | 32b67f70bda0929a99ed8af4d0b65fc3fd00cfb5 | [] | no_license | vinpala/Coffee_understands | d79eada0613dde91514c962b65728088eccde685 | c62c815523ab17c344b62bd7cea85abc6224227e | refs/heads/master | 2020-04-25T23:40:21.952638 | 2019-03-21T16:01:47 | 2019-03-21T16:01:47 | 173,153,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | import tensorflow as tf
def triplet_loss(y_true, y_pred, alpha = 0.2):
"""
Calculate the triplet loss according to the FaceNet paper
Args:
anchor: the embeddings for the anchor images.
positive: the embeddings for the positive images.
negative: the embeddings for the negative images.... | [
"vinithapalani@gmail.com"
] | vinithapalani@gmail.com |
a6ba743a9fdba5e2c107d4cbbc6a4f57cec799df | 3fa4c332dc32cbb42fc5990b507d05bde80be88b | /src/orders/migrations/0001_initial.py | bd41abd7e3c7dd2ced6aeadaa6406329d5d9f8b3 | [] | no_license | Maxondria/django-ecommerce | e4b005ebed04559f2f3c3b2c716161a18b1c9310 | 8ef15c21c681499c97acf43f9a3ac22da03af5c9 | refs/heads/master | 2022-11-24T20:54:31.484813 | 2020-02-24T21:49:57 | 2020-02-24T21:49:57 | 242,368,500 | 0 | 0 | null | 2022-11-22T05:20:11 | 2020-02-22T15:54:41 | JavaScript | UTF-8 | Python | false | false | 1,061 | py | # Generated by Django 3.0.3 on 2020-02-24 21:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('carts', '0004_cart_total'),
]
operations = [
migrations.CreateModel(
name='... | [
"maxtayebwa@gmail.com"
] | maxtayebwa@gmail.com |
5590c83b21209475b9f2d74cbf0f4aa8bc06fdf7 | 88023c9a62994e91291c67088156a2894cc26e9e | /corral/exceptions.py | 6b957a785fc63342e2236f36930ddf95e737b7a0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | toros-astro/corral | 41e9d0224d734c4268bf5161d472b3c0375842f0 | 75474b38ff366330d33644461a902d07374a5bbc | refs/heads/master | 2023-06-10T15:56:12.264725 | 2018-09-03T17:59:41 | 2018-09-03T17:59:41 | 44,282,921 | 6 | 5 | BSD-3-Clause | 2023-03-24T12:03:17 | 2015-10-14T23:56:40 | Python | UTF-8 | Python | false | false | 1,745 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2017, Cabral, Juan; Sanchez, Bruno & Berois, Martín
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of sourc... | [
"jbc.develop@gmail.com"
] | jbc.develop@gmail.com |
b202cb1ddb42d329f5a3e87e9f5dd96e8a2eab04 | 10d15618f216595275c5b31ef0a509e0b8bac4cc | /handlers/simple.py | a92712bf62bdf091f166f9a0ef5c71ad25753a7c | [] | no_license | mitomon/piskel-website | 2e41082c8bac2a06bb6a42db7750bcf4bd1c9847 | 1bbd9d2944ee9c5057b16cf8e3604f7c3e15b26f | refs/heads/master | 2021-01-21T14:27:58.900273 | 2017-06-24T07:49:34 | 2017-06-24T07:49:34 | 95,282,599 | 1 | 0 | null | 2017-06-24T07:26:17 | 2017-06-24T07:26:17 | null | UTF-8 | Python | false | false | 759 | py | from base import BaseHandler
def get_template(handler, template, is_home=False):
values = {
'is_home': is_home,
'has_footer' : True,
'has_previous_page' : True,
'has_next_page' : True
}
handler.render(template, values)
class HomeHandler(BaseHandler):
def get(self):
get_template(self, 'h... | [
"julian.descottes@gmail.com"
] | julian.descottes@gmail.com |
32c1c4cf4272bbab64dbba3b63ebc959e692bf36 | 0134adcfb6c12b9d65a2bc8612843c29a0c9bd4c | /orders/migrations/0001_initial.py | 32618ee7abf453f0056624de053b39736c8d56fe | [] | no_license | Raghib6/Online-Attire-Shop | ebf0f41df9e090d6d2af0cb69a475c60bb61b0ba | 0eb0cec8e26ae9dab17b9267790a9113305049ef | refs/heads/master | 2023-09-03T19:36:39.640268 | 2021-10-01T09:42:39 | 2021-10-01T09:42:39 | 374,382,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | # Generated by Django 3.2.4 on 2021-09-15 11:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('prod... | [
"raghibshahriar6@gmail.com"
] | raghibshahriar6@gmail.com |
d387d6b7108eb53681abf09eee7e082564d3f4cd | 90a3c3ecfab0425f520115e049dc6e8476b72b7c | /toph/Set Union.py | 6fdfa05cf4cd80906d7f77ed398ea2bb349d9a95 | [] | no_license | Manash-git/Competitive-Programming | f3e5f7a9bc202ec0a4667fe7f033f0013c8dfd83 | bf79517699285c135bc126c5fabfd724e586460f | refs/heads/master | 2022-12-05T19:37:11.814718 | 2020-08-24T19:16:30 | 2020-08-24T19:16:30 | 108,683,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # n = {1,2,5}
# print(type(n))
# l= [1,5,6]
# print(type(set(l)))
# print(n | set(l))
# res = n | set(l)
# for i in res:
# print(i,end=" ")
n,m = input().split()
x = [int(i) for i in str(input()).split()]
y = [int(i) for i in str(input()).split()]
x= set(x)
y= set(y)
# print( set(x)| set(y))
res = sorted(list(x.u... | [
"emailatmanash@gmail.com"
] | emailatmanash@gmail.com |
683be798c800cd438dcf6150779d48ba92d83fb9 | 5412fd030d646769021efc8f4e0589e40c71938f | /backend/static/flask_server/server/app/__app.py | 1c45e974ea50589bdc78a4ff7738df3ba32786e5 | [] | no_license | 01Joseph-Hwang10/mypy | f992fe83741b11cf4b34c3a22d5dc8b9bf78342a | f65d0a8a0ef7b6943133f8e4f89e80261f255290 | refs/heads/master | 2023-08-16T12:43:52.667513 | 2023-08-13T18:12:48 | 2023-08-13T18:12:48 | 355,135,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | import json
import os
from flask import Flask, redirect, request, Response
from flask_cors import cross_origin
from __main import execute
import __constants
import io
import base64
app = Flask(__name__)
__MIMETYPE = '$MIMETYPE'
@app.route('/', methods=['GET'])
def root():
# Temporal redirection
return redi... | [
"joseph95501@gmail.com"
] | joseph95501@gmail.com |
52bfaf495d77c7025a801ef5061d4964459beaf2 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/uhd_restpy/testplatform/sessions/ixnetwork/topology/rsvpteif_e2b2ecdbf1fa5e15d2f6d87dd1789f1c.py | cff9728ec94869fd282e2d1c193da41ec355c901 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,370 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 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, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
3658cf4a19b1be15a9036cfe99d44fc23b1f3d88 | a80e821bf883e2cbb4505669e2f85b7cd4311112 | /SorteandoOrdemNaLista.py | 505d06074fd0d18744b00e3ebd72b670041706a5 | [] | no_license | rafaelxavier83/exercicios-python | 733d53a05a89022bd04015c8fd2a25d62484638f | 666f4fc5727cf8f974e28e1a0d49f44e9289a70a | refs/heads/master | 2023-06-13T01:43:28.995986 | 2021-06-28T22:48:50 | 2021-06-28T22:48:50 | 381,178,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import random
a1 = input('Primeiro aluno: ')
a2 = input('Segundo aluno: ')
a3 = input('terceiro aluno: ')
a4 = input('Quarto aluno: ')
lista = [a1, a2, a3, a4]
random.shuffle(lista)
print(f'A ordem de aprentação será {lista}')
| [
"rafael.xavier83@gmail.com"
] | rafael.xavier83@gmail.com |
1cfee927748b32080241d98430b7787bbc85f43b | 0355a4fb1a173ec811b83e87f5995899cddd66e5 | /Rahul/pilingup.py | a9a9083bc1f381d9a8a197af891b2e91d156db45 | [] | no_license | rahulgoyal223/python | 9d4d3e1574940689ea92e86f8a3db6a174546845 | 11e9ae2f5ecaf1747650b1cc7a68a45426deb8a7 | refs/heads/master | 2020-03-26T05:56:33.590856 | 2018-09-06T04:56:34 | 2018-09-06T04:56:34 | 144,581,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | decisionlist=[]
x=int(input())
for i in range(x):
mat=input()
l = [int(x) for x in input().split()]
if l[0] >= l[len(l) - 1]:
k = l[0]
elif l[0] <= l[len(l) - 1]:
k = l[len(l) - 1]
decision = True
while len(l) > 0 and decision == True:
if l[0] >= l[len(l) - 1] and l[0] <=... | [
"rahul.goyal223@live.com"
] | rahul.goyal223@live.com |
bb528d7eeb7dd25802249a6774ee3512c8e45187 | 693cae0855cb1840eb2d4255559b81a1ad579878 | /DAY_11/adv_python.py | 516c016db182d9c90e34facb3306ece424db44f3 | [] | no_license | Sandeep165/PYTHON_M1 | eba95235ee542bf0edc40875573dd574a5c25e1e | bb9954459090aba0d35f128f30c39e8a78b81de2 | refs/heads/main | 2023-08-11T15:09:59.089766 | 2021-09-15T02:44:20 | 2021-09-15T02:44:20 | 376,586,837 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,017 | py | # '''
# def xyz():------------> func def(parameter)
# logic1
# logic2--------------> func body
# xyz()------------------>func call(arguments)
# '''
# '''num1 = 10
# num2 = 1
# num3 = 3
# print(num1 >num2 & num1>num3)
# print(4&5)'''
# # binary addition
# '''
# def high(a,b,c):
# if a>b and a>c:
# ... | [
"sandeepwaghmare1999@gmail.com"
] | sandeepwaghmare1999@gmail.com |
33c3a87ed6036b3f43ebeb0216fd51ba41e56edb | 19dde39b2613c2690cbb655dcb390481958a9803 | /room_schedules/migrations/0001_initial.py | e2d1e43d1e4deeb6a54bdabeae60329371746146 | [] | no_license | saty9/advertising_screens | 8fc8eecf584eb62e3c0bd258f4598246074c0da9 | f485407ae63fc82815c67622d8328abccb9d78d1 | refs/heads/master | 2023-02-22T10:04:16.168927 | 2022-12-02T16:38:42 | 2022-12-02T16:38:42 | 195,705,059 | 0 | 1 | null | 2023-02-15T17:56:57 | 2019-07-07T23:04:46 | Python | UTF-8 | Python | false | false | 1,684 | py | # Generated by Django 2.2.1 on 2019-07-13 16:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Venue',
fields=[
... | [
"cookekyle97@gmail.com"
] | cookekyle97@gmail.com |
98a7027b14220ce45b6451cb709b4ac317578f2a | 53b00072f469104463edd827c0ea2fed76e05602 | /ddCTF/pwn1/exp2.py | 3b12be74a505e56ba68d434f685cc09bb579af8e | [] | no_license | VinadiakT/Linux-Pwn | 16cc4df8012af2e312bdad02727b1d87c76460f6 | c9c4325db976ef6d853b07bd49209ecd32bdc8b7 | refs/heads/master | 2022-12-29T14:40:23.493903 | 2020-10-11T07:15:17 | 2020-10-11T07:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from pwn import *
p = process('./pwn1',env={"LD_PRELOAD":"./libc-2.23.so"})
p.interactive()
| [
"773978019@qq.com"
] | 773978019@qq.com |
ed8e7e07c105152f5bc9ba5fcc02fe65b2194e23 | b0b9f05bcfb0e366955f70753bcbd0b7fc997e7a | /pairsWithSpecificSum.py | de68f3bf37ad2534a22358946844b725ef7cd5cc | [] | no_license | mave5/pmarp | ae691e8fb3d7dc4cd51928ec240b077f09b27774 | 52aa9919e6384226ba10242144ceb5801a995071 | refs/heads/master | 2022-10-20T12:52:08.587884 | 2017-10-23T00:19:36 | 2017-10-23T00:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py |
# Merging 2 Packages
def get_indices_of_item_wights(arr, limit):
if len(arr)==1:
return []
#elif (len(arr)==2) and (arr[0]+arr[1]==limit):
#print arr[0],arr[1],arr[0]+arr[1]
#return []
comps={}
for i in range(0,len(arr)):
w=arr[i]
j=comps.get(lim-w)
if j is not None:
return [j,i]... | [
"mra446@gmail.com"
] | mra446@gmail.com |
a904b83ae5e9861b098ef0fcab7aafcae35b6c15 | d9bd9677689d40414647b911185f95d34a83bda0 | /db_create.py | f9eebf10cee21e8db948753d61e48fedcb5d9ace | [] | no_license | frasza/diploma | 2cf9789fbc952c75805310bcb3b057382cbfc7f0 | e7a673e736c1aa9ae57bf168dd4cdebc8685588f | refs/heads/master | 2020-12-02T19:27:20.809614 | 2017-08-31T11:36:02 | 2017-08-31T11:36:02 | 96,343,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import sqlite3
from _config import DATABASE_PATH
with sqlite3.connect(DATABASE_PATH) as connection:
c = connection.cursor()
c.execute("""CREATE TABLE uporabniki(id INTEGER PRIMARY KEY AUTOINCREMENT,
uporabniskoime TEXT NOT NULL UNIQUE, email TEXT NOT NULL UNIQUE, geslo TEXT NOT NULL)""")
c.... | [
"zan.fraas@gmail.com"
] | zan.fraas@gmail.com |
65e1df55cb9a983fa0dcc50958f02804033f44fa | 467077005a36fdc0f7b1c997411885c4b20ef632 | /project/tests/test_auth.py | a695986949c5a8352f8833c4fdc366b60bc91d11 | [] | no_license | animaone/animablog | 818878d3ced2cc7ac264f20a82d1897bd93a0ec5 | dd724ba7c1355a27e0a9077b2070d8e2b9ecda25 | refs/heads/master | 2022-12-02T07:42:25.325482 | 2020-08-18T03:52:59 | 2020-08-18T03:52:59 | 288,060,402 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | import pytest
from flask import g, session
from flaskr.db import get_db
def test_register(client, app):
assert client.get('/auth/register').status_code == 200
response = client.post(
'/auth/register', data={'username': 'a', 'password': 'a'}
)
assert 'http://localhost/auth/login' == response.he... | [
"noreply@github.com"
] | noreply@github.com |
2cf8dc391a399cc366848bf118e5687875cb363a | 9fe98c451f3c9189ea0a95b5c757b6818191c555 | /Fashion_01/asgi.py | b6985092ecfea91fe7ffcd55ed83191424422208 | [] | no_license | PARTHJASANI11/Fashion_01 | e5a3ca7feea66bc7e03b1fd190ef03315ebb3adc | fb1bc5bcdc3a39109163709493a7c0753502d0b5 | refs/heads/master | 2023-03-20T12:22:25.636682 | 2021-03-10T13:52:42 | 2021-03-10T13:52:42 | 329,804,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for Fashion_01 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"18bce085@nirmauni.ac.in"
] | 18bce085@nirmauni.ac.in |
cbeac3af8c846564c43834c3869b02822384413f | 53b6b52a41ec415fec2a2d97cad524b8e9f8a4dc | /7_4_1/size.py | eb3ae38464d0a5f32857506357853e2ba0709ef4 | [] | no_license | xyalbino/pwk_exercises | 56b8aa359b19487733c0a9b98b9d9ed668723365 | c6af719381928164aee3c7ce8db685c7984269ec | refs/heads/master | 2020-06-14T22:21:34.571883 | 2019-03-11T22:07:44 | 2019-03-11T22:07:44 | 195,143,280 | 1 | 0 | null | 2019-07-04T00:30:30 | 2019-07-04T00:30:30 | null | UTF-8 | Python | false | false | 525 | py | #!/usr/bin/env python
import socket, sys
if __name__ == '__main__':
buff = "A" * 2606 + "B" * 4 + "C" * (3500 - 2606 - 4)
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock_conn = sock.connect(("10.11.21.97", 110))
data = sock.recv(1024)
print data
sock.send("USER test\r\n")
data = so... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c111e1908a6897a5ab5767f0330ffc238b2f06ec | 361c54c4798b839348a29fe18625dd74b7d3ef22 | /examples/python/test.py | 8a1cf73da6e78e5902b4032c1178ecb1798d1532 | [
"BSD-2-Clause"
] | permissive | tituarte/libmonome | fdda2b1361c55e1981479083dc1d3603d1d65513 | e6eaecb7346a2d6b1f82676e52c5b7082ca60fe5 | refs/heads/master | 2021-01-18T09:30:50.134118 | 2010-08-01T03:52:13 | 2010-08-01T09:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import time
import monome
Y = """
. .
. .
.
.
.
.\n"""
E = """
......
.
.
....
.
......\n"""
A = """
.....
. .
. .
......
. .
. .\n"""
H = """
. .
. .
. .
....
. .
. .\n"""
def str_to_frame(str):
def row_to_bits(str):
return [(0 if x == " " el... | [
"will@illest.net"
] | will@illest.net |
dd1613f335f6b91269394fd03d20e7ce1dbab171 | 8d0016fe7389273404c11b22990d1263534d4054 | /ccc 2021/S1.py | 3a066036d71304fc72e587de5845b970ec385302 | [] | no_license | sushimon/CCC-Solutions | d667d72bf563b627617a79b21ac4483b64ca33f9 | 607bbd873770a8667f15444bdeabfe87e61c018c | refs/heads/master | 2023-06-23T16:39:16.029354 | 2021-07-21T23:27:15 | 2021-07-21T23:27:15 | 275,901,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | N = int(input())
h = list(map(int, input().split()))
w = list(map(int, input().split()))
area = 0
for i in range(len(h) - 1):
l = h[i]
r = h[i + 1]
while l > 0 and r > 0:
small = min(l, r)
area += w[i] * small
l -= small
r -= small
... | [
"noreply@github.com"
] | noreply@github.com |
f06b7547ea0124184f651ddac7e32fdb35e9020b | 43a38158517d5010cedc73e29b8b2342c29bdabe | /pythonpath/mytools_Mri/ui/info.py | 04290a487832b013870fbcdbf1384fae87643289 | [
"Apache-2.0"
] | permissive | billyoc/MRI | 31e14583b5de3fd6e5d770f60aaef25118c86c2b | 22cfd8bdd28cbca589b9796a6a191ce220db763d | refs/heads/master | 2021-01-17T06:47:11.945432 | 2013-03-27T05:49:37 | 2013-03-27T05:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,454 | py | # Copyright 2011 Tsutomu Uchino
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"hanya.runo@gmail.com"
] | hanya.runo@gmail.com |
7417e6ab34dc6e767a32e08c41b56d065083141e | a1fd9852fca3fd99f7ee988df6bbd0535e000a5e | /posts/tests.py | 30aa1441f623aed859188e7ac95e632fe6dfbea9 | [
"MIT"
] | permissive | GouthamDoddi/Message_board | 13704aaf38ffb617980b00a33e2fa1ed8881f7fe | 8e4e3248c7f072582d525349201f9f8279a267f8 | refs/heads/master | 2023-08-01T05:55:47.504453 | 2020-06-09T03:50:39 | 2020-06-09T03:50:39 | 266,520,105 | 0 | 0 | MIT | 2021-09-22T19:05:38 | 2020-05-24T10:44:44 | Python | UTF-8 | Python | false | false | 1,114 | py | from django.test import TestCase
from django.urls import reverse
from .models import Post
class TestingPosts(TestCase):
def setUp(self):
"""Setting up common variables in this method"""
Post.objects.create(text='This is a test post')
def test_post_name(self):
"""Test that the post name is correct""... | [
"gouthambolt@gmail.com"
] | gouthambolt@gmail.com |
23abc26505d01fa5cea8932a4626c30f652939e6 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /expedient/src/python/expedient/clearinghouse/geni/planetlab/sfa-models.py | 0b196d17769a39223a7fdf4a5aa52bdb1bd29381 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 16,040 | py | '''
Created on Jul 4, 2010
@author: jnaous
'''
from django.db import models
from expedient.clearinghouse.resources.models import Resource, Sliver
from expedient.clearinghouse.geni.models import GENIAggregate, GENISliceInfo
from xml.etree import cElementTree as et
import calendar
from exceptions import RSpecParsingExce... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
e4b6e1cda54c6b2fd375df3d4a64e7a4eae646c4 | 808b96265c56807d9b1ddcbd93af00988bc3d5c1 | /main.py | 8aca8d644d250287044cfd44e73b7f42b8313317 | [] | no_license | shivamdattapurkayastha99/drs-system | b1af2d087d5ac04294dcad3fcdb921d22a4b4b27 | d35f347e6a8030c47dc0604490e360e4e63c1534 | refs/heads/master | 2023-07-06T18:35:33.594613 | 2021-08-10T20:20:20 | 2021-08-10T20:20:20 | 394,772,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | import tkinter
import cv2
import PIL.Image,PIL.ImageTk
from functools import partial
import threading
import imutils
import time
stream=cv2.VideoCapture('clip.mp4')
def play(speed):
print(f"You clicked on play.Speed is {speed}")
frame1=stream.get(cv2.CAP_PROP_POS_FRAMES)
stream.set(cv2.CAP_PROP_POS_FRA... | [
"shivamdatta465@gmail.com"
] | shivamdatta465@gmail.com |
2e184366be6b318abe99d46a5c404b0dfaa865a4 | 277ee399249ad4dd8598e0553de151ee8cd42d0f | /even_odd.py | 44ee6b6deeaaa8c4c80f79bfc9b85c1b5062016b | [] | no_license | sandeep-3ns/PYTHON_FILES | c00a7422b82b6961220950691375e84406aa1930 | d39b7615d43b8cb8841375247c1e87496a1386f1 | refs/heads/master | 2020-04-22T01:54:51.995930 | 2019-02-10T21:31:19 | 2019-02-10T21:31:19 | 170,029,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | x=2
if x%2==0:
print("Even")
else:
print("Odd")
print("BYE") | [
"noreply@github.com"
] | noreply@github.com |
b8466fc6eb726ee2342e5e499d2da3d64d0cb182 | 76938f270e6165514162856b2ed33c78e3c3bcb5 | /lib/coginvasion/battle/TurretGag.py | f6649cdc3a30755cf243d311c6153058e48d7e42 | [] | no_license | coginvasion/src | 9a5ec682845cc4c9c013fcc35e9b379bd4360b6c | 2d7fcdb0cd073050250cb51292ee48300a9fe19f | refs/heads/master | 2021-01-19T06:50:11.786112 | 2015-11-08T12:28:52 | 2015-11-08T12:28:52 | 61,545,543 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,296 | py | # Embedded file name: lib.coginvasion.battle.TurretGag
"""
Filename: TurretGag.py
Created by: DecodedLogic (10Aug15)
"""
from panda3d.core import CollisionSphere, CollisionNode, BitMask32, CollisionHandlerEvent, NodePath
from direct.showbase.DirectObject import DirectObject
from direct.interval.ProjectileInterval... | [
"ttarchive@yandex.com"
] | ttarchive@yandex.com |
187f686d879b77123a4dba257c230c1643becf62 | 1b1176fe2d27ecb604489d218127037ad2706b5e | /t.py | 083884df5df015579f285c38cc9482b84fa33952 | [
"MIT"
] | permissive | mlotz/timeSeries | c85c6869f7dcd1c4e2a1d562aebbfdce9f441e55 | cd8b7915bb3206cfc2b6e48dc820d6f89074b7d5 | refs/heads/master | 2020-05-01T17:47:30.461915 | 2019-04-18T16:39:54 | 2019-04-18T16:39:54 | 177,608,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,336 | py | import numpy as np
import scipy
import matplotlib
import pandas as pd
import sklearn
from sklearn.preprocessing import MinMaxScaler
import tensorflow as tf
import keras
import matplotlib.pyplot as plt
from datetime import datetime
from loss_mse import loss_mse_warmup
from custom_generator import batch_generator
#Keras
... | [
"maciej.lotz@gmail.com"
] | maciej.lotz@gmail.com |
109e7e28b9966df1360bfdf2265c6335760db2b1 | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/dominic_martin/lesson04/kata.py | 438941feb55746a41b874cd15dbc840c2713207b | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/env Python 3
import string
def txtRead():
f = open('58639.txt')
txt_data = f.read()
f.close()
# print(txt_data)
new_Txt = txt_data.translate(string.punctuation)
# new_trigrams = []
# c = 2
# while c < len(txt_data) - 2:
# new_trigrams.append((txt_data[c], txt_data[c+1], txt_data[c+2]))
# c += 2
... | [
"dominic.r.martin@gmail.com"
] | dominic.r.martin@gmail.com |
2ab64215e6c7985e26ab397ec6fe152920e75e0f | 01b6a10e92f3dae773f824065a5508b073fd6d62 | /baekjoon/1837.py | 8a5748cf6fa39529be2da4aa74086b2030da1c75 | [] | no_license | jihongeek/Algo | 213989dc86b5476939776c31b12b21fba48bff8d | 8dfc9db33f611ff76c4943be9868847c3c0501b4 | refs/heads/master | 2023-08-28T23:32:42.448354 | 2023-08-12T11:26:08 | 2023-08-12T11:26:08 | 188,658,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from sys import stdin
p,k = map(int,stdin.readline().strip())
for i in range() | [
"jihongeek@kakao.com"
] | jihongeek@kakao.com |
c27b8d1d6ccd51b5851a3b2a1b233bd16425812a | 20b7c366de443d02971fd60e6135206f5f49f7f3 | /sources/forward.py | dcf0ade0758f5da5cda8bfb9d5584b3dd8b9072b | [] | no_license | BarelangFC/IK-Differential-Evolution-Python | 50ff05987cbb0d0dee5339ea5ccef28109552ce1 | 1f8604b2063217d7b587727d1f4a1a0d59ee336f | refs/heads/main | 2023-09-01T06:33:54.014387 | 2021-10-28T02:06:02 | 2021-10-28T02:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | import math
import numpy as np
import PyKDL as kdl
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d
#meter
'''
link1 = 0.17282
link2 = 0.049194
link3 = 0.207937
link4 = 0.364028
'''
link1 = 17.7209
link2 = 4.9194
link3 = 23.46245+ 1.592805723
link4 = 30.68395+ 1.592805723
link = [link1/... | [
"noreply@github.com"
] | noreply@github.com |
96e2fee44e3bc7e5c5602c9a487d8a04b807a7a8 | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/benchmarks/src/micro/function-call2.py | 48b9f47030ccbdc325c255fd7103349718f10ba7 | [
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # zwei 10/10/13
# function calls
import time
def emptyFunction(arg):
return arg
def callFunctions(num):
count = 0
for i in xrange(num):
ret = emptyFunction(i)
count += 1
return count
def measure():
print("Start timing...")
start = time.time()
sum = callFunctions(1000000000) #1000000
print("Number of ... | [
"ndrzmansn@gmail.com"
] | ndrzmansn@gmail.com |
cec74534f2de9765f471aa6aae72fcbe7d53e3ac | 0085acce00bbd20658f312f30575632b6272090d | /leetcode_python2/lc917_reverse_only_letters.py | edd5790198b06f867191c4684a3f882a2b368ac8 | [] | no_license | garderobin/Leetcode | 52fce8279e4963bc7824a19aae903ca6aad83867 | ea10ce7fe465431399e444c6ecb0b7560b17e1e4 | refs/heads/master | 2021-01-17T14:43:49.423071 | 2018-11-12T00:55:47 | 2018-11-12T00:55:47 | 51,183,667 | 0 | 1 | null | 2018-11-12T00:55:48 | 2016-02-06T01:00:36 | Java | UTF-8 | Python | false | false | 580 | py | from abc import ABCMeta, abstractmethod
class ReverseOnlyLetters:
__metaclass__ = ABCMeta
@abstractmethod
def reverse_only_letters(self, S):
"""
:type S: str
:rtype: str
"""
class ReverseOnlyLettersImpl1(ReverseOnlyLetters):
"""
Time: O(n)
Space: O(n)
"""... | [
"garderobinshot@hotmail.com"
] | garderobinshot@hotmail.com |
1ef572e5f0430010163fce4cb07034c4a4dbfe00 | 45ca4f34adf6c3b3c13be2302a94d162ffb256d1 | /python/metro/Windows/initDatabase.py | 9fc9edab776365ecf29a9f54c7139efb3a5b0e6d | [] | no_license | amaranth0203/Sources | a7c961525139314cdbcf29eeff5c55050c1bce10 | a474f9e104dbd6a7af6ad89f16cce028e0505424 | refs/heads/master | 2021-01-24T17:20:09.405819 | 2018-07-13T02:47:50 | 2018-07-13T02:47:50 | 47,556,547 | 5 | 6 | null | null | null | null | GB18030 | Python | false | false | 2,615 | py | #!/usr/bin/env python
#-*- coding: gbk -*-
__author__ = 'QiYunhu-13111020'
'''
用于初始化数据库
price.xls是从百度找到的西安地铁价格表
简单地从里边读出数据用sqlite3存储到metro.db的METROPRICE表中
CONTEXT表用于保存余票数量和本站名称
默认本站为'小寨',余票2张
SELLINGRECORD表用于保存交易记录
2014-11-25
'''
import xlrd , sqlite3,... | [
"qiyunhu@bbktel.com"
] | qiyunhu@bbktel.com |
b16fadb21431c33e8e177f4b007b85063c3e167a | 9f52ac141023dcddb4fbe88b881feaca5be6328f | /ros/build/styx_msgs/catkin_generated/pkg.develspace.context.pc.py | 18610254de217a4132dbf9fb576247ad636a13ec | [
"MIT"
] | permissive | uniquetrij/CarND-T3-P4-Capstone | 9b6613339eb33421112130e7b37f46aaaa88a298 | 82f85af8c5554b51afca3c282f6230d3733a376a | refs/heads/master | 2020-03-18T11:53:58.175809 | 2018-06-08T05:54:29 | 2018-06-08T05:54:29 | 134,696,861 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/anupam/Desktop/CarND-T3-P4-Capstone/ros/devel/include".split(';') if "/home/anupam/Desktop/CarND-T3-P4-Capstone/ros/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_... | [
"anupamb266@gmail.com"
] | anupamb266@gmail.com |
fd9cdc588b40d1d364229960b4c6113ac95950e6 | 7be96b3f076e54edc53c8655272f6f230762eec2 | /config.py | b52c621a44ae3b19b1c1b31d280783e0678efb0b | [
"MIT"
] | permissive | Yixiao-M/DAN | 36ea2d375dba946fa91045fac57c483ffb0992b6 | 6efffddfd4eb4ea1db497035513c60af0ed38feb | refs/heads/main | 2023-08-12T21:59:41.026835 | 2021-09-24T12:26:24 | 2021-09-24T12:26:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | import os
import argparse
import torch
def config(args=None):
parser = argparse.ArgumentParser()
# data
parser.add_argument('--target_size', type=int, default=20, help="The targets amount")
parser.add_argument('--batch_size', type=int, default=16, help="Batch size")
# model
parser.add_argume... | [
"caoyuhong001@gmail.com"
] | caoyuhong001@gmail.com |
3d325135422a83e7942d4164fb53d194a67e4d51 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/20181228-AtCoder Run/abc060/a.py | e46e119bb58a491f4e1804883c6cc27488c5b02f | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 224 | py | # -*- coding: utf-8 -*-
def main():
a, b, c = map(str, input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()
| [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
b786ba2b7bb63db00f9d8cabbe01d3dc1721bf74 | fc1f7d80e3c961db91e8b225f00d8747aae10f8d | /env/bin/isort | 3e79bb8e80e22374577f99b3c9c05f37ce460f1c | [] | no_license | Ivan252512/VueDjangoRestCRUD | 701a3c22f1b50c346c098767cd69497cee61e4fd | 899d645b96e1d00c76c9a7792e91fd4d6a380ad9 | refs/heads/master | 2020-05-24T18:09:30.680461 | 2019-05-18T20:33:43 | 2019-05-18T20:33:43 | 187,402,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/ivan/Documentos/VueFacilito/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ivanpineda@ciencias.unam.mx"
] | ivanpineda@ciencias.unam.mx | |
b7ecc379c8633ecef77b63d2bac23e4ee0e02ff1 | cdbc39fe56a99c9b41468afff8947133d8b5f1f4 | /Drill/Drill 8-2/title_state.py | 8cd970f5cd0d7e77cf0365507bac93463e8fd79e | [] | no_license | kimduuukbae/2DGP | 07186a09e5b63e998f9a37ec43e3350620adeea0 | 89167e1e6291ad1efa798f6f597b4193aa311efd | refs/heads/master | 2020-07-29T07:04:12.462185 | 2019-12-12T12:48:39 | 2019-12-12T12:48:39 | 209,708,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from pico2d import *
import game_framework
import main_state
name = "TitleState"
image = None
def enter():
global image
image = load_image('title.png')
def exit():
global image
del(image)
def handle_events():
events= get_events()
for event in events:
if event.type == SDL_QUIT:
... | [
"qlccksdlf@gmail.com"
] | qlccksdlf@gmail.com |
8757e0225f0370dc6e500bbb529ca599bdc5c10e | 61238062e5a521f29f76f7b2f0d0fe6ada04fb73 | /model_tester.py | 70a8ce510ae23c73ab5f33ab89a1aed3a3d4da5a | [] | no_license | pmlab-ucd/COSMOS_MINING | 391ede795193c39cf75217a7cf2ee1c65f8926bd | 05ee3538ea8936afa7e5485f8b7513301b07366c | refs/heads/master | 2022-01-07T18:34:59.146425 | 2019-06-07T00:53:23 | 2019-06-07T00:53:23 | 79,680,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from gensim import corpora, models
from main import perm_types, dist_types
from utils import Utilities
import os
from miner import Miner
class ModelTester:
TAG = 'COSMOS_MINING_PY_MODEL_TESTER'
def __init__(self, model_file, super_out_dir='Play_win8', perm_type='Location', dist_type='all'):
self.model... | [
"haofu@ucdavis.edu"
] | haofu@ucdavis.edu |
5af9309aa6ef6f3b2bc63b7721ce429cbce5197b | da025d7e61a7e24fac981f5422f946cf691f7a10 | /main.py | f1d42889fd7a1ebbb3b3ed13f6fea907199611ab | [
"MIT"
] | permissive | LSH9832/EasyTranslation | 4741cc77b7934fa9e2c22ce8ed86f2ec23ac4b27 | dc15531eda277932b0d084849b8dad0a132ddb89 | refs/heads/main | 2023-08-28T07:21:27.178236 | 2021-11-05T15:49:28 | 2021-11-05T15:49:28 | 424,200,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,339 | py | from packages.translation_ui2py import Ui_MainWindow as MAIN
from sys import argv, exit
from PyQt5 import QtCore, QtGui
from PyQt5.QtCore import QTimer
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtGui import QIcon
from packages.translate import *
from pymouse import... | [
"noreply@github.com"
] | noreply@github.com |
c09bdad7664c65fe8d8e3cb86ec8865551e304a9 | 1c6e5c808c1a3e6242e40b15ae711574e670c3b6 | /food_management/constants/enums.py | 82bfebbb5237fed3541c3c18fdce86151e5b05c3 | [] | no_license | KatakamVedaVandhana/smart_food_management-vandhana | dbe195994c110471d0ae7a5a53adef1441e86466 | 19e410a2aa792b22889a2dfed599312ba6b5a7ad | refs/heads/master | 2023-07-09T05:43:17.491313 | 2020-06-15T06:44:00 | 2020-06-15T06:44:00 | 269,609,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import enum
from ib_common.constants import BaseEnumClass
class CodeLanguage(BaseEnumClass, enum.Enum):
python = "PYTHON"
c_language = "C"
c_plus_plus = "CPP"
python36 = "PYTHON36"
python37 = "PYTHON37"
python38 = "PYTHON38"
python38_datascience = "PYTHON38_DATASCIENCE"
python38_aiml ... | [
"vandhanakatakam@gmail.com"
] | vandhanakatakam@gmail.com |
adfc35e34a166022db721e0c2f10e37c98f7a266 | 8096e4c3c12fda39c0cac9a805415263c0840a9d | /bus-performace-balt-link/classes.py | 1d667f26bdcda68ad868cdbd7d617af660d50b2f | [] | no_license | Uberursa/bus-performace-balt-link | 8052082f9a81efe535f31c0efda960e679d77dbd | aa924cd84a230cdc3189574c6f28134f04ae2f57 | refs/heads/master | 2021-08-24T03:13:40.689491 | 2017-12-07T20:41:50 | 2017-12-07T20:41:50 | 113,495,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,804 | py | from datetime import datetime, timedelta
import numpy
class TimeStatistic():
def average(self):
timedelta_list = self.timedeltas()
time_list = self.filter_outliers([timedelta.seconds for timedelta in timedelta_list])
if (len(time_list) > 0):
return (len(time_list), s... | [
"seneschaltj@W-AMBLT-D-00144.corp.pbwan.net"
] | seneschaltj@W-AMBLT-D-00144.corp.pbwan.net |
b44430e0ac7fd1ee3719af44bfb2ccd44f18a730 | d204ea6f985282f1cffd27fde23fed367362e00e | /branches/v1/portfolio/urls.py | 197d6d7bcce66f230007c5f626ac0dae1147cd96 | [] | no_license | ameotech-informatics/portfolio | 759ad3876adec37779f7fa77a028963f571dab0b | 330a57169566b1ed6a8fa469934b7ce5b80417ce | refs/heads/master | 2021-01-22T04:34:18.820182 | 2017-02-10T11:55:17 | 2017-02-10T11:55:17 | 81,558,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from django.conf.urls import url
from portfolio import views as portviews
urlpatterns = [
url(r'^new/$', portviews.createportfolio),
url(r'^view/(?P<portuuid>[0-9,a-z,A-Z]+)$', portviews.view),
url(r'^$', portviews.index),
url(r'^open/(?P<portfolioid>[0-9]+)$', portviews.openportfolio),
url(r'... | [
"parmjeet@ameotech.com"
] | parmjeet@ameotech.com |
245eb1ac857cb8fdbdb760281037ae7b9af4424f | aef01ec0f14b10f9dd4dee67e6529aa43447c757 | /Port-Obj/customfunctions.py | 0a7d260d8ffb694dd2b472b3ad45e96ce1ea988c | [
"BSD-3-Clause"
] | permissive | songchaizero/BulkPushObjectsFMC | 0d0019548ee0102884f4a964a36267cfda4095cb | f8fd5d8240396ba4fb251c8dd093815cb5918de8 | refs/heads/master | 2023-01-23T17:16:46.571491 | 2020-11-27T08:54:58 | 2020-11-27T08:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | """
This python module was created by Shubham Bharti.
Feel free to send comments/suggestions/improvements. Either by email: shbharti@cisco.com or more importantly via a pull
request from the github repository: https://github.com/shubhambharti89/FMCAPI
"""
import csv
# Function to convert a CSV to JSON
def csvtojson(... | [
"noreply@github.com"
] | noreply@github.com |
f30e390e9256b93999d1c3a66ed1a5ae6ada94e0 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/demo_20201106173944.py | 6d65b718ae355669c834ddbbe48686434fa086b7 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # a = 1
# if a==0:
# print("a=0")
# else:
# print("a!0")
# """
# x>1 (3x-5)
# -1<=x<=1 (x+2)
# x < -1 (5x+3)
# """
# x = int(input("输入您的数字:"))
# if x > 1:
# print(3*x-5)
# else:
# if x >= -1:
# print(x + 2)
# else:
# print(5*x+3)
# 猜数字游戏
# import random
# computet_num = rando... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
66464eceb3dfaf3741db87846f9db082eba16a6e | ac96a9c0ce734e3d497f47b13ee8c54bc254f022 | /canopy-cover-enhancement/models/cycle_gan_model.py | b3c52c7f6309c6e9772255616ced002e1169a602 | [
"BSD-3-Clause"
] | permissive | terraref/extractors-stereo-rgb | 9f06ddb540f8d2d265fafc0897d25384004e3439 | 3efa2dba583cd31bc106a30f8c211711a1fd4762 | refs/heads/master | 2020-07-23T10:45:19.882933 | 2020-04-04T00:08:07 | 2020-04-04T00:08:07 | 67,512,843 | 2 | 5 | BSD-3-Clause | 2020-04-04T00:08:09 | 2016-09-06T13:55:36 | Python | UTF-8 | Python | false | false | 9,385 | py | import numpy as np
import torch
import os
from collections import OrderedDict
from torch.autograd import Variable
import itertools
import util.util as util
from util.image_pool import ImagePool
from .base_model import BaseModel
from . import networks
import sys
class CycleGANModel(BaseModel):
def name(self):
... | [
"noreply@github.com"
] | noreply@github.com |
7f84481077a3062b8f9c0796ba6b930383820f11 | 6d44fcee0bf1306d803910152a7f39cef83ae9bc | /Tkinter intro.py | 45eb8d5b88db3b6bf9ab871dabac26f4a8d7f32c | [] | no_license | abhishekcodes/Python_basic_practice_codes | fae53a8a754ce86cc342bcff5046a3be638e7785 | 082d1d2b7ce8f4d6cd1df9a5544d744a4fb070ca | refs/heads/master | 2020-04-20T05:44:05.099434 | 2019-02-01T08:08:58 | 2019-02-01T08:08:58 | 168,663,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 14 11:32:55 2018
@author: abhishek chandel
"""
from tkinter import 8
root = Tk()
theLabel = Label(root, text= "this is too easy")
theLabel.pack()
root.mainloop()
| [
"noreply@github.com"
] | noreply@github.com |
f2bd287a1b5d81f6fc4589c4b890f4bf90831612 | 733d611026eb6c816a8ac35a7f5b397cd07e4e55 | /guestbook/db_con.py | 2db76e3b5778b671a508c50128e86bfa9ce70b5f | [] | no_license | DeVeom/pyweb | 9bfb26e3256ca255ca7e27520d79b50068ca567a | 8c21eb7171b64fcfa826116b9b37cf605ce488ef | refs/heads/master | 2022-04-03T02:46:40.644838 | 2020-01-14T05:11:52 | 2020-01-14T05:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | import mysql, mysql.connector
from mysql.connector import Error, errorcode
class Db:
dbconfig = {'host':'localhost', 'user':'root', 'password':'', 'database':'gb_d'}
conn = mysql.connector.connect(**dbconfig)
cursor = conn.cursor()
#글쓰기
def writeContent(self, id, name, title, content):
... | [
"geekhaam@gmail.com"
] | geekhaam@gmail.com |
6c3f4e6109e186e28c50a5ded0b19ba5ac43955e | fc5b9c82cf13a840d0aaadd64ed03de1408e4dec | /rpn.py | 05f856953e63d08f81a100e83117eb8200ef666c | [] | no_license | chonghaogoh/c4cs-w18-rpn | 5514568eb223ec5a5df735afdaebbcca62632696 | 0faa12a194147e0519f8bc06af13a1e07e33a8da | refs/heads/master | 2021-04-27T07:34:32.039180 | 2018-03-07T22:21:07 | 2018-03-07T22:21:07 | 122,635,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | #!/usr/bin/env python3
import operator
import logging
import sys
import math
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
sh = logging.StreamHandler(sys.stdout)
logger.addHandler(sh)
operators = {
'+': operator.add,
'-': operator.sub,
'*': operator.mul,
'/': operator.truediv,
... | [
"chonghao@umich.edu"
] | chonghao@umich.edu |
0fedcb5bb0e985750793291169de741846c8f6af | 735d8c684b7f82ed3e33499bf4069d846d53f662 | /saral7.py | 2c049db583db4403b57291f767be83d7d68a6854 | [] | no_license | degavathmamatha/json_py | 6d72eb7a3bd75fd0578fb60880f8e88fe92cbcf0 | 53e91c7e9909050b139dfec6ec6d4900798e6e1c | refs/heads/main | 2023-05-11T07:01:25.505425 | 2021-06-02T17:34:40 | 2021-06-02T17:34:40 | 370,576,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import json
n_dic={}
a_file=open("mammu.txt","r")
for line in a_file:
key,value=line.strip().split(None,1)
n_dic[key]=value.strip()
print(n_dic) | [
"noreply@github.com"
] | noreply@github.com |
1300873c8a24b12df81df6006a135fe297dab299 | 7095bd6c7df3e36beeaf6f2fff321c1994778817 | /try_django/src/blog/migrations/0003_auto_20190609_1303.py | 8b419d2c612ca7e259bd41fb33966cc36ccff5fd | [] | no_license | bajpaiNikhil/dev-blog | 4c6f0b5d6a96cc2552acd91b44e3fe74629bdaed | b2a3823931520292cabaeba94bd8161265f143b0 | refs/heads/master | 2020-06-02T08:39:12.043844 | 2019-07-04T03:25:37 | 2019-07-04T03:25:37 | 191,102,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 2.2 on 2019-06-09 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_blogpost_slug'),
]
operations = [
migrations.AlterField(
model_name='blogpost',
name='slug',
... | [
"nikhil.cse16@gmail.com"
] | nikhil.cse16@gmail.com |
4d714af6aa6af11a349fb0056aae7c02f337d222 | b4036618ad1fd5385712e14b0f304dab315e5eeb | /tests/test_matrices/test_matrix.py | 7cbf6663f36270e64d5450a3bfcc2c5c3f05171b | [
"MIT"
] | permissive | jackromo/mathLibPy | 02edfa6b48a7a0049a2ee3aa48d6ac8f07f2e8f6 | b80badd293b93da85aaf122c3d3da022f6dab361 | refs/heads/master | 2021-01-21T13:57:21.567231 | 2016-05-28T14:05:26 | 2016-05-28T14:05:26 | 52,524,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | import unittest
from mathlibpy.matrices import *
class MatrixTester(unittest.TestCase):
def setUp(self):
# Generic matrices used for tests
self.m1 = Matrix(None, 2, 2)
self.m2 = Matrix([[1, 1],
[2, 1]])
self.ident = Matrix.identity(2)
self.m3 = M... | [
"sharrackor@gmail.com"
] | sharrackor@gmail.com |
f384cb3dfca49f934905509ec5d386b4727d7cce | 987d03619709cc055f49c572a1a43cda17b70860 | /api/serializers.py | d2f58d79f8e961cf65364e1dc493712305afcefe | [] | no_license | zelo0/reviewzip | c627b78c0d2709e180f3ea035aef82d654acf303 | 4e67b6ab34181ede3f6a8fcffadea076cc7b06c3 | refs/heads/master | 2023-03-06T17:47:16.482156 | 2021-02-21T11:51:55 | 2021-02-21T11:51:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from rest_framework import serializers
from reviewzip.models import Sentence, Keyword, Review
class SentenceSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Sentence
fields = ['content'] | [
"greenman7@gmail.com"
] | greenman7@gmail.com |
29ebbc80d07d230336b6b364cbb54881f049dc1e | 5a4e3456ed92cffbd210bca1021bd29a8de88617 | /TODOS_CBV/wsgi.py | b036801a364815ed47ff1384af429beff5b8f9d2 | [] | no_license | The-Wall-007/-v-simple--Django-DRUD-CBV-TodoApp | 72007d173e714a2594ff79e87b7eb84b6ddff468 | b20fe0091d8dd084640947b6d32d9eca7af8de2e | refs/heads/master | 2022-12-04T07:40:04.601952 | 2020-08-28T08:41:57 | 2020-08-28T08:41:57 | 290,992,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for TODOS_CBV project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"dvlpatel2410@gmail.com"
] | dvlpatel2410@gmail.com |
e12e238c0a026fb7503d99ce43481bd5ef641249 | 84cd51502a8e091452de7ff63f729c6f762fec6f | /python/avcmpclient/avcmp.py | c66a2e409854348bdfc38cbd9789e53b574ea890 | [] | no_license | thinkingl/thinkingl-code-lib | 4a5d8b431fed998cb1dd2e5f541a6a322880429e | 75cb90a53c8bab8009c39b16d73913cf870c6d71 | refs/heads/master | 2022-12-25T08:32:00.813091 | 2022-12-14T06:18:51 | 2022-12-14T06:18:51 | 32,558,719 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,447 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import os
import sqlite3
import time
import json
#import thread
#这里我们提供必要的引用。基本控件位于pyqt5.qtwidgets模块中。
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QHBoxLayout, QDialog, QVBoxLayout, QPushButton, QSizePolicy
from PyQt5.QtGui import QWindow, QPicture, ... | [
"thinkingzx@gmail.com"
] | thinkingzx@gmail.com |
fce6fbf57589d32609f8d191b7081ab597cd3fb1 | 84fabfa15466d8310f7d71958234a2a6e4f2f873 | /jrieke/datasets.py | acb7299a5bc7390a47915050273a4c178408a30b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cebudding/Pytorch-LRP | 216f5215f0786de3a0204a8c461c501c60c80b0a | 672d4b42a9712c9046c29f194a8f960e3efc5f99 | refs/heads/master | 2020-05-27T22:38:48.620149 | 2019-03-21T21:14:05 | 2019-03-21T21:14:05 | 188,808,038 | 1 | 0 | BSD-3-Clause | 2019-05-27T08:56:58 | 2019-05-27T08:56:58 | null | UTF-8 | Python | false | false | 10,862 | py | import numpy as np
import pandas as pd
import os
from jrieke import utils
from tqdm import tqdm_notebook
import multiprocessing
from settings import settings
import torch
from torch.utils.data import Dataset, DataLoader
from tabulate import tabulate
# Binary brain mask used to cut out the skull.
mask = utils.load_n... | [
"moritzb@bccn-berlin.de"
] | moritzb@bccn-berlin.de |
8779111bb0e16d41e3ba2b5b55fa5085abddca1d | 2b45505f5e62273a34f81b626b1aac6395cab24b | /UTMHandling/route/routePlan.py | 2bc1a448f1193a9e25cf14c6ed818240bbd7ad58 | [] | no_license | rungstroem/DronePerceptionProject2 | e13d280145eb85b1e567e0052b35deb4a604a232 | c182ec0e48c65aeaa20322a7c1f113866fb051bc | refs/heads/master | 2023-04-17T10:15:25.266268 | 2021-04-23T18:37:12 | 2021-04-23T18:37:12 | 359,785,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | #!/usr/bin/env python3
import json
class routePlan:
def route(inFile, outFile, cSpeed):
x = [];
y = [];
z = [];
fData = open(inFile, 'r');
for line in fData :
csv = line.split(',');
x.append(float(csv[0]));
y.append(float(csv[1]));
z.append(float(csv[2]));
fData.close();
# Boiler plate co... | [
"kenla16@student.sdu.dk"
] | kenla16@student.sdu.dk |
41cc2e1bdbdc341bf991d5e4a6e225b13acba6cb | 6710c52d04e17facbc9fb35a7df313f7a2a7bd53 | /0234. Palindrome Linked List.py | 38f97dc46d5f45578be5aaebb55f90e98ad5532b | [] | no_license | pwang867/LeetCode-Solutions-Python | 535088fbe747a453360457728cc22cf336020bd2 | 188befbfb7080ba1053ee1f7187b177b64cf42d2 | refs/heads/master | 2022-11-13T16:20:28.211707 | 2020-06-28T06:01:14 | 2020-06-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
# time O(n), space O(1) in place
class Solution(object):
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
if n... | [
"wzhou007@ucr.edu"
] | wzhou007@ucr.edu |
4320a8fb8a9ca1035fa12fa58c5eab936a1f8721 | 3206bd13e1223dd212212e4e00a2d390bdd4a97c | /mxfold2/__init__.py | ff5cf184b792026d706ce01c5433ae8dfe4aa30e | [
"MIT"
] | permissive | mxfold/mxfold2 | a34a7b304308c0f4cb7ae43f7980cb37b8cd8d80 | 51b213676708bebd664f0c40873a46e09353e1ee | refs/heads/master | 2023-08-22T05:21:41.414935 | 2023-04-13T06:31:16 | 2023-04-13T06:31:16 | 286,628,838 | 31 | 8 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | #from .dnnfold import * | [
"satoken@bio.keio.ac.jp"
] | satoken@bio.keio.ac.jp |
e63d3e08fdd7bab14268ec113c0d9363717d9b97 | 04e2a28228e221ab436ee26992129cc7add0410d | /algorithim/weight.py | c0d46b940c073eb70363f9c8bdb41f4683e2c10c | [] | no_license | youngjaean/practice-algorithm | f95ee9f6041c9534554df0e35b3effb11dc80ee4 | ff393910707e47f71575e1325fdcd77b195fb104 | refs/heads/master | 2021-05-25T22:26:02.233836 | 2020-09-16T21:30:19 | 2020-09-16T21:30:19 | 253,946,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from collections import deque
n, m = map(int, input().split())
adj = [[] for _ in range(n + 1)]
def bfs(c):
queue = deque([start_node])
visited = [False] * (n + 1)
visited[start_node] = True
while queue:
x = queue.popleft()
for y, weight in adj[x]:
if not visited[y] and we... | [
"yous4831@hanmail.net"
] | yous4831@hanmail.net |
ca315560f4e44cd7baeebfe33033c2d31e049cc7 | 134be7e883e5477d2b849c12eb91a24386efe2b0 | /tubers/youtubers/migrations/0002_auto_20210817_2200.py | 2153ced22f6ac44fa2bf78320d00041d0e6c3faa | [] | no_license | 2000sagarr/Ytubers-project | 2fcd04fe80412ffb56d237e7d691e80919fab4e3 | 51b5cef08bd90dd69db275f79f84a01b24b8ef3e | refs/heads/main | 2023-07-16T16:17:06.388141 | 2021-08-31T09:52:59 | 2021-08-31T09:52:59 | 397,467,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Generated by Django 3.2.6 on 2021-08-17 16:30
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('youtubers', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='youtuber',
n... | [
"2000sagarr@gmail.com"
] | 2000sagarr@gmail.com |
813c88604e0dc63335d38bbdd5c9a2ca78a1b246 | 0ae8d4aa8171d46e3dab71adaa26127c01360b87 | /дом_школа_дом.py | 19d65a403b75da4c938d24ecbea83163a3581925 | [] | no_license | dasherinuk/classwork | f004f7587157171cdb1c65b1eb13a721feb6c00b | 8b2efc055409576c59da878d293d8df6fd9ffb8e | refs/heads/master | 2023-06-04T16:08:53.299460 | 2021-06-19T09:18:20 | 2021-06-19T09:18:20 | 297,706,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | rides=int(input("Enter amount of rides"))
if rides%2==0:
print("school")
else:
print("home")
| [
"dasherpegusus@gmail.com"
] | dasherpegusus@gmail.com |
27595488cbfbd204c5edd5aa32464d6815764993 | 4e67c2edd71493a98a3f13e5b2073c1d05b1b656 | /Semestre 01/LogicaProgramacao/Aula 04.08.2020/Decrescente.py | eb1b31d2b5274617cd7fd88602938f3541556159 | [] | no_license | felipellima83/UniCEUB | 05991d7a02b13cd4e236f3be3a34726af2dc1504 | dbc44866545b5247d1b5f76ec6e9b7778e54093e | refs/heads/master | 2023-07-08T19:04:19.830473 | 2021-08-12T12:33:49 | 2021-08-12T12:33:49 | 249,958,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #Professor: Antônio Barbosa Junior
#Disciplina: Lógica de programação
#Aluno: Felipe Ferreira Lima e Lima
#Matrícula: 22001310
#Data: 08/04/2020
#Exercício 06
soma = 0
i = 0
lista = range(7, -1, -1)
# ou lista = [7,6,5,4,3,2,1,0]
for x in lista:
print(x, end=" ") | [
"felipellima83@gmail.com"
] | felipellima83@gmail.com |
b6f69319214597816fa9eaa897854faad764b3a8 | cb29a2e5021faffd5bbe975c3df25f3970d2cd5b | /150 Graph And Algorithm/warshall.py | d30ff566915fc02d8802159adae6dc281e5274f9 | [] | no_license | zhao-xuan/ImperialCoursework | dcabf1e6a4cd481b9f71090e59993465557c0381 | e380c70e66466bf7015859041050cbe4646ae7e6 | refs/heads/master | 2021-10-24T08:58:41.339166 | 2021-10-16T19:24:58 | 2021-10-16T19:24:58 | 239,817,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | import sys
'''
DFS algorithm for graphs on 150 note page 155.
'''
undirected = [[ 0, 3, 0, 0, 0, 8, 0, 2, 0, 3, 2 ],
[ 3, 0, 5, 0, 0, 0, 0, 0, 0, 0, 4 ],
[ 0, 5, 0, 4, 3, 3, 0, 0, 0, 0, 0 ],
[ 0, 0, 4, 0, 3, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 3, 3, 0, 4, 0, 0... | [
"tomzhao@tomzhaos-iMac.lan"
] | tomzhao@tomzhaos-iMac.lan |
42550e4a230573b2c77991a471cb911d487a4bbe | 8d11bfe5ce76b6a37f598485a13ab13c6b88dbd8 | /task1/forms.py | 2b94298b9837b35d488ae99da9f600f4842e0956 | [] | no_license | yaschk/-Notes-grafomana | 4110437a51bff55b551831330b9058ff90cb3ce0 | 660c6bc401ab0bcc3d11b700d462fc98191d6c61 | refs/heads/master | 2020-05-07T08:29:05.591950 | 2019-04-09T10:52:11 | 2019-04-09T10:52:11 | 180,328,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django import forms
from .models import *
class NoteForm(forms.ModelForm):
class Meta:
model = Note
exclude = [""]
| [
"tok29@i.ua"
] | tok29@i.ua |
38c43c83964024b74479add7f0bcda934ea9529c | 6aa3c372bd2b058be406955768b3fc2047b580e6 | /modules/datastructures/TrainData_DelphesDomAda.py | fdfbc32b890f974127958ad46519ae415b4a7411 | [] | no_license | mverzett/DeepJet-1 | b1aa1491bba284adfa78208237c48ef37fbe4ab3 | 04efbac1a6e4bef97a7ca1bc64345cc048f7ce20 | refs/heads/master | 2021-03-30T15:35:20.059508 | 2018-02-20T17:28:07 | 2018-02-20T17:28:07 | 120,431,339 | 0 | 0 | null | 2018-02-06T09:25:49 | 2018-02-06T09:25:49 | null | UTF-8 | Python | false | false | 1,988 | py | '''
Created on 21 Feb 2017
@author: jkiesele
'''
from TrainDataDeepJetDelphes import TrainDataDeepJetDelphes, fileTimeOut
class TrainData_DelphesDomAda(TrainDataDeepJetDelphes):
'''
example data structure - basis for further developments
'''
def __init__(self):
'''
Constructor
... | [
"jkiesele@cern.ch"
] | jkiesele@cern.ch |
158692323da657d0cf8086a5b00d0b90d3d7c5a8 | bd4812ba7af196d2e866cbf2935b2e7308d95066 | /python/leetcode/024_swap_nodes_in_pairs.py | d79edba96ef1dc07ede242c6bafa8a371bfe4052 | [
"Apache-2.0"
] | permissive | yxun/notebook | f507201e15c4376f0655121724254c0d5275c3b1 | 00eb1953d872a9a93a13d7cf23d8e4ed641d1ce7 | refs/heads/master | 2023-09-01T03:50:48.142295 | 2023-08-17T12:11:25 | 2023-08-17T12:11:25 | 207,569,654 | 2 | 2 | Apache-2.0 | 2023-08-17T12:11:26 | 2019-09-10T13:38:49 | Java | UTF-8 | Python | false | false | 1,334 | py | #%%
"""
- Swap Nodes in Pairs
- https://leetcode.com/problems/swap-nodes-in-pairs/
- Medium
Given a linked list, swap every two adjacent nodes and return its head.
You may not modify the values in the list's nodes, only nodes itself may be changed.
Example:
Given 1->2->3->4, you should return the list as 2->1->4... | [
"yuanlin.yxu@gmail.com"
] | yuanlin.yxu@gmail.com |
429eaf98968bce293b39162fd1da863769453bed | 8e4c8e6d76227cbd2422331fe0d6cddd283d8e3e | /virtual/bin/pip | e04a1499f9970f20c3bba7c3d7314326fec06ce4 | [
"MIT"
] | permissive | s-odhiambo/Pitch | 44d51cf5bd3b81711deab427c3af11d5eccdd61b | 593eb0ff500bb0f68b72bf8b4363d249485376ed | refs/heads/master | 2022-09-30T16:04:15.857883 | 2019-11-26T10:21:58 | 2019-11-26T10:21:58 | 223,409,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/moringa/Desktop/Pitch/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"samuelangienda1998@gmail.com"
] | samuelangienda1998@gmail.com | |
b8c012b9aa398b08a1b724ec7ffb2e68be91f579 | 5beb30e66ff030bf0264725b8774e18bade1eaf0 | /assignment1/cs231n/data_utils.py | 86548f6c5fedfd20dd5800ab3934f3f2826a965a | [] | no_license | amitoengg/cs231n-winter | a845ab97f63da3b561cfd832dc3f2b98985e2651 | 90367debbdb51e62096fa17b37acc34526dd89a0 | refs/heads/master | 2021-01-19T11:03:59.802697 | 2017-04-26T15:17:04 | 2017-04-26T15:17:04 | 87,924,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,563 | py | import cPickle as pickle
import numpy as np
import os
from scipy.misc import imread
def load_CIFAR_batch(filename):
""" load single batch of cifar """
with open(filename, 'rb') as f:
datadict = pickle.load(f)
X = datadict['data']
Y = datadict['labels']
X = X.reshape(10000, 3, 32, 32).transpose(0,2,... | [
"amitoengg@gmail.com"
] | amitoengg@gmail.com |
9fe3d3ff625f182e17a00bafe08ab44fdb0b2978 | 03abcecf6b9c2a49088c78d8e69ee18ae2f7b747 | /blog/migrations/0008_alter_post_slug.py | b5845c885f58c332fe5e71b4b5befb68e8d7fa65 | [] | no_license | DarkSide1710/cook | 0273dfcd6bd9d95108654a70841a9c77183ccb58 | 73617b09c69aa7df60aa6fbc4bbe154bd732ce06 | refs/heads/main | 2023-08-06T22:36:14.289478 | 2021-09-28T12:30:41 | 2021-09-28T12:30:41 | 411,260,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 3.2 on 2021-07-03 16:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_comment_create_at'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
... | [
"abdullayevxamdam9@gmail.com"
] | abdullayevxamdam9@gmail.com |
a5c6144c5afb24f3e824d8084f668e9f6221dc23 | fd89cc565c9a59e663e4bc1e79d45e8195b1d850 | /figscripts/timezones.py | df395272d19713368a650dd166bbaa72cfb8f4fb | [] | no_license | jonasvdw/kampalasensors | 21f23197f668dacae320a224d8a672702e07be75 | 27b0d191aa77390591a13ed40c729e9325f8efc8 | refs/heads/master | 2023-06-25T03:00:56.339776 | 2021-07-14T14:00:21 | 2021-07-14T14:00:21 | 367,323,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | #!/data/leuven/320/vsc32093/miniconda3/envs/science/bin/python
from datetime import datetime, tzinfo, timedelta
class UTC(tzinfo):
def utcoffset(self, dt):
return timedelta(0)
def dst(self, dt):
return timedelta(0)
class CEST(tzinfo):
def utcoffset(self, dt):
return timedelta(hou... | [
"jonas.vandewalle@kuleuven.be"
] | jonas.vandewalle@kuleuven.be |
4b373e8a1ed3298a24dc00f95a07b7ad4dababdf | 5a27c0b7dc996e6720e30fcab819cca18916af12 | /manage.py | e80058198ab4f8eca691ea40df45f177e39dd45f | [] | no_license | zhongxinlei/Micro_movies_flask | 1b7df7c8cf4ebac145959085adb1bdd97570dd31 | 6a6aac9ecacda52dde88ad0a554f5a99ac840fdb | refs/heads/master | 2021-04-26T21:51:03.012978 | 2018-03-27T06:41:34 | 2018-03-27T06:41:34 | 124,164,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # coding:utf8
from app import app
from flask_script import Manager
manage = Manager(app)
if __name__ == "__main__":
app.run(
host='0.0.0.0',
port=8001,
debug=True,
)
| [
"59871255@qq.com"
] | 59871255@qq.com |
11887d383e22055fe0ed0193394c2562e3d244b0 | 48934047ac284e2a9a745f00b5ec84b3d72382bf | /nyasha/blog/migrations/0005_auto__add_tag.py | e8afe3b0236239eb264ac782548a67fad230695b | [
"WTFPL"
] | permissive | Apkawa/nyasha | e36f4281c33eb6135320391349e2dadee3c01666 | 0d126e93be273ba73b005a793340501377485c3e | refs/heads/master | 2020-04-28T20:53:47.312077 | 2012-06-12T21:49:20 | 2012-06-12T21:49:20 | 1,100,616 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,518 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Tag'
db.create_table('blog_tag', (
('id', self.gf('django.db.models.fields.Aut... | [
"apkawa@gmail.com"
] | apkawa@gmail.com |
03e872ae483b0b33f5fad1e27f70e19be04fc611 | ee993b3b3f0abf83546a15e72e256ab908cc5e5b | /Data-Manipulation/filter.py | 882141d6607f216cd424aa91103fe8568314d944 | [
"MIT"
] | permissive | tusikalanse/Machine-Learning-for-Software-Engineers | d2e63a2c855a33e75e22c19504582592ab6261d7 | 59415e2db98ba2a1d97a55560d1c0cb8567b1725 | refs/heads/master | 2021-03-03T23:09:41.589142 | 2020-04-08T12:19:17 | 2020-04-08T12:19:17 | 245,992,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import numpy as np
arr = np.array([[0, 2, 3],
[1, 3, -6],
[-3, -2, 1]])
print(repr(arr == 3))
#array([[False, False, True], [False, True, False], [False, False, False]], dtype=bool)
#np.isnan
#np.where with 1 argument
arr = np.array([[0, 2, 3],
[1, 0, 0],
... | [
"615822545@qq.com"
] | 615822545@qq.com |
e946ef5578081e67bc0a31a4015f476309ac8b25 | dc9e59549a260be63a427caec1f882b9d8b7ddc4 | /my_serbot.py | dd5d6cd25b5369e1dbdbdb7417f4ed0ffcd4e983 | [] | no_license | JMK92/AIot_SerBOT | 8ba8be187640c702163ebd2c39ac94443a417d24 | 5063b298b6f7407d3de1368f51a619df3023063a | refs/heads/main | 2023-06-11T10:42:35.206109 | 2021-06-24T05:35:14 | 2021-06-24T05:35:14 | 378,931,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from pop import LiDAR, Pilot
SPEED = 50
direction = 0
lidar = LiDAR.Rplidar()
bot = Pilot.SerBot()
lidar.connect()
lidar.startMotor()
bot.setSpeed(SPEED)
while True:
collision = True
while collision:
collision = False
vectors = lidar.getVectors()
for v in vectors:
... | [
"noreply@github.com"
] | noreply@github.com |
bcb91515a8ae2dcd0118c015c2a9f315bceb49ee | 39917c8d8f1f71eee6dd3a2e82858fbabc9834de | /try(1).py | 8efaece8b45733dc69d8160e5c8cf7412080fe95 | [] | no_license | lkrdelange/NeuralNetworks | 2ee7b2d09aeba9d892ecb9de7573c8453a3bce14 | 0aa94284c9398975d938f0321cae67cd6cf83a77 | refs/heads/master | 2022-11-12T06:49:40.490713 | 2020-07-06T16:24:20 | 2020-07-06T16:24:20 | 266,582,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy.signal as sig
import os
from statsmodels.tsa.seasonal import seasonal_decompose
from statsmodels.tsa.stattools import adfuller
from statsmodels.tsa.arima_model import ARIMA
from statsmodels.tsa.api import Expone... | [
"lkrdelange@gmail.com"
] | lkrdelange@gmail.com |
f3acdac3cec7c99140af2bf68d17ebb3f6c47ebd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03112/s044499237.py | d133af3812b23eda812e0e4e272d7974e8c817c9 | [] | 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 | 1,289 | py | # なぜかうまくいかない
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
029c81b549e9282b6f68c0739e2079610361cce5 | 72246a70e272dfc279b1b4945c232f16900bb963 | /To_write_in_the_txt_file.py | 8ea3d0ff35b684318fb43fac57e91870fad16a2e | [] | no_license | stheartsachu/Python_basics_and_data_base_operations | bb15f4b06e404b8c3456061478e1a86fcb541fed | 6441eb247336cf5a0e935efc43f48d12aa32affe | refs/heads/master | 2020-06-25T09:09:59.021325 | 2019-07-28T09:35:07 | 2019-07-28T09:35:07 | 199,268,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Let us simplify the code
# by using the "with" Keyword.
# write to a text file
with open('t.txt','w') as f :
f.write('HEllo World ! ')
f.close()
# It will be Closed automaticallly
# f = open('t.txt', mode = 'w')
# w = create and write
# r = read(default)
# a = append
# x = create if not exist
# with = wit... | [
"seartsachu@gmail.com"
] | seartsachu@gmail.com |
ed0c7cafc02ed20df9c9793714c4521147b3b667 | e2b4e7d542ebd0b3b7f94f976b9dd43fa37443b0 | /venv/Lib/site-packages/OpenGL/raw/GL/VERSION/GL_3_1.py | 347342b2353d513b5cec3c8901cf05cc8ef52be6 | [
"MIT"
] | permissive | Timicxx/pyGL | 16b84488bcae41efa36c9100c49f4f0bac1403cc | 15c1ce5b2a7f7a749004bc1411e752d470f890bb | refs/heads/master | 2022-10-22T03:30:23.682509 | 2019-02-19T10:16:10 | 2019-02-19T10:16:10 | 171,451,478 | 0 | 1 | MIT | 2019-02-19T10:12:16 | 2019-02-19T10:12:16 | null | UTF-8 | Python | false | false | 6,194 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | [
"tymek1rt@hotmail.com"
] | tymek1rt@hotmail.com |
5b194af0cb62a7cc4dc26e25dd3534a3788743f2 | b9289d77e50f9bd700d7737875a79eba82642fcb | /dfs/driver_dfs.py | d2f309bfb4335c2d765135a3992b43acc25f7e0e | [] | no_license | ManchuChris/MongoPython | c98e4c534deb5e4f3cf19938a867a3f1fedb4790 | a6f32ee7b20a343788a60884b506dbd6ef1c8284 | refs/heads/master | 2020-06-11T16:33:21.713273 | 2020-03-23T05:04:29 | 2020-03-23T05:04:29 | 194,024,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import dfs
graphBase = {
"A": ["B", "C"],
"B": ["A", "C", "D"],
"C": ["A", "B", "D", "E"],
"D": ["B", "C", "E", "F"],
"E": ["C", "D"],
"F": ["D"]
}
dfs.dfsCall(graphBase, "E") | [
"napeng_55@hotmail.com"
] | napeng_55@hotmail.com |
cbbfba9bdb63e74a1c7c05035f325aa7f0d7af7e | c49e35bc834c259cc0d7ab2165dbd48e12f6d1b6 | /model/word_attn_classifier.py | c5ac2ca9a9d5b3b24f2e003883f3afb2027270a6 | [
"MIT"
] | permissive | kenchan0226/dual_view_review_sum | f18997bce101ee3ac70d96813d75c6cb29ac921c | 2ff1c7323b98f0a8ca1dfb0341806e05b87faf52 | refs/heads/master | 2023-03-02T10:00:26.315254 | 2021-02-03T02:13:27 | 2021-02-03T02:13:27 | 266,673,121 | 19 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | import torch
import torch.nn as nn
from torch.nn import init
from model.attention import Attention
class WordAttnClassifier(nn.Module):
def __init__(self, query_hidden_size, memory_bank_size, num_classes, attn_mode, dropout=0.0, ordinal=False, hr_enc=False):
super(WordAttnClassifier, self).__init__()
... | [
"kenchanhp@gmail.com"
] | kenchanhp@gmail.com |
1ebc38c9e5488846563e087b28f5172fb47bfd2c | fce15571b2b65769758d4885deb4365153672a47 | /task_queue/redis_impl.py | 280a7be2d96fe3b835fdcdecc0303fe4016e773c | [
"MIT"
] | permissive | xlui/eFuture | 239f66c698390af9d4c5b82b32eed81e36c177e8 | 9bb9e8faca561ca5ccfb16de5401b6acd2ec692d | refs/heads/py | 2021-06-02T23:52:08.224564 | 2019-08-24T04:57:24 | 2019-08-24T04:57:24 | 149,577,756 | 0 | 0 | MIT | 2021-03-20T00:10:07 | 2018-09-20T08:35:32 | Python | UTF-8 | Python | false | false | 1,624 | py | import datetime
import uuid
from log import logger
from task_queue import connection, QUEUE_KEY
def push(message: str, date: datetime.datetime):
"""Push a message into redis zset
:param message: message content
:param date: the date this message to be consumed
:return: None
"""
msg_id = str(... | [
"liuqi0315@gmail.com"
] | liuqi0315@gmail.com |
15597f1efbe177392e0cb9fe6aedc6269f5167fb | ab8927918abcb9e234797f4ba7a7454ee47dee34 | /middleware/app/views/__init__.py | 6f1cc113f1d144cf8b5143e191d4f6a4aa1ca0ef | [] | no_license | amirhaa/object-storage-challenge | 7de6ee5eccd83509f63f18d30deecf955e2d705f | b361c135201108f91083b32f6ece9d5666fab1dd | refs/heads/master | 2023-07-13T20:16:59.012958 | 2021-08-30T11:40:37 | 2021-08-30T11:40:37 | 396,215,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from flask import Blueprint
from .bucket import BucketPrefixApi, BucketPrefixApiV2
from .upload import UploadFileApi
bucket_api_blueprint = Blueprint("bucket_api", __name__)
bucket_api_v2_blueprint = Blueprint("bucket_api_v2", __name__)
upload_file_blueprint = Blueprint("upload_file", __name__)
bucket_api_blueprint.... | [
"aleahmad.amir@gmail.com"
] | aleahmad.amir@gmail.com |
ffc356e616385f5c09ef28a329e74cf2577799c2 | 4327db4046ca25c3c26a08c59f84b7b665f4be0d | /opensource_spider/spiders/opensource_git_spider.py | 657a3cdcf030e9d5d621a0c8f4ec3de659098562 | [] | no_license | netww/opensource_spider | 1674814c107e32f2279d47dba413742734c5498d | 0c06e17cd1f11b9034c9124ffaa75959a581912f | refs/heads/master | 2021-06-08T11:26:38.700196 | 2016-11-01T07:49:30 | 2016-11-01T07:49:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | #!/usr/bin/python
#coding=utf-8
# @hequan
from scrapy.spiders import Spider, Rule
from scrapy.selector import Selector
from scrapy.linkextractors import LinkExtractor
import re
from scrapy.spiders import CrawlSpider
from scrapy.http import Request
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from opensource... | [
"stamhe@163.com"
] | stamhe@163.com |
ca96eee30cde3c0ad0ac11b15fee00a1b8c0f8ea | 4d364819a1d9d36f4f7470156e19f5a202db99dc | /day10/day10_q1.py | 33c1f4cf87d306c2d6832a9e709637de54acc07d | [
"MIT"
] | permissive | antithalian/advent-of-code-2020 | 684bd24218919bcfb79cd2153265ebe76f9e7cb8 | bc26399a6fe9549c9d2c226752dbfd9610283577 | refs/heads/main | 2023-02-15T05:38:51.039051 | 2020-12-20T02:37:08 | 2020-12-20T02:37:08 | 317,451,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # day 10 challenge 1
# read input
ratings = []
with open('input.txt', 'r') as file:
for line in file:
ratings.append(int(line))
ratings.sort()
ratings.append(ratings[-1] + 3)
ratings.insert(0, 0)
one_ct = 0
thr_ct = 0
for ind, jlt in enumerate(ratings):
if ind < (len(ratings) - 1):
if (rati... | [
"jpsullivan2019@gmail.com"
] | jpsullivan2019@gmail.com |
90f481b1bb3871e4d0681cede2cb04f14c8d5bdd | 3f0120b3c1d655914f172755feebb1ca7ef00d9a | /experiment.py | a034786da92f5d72589b9bcce931db155c048a91 | [
"Apache-2.0"
] | permissive | Vitaly-Protasov/CL-Lsub | f4f5fac57ac54f249bada0f3d42c0074adbff030 | 1f173de4ee8530fcf7e92dfd403c219bc5610a58 | refs/heads/main | 2023-04-27T05:12:44.321265 | 2021-05-14T11:09:37 | 2021-05-14T11:09:37 | 328,423,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,703 | py | from utils import return_best_candidates, get_clear_context
from wordfreq import word_frequency
try:
from fastText_multilingual import fasttext
except:
print('Try: git clone https://github.com/babylonhealth/fastText_multilingual.git')
from typing import Union, List, Dict
def cos_sim_by_embeddings(word1_embed,... | [
"izakladno@yandex.ru"
] | izakladno@yandex.ru |
78baa51b8a10dc0b8652af89467a95ef295b9fb8 | 874718b8b29530bda665648d444edc55b5b6bd9e | /Problem53.py | bed6305ca0cde74fc132b2dfc5931d58679ef8e6 | [] | no_license | shiningPanther/Project-Euler | 08ba2fe6deb1353e7260f03a34eb73b5c83ea0be | e51db31f196a61bbc064e69c79e4e20fc017db8c | refs/heads/master | 2020-04-18T20:38:31.793607 | 2020-03-28T18:55:56 | 2020-03-28T18:55:56 | 167,742,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | '''
Project Euler Problem 52:
There are exactly ten ways of selecting three from five, 12345:
123, 124, 125, 134, 135, 145, 234, 235, 245, and 345
In combinatorics, we use the notation, 5C3=10
In general, nCr = n!/(r!(n−r)!) , where r≤n, n!=n×(n−1)×...×3×2×1, and 0!=1.
It is not until n=23, that a value exceeds ... | [
""
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.