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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3cc66bad7e993b2c3bf0995d8562331d79ffa43 | cde99415e12f638db52bc0aaade71d45333d4149 | /diaryproject2/urls.py | 9010d7ad2577a640d12ee217f2114854a18f09a5 | [] | no_license | lilda/diaryproject | 3ae23ecfc7ecdd29e700e560f1778a1fef0a1e02 | b1b69bd5fa5f2092cfa07eec6e8c64f4959120e5 | refs/heads/master | 2020-06-11T05:10:28.266541 | 2019-06-26T08:08:46 | 2019-06-26T08:08:46 | 193,858,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | """diaryproject2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"ubuntu@ip-172-31-45-122.ap-northeast-1.compute.internal"
] | ubuntu@ip-172-31-45-122.ap-northeast-1.compute.internal |
de13e65252fe4e1b6b1c8f2d16715729aa333a7d | b76204c0010f7ad724f890af32454d1e88e414d1 | /作业/第十一天作业/04-守护进程.py | 306bdfca88bc5cd677247b324220dba1bb0110a7 | [
"MIT"
] | permissive | zhangjiang1203/Python- | 773f4594939401d38c0f7fdb803d4b44891e4fc4 | 5e1df18be3d70bbe5403860e2f4775737b71ca81 | refs/heads/master | 2022-10-30T10:44:38.649037 | 2022-10-18T12:52:45 | 2022-10-18T12:52:45 | 117,959,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019-02-14 17:34
# @Author : zhangjiang
# @Site :
# @File : 04-守护进程.py
# @Software: PyCharm
from multiprocessing import Process
import time
def foo():
print(123)
time.sleep(1)
print('end123')
def bar():
print(456)
time.sleep(3)
... | [
"zhangjiang@imcoming.cn"
] | zhangjiang@imcoming.cn |
720e5e4753ddde2bd70941bc0d1d893de5e1bd04 | b8c1de69b62d086cf337f721479de2ad794deb44 | /Day05_Loop.py | e063e614ba4d8b3988442030df094d0b827ce6a2 | [] | no_license | yusukeaoki1223/HackerRank | c9ced47c3fcf64dae379576c3426723496f84dd6 | 77a2236c89a3607b0cd382712623eaadee453902 | refs/heads/master | 2020-07-08T13:37:47.848519 | 2019-09-12T06:06:16 | 2019-09-12T06:06:16 | 203,691,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 28 01:33:25 2019
@author: yusuke.aoki
"""
import math
import os
import random
import re
import sys
n = int(input())
for i in range(1,11):
k=n*i
print(str(n)+"x"+str(i)+"="+str(k)) | [
"noreply@github.com"
] | yusukeaoki1223.noreply@github.com |
2453ce3be0af4e8b4049634c771762e901a47884 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/window/conftest.py | 2af61b6375353f76bf7ec11644270c6810535eae | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | import pytest
@pytest.fixture(params=[True, False])
def raw(request):
return request.param
@pytest.fixture(
params=[
"triang",
"blackman",
"hamming",
"bartlett",
"bohman",
"blackmanharris",
"nuttall",
"barthann",
]
)
def... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
72a7bf0b181c09cc73c9f849f0115fcc099eca52 | 2a61fd43eefba838aa05d424be543cf1b656aaa4 | /model.py | 05282dace44593e863671d8eb46e2f66aea163a8 | [] | no_license | AmmieQi/DGCNN | a75eaed02f638f43a418d5d3102fa00375eadfdf | 6d34538463561d43094a7a77b95a2a0d555817e7 | refs/heads/master | 2020-05-24T14:08:08.920137 | 2019-03-19T04:52:16 | 2019-03-19T04:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import torch
import torch.nn.functional as F
from torch import nn
from torch.nn import Conv1d, MaxPool1d, Linear, Dropout
from torch_geometric.nn import GCNConv, global_sort_pool
from torch_geometric.utils import remove_self_loops
class Model(nn.Module):
def __init__(self, num_features, num_classes):
supe... | [
"leftthomas@qq.com"
] | leftthomas@qq.com |
b0042db5c563a76ff741cae0bfd618cea3af86eb | fba2f5e0ad3c6cdd50545b8a79798174d8bc92df | /ImageSpider/ImageSpider/items.py | b4299b45314a8cb6276983411c05205ce9dad389 | [
"Apache-2.0"
] | permissive | futheads/ScrapyProject | b9ebf10861e24cd429db355ed85d152d32ff8b84 | a3bfb221f914c0bdfb6569a9205be06ce019c507 | refs/heads/master | 2020-04-10T00:43:14.640763 | 2019-05-31T10:30:24 | 2019-05-31T10:30:24 | 160,694,142 | 2 | 0 | Apache-2.0 | 2018-12-08T13:59:12 | 2018-12-06T15:28:23 | Python | UTF-8 | Python | false | false | 266 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ImagespiderItem(scrapy.Item):
img_url = scrapy.Field()
img_name = scrapy.Field()
| [
"futhead@163.com"
] | futhead@163.com |
751261ea14bfadba46a6b86eb7a510f377e17ac2 | 30b97ab14b92dd205161d2554085973ba5e6b4ba | /data/GalaxyStarFormationRateFunction/conversion/convertSobral2013.py | 20af8b956f345a219ae500d897881e9c119ade38 | [] | no_license | jemme07/velociraptor-comparison-data | ceb172c9403e986e03e54f5e52e75e6b3c8612d3 | 873c955b3a7c2b90e3d63cdc5aba0e3665417a82 | refs/heads/master | 2023-08-15T02:43:20.337356 | 2021-10-18T09:29:22 | 2021-10-18T09:29:22 | 380,203,513 | 0 | 0 | null | 2021-06-25T10:28:35 | 2021-06-25T10:28:34 | null | UTF-8 | Python | false | false | 4,547 | py | from velociraptor.observations.objects import ObservationalData
import unyt
import numpy as np
import os
import sys
import re
import itertools as it
def pairwise(iterable):
"""
return successive pairs of elements from the iterable
i.e. (i0, i1), (i1, i2), (i2,i3), ...
it: the iterable to consume.
... | [
"calvin.v.sykes@durham.ac.uk"
] | calvin.v.sykes@durham.ac.uk |
39700ce52b75a9d1930323bc5ea883ab2a9741bf | b96e692639b300a733dad5d7c68cb09ea25baeba | /account/views.py | b46fe985803a19c706dd0a59789463563ae31a45 | [
"MIT"
] | permissive | mateuszwwwrobel/Expense_Tracker_Django | dce0194eaac6711f76b8edd8b2ae57389739edf9 | e84bda82433427608e026faa00a634c46a433179 | refs/heads/main | 2023-07-03T18:38:00.126977 | 2021-08-11T21:33:22 | 2021-08-11T21:33:22 | 362,215,742 | 0 | 0 | MIT | 2021-08-11T21:33:23 | 2021-04-27T18:39:42 | Python | UTF-8 | Python | false | false | 4,497 | py | from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.contrib.auth import login, logout
from django.contrib.auth.forms import AuthenticationForm, PasswordResetForm
from django.views.generic import TemplateView, View
from django.contrib.sites.shortcuts import get_current_s... | [
"mateusz.wwwrobel@gmail.com"
] | mateusz.wwwrobel@gmail.com |
cd40dcbab379ed3aa8f6b7fea4d4d38333549d7d | 044c172f23a60dc2d1471217348a470e0d6eacbb | /AdaptiveAlgo/private/services/testInputOutput.py | 92a780341879ba4961c962ef1181d279677e8880 | [] | no_license | rcquantuniversity/QuantUniversity | 01cc1b3d41cfd706b09520c4ca9d855ee10e1d7a | 7abc4f9cc0afc0869d0fceec0a97f493a6eba9fd | refs/heads/master | 2021-01-23T00:48:31.882959 | 2017-06-30T14:19:08 | 2017-06-30T14:19:08 | 92,845,074 | 1 | 1 | null | 2017-06-16T21:57:25 | 2017-05-30T15:03:23 | JavaScript | UTF-8 | Python | false | false | 482 | py | import sys, json
#Read data from stdin
def read_in():
lines = sys.stdin.readlines()
#Since our input would only be having one line, parse our JSON data from that
return json.loads(lines[0])
def main():
#get our data as an array from read_in()
lines = read_in()
#return the sum to the output strea... | [
"rc.quantuniversity@gmail.com"
] | rc.quantuniversity@gmail.com |
cf82fede3a4e1d602ccb0a5b1c03d9d032b1bb9b | 14ab527f45ed944c37d0bb63bf9545897532ffe6 | /circulation-in-network.py | fdc386fac3f66b8fd09ed7b1c906b9dde5d2d75b | [] | no_license | flacout/algorithm-bucket | 6564a6c8618291cdab2e026203d67fe6ec9ffdbe | 82795fa1aab63e40c05225de217ddd5a53e40651 | refs/heads/master | 2020-03-15T19:16:43.489169 | 2018-05-06T04:01:42 | 2018-05-06T04:01:42 | 132,304,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,043 | py | # python3
from queue import Queue
class MaxMatching:
def __init__(self):
self.V = 0
self.E = 0
self.OUT = []
self.IN = []
self.lowerBond = []
def read_data(self):
self.V, self.E = map(int, input().split())
self.OUT = [0 for i in range(self.V)]
se... | [
"fabricelacout@gmail.com"
] | fabricelacout@gmail.com |
360dacb3fcd48a9b2991ba27ccca7b1f5f04c42c | b341e857dea1741be2a19902cf744ae906772902 | /modules/video/plex/main.py | d85d30095055637a9c97d454264cdc7c5b57c8f4 | [
"MIT"
] | permissive | sdelcore/video-event-notifier-old | 80563e99e38f04461a385f1e69448e0fa65c89f4 | 16bd322f2b81efbb3e08e63ed407ab098d610c88 | refs/heads/master | 2022-07-02T22:17:08.950805 | 2020-05-08T19:25:16 | 2020-05-08T19:25:16 | 255,608,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import time
import yaml
from plex import PlexHandler
from mqtthandler import MQTTHandler
CONFIG="../../config.yml"
PLEX_SERVER="media-server"
PLEX_USERNAME=""
PLEX_PASSWORD=""
#issue with plexapi is that the current_time of the video is only updated every 10 seconds
#so if the time isnt updated and we arent paused ... | [
"Spencer.Delcore@molex.com"
] | Spencer.Delcore@molex.com |
25006a1b51be4e98a23468c45d7491a9eb928a91 | 04b41dfdbcad57169fc55ee28fd567387beceed8 | /doc/bibtoutf8.py | 1700bcd5deb9a27bfe3191673447f6ce105a6866 | [
"MIT"
] | permissive | shgalus/shg | 7c61754c8ddb2d955313d2af758420ecf4985b37 | aef60bde045f9ba781b8d0f57998785ab8822176 | refs/heads/master | 2022-09-01T12:15:48.222619 | 2022-08-04T17:03:00 | 2022-08-04T17:03:00 | 23,058,788 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | #!/usr/bin/env python3
"Converts shg.bib to UTF-8."
import re
with open('shg.bib', 'r', encoding='utf-8') as f, \
open('shgutf8.bib', 'w', encoding='utf-8') as g:
for line in f:
line = re.sub(r"{\\k{a}}", 'ą', line)
line = re.sub(r"{\\'{c}}", 'ć', line)
line = re.sub(r"{\\k{e}}", 'ę'... | [
"shgalus@gmail.com"
] | shgalus@gmail.com |
fa8d6722fd52b5bda4d773e059914c99ba080ebd | 43099d0d654586219eada7deb9b573d7fe8acb03 | /app/statistic/stat.py | 5f18037aad31c53daf8903fd62ef4b660c769fe0 | [] | no_license | romanlytkin/MyDjangoAppExample | 11bafd4dd25dd7a137720055354caf627332beaf | adbbe53a2b48b5d5bc8a3489b8c69eb5cac2ca50 | refs/heads/master | 2021-01-17T13:38:48.163499 | 2016-06-06T07:58:41 | 2016-06-06T07:58:41 | 60,507,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py |
import json
from django.template import RequestContext
from django.shortcuts import render, render_to_response
from django.http import Http404, HttpResponse
from app.models import Region, City, Comments
from django.db.models import Count
# Create your views here.
def index(request):
satistics = Region.objects.sel... | [
"roman.lytkin@progforce.com"
] | roman.lytkin@progforce.com |
dc970102fbf5cb07fff9453d09b6678d378d3cd6 | cf9a8b553a3b5a9a374f97a94ac3bd47ff90b18f | /venv/Scripts/easy_install-3.7-script.py | 87342abcc7376bd1071af72de032b47b4655e4b8 | [] | no_license | Mariosierracarlos/MemoriaDinamica | 1555238236c153e2e232326ac8a5c61b66da1ad1 | b3c92212cf5869928df37fdebd6260245e66f044 | refs/heads/master | 2020-03-30T03:02:03.825781 | 2018-09-28T01:05:20 | 2018-09-28T01:05:20 | 150,664,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!C:\Users\portatil\PycharmProjects\MemoriaDinamica\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-... | [
"mariosierracr2017@gmail.com"
] | mariosierracr2017@gmail.com |
224bef18d6f6ff5ddf72ac00dc19d3552f6cacd8 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/zedshaw-fuqit/allPythonContent.py | edaf60f22d15f4461c879f222c3008de3f09f624 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,197 | py | __FILENAME__ = read
from fuqit.web import render, error
from config import db
def run(web):
post_id = web.sub_path[1:]
if not post_id: return error(404, "Not Found")
web.post = db.get('post', by_id=post_id)
if web.post:
return render('show_post.html', web)
else:
ret... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
c9a3d5331e37aa8bfcc0cce49e59617909444a81 | 4ac0e563ff72ecfa3eb94de2b202137a3c37e5fa | /ask/ask/settings.py | a4616502b15e880ab89e9d31273f5f02853ab8c7 | [] | no_license | ViPoSoft/stepic_web_project | a850b0006b72bc6fb4cdff1dbc8b9f088679e8b9 | 5bafd6ba73a8e9e95d1e3603e642c8695757f83b | refs/heads/master | 2020-12-21T17:46:55.778611 | 2016-11-25T08:08:33 | 2016-11-25T08:08:33 | 73,498,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | """
Django settings for ask project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"noreply@github.com"
] | ViPoSoft.noreply@github.com |
d8b6d57a7de29b3d5079fcbad083dff1f0887a97 | 2db924786e5af89a414985c2e7d68e061845c693 | /Bioinformatics/revc.py | fd7297c7ceb5aa85f526492462e30760eec59701 | [] | no_license | wchung94/Rosalind | a970b5342170ca8b7e6353c33c46346326ab4965 | bf3ce7f315f96073baa9362c00364d662852acbd | refs/heads/master | 2020-07-11T11:08:10.609615 | 2019-09-16T12:43:40 | 2019-09-16T12:43:40 | 204,522,091 | 0 | 0 | null | 2019-08-26T19:15:07 | 2019-08-26T17:01:33 | null | UTF-8 | Python | false | false | 2,859 | py | #!/usr/bin/env python3
"""
Author: Wing Yu Chung
Complementing a Strand of DNA.
"""
# Import statements
from sys import argv
def read_dataset(filetxt):
"""
Turns dataset into string object
Input: txt file with string
Output: string of data from txt file.
"""
text = open(file... | [
"noreply@github.com"
] | wchung94.noreply@github.com |
0fe02bcc871aa7dfcaf95743a66be42b74cf3460 | 2161711dcdc06abe39d96082edcc91ba4de95668 | /swagger_client/models/items_point.py | afba13b1545cad5006ecdbd2405e92df6f0d5f1e | [] | no_license | PriceTT/swagger-piwebapi-python | 7eb25c329b33a76785cdb0484fae0dfb354722e2 | 20a4a47a38dfe7051b1a35831fb6cd3d2a19679a | refs/heads/master | 2021-06-18T21:21:48.808589 | 2017-06-15T18:44:48 | 2017-06-15T18:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,530 | py | # coding: utf-8
"""
PI Web API 2017 Swagger Spec
Swagger Spec file that describes PI Web API
OpenAPI spec version: 1.9.0.266
Contact: techsupport@osisoft.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
cla... | [
"eng@dstcontrols.com"
] | eng@dstcontrols.com |
1cf1fe265bd8b195a726d99463ad7614874319b6 | 07591b6533f6d6ed7995e8759eebef6adf7a848d | /PracticaFinal/venv/Scripts/easy_install-script.py | a42d8178fb91e59f04bbb0141c640cd911e1e3c1 | [] | no_license | Alesitoker/Python | de021d2e8c17937ccb7d7bc950ba561896c9dd07 | fab22e422c0bee0ea2c47f2edea963f70e3bcf81 | refs/heads/master | 2020-04-22T18:25:16.601669 | 2019-02-13T20:44:39 | 2019-02-13T20:44:39 | 170,576,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!C:\zProyectos\Python\PracticaFinal\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"alesitonightray@gmail.com"
] | alesitonightray@gmail.com |
b256f3620897b95b8091de3b1fe682dc9e9ccd5d | ea3f2cf034d4004f467bfbd246e4899fafae360d | /journal12wow.py | ce13a7e2291d07628975112c49e582fbd442cd9d | [] | no_license | prasanthlouis/Milzoo-dataentryparser | e2aa515cffafbc16086261f0c0ca4051837a4673 | bf0e1c3918ca0425497b77612ff1136c365309ef | refs/heads/master | 2016-09-10T19:41:37.286705 | 2015-06-24T03:41:25 | 2015-06-24T03:41:25 | 37,323,062 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py | import pyPdf
import re
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from os import listdir
from os.path import isfile, join
flag=0
i=0
j=0
flagtit=0
list=[]
title=""
authorx=""
author=""
quote="'"
mypath="C:\Users\Prasanth\Desktop\journal12\part3\\"
values={'Dr P R Varghese':34,'Amin... | [
"prasanthlouis21@gmail.com"
] | prasanthlouis21@gmail.com |
ef63780996c3f52c992a74e3fa166810a517d5b2 | 681cbe8efc086d77ead838a015a8c41c690fa6b6 | /urls.py | e3a196486a18fec0a8989b15e5cbc3ceaca297e7 | [
"MIT"
] | permissive | daijingjing/tornado_web_base | 9541cefe3f079753543d2ecc7f18c89c4cf9cbbe | e0f76e847843354ee0b6e8d9e80a09c602b9cd29 | refs/heads/master | 2021-01-13T07:30:32.916556 | 2016-10-20T06:50:01 | 2016-10-20T06:50:01 | 71,348,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | # -*- encoding: utf-8 -*-
from modules.index.IndexHandler import IndexHandler
urls = [
(r'/index', IndexHandler),
]
| [
"jjyyis@qq.com"
] | jjyyis@qq.com |
b8857962ab1a71d572050bda7708df505dbe661b | 3670fc92bd2eeb5c2ca11dba05d19482b94000bb | /best binary/new/cervicbin2a.py | f7d44db290244215e8bf8f4f432533652278dec6 | [] | no_license | thamizharasia2019/keras-networks | bf9d9fec5586dde6520b2602552e31adbbec2da7 | 4379f4014650c20bba5dcf7209b5cedfbc0f002f | refs/heads/master | 2020-12-05T11:07:14.756227 | 2020-01-30T08:25:24 | 2020-01-30T08:25:24 | 232,090,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,696 | py |
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from keras.preprocessing.image import ImageDataGenerator
from keras.optimizers import SGD
from keras.utils import np_utils
from imutils import paths
import matplotlib.p... | [
"noreply@github.com"
] | thamizharasia2019.noreply@github.com |
89809d6a7f389db1e69a5d801eef297af6202c18 | 5d021d0d4eb15d819f197ff71bbf572b5fec600c | /dockerfile_tx2_forwarder/scripts/old/tx2_forwarder_02.py | 6237ea2791e06c5347e2f34c098d7f51b47077d9 | [] | no_license | vivekmids/ATMFraudDetection | 23f200618c4a1a13d190e91e38ae8c2439dd82e9 | c117e3c24ad218751adbdb22b27d684b8916df36 | refs/heads/master | 2020-09-24T00:21:18.179192 | 2019-12-03T12:55:28 | 2019-12-03T12:55:28 | 225,619,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,740 | py | import paho.mqtt.client as mqtt
import time
# This script takes incoming messages from a local mosquitto broker on the TX2
# and forwards them to a remote broker on my VSI
local_client_topics = ["faces"]
responder_client_topics = ["response"]
remote_client_topics = ["adjudication/pass", "adjudication/fail_face", "adj... | [
"vivekagarwal@berkeley.edu"
] | vivekagarwal@berkeley.edu |
a779e8313069004fad5ba304cfa7c9c7fa2dd8d8 | 2de9c11528bf468612f83b845c02d570f8d271e0 | /geese/agent/__init__.py | 68e5af3ce864aa948724ee227b78382f8152f006 | [] | no_license | waderaku/hungry_geese_for_kaggle | 4e7cfe2010820ecbab05cdbcadd8395995b4f932 | 811b76bf47571adc1aa0d0987c02b72bca4789ac | refs/heads/master | 2023-06-07T14:20:43.483612 | 2021-07-10T06:54:38 | 2021-07-10T06:54:38 | 369,221,676 | 0 | 0 | null | 2021-07-10T06:54:39 | 2021-05-20T13:41:36 | Jupyter Notebook | UTF-8 | Python | false | false | 79 | py | from geese.agent.agent import Agent
from geese.agent.ppo_agent import PPOAgent
| [
"yosemat.beta@gmail.com"
] | yosemat.beta@gmail.com |
fe95a77072a775bf40d487a65f5bdecc85549ffe | a164d560cc5dd30ecc3a04a7d2ee08a144b5a6ff | /test/test_chnmf.py | 0c09f86ce25f962e7f97ebff9eea52943a7088d0 | [] | no_license | rikkhill/pymf | fe6736bc4780856fbc02fc7a138f81dab788e776 | c2c9dd960b98c3ff9bb94947253f268b16028d7e | refs/heads/master | 2021-01-23T01:52:08.114731 | 2016-08-09T10:23:18 | 2016-08-09T10:23:18 | 53,073,722 | 0 | 3 | null | 2016-03-03T18:33:49 | 2016-03-03T18:33:49 | null | UTF-8 | Python | false | false | 889 | py | import numpy as np
from numpy.testing import *
from pymf.chnmf import CHNMF
from base import *
class TestCHNMF():
data = np.array([[1.0, 0.0, 0.0, 0.5],
[0.0, 1.0, 0.0, 0.0]])
W = np.array([[1.0, 0.0, 0.0],
[0.0, 1.0, 0.0]])
H = np.array([[1.0, 0.0, 0.0, 0.5],
... | [
"christian.thurau@admins-MacBook-Pro-4.local"
] | christian.thurau@admins-MacBook-Pro-4.local |
ae0c7ef4e03d6fc5850468f0060b0796d3a8d2ed | ca82a6883decd4b9def4d77a9e0d818c82ccd387 | /configs/settings.py | 9d250f158ba5131d3ae07660aecec14a4b544f49 | [] | no_license | DanielBok/redesigned-invention | 87e37401f044fca8d3b6e0ef361b688a9f51ebfe | ca16922184dac7973f71baa546ec75bb2387edc2 | refs/heads/master | 2020-05-31T22:54:21.814225 | 2017-06-26T13:20:28 | 2017-06-26T13:20:28 | 94,052,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | import os
from os import getenv
from os.path import abspath, dirname, join
DEBUG = getenv('DEBUG', "YES") == "YES"
DEBUG_TB_INTERCEPT_REDIRECTS = getenv('DEBUG_TB_INTERCEPT_REDIRECTS', False)
SECRET_KEY = getenv('SECRET_KEY', os.urandom(128).hex())
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = geten... | [
"daniel.bok@outlook.com"
] | daniel.bok@outlook.com |
ef465ebd4d48eed8cd2849a07522138d036a5def | f2978acf9e7861bab33e9640ad80bf2164405384 | /af_base_demo/__manifest__.py | a588b059b7d2138a20709fcf7674e4f705c772b0 | [] | no_license | roman-rudyk-ndev/odoo-af | 3c1775b06061cf2a4d87bd65feeaaeec3a415a2d | 4eefc4ba2af21f24cd666459537fb8e8e64c5738 | refs/heads/master | 2023-06-30T06:43:06.584160 | 2020-12-07T10:48:59 | 2020-12-07T10:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | {
'name': 'AF Base Demodata',
'version': '12.0.0.2',
'category': '',
'description': """
Module to overright Odoo original demodata.
===========================================================
AFC-119
""",
'author': 'Vertel AB',
'license': 'AGPL-3',
'website': 'http://www.vertel.se',
... | [
"fredrik@arvas.se"
] | fredrik@arvas.se |
dde1ac5a79a4f406e745bf6983a9b16cb780a9b7 | 158c80436eddc5f4e98987badb2c2c330ee4dde7 | /Forest/ThumbBiter/ThumbBiter.py | 051a2bf29e5b1f67136e4cd45123bf7c0f600ec2 | [] | no_license | DRCART03/CodeCombat | 3bb84eb90c310c4dbe2adbb302890eb4c2866eec | a9eff4fec5be4dac8914d8b9b1483586b265800b | refs/heads/master | 2020-08-04T11:02:56.504091 | 2019-10-01T14:31:22 | 2019-10-01T14:31:22 | 212,115,556 | 0 | 0 | null | 2019-10-01T14:30:37 | 2019-10-01T14:20:29 | null | UTF-8 | Python | false | false | 177 | py | if (2 + 2 == 4):
hero.say("Hey!")
if (2 + 2 == 4):
hero.say("Yes, you!");
if (3 + 3 == 6):
hero.say("Come at me!");
if (2 * 10 == 20):
hero.say("Prativnij");
| [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
11bd8f2d51b9d7888bb7781fc3fb369b177e498a | b4a851c432b4ede182d88ea3636e79ec1ae4374e | /Práctico 3/Ejercicio 7/ClaseLista.py | 70b5bdb7f101616c8edd47df173946311b372e9f | [] | no_license | mamasanet/C-digos | cab2a305f1c81ce717cc8f2cf586cec85418e0bc | 3926cdf7af7e9fb6673b8f088d1f087444d52d14 | refs/heads/master | 2022-11-10T15:30:07.616139 | 2020-07-03T00:21:47 | 2020-07-03T00:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,715 | py | from ClaseDocenteInvestigador import DocenteInvestigador
from ClaseInvestigador import Investigador
from archivodeinterface import inter
from ClasePersonal import Personal
from ClaseDocente import Docente
from ClasePersonaldeApoyo import PersonaldeApoyo
from ClaseNodo import Nodo
import zope
@zope.interface.implemente... | [
"ismafacultad19@hotmail.com"
] | ismafacultad19@hotmail.com |
e1a9d6f442faf4956bc0976a8a9b690feb0e4d1d | ed278bcbd85f11da80b67fed5dd3b68f27dbaa40 | /landing/models.py | fa83d8c6ac4edcb082f7f4948c1d6c2b7ea6f4eb | [] | no_license | DenisAmberCode/aromatic | 6f60f2fef2ead1c536cc88c3e9ea62efa5d5ba1e | 0ad2ddd00224b7e7bf8aeec75c87754b642c9a62 | refs/heads/master | 2022-12-26T10:36:20.329473 | 2020-10-07T16:48:27 | 2020-10-07T16:48:27 | 244,430,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from django.db import models
class Sub(models.Model):
email = models.EmailField()
name = models.CharField(max_length=256)
def __str__(self):
return "Name: %s Email: %s" % (self.name, self.email)
class Meta:
verbose_name = "Sub"
verbose_name_plural = "Subs"
| [
"gladkiy-denis@mail.ru"
] | gladkiy-denis@mail.ru |
5851e4cb051a236ff338f53081a59497afd9ad72 | b6f4ba6de41d40b91023405e0549c0db53907af1 | /projects/migrations/0007_newsitem.py | 7706fbbaea0c7eeaba626a0bef581401bc879ab2 | [] | no_license | arevej/Mitarbet | 06c2fe6b030d7a1c4797b9b787cdff118c3dbdfd | e81d33ecccf483f44431afc1c3345f818917705d | refs/heads/master | 2021-06-17T19:30:14.078127 | 2017-06-13T21:37:44 | 2017-06-13T21:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-12 11:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"tim@Tims-MacBook-Air.local"
] | tim@Tims-MacBook-Air.local |
765d1068276256da66e9fe796de3ddbddcd08b3f | c6f5411c12c34b1150add156805cd1a8c95c9741 | /task_dm1.py | 4034f835b00d04eb69ba334432667e3598521bf5 | [] | no_license | khorkhordin/khorkhordin | d1550939771266e803d9a3cf4265c3c23d457c07 | 627895e4c1cd65d01bc2696071a454333387103b | refs/heads/master | 2021-01-17T19:52:09.086848 | 2016-07-22T16:37:41 | 2016-07-22T16:37:41 | 62,707,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from drawman import *
import time
A = [(0,0),(100,0),(100,100),(0,100),(0,0)]
pen_down()
for x,y in A:
to_point(x,y)
pen_up()
time.sleep(5) | [
"vashor@mail.ru"
] | vashor@mail.ru |
2e113de7cf196160d26f6a11e759efb0b1d9c64c | 523b984f35957ea9e90397d0f39df68379fea3f3 | /tensorflow_study/basic_study/Session.py | 77ac0f586eb178e015d92b1c88885f5f7b653122 | [] | no_license | Alxemade/PycharmProjects | f3219b9b188b01d0074c7aab04917758914ebd73 | 0c3a7ea3a83fcfa2ece0383408a1166f7d122335 | refs/heads/master | 2020-03-10T05:02:28.128432 | 2018-04-12T07:09:17 | 2018-04-12T07:09:17 | 129,207,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "xuchao"
'test session'
import tensorflow as tf
a = tf.constant([[2, 2]])
b = tf.constant([[3], [3]])
c = tf.matmul(a, b) # 输出两个数的矩阵乘法
d = tf.multiply(a, b) # 这个是矩阵的向量积
# 1 . 第一种写法,需要自己关闭close
sess = tf.Session()
print(sess.run(c))
sess.close()
# 2. 第二种... | [
"chaoxu06@mail.ustc.edu.cn"
] | chaoxu06@mail.ustc.edu.cn |
6c4327226a11b220c2c2885b44266a2e04c37d1a | 4b24899e5e424d4d953670cf9d9bbd3aa888fca1 | /deprecated-function/main.py | f85872075116487b6c804fc35929985703645545 | [
"Apache-2.0"
] | permissive | meelement/NLP-Dataset | ed180b05c18f7675865caa304d70a024269a510d | fd0000021c6a8ac378f8e65f975841f0cbb3cb79 | refs/heads/master | 2021-09-15T19:18:33.844672 | 2018-06-09T03:12:17 | 2018-06-09T03:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | import json
import pandas as pd
def texttolist(fromfile):
fo = open(fromfile, "r")
result = fo.read().split('\n')
result = map(str.strip, result)
result = filter(None, result)
return result
def jsontotext(lists, filename):
texts = []
for k in lists:
x = json.loads(k)
texts.... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
30e30927aa9371dc9d4c55b636e753e30bacc84a | 2696bd485fd09f8b0199f98972163e1140793fd1 | /ems/eventhook.py | 52f8e994bf70adb0d1add1f89cf7a910a1e67591 | [
"MIT"
] | permissive | mtils/ems | 24b192faf1d03f78cb9c930193051666a453d18b | a958177d1474828e1d892dda20f4be68869e0483 | refs/heads/master | 2020-05-30T04:37:52.866679 | 2016-10-04T07:30:42 | 2016-10-04T07:30:42 | 30,531,077 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | class EventHook(object):
"""A 'event' Transmitter
You can hook into it with hook += myReceiver (callable)
then hook.fire() will call myReceiver()
(or hook += myobj.onFoo => hook.fire(bar) will call myobj.onFoo(bar))
Normal usage would be:
class DB(object):
def __init__... | [
"mtils@web-utils.de"
] | mtils@web-utils.de |
4563342b904cd73111c83ce1d6be56435505a36b | 646c0dacee016463f3b3cb058ed566dab91a9bfa | /mypython/bin/easy_install | 0abe67ed7f6caabade44b35e5bf0d9fd6a4261f8 | [] | no_license | brosnans/django-blog | 3ea79831209500500b4f52fa4e40c4e5ca560c94 | ddb1b83a336b7ccc14131fb3201359c2a12d8426 | refs/heads/master | 2022-08-12T23:36:07.294870 | 2020-05-23T11:18:34 | 2020-05-23T11:18:34 | 260,501,706 | 0 | 0 | null | 2020-05-01T17:52:29 | 2020-05-01T16:07:06 | Python | UTF-8 | Python | false | false | 256 | #!/workspace/django-blog/mypython/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"s.brosnan3@gmail.com"
] | s.brosnan3@gmail.com | |
30779aacb4a3ba1a363f80eaab68a5b57e15dda2 | 0f2172763e165e295d3913e8ce1c5738f8c7de58 | /products/views.py | f3d5bc5cf57c19d88923a7acdfebb96d825772e6 | [] | no_license | Yogeshc685/learning | fd132634f726bb8a401c91e7d09fcaffcc6eea05 | 1bcef1df43226a065fbf8fcb7ba8d9864c70b1fb | refs/heads/master | 2020-09-07T03:45:55.992836 | 2019-11-09T13:37:27 | 2019-11-09T13:37:27 | 220,646,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from django.shortcuts import render, get_object_or_404
from .models import Category, Product
def product_list(request, category_slug=None):
category = None
categories = Category.objects.all()
products = Product.objects.filter(available=True)
if category_slug:
category = get_object_or_404(Categ... | [
"Yogesh.Chauhan@legitquest.com"
] | Yogesh.Chauhan@legitquest.com |
3424ef5fc1269c9b3b38288b5799630237e459a4 | 3add20877ed753be70402e97f40ad3737a265515 | /ladder_advanced/3_data_structure_II/363. Trapping Rain Water.py | c056979a1dd41625c462deb488ea6fa16cc5834f | [] | no_license | zhuohuwu0603/interview-algothims | 85f48b7de2e87129fd353528b114cb80c8877d7b | 338d3bc2f2916c5c4936767b07b2fd22b4121049 | refs/heads/master | 2022-01-08T11:27:16.441367 | 2019-06-12T05:49:25 | 2019-06-12T05:49:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | '''Description
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
Example
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
Challenge
O(n) time and O(1) memory
O(n) time and O(n) memory is also acceptable.
'''
class Solution... | [
"michaelz@squareup.com"
] | michaelz@squareup.com |
57ad0d706feb3ca8ef3d596147a296f192ee8675 | 11c2f99b74a0f1d8e1f36902bb2f290207c28fff | /asciiArt.py | 3ee522d0150d72fd1487613b66d99dda112c552a | [] | no_license | endlessseal/Python | 0a801d10413564918e36da8cfe86ae2ce8c79b69 | 5320cdd4dcfa9cb39564b8e14e0c040a8d16db84 | refs/heads/master | 2021-01-10T12:35:47.697942 | 2020-03-13T14:48:17 | 2020-03-13T14:48:17 | 43,763,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import numpy as np
from PIL import ImageFilter, Image, ImageDraw
#Converts an image to ascii art
#version 1 #2 second on average edge calculation a bit off
#due to rounding
def AsciiMe(fileName, cols= 128, scale = 1 ):
gscale = '@%#*+=-:. '
image = Image.open(fileName).convert('L').filter(ImageFilter.EDGE_ENHA... | [
"noreply@github.com"
] | endlessseal.noreply@github.com |
93075674c5021ced9980234d2d3c9c6d500f90a4 | a3de78decfdd973a560654f0a0696048ab8dfa21 | /basicus/urls.py | 3782a4418e520d92fdf9d35782810da21f9c316d | [
"MIT"
] | permissive | FiaDot/basicus | ed56e656ff58fcaedc55b9135bbb6a001f6d8c99 | 72faca3c455bcce7e0f482867528948791644fcb | refs/heads/master | 2020-04-04T12:56:49.743343 | 2014-01-23T09:19:51 | 2014-01-23T09:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'basicus.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^board/$', 'b... | [
"fiadot@gmail.com"
] | fiadot@gmail.com |
197a5a0b7dd44984fa0f6475e28264d5b7db156f | 004c3753b810cd36290c586c3766f1c77f7249f0 | /sbs_paie/models/prime_ret.py | b9d91bcbc507f2283f40e3951d936e1673deb060 | [] | no_license | OdooAkeno/akeno | 2426ec6045f5875873622118ce889e06b6e4c3c7 | 2c603c9f4cc5a719502526a0c070930671d12975 | refs/heads/master | 2022-04-29T01:42:37.716084 | 2021-06-29T14:20:28 | 2021-06-29T14:20:28 | 156,714,618 | 2 | 10 | null | 2021-06-29T14:20:29 | 2018-11-08T13:55:22 | JavaScript | UTF-8 | Python | false | false | 1,166 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, _
HELP_TYPE_CONTRAT = _(u"""Cochez cette case si les ecritures comptables"""
u"""doivent etre générés pour ce type de contrat""")
class PrimeRet(models.Model):
_name = 'sbs_paie.prime_ret'
regle_salariale = fields.Many2one(
... | [
"fouda.henri2009@gmail.com"
] | fouda.henri2009@gmail.com |
5b69d9387984124354530ab6af87f68e913eb53c | 43de73816f972863de20b15a7410f4008f45049e | /Worksheet 3 Iteration/parts.py | f6bf41d44573903a7eb8f494874163f6d84f9fb5 | [] | no_license | wkelly1/SchoolCode | eb0bb539544c07ebbafaca9d25a5adce2cbd6a50 | 76de56c369278f3c809adf5e0b3ada1198478857 | refs/heads/master | 2022-03-25T00:20:39.427923 | 2019-12-05T18:03:51 | 2019-12-05T18:03:51 | 105,812,754 | 0 | 1 | null | 2019-12-05T18:03:53 | 2017-10-04T20:03:35 | Python | UTF-8 | Python | false | false | 412 | py | i = True
noOldParts = 0
while i == True:
number = input("Please input a part number")
if len(number) != 4:
print("Input the number again, wrong length")
elif number == "9999":
print("9999 is too high")
i = False
elif number[3] == "6" or "7" or "8":
noOldParts = noOldParts... | [
"william.kelly20@btinternet.com"
] | william.kelly20@btinternet.com |
6b8ee59736e57e08a3e475f65a52bf453ec8b9cc | e158fc0f4427aaf919f0ab2402ab0f404805cb94 | /postgres/datadog_checks/postgres/statements.py | a4a9c39af7c5ea2303427bd718ed21d4d9035ec8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | shlomi-viz/integrations-core | 6e76603dc9685160a72d50b18fb04bff8fb51f28 | c54944bacf940077efdff4a69351e5fe6e408a80 | refs/heads/master | 2023-04-25T12:34:14.281959 | 2021-05-21T20:33:36 | 2021-05-21T20:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,445 | py | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
from __future__ import unicode_literals
import copy
import time
import psycopg2
import psycopg2.extras
from datadog_checks.base.log import get_check_logger
from datadog_checks.base.utils.db.sql import compute... | [
"noreply@github.com"
] | shlomi-viz.noreply@github.com |
ec0c49006c20ac7edf04435bcbb47f47b528c888 | daaf072e12df5c49f46d24304ff7b94d9d86dd44 | /aa.py | 9ffe45541341e8478a4ef3d0bafee024a45ace4f | [] | no_license | raygolden/pythontest | fbdd4ad6030d5105e579bd1f82c33bc7e4072b76 | 2636992c572853f5b5516107b743aa962313661c | refs/heads/master | 2020-05-18T20:40:11.188722 | 2015-03-27T00:50:33 | 2015-03-27T00:50:33 | 32,622,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright 漏 2014 ray.huang <ray.huang@ray-gii-rmbp>
#
# Distributed under terms of the MIT license.
"""
"""
import MySQLdb
conn = MySQLdb.connect( host = 'localhost', user = 'root', passwd = 'gree')
curs = conn.cursor()
conn.select_db('mysql')
resu... | [
"Ray.huang@gree.net"
] | Ray.huang@gree.net |
aca7fa244db7e1aa8433fb9233c50dbc42d554ca | a3a3e1298db9555eda37f8da0c74a437d897cb1f | /compiled/Python3/Euler_Problem-079.py | 74c47034017c8d8ec829b7d1935b24844f384663 | [
"MIT"
] | permissive | LStepanek/Project-Euler_Befunge | 58f52254ee039ef6a5204fc65e62426c5e9d473a | f35fb2adecd737e410dee7b89b456cd61b25ce78 | refs/heads/master | 2021-01-01T17:51:52.413415 | 2017-05-03T17:23:01 | 2017-05-03T17:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | #!/usr/bin/env python3
# transpiled with BefunCompile v1.1.0 (c) 2015
import gzip, base64
_g = ("AR+LCAAAAAAABAC1UcFuwyAM/RV36S5F2WxYTEAR2mfsUKVHrpw49eNnQ5tW6y6rNEfB5snPzzYVnjSzGTgKwDMCyc9BvJW7RfBsBQ/NO5ofeTyDJ8nTXPEsPBKMGDuP"
+ "GLyjB553gkuuo+7br3U4gA1aq/fz2OcMblYNC/bivWC9ltQI+CtvFty1GXQW3HTdjB2zc+v1J+/ZfQ6b/Y33rN7... | [
"mailport@mikescher.de"
] | mailport@mikescher.de |
a0841b1a5b949fc825d4ef568892bd91e7b54aee | fd5edea96dcdc04a3092794439b605d29e3371f3 | /python/supervised/make_cubic.py | 215ad6b19100c3ebac2cff1e37bb2542016d9203 | [] | no_license | kristtuv/Thesis | bb2373d12a9319fadd76c843870705741d3bcfc6 | 2b7beee27aa7f0301d36f498a01532ca62c48742 | refs/heads/master | 2021-02-02T01:27:35.535805 | 2020-02-27T13:47:16 | 2020-02-27T13:47:16 | 243,525,211 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from create_crystals_from_poscar import replicate_cell
# pipe = import_file()
# data = pipe.compute()
# export_file(data, 'cubic.data', 'lammps/data')
file_name = '1541503.cif'
dump_name = file_name.replace('.cif', '')
replicate_cell(file_name, dump_name)
| [
"kristtuv@student.matnat.uio.no"
] | kristtuv@student.matnat.uio.no |
4c986677b74476c713e5b8104509068a990ef3d8 | de072cdcb568fb8dfb487166a2579fbfc3610090 | /socialenv/bin/misaka | 8529ad21c79d093177fdda1561558f27308e39ec | [] | no_license | corri-golden/BeSocial | 75379964a32213be8b264ad94f945f39dc2c589d | f7b5f6f14ec129dc18c1cb2cd9988197b76fe39d | refs/heads/master | 2023-01-03T10:38:03.791077 | 2020-11-02T15:20:38 | 2020-11-02T15:20:38 | 309,409,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | #!/Users/datduu.../workspace/python/besocial/besocialproject/socialenv/bin/python
import sys
from os import path
from misaka import *
from misaka.utils import extension_map, html_flag_map
help = '''\
Usage: misaka [--ext-<extension>...] [--html-<flag>...] [--smartypants] [<file>...]
Parser extensions:
{}
Render f... | [
"corri.golden@gmail.com"
] | corri.golden@gmail.com | |
5f27eb80c78136364d163e215ad2d3eb62a1377d | d576990621d928a20605705e5cc576800e59cb43 | /users/models.py | 1d3a7a149e55e15ba44dfe7088e5c4e616e5d9cc | [] | no_license | zaldivards/blogging | 8f5673886f7da0e87d6a669cac9471828bf978ab | 3ca2f50c101e00cd6a616d90a9ddfbcc33494058 | refs/heads/master | 2022-10-11T05:17:39.958943 | 2020-06-13T05:13:51 | 2020-06-13T05:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django.contrib.auth import get_user_model
from django.db.models.signals import post_save
from profiles.models import Profile
# Create your models here.
def post_save_user(sender, instance, created, *args, **kwargs):
if created:
try:
Profile.objects.create(user=instance)
except E... | [
"zh15002@ues.edu.sv"
] | zh15002@ues.edu.sv |
d001fc09b45ff9b5c443917aac2060acdde459e3 | 204ec78fcebcea9e1e1da4905cf3fad0a514b01f | /pyocd/target/builtin/target_LPC55S28Jxxxxx.py | 821279940cd5a3a19581a9781d99ff1dc2693895 | [
"Apache-2.0"
] | permissive | ARMmbed/pyOCD | 659340bf8753aa8e15a72890b8bea64dff2c2f42 | d4cdcf7e532cae17caad866839287bbe1e0d952b | refs/heads/master | 2023-05-31T13:45:15.797588 | 2020-10-12T13:55:47 | 2020-10-12T13:55:47 | 190,203,829 | 3 | 1 | Apache-2.0 | 2019-07-05T11:05:40 | 2019-06-04T13:09:56 | Python | UTF-8 | Python | false | false | 8,596 | py | # pyOCD debugger
# Copyright (c) 2019-2020 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"flit@me.com"
] | flit@me.com |
eccb82a49b4249ba854e0abde733606f08efaba1 | d635f439116674f6ed5d8c7b3bbc6991026925eb | /scheduled_bots/scripts/fix_zfin_names.py | faf8890400ad7d41ac1080d8663d68788af0c994 | [
"MIT"
] | permissive | SuLab/scheduled-bots | 141a73949e2b2e97738944ecb1a0fcd214af5d77 | bc83f5e013fd18247805efc4bf1f8f948aef859e | refs/heads/main | 2023-02-24T16:19:24.926230 | 2023-02-17T10:48:03 | 2023-02-17T10:48:03 | 74,090,171 | 7 | 13 | MIT | 2022-12-08T05:07:36 | 2016-11-18T03:04:06 | Jupyter Notebook | UTF-8 | Python | false | false | 4,359 | py | """
One off, hacky script to fix already created zebrafish genes with duplicate names
It finds all zebrafish genes with dupe names (from their mygene/entrezgene gene symbol), that already exist in wikipedia
and changes the label
In the future, zebrafish genes without a ZFIN ID will be skipped
"""
from scheduled_bots.... | [
"gstupp@scripps.edu"
] | gstupp@scripps.edu |
93b504520b8dbb07d500b33fddc1aabeec8f54c6 | 08ed089d8e2e17946390ce7184912ec9e266c904 | /prog22.py | 2a76409732ae7fb9b5dc4c222413e38e6cdcd3ac | [] | no_license | SiddhiPevekar/Python-Programming-MHM | 16b2676b7e096aa4916a0f82e215ed2e13f57674 | 973da504159f96a9c9bac3232e9c50080b441888 | refs/heads/master | 2022-11-30T03:16:03.111083 | 2020-08-18T20:24:44 | 2020-08-18T20:24:44 | 288,554,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #program to print table of a given number
n=int(input("enter any number to print the table for:\n"))
i=1
while i<=10:
print(n,"*",i,"=",n*i)
i+=1
| [
"noreply@github.com"
] | SiddhiPevekar.noreply@github.com |
ec2556c6ce8254a2f694afbb645a4a477ff4d8c5 | fbc0d5c081dbfead483a1e1e226a380446bcd56e | /TDT4120 - Algoritmer og datastrukturer/exercises/7/solution.py | e63b310aa452513d2a21ed49018858926484d730 | [] | no_license | blauks/ntnu-2 | 58eec17a8f6db7424a6cb44d74e029b68256320a | 38fa0ddfaa726408f087d1792fd0e00810f9243c | refs/heads/master | 2020-08-16T11:01:10.946232 | 2019-08-08T11:28:48 | 2019-08-08T11:28:48 | 215,494,235 | 0 | 1 | null | 2019-10-16T08:15:48 | 2019-10-16T08:15:48 | null | UTF-8 | Python | false | false | 2,344 | py | #!/usr/bin/python3
from sys import stdin
def maxValue(widths, heights, values, paperWidth, paperHeight):
# Create array; width major
result = [None] * (paperWidth + 1)
for w in range(paperWidth + 1):
result[w] = [-1] * (paperHeight + 1)
# Find the minimal width or height
minSize = 10*... | [
"nikasmh@hotmail.com"
] | nikasmh@hotmail.com |
2e1c0c7bce599f5fe1ed94db622874e338896168 | d956b85ffe0b733a3ef4b26cd88e3ff204a9ccde | /jogos/sistema.py | 8a236cda144741a25639bc89370a570fed83cd3d | [] | no_license | joselsantospqt/Python | 5e871014c003c06cb3f7d63f83491677e858ca8b | 2473dce6ba3b8f4784bc655d36095dfe235bc261 | refs/heads/main | 2023-06-21T07:32:24.488452 | 2021-08-04T00:32:03 | 2021-08-04T00:32:03 | 303,821,152 | 0 | 0 | null | 2021-04-06T00:14:02 | 2020-10-13T20:28:02 | Python | UTF-8 | Python | false | false | 290 | py |
usuario = input("Informe o usuário do sistema!")
if(usuario == "Flávio"):
print("Seja bem-vindo Flávio!")
elif(usuario == "Douglas"):
print("Seja bem-vindo Douglas!")
elif(usuario == "Ricardo"):
print("Seja bem-vindo Ricardo")
else:
print("Usuário não identificado!") | [
"jricardo@trustprev.com.br"
] | jricardo@trustprev.com.br |
215bda69bdf2236f417186baa73d8bd555c235e5 | a6f5be55760ccc4c1dbdf5ddd9698087687cfb52 | /main.py | 73a939cc3c9ff34b233d6234c53e06b827ef1754 | [] | no_license | asoa/twitter_trend_summary | 882446a8a051b49f4f38c991a7899c250df101de | 02e6e70d3ca60240d5b1ca92dd5473c5f2fab54e | refs/heads/master | 2020-04-21T14:03:50.167716 | 2019-02-08T18:05:18 | 2019-02-08T18:05:18 | 169,622,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | #!/usr/bin/env python3
import authenticate
import query
import statistics
TREND_LENGTH = 0
def prompt(top_trends):
"""Prompt user to enter integer selection for hashtag to get statistics for
Args:
top_trends: (list) sorted list on tweet volume
Returns: None
"""
print("The top trends so... | [
"abailey82@gmail.com"
] | abailey82@gmail.com |
c485360b827f31c8c734fea935c1397580298209 | e1fc93bea161969e2e262d5cc4bcb02128dbdd39 | /mymodule/Mypickle.py | 39040ebd1d6601530574ea816816f276e1fb3176 | [] | no_license | Sojiro323/twitterAPI | 079991b221de5cd963e7615e579982e5fbce68ad | 0c83371c52adc945abf0571791ae40391cd580fa | refs/heads/master | 2021-09-06T18:33:07.126042 | 2018-02-09T19:15:53 | 2018-02-09T19:15:53 | 106,917,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import pickle
from inspect import currentframe
import os
import sys
def load(path, files):
if path[-1] != "/":path = path + "/"
#names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
#name = path + names.get(id(file)) + ".pickle"
if isinstance(files, str):
name = path + files + ... | [
"m23622059@gmail.com"
] | m23622059@gmail.com |
321b950e4d0ce2addfd5f32ac86913881c735794 | 73aca8a8c9c0a197e99af31bd124681b1b68e2bf | /path-interals/opening-door/opening_door.py | 3846f84ba484facd57bd8bb4869b30fa5731240d | [] | no_license | i-abr/EnsembleMPPI | a4f7013fa990f997c6c0ce94647aa733bf78da86 | b3fd5bccf720fd218cdb71880b6661306dbf7a14 | refs/heads/master | 2023-06-24T18:17:40.798344 | 2020-08-20T03:52:01 | 2020-08-20T03:52:01 | 274,959,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,081 | py | #!/usr/bin/env python3
import numpy as np
from scipy.stats import multivariate_normal
from mujoco_py import load_model_from_path, MjSim, MjViewer, MjSimPool
import os
from mult_model_mppi import MultModelMPPIMujoco
from numpy.random import choice
import pickle
from mujoco_py.generated import const
frame_skip = 2
... | [
"iabr4073@gmail.com"
] | iabr4073@gmail.com |
afa76986caca9ddf448586f9ea23e5d755f39919 | b3a282c34768b325bf22e40c6eb0affefbcf4071 | /config.py | 1fd3e929b5acf685987c8382a92ca369ef9ac8e5 | [] | no_license | geoleonsh/DevopsPlatform | b6d3b60cb6e252c6c29e2596b1a5498ee5e81982 | 8efafc73e4943ce3829bcea66030a148cd293173 | refs/heads/master | 2020-03-30T07:12:57.023360 | 2018-11-07T11:30:22 | 2018-11-07T11:30:22 | 150,923,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | class MainConfig(object):
CSRF_ENABLED = True
# 前端表单key任意设置
SECRET_KEY = 'fhsfuiahsdfv8'
| [
"liusaizhong@58yicun.com"
] | liusaizhong@58yicun.com |
fd527e343f2d02b25498d71c07d67c135ee94b18 | 613ef547c2c61611904019e36a3c8647cd371d95 | /__init__.py | ef5eb1c7aa162857f50713ce590146564f6a1b84 | [] | no_license | brendanarnold/py-wien2k | 75a7d1b51ce3c157b77492a287e9054273633558 | 51b441ac26dc5434b5d71f870b51c8eebf6178b9 | refs/heads/master | 2022-12-26T10:39:31.900738 | 2011-03-03T15:59:01 | 2011-03-03T15:59:01 | 301,226,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | __all__ = ['EnergyReader', 'Scf2Reader', 'StructReader', 'OutputkgenReader', 'KlistReader', 'KlistWriter', 'Output2Reader', 'Band', 'Kpoint', 'Kmesh', 'SymMat']
from readers.EnergyReader import EnergyReader
from readers.Scf2Reader import Scf2Reader
from readers.StructReader import StructReader
from readers.Output... | [
"none@none"
] | none@none |
a80e6f6f4b88c83d6c9c2ce635b2d77d0cb3381c | fb41cb1bd46144afbcb750ff3798e4ab5d7b59b8 | /eas/boundary.py | b5a224f02a3c582ac19123f70039ea9fc457c12f | [] | no_license | YanChunyanLA/OptimizationAlgorithm | 42d8456a9b306c7741d1854aafd784dcb736986f | 27f2eec73dd7287fe941c42def30a10ff95881fe | refs/heads/master | 2021-05-22T23:10:31.945384 | 2020-03-31T10:01:29 | 2020-03-31T10:01:29 | 253,136,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | import random
def _boundary_strategy(vector, us, ls):
for i, _ in enumerate(vector):
if vector[i] > us[i]:
vector[i] = us[i]
if vector[i] < ls[i]:
vector[i] = ls[i]
return vector
def _c_boundary_strategy(c, u, l):
if c > u:
return u
if c < l:
r... | [
"a2htray.yuen@gmail.com"
] | a2htray.yuen@gmail.com |
b6128f23171b76118df0786aed60172fd230694a | 6f0b42dfb44cdb0f83bfd756404b7299d1e2aced | /Pricing/data-preprocessing/sk-learn.py | 8d5e8b8ab294d029fa2b97c8026bd6c2618288e6 | [] | no_license | playing-kaggle/House-Pricing | 7e81300910a097520a6b013569fc822a277f3ce5 | b4c30aa3e04d108fbfa613c10a389cf41aebfe02 | refs/heads/master | 2020-06-15T21:15:12.353971 | 2016-12-27T08:39:25 | 2016-12-27T08:39:25 | 75,264,664 | 3 | 1 | null | 2016-12-18T15:20:40 | 2016-12-01T06:56:18 | Python | UTF-8 | Python | false | false | 1,621 | py | import pandas as pd
from sklearn import linear_model
import numpy as np
import matplotlib.pyplot as plt
train_data = pd.read_csv('../../train.csv', index_col='Id')
# print(unique_value)
'''
vectorize using some column MSZoning as an example
'''
column_list = ['MSSubClass', 'MSZoning', 'LotShape', 'LandContour'... | [
"shao Liu"
] | shao Liu |
4fd1987687c69928873f02007ae48e452ae6e846 | a6326ad61856ba7b9610bc1ad5dcd54aa6351eeb | /multi_user_blog_final_original_copy/template.py | 768001582053073f9788df87123b60fe032d1f3f | [] | no_license | jp853/udacity-multi-user-blog-project | 8f14eca838bca63eb9c030216ac4c24de60c8f6f | 4821224d4b7582df2def3fe103a44427015e75ae | refs/heads/master | 2021-01-17T20:57:02.333648 | 2017-04-05T17:02:28 | 2017-04-05T17:02:28 | 84,153,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import hashlib
import hmac
import os
import random
import re
from string import letters
from google.appengine.ext import db
import jinja2
# Jinja configuration
# template loading code
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(te... | [
"noreply@github.com"
] | jp853.noreply@github.com |
28cf08b36b2ab86735c6b5367a92b76f64f18ec8 | 18d8d28b113e6252753b359332c94d282abe1e4e | /xiangshui/xiangshui/middlewares.py | bb7cd2a2cfda680dd48212fab59e6b91668de497 | [
"MIT"
] | permissive | ayueaa/Some-Spiders | cf916c9af8ed690f67a7b9df87b0c6755f1f590b | 4cf085e55eab822c08d06b62099d1c235d1840ae | refs/heads/master | 2023-01-06T05:27:03.308055 | 2019-05-13T12:34:48 | 2019-05-13T12:34:48 | 186,411,205 | 7 | 4 | MIT | 2022-12-30T09:30:34 | 2019-05-13T12:01:18 | Julia | UTF-8 | Python | false | false | 3,603 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class XiangshuiSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"woyue02@gmail.com"
] | woyue02@gmail.com |
69971bcc3664619ff5722d80b52691c48e509479 | efb2c5b16e5725a02858c6e756698a48ea4e6bd3 | /main/migrations/0005_auto_20210428_1731.py | b808d785f49d38a360b95e0edb0aefba769c74dd | [] | no_license | nart-veb/abhrealty | 3ef1bdf1712c7980f43057884f55970a4627644e | 088514f487abedb285e9853cfa019bb3f1e4c829 | refs/heads/master | 2023-04-28T06:04:55.569629 | 2021-05-14T09:53:28 | 2021-05-14T09:53:28 | 366,337,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Generated by Django 3.1.4 on 2021-04-28 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_reviews'),
]
operations = [
migrations.AlterField(
model_name='reviews',
name='description',
... | [
"55654935+nart-veb@users.noreply.github.com"
] | 55654935+nart-veb@users.noreply.github.com |
20b774b3b0cf82f552605cbfa94025bc851aa1ca | 9bd913a239222b39a5fe61a29bbf94cde3e5972e | /Python网络爬虫从入门到实践/PythonScraping-master/Cha 11 -服务器采集/tor3.py | 45a38c9a5e116e6d5bf71ba772443bfe169e0be7 | [] | no_license | MarryYou/python- | 923ab1f53261c862a0b62d0d4cc92fcb5b39127f | 0c7bd2e2f84bced4840475e12590b948929963bb | refs/heads/master | 2020-03-22T02:34:34.972298 | 2018-07-02T03:51:22 | 2018-07-02T03:51:22 | 139,379,382 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from stem import Signal
from stem.control import Controller
import socket
import socks
import requests
import time
#controller = Controller.from_port(port = 9151)
#controller.authenticate()
#socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 9150)
#socket.socket = socks.socksocket
total_scrappy_time = 0
... | [
"61434508@qq.com"
] | 61434508@qq.com |
9ec25b5cabc09a7928d973a2efe01f81f343ec69 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /edgelm/tests/test_constraints.py | d14e0980b697d887887217338827bdc3c1bc7357 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 10,757 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import sys
import unittest
import torch
from fairseq.token_generation_constraints import *
def tensorize(constraints: List[List... | [
"tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net"
] | tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net |
191bcd0c40adf152e4120b55d3dc1ac26b1b414e | 5c185fb955a3e9de3ce0da6de8e7596abd7ffaee | /proyecto.py | 2897854ee41cf4a16fe0d63c630084dd0d58b759 | [] | no_license | Steven0414/Codigo-proyecto-webservice | a407ffe0fd9ac0babfcdf24f98fe234b551d6a22 | 945bd0c2a72f7114c62832142e96a84b7003691e | refs/heads/master | 2021-01-20T18:29:00.890359 | 2016-07-23T02:53:54 | 2016-07-23T02:53:54 | 63,995,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
# Librerias requeridas para correr aplicaciones basadas en Flask
from flask import Flask, jsonify, make_response, request
import subprocess
app = Flask(__name__)
# Web service que se invoca al momento de ejecutar el comando
# curl http://localhost:5000
@app.route('/',m... | [
"erick.garcia@correounivalle.edu.co"
] | erick.garcia@correounivalle.edu.co |
b2fba4c7ec71c02907f48cd6640fe79838e48fc2 | b162d299e38aca44f01ad667e18a9d3962effff1 | /wifimap/spots/tests/test_detail.py | 3f0fba64587092ed8393d43aed83626846a9aa31 | [] | no_license | andrewsmedina/saojoaomap | 87958e95410f0eea2659c6d2c28018893e92ed24 | 12b35650538a94b9bca201db1f66a59e8a6e78ee | refs/heads/master | 2021-01-17T07:40:49.645775 | 2014-05-29T05:41:42 | 2014-05-29T05:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from django.test import TestCase
from django.core.urlresolvers import reverse
from spots.models import AccessPoint
class DetailViewTest(TestCase):
def setUp(self):
self.access_point = AccessPoint.objects.create(name='point 1', description='Point 1 description', address='Rio de Janeiro, Brazil', lat=-... | [
"andrewsmedina@gmail.com"
] | andrewsmedina@gmail.com |
64fe7fb5bcacbb566dc2ac641311ea5929a50dd6 | e3f94fd8a7e62b98c739c4ebaffc3c8a32b3c041 | /sklearn/decsionTree.py | 56ade8f72708018ebafaf11b552b94c65c73f28a | [] | no_license | TheOneAC/ML | 94f8fcc1b8fd3b8a032e7af288c11689c395f72f | d0d02deb0dd656a8074ac4ef26f53904e8088ead | refs/heads/master | 2020-05-21T21:38:06.026611 | 2017-09-16T17:05:49 | 2017-09-16T17:05:49 | 84,650,560 | 0 | 0 | null | 2017-09-16T17:02:24 | 2017-03-11T13:07:11 | Python | UTF-8 | Python | false | false | 3,667 | py | import math
from collections import Counter, defaultdict
def entropy(class_probabilities):
return sum( -p * math.log(p,2)
for p in class_probabilities
if p)
def class_probabilities(labels):
total_count = len(labels)
return [ count / total_count
for count in Coun... | [
"scuhss@gmail.com"
] | scuhss@gmail.com |
c8c83c640bd7b2590a7214c8184fb4fabe5cac4d | dd4d027d98a2f8d5f3564dc09c0dfd04b356cbdd | /01.py | a3fccbb5a9d017348da61c8a0087d7c7a7b385fa | [] | no_license | Seabra14/pythonProject | 0f3478dc40b534fdb68bbba4325ab7f58274b36b | 5a540ee509b0d564e9e3eb6dc3e8f8b8a2ac4c50 | refs/heads/main | 2023-08-10T08:56:00.169476 | 2021-09-13T14:30:58 | 2021-09-13T14:30:58 | 395,688,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | print("Olá, mundo!")
| [
"88586353+Seabra14@users.noreply.github.com"
] | 88586353+Seabra14@users.noreply.github.com |
ea451e351ef36fd009b9d26eb7ccc6a442d8a995 | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_aws_iam/tests/test_fn_aws_iam_list_ssh_keys.py | bf56370026bc46ca10f9197f62fc42c7bae8403b | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 3,190 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Tests using pytest_resilient_circuits"""
import pytest
from mock import patch
from resilient_circuits.util import get_function_definition
from resilient_circuits import SubmitTest... | [
"travis@example.org"
] | travis@example.org |
7c4652d580fe4ac2284cebb9b10d6671517da94a | 2347a00aa41c023924de6bc4ffe0e8bc244a0f3f | /mariners_profile/migrations/0092_auto_20151007_0238.py | e90aecfbfc240f507a0698adad9d45fdf24e9f36 | [] | no_license | Dean-Christian-Armada/prod-people | 2ac20d16aecb0cf1ae50a08e456060eee270b518 | fb8d99394d78bbf4d1831223fce2d7ac4a04f34d | refs/heads/master | 2021-01-01T16:19:36.904967 | 2016-01-26T09:20:36 | 2016-01-26T09:20:36 | 42,503,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('mariners_profile', '0091_auto_20151007_0202'),
]
operations = [
migrations.RemoveField(
model_name='coc',
... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
1bcfe78216a83e71d2f26e4c99a53448c285f3b1 | f49a278fd34f125b596074786b8e9c52f8540ec8 | /Persistant_Hierarchichal_FileStorage/NoSQL_FS.py.py | c3dfd6817f3714b41e6ca948354590952031360f | [] | no_license | JaivardhanM/PrinciplesOfCompSysDesign | 371877c26a9854f72d3b009b07f5afcb179f4e1b | c3bb7177db08dd0f7d3361e81ab4cd8403498f88 | refs/heads/master | 2021-01-10T16:30:52.972190 | 2016-02-18T16:22:49 | 2016-02-18T16:22:49 | 52,019,046 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,015 | py | #!/usr/bin/env python
import logging
from collections import defaultdict
from errno import ENOENT
from stat import S_IFDIR, S_IFLNK, S_IFREG
from sys import argv, exit
from time import time
from time import time
import datetime
from fuse import FUSE, FuseOSError, Operations, LoggingMixIn
from xmlrpclib import Binary
im... | [
"jaivardhan.mattapalli@gmail.com"
] | jaivardhan.mattapalli@gmail.com |
bd1cd6ee5d5a4e9716e857d0f5422a79d63509b8 | b381ae027aff7ac7d3c32993072e7a029b036150 | /samples/Linux/getCameraFeature.py | 98f642eb0b9e6a14271d5a7641e2c80bd0b27ce3 | [
"MIT"
] | permissive | pixelink-support/pixelinkPythonWrapper | f0040fb4c89aff33efba03da7a95253a276c30d8 | 3f5d4f28c8730debe4e774ceedbbd31c75f85c1d | refs/heads/master | 2022-10-11T10:19:02.191089 | 2022-09-09T18:51:46 | 2022-09-09T18:51:46 | 254,446,479 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,949 | py | """
getCameraFeature.py
Demonstrates how to get some information about a camera feature.
Note that there are two places to get information about a feature:
1) getCameraFeatures
2) getFeature
getCameraFeatures can be used to query (generally) static information about
a feature. e.g. number of parameters, i... | [
"noreply@github.com"
] | pixelink-support.noreply@github.com |
f8ac1d12a3df4b9ed4b473f9423f2f82d7fc386a | 734df5f20c434750dd5fe6fc9b91b2c08e7359be | /colleges/urls.py | 86370d442cfb4c556c74883fe29dc93b76aa1586 | [] | no_license | andamuthu/college_system | 125483f1b54b48b1d80b7303bb22596d4eea4dbe | d718d4d579f076ec0916e477ff3e5189419272e4 | refs/heads/master | 2022-06-03T14:59:47.526368 | 2020-05-02T14:22:15 | 2020-05-02T14:22:15 | 260,703,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py |
from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('marks_system/',include('marks_system.urls')),
path('admin/', admin.site.urls),
]
| [
"andamuthu.a@gmail.com"
] | andamuthu.a@gmail.com |
34baa6ee2ae01bf7a7a2a5672393d079c838bb83 | 645a92f8a56687b56fc63b2942f16f6e0401ed82 | /workforce/hw/group/py/01_center_summaries.py | 79617525deb23e885b7b93caf3129bb5625e55c0 | [] | no_license | Busyclover/icl | 4c8ef6240003f03881527d3f4b6c74fd4ce50560 | d13e8545415117ab1759dd0d75a15c9f199d6c63 | refs/heads/master | 2021-06-20T00:30:42.655511 | 2017-07-21T09:30:23 | 2017-07-21T09:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 8 07:46:43 2016
@author: jim
"""
# %% Setup - load packages
import pandas as pd
import numpy as np
import codecs
import os
import re
import nltk
from collections import Counter
# %% define untility functions
def extract_nouns(text):
nouns = []
tokens = nltk.wor... | [
"jimmy22theave@gmail.com"
] | jimmy22theave@gmail.com |
4b423356352383a53ed31702fe7a21d92bb9f396 | 18ed561f3025b3212a49a017bbe314867862a164 | /0x04-python-more_data_structures/1-search_replace.py | ed4a090894c0c9382de8aedffad44471267b88a6 | [] | no_license | ChristianCampos-55/holbertonschool-higher_level_programming | 0720a47c63cbdd80631e7b5f918079f7f0f1bcb4 | 441f3349f2150420cde2c56a451d404863e873ad | refs/heads/master | 2023-03-02T10:54:09.895190 | 2021-02-10T18:20:35 | 2021-02-10T18:20:35 | 259,389,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/python3
def search_replace(my_list, search, replace):
new_list = []
count = 0
for i in my_list:
if i != search:
new_list.append(i)
else:
new_list.append(replace)
count += 1
return new_list
| [
"1566@holbertonschool.com"
] | 1566@holbertonschool.com |
6fc788e173ac857ab0db7d6f3e2dbb3adbbf8333 | cb12b301f06e26a404197b99dcf1abb4329b2c22 | /catalog.py | 6ee5282895195e57a820ba3d1c22244343f7e86b | [
"MIT"
] | permissive | garaujo23/Catalog-Web-App | 255c54e1a88c48e59b9fb670877eb439d9f510a2 | 4b96fc209adc48f129c2496224c38962d68b07af | refs/heads/master | 2020-05-05T09:15:59.229118 | 2019-05-19T05:15:05 | 2019-05-19T05:15:05 | 179,896,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,724 | py |
from flask import Flask, render_template, request, redirect
from flask import session as login_session, url_for, flash, jsonify
import random
import string
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, Item
import datetime
from oauth2client.clie... | [
"gabearaujo25@gmail.com"
] | gabearaujo25@gmail.com |
a50e9935b9d2a3aae1119e351cf00d229b172e8e | 18f4332ccaccf7e0a3a36d701f84358516ee6562 | /test/classes.py | f2a42849e9f4e1794eceda42846528a2b8c0d09e | [] | no_license | anishLearnsToCode/python-workshop-1 | d4a4f04d635aae15ff7411e817863a50e877e51e | 524a329233ce1ae20d926fff53f46925cd9cba3e | refs/heads/master | 2022-11-22T09:10:42.674296 | 2020-07-15T18:38:26 | 2020-07-15T18:38:26 | 275,112,553 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import sympy
class Person:
def __init__(self, firstName, lastname):
self.firstName = firstName
self.lastName = lastname
def fullName(self):
return self.firstName + ' ' + self.lastName
anish = Person('anish', 'sachdeva')
john = Person('john', 'doe')
print(anish.fullName())
print(john.... | [
"anish_bt2k16@dtu.ac.in"
] | anish_bt2k16@dtu.ac.in |
1ba82e68bbd6b265e9d6a7edad5a9811060f2e50 | 97ee5c0f2320aab2ca1b6ad0f18a4020dbd83d1c | /venv/Lib/site-packages/ibm_watson_machine_learning/libs/repo/swagger_client/models/experiment_input.py | 43cf064a9983c91487e04e2cf38808fc5fae6743 | [] | no_license | yusufcet/healty-hearts | 4d80471e82a98ea1902b00c8998faed43f99616c | a4cd429484e857b849df08d93688d35e632b3e29 | refs/heads/main | 2023-05-28T13:57:09.323953 | 2021-05-06T04:15:27 | 2021-05-06T04:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,751 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
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 comp... | [
"yusufcetin9999@gmail.com"
] | yusufcetin9999@gmail.com |
7622ac86304511de6539e45378b787ae4cb659a9 | dd660ea2bee9fdf568da47f9760568c0d5c91049 | /test_prepare_data_from_rgb_detection.py | 1fa84b7d384c3f3b8a7cc21adfce2cd6d28e9fb5 | [] | no_license | kanhua/lyft-3d-main | 4cad265b9c92a62ab79ebab4e01e2ffe2ad8f025 | 1c74500f0bf5d52317af29cb350368832eb42aba | refs/heads/master | 2021-08-07T18:48:05.983138 | 2020-09-17T00:49:19 | 2020-09-17T00:49:19 | 219,532,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import os
from prepare_lyft_data import prepare_frustum_data_from_scenes, level5data
#from test_data_loader import level5testdata
output_file = os.path.join("/dltraining/artifacts/lyft_val_from_rgb.pickle")
token_file = os.path.join("/dltraining/artifacts/lyft_val_token_from_rgb.pickle")
# prepare_frustum_data_from_tra... | [
"kanhua.lee@gmail.com"
] | kanhua.lee@gmail.com |
f5b76c17592dde22bcb05c9f18c865d4d373eaf1 | 361cdb847271a30e5cb4a12c3b3da94082b360a8 | /z2kit/elf/__init__.py | 697a0b3beb2134fe77bc6ea9162f568527605eaa | [] | no_license | morivden/seccamp_z2 | 9af3985e77013fd1d7693b5226f0e39b3e53ba95 | e275cf0dbff0a14dfc7dccc4c2cfc1fd2026866e | refs/heads/master | 2021-01-22T06:54:58.320474 | 2017-09-04T02:23:55 | 2017-09-04T02:23:55 | 102,302,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # z2kit.elf
from z2kit.elf.ELFFile import *
from z2kit.elf.ELFFileIdent import *
from z2kit.elf.ELFFileClasses import *
from z2kit.elf.ELFFileHeader import *
from z2kit.elf.ELFProgramHeader import *
from z2kit.elf.ELFSectionHeader import *
from z2kit.elf.ELFDynamicData import *
from z2kit.elf.ELFDyn... | [
"fuziyamavolcano@yahoo.co.jp"
] | fuziyamavolcano@yahoo.co.jp |
257dc81f65a789c4900940a2f544bb7806e3a00c | d8b11ccad6dc9719e2292f21f7bd6a89b4dffe98 | /HospitalMgmt/manage.py | 07aa977e87db93dd1453304d922afd4dbab3cedb | [] | no_license | meena5/Django-Hospital-Management-System | 8f0e89bb58e3f5de93e6be1ee4f3a62cf5bf3036 | e890f4ed0e1ac60a50cf69524011673a4064af65 | refs/heads/main | 2023-08-07T21:29:21.850648 | 2021-09-16T06:56:26 | 2021-09-16T06:56:26 | 407,054,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HospitalMgmt.settings')
try:
from django.core.management import execute_from_command_line
... | [
"noreply@github.com"
] | meena5.noreply@github.com |
c241ccb910ec13422d9d7b4a1f7920ed1136b1a9 | 05a2c342c3e3a79ab95416ba073ad51ebefe4ff9 | /demo89_sqlite_insert.py | dc61f87a58ee844248a3b33e4032e701aa0f1285 | [] | no_license | mike-taiwan/ucom_python | a2dbe1de17e7be561efb0dcfd00bca0eb1eb8b3f | f65cbd26310c964594a1f664f6b62af7f999f57d | refs/heads/master | 2020-06-05T14:35:51.000865 | 2019-06-21T09:07:01 | 2019-06-21T09:09:21 | 192,460,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | import sqlite3
connection1 = sqlite3.connect('db\\sqlite3_lab1.sqlite')
employees = [{'NAME': 'Mark', "AGE": 38, 'DEPT': 1, 'ADDR': 'Taipei'},
{'NAME': 'John', "AGE": 43, 'DEPT': 2, 'ADDR': 'Hsinchu'},
{'NAME': 'James', "AGE": 47, 'DEPT': 1, 'ADDR': 'Taipei'}]
INSERT_DML = "INSERT INTO EMPL... | [
"mike@taifex.com.tw"
] | mike@taifex.com.tw |
20f0a8e8b32f52012d2a703d08458770c9ce272b | ccd86a24147214349065db2261e7ec7535af43b0 | /text/datasets/stackoverflow_test.py | b6a0c7984ab0a1dbf761c3f7f17d5430cfb052ba | [] | no_license | dallascard/DWAC | 28cfdf926d7b89f4be729ea6c09aa9f9f9aadcd4 | 1869c9f61d38dae6fbb06dca659422e12d352fbb | refs/heads/master | 2020-04-04T08:31:13.123379 | 2019-02-04T17:36:53 | 2019-02-04T17:36:53 | 155,784,426 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import torch
from text.datasets.stackoverflow_dataset import StackOverflowDataset
from text.datasets.text_dataset import collate_fn
train_dataset = StackOverflowDataset('./data/stackoverflow', partition='train', download=True)
cuda = False
kwargs = {'num_workers': 1, 'pin_memory': True}
train_loader = torch.utils.d... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
bedc172d8d1fbcb004ad5ffceff067c69cb9c48d | 31c125db294f926c77c81584492f2ab92d2085ab | /file_hash.py | 144903e41feb8bc390f65995eee2d4f2bf24b03f | [] | no_license | TechNight-Dev/DupliSniffer | b10d19358bf1dc8d2bc96a898a271c9703354827 | a6e27f0011c24b547fd42c879f8ea47c7eec3306 | refs/heads/master | 2023-04-23T01:50:26.430026 | 2021-05-04T11:14:09 | 2021-05-04T11:14:09 | 358,055,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | #! /usr/bin/python
# https://www.programcreek.com/python/example/102910/hashlib.algorithms_guaranteed
import os
import hashlib
# TODO: Eventually add changing the type of hash used.
# Need to figure out what hashes are available
# Most likely use a dictionary to store types and the functions used.
# {'md5': hashlib.... | [
"Tech-Night_Dev@protonmail.com"
] | Tech-Night_Dev@protonmail.com |
1b33b628e77b71abfc262b292bdf0d5c0b755753 | 5b4a662efb40a30493a9eb70644e38a623a326e1 | /account/migrations/0001_initial.py | 45bbecba5e981ee912ab23c21b7c02adbc9c7e21 | [
"Apache-2.0"
] | permissive | gemechis-elias/CodeTopia | 1e60a402ef8963ef31178950ad4e07ac7cfcd691 | cf57a1180112071efd7708d9c3ed7310b20bea2a | refs/heads/master | 2021-03-12T05:26:31.911170 | 2020-03-10T13:53:19 | 2020-03-10T13:53:19 | 246,593,143 | 2 | 0 | null | 2020-03-11T14:27:17 | 2020-03-11T14:27:17 | null | UTF-8 | Python | false | false | 2,416 | py | # Generated by Django 3.0.2 on 2020-01-29 12:31
import account.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
class Migration(migrations.Migration):
initial = True
dependencies = [
migra... | [
"root@DESKTOP-STIPQ3E.localdomain"
] | root@DESKTOP-STIPQ3E.localdomain |
b95f8ba488584066b302a6a08ed1db4c3a32464f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_047/ch120_2020_10_05_23_47_15_174844.py | a558472d357ff5bd6fe65878fca7f5e3315483c1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import random
dinheiro = 100
print('Seu dinheiro é ',dinheiro )
while dinheiro > 0:
z = input('voce quer jogar?s/n')
if z == 's':
a = random.randint(0,36)
aposta = int(input('Digite o valor de sua aposta'))
aposta_1 = input('Escolha entre as seguintes opções n,i,p')
dinheiro -=ap... | [
"you@example.com"
] | you@example.com |
c5e24d6c07b96e188c1a829df99df94748b07fd0 | caf9b3b8164f8c3d10de9076950eb91208982066 | /hw2/hw2.py | eb4b43290da6c712075f137e059341205fe7680d | [] | no_license | malviyanaman/startercode | e6574053b0cb87fcbbd0b21e676dfa83686d1507 | fdfc725c3434c0af5a626170c80b5a1ab20ad2d1 | refs/heads/master | 2023-01-08T06:09:26.987629 | 2020-11-04T18:06:46 | 2020-11-04T18:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | # I collaborated with:
#
# 1)
# 2)
# ...
#
from dask import delayed
from dask.distributed import Client
from typing import List, Dict, Tuple, Any
import re
def tokenize(line: str) -> List[str]:
""" Splits a line into words """
trimmed = line.strip()
return re.split("\W+", trimmed) if trimmed else []
d... | [
"dkifer@cse.psu.edu"
] | dkifer@cse.psu.edu |
e8f23a7336cd50d2264bb098f7518212daa11cac | 900a7285b2fc4d203717e09c88e8afe5bba9144f | /axonius_api_client/cli/grp_tools/cmd_signup.py | 66b2ef2ed8634543da42f66131719152e429d498 | [
"MIT"
] | permissive | geransmith/axonius_api_client | 5694eb60964141b3473d57e9a97929d4bff28110 | 09fd564d62f0ddf7aa44db14a509eaafaf0c930f | refs/heads/master | 2022-11-23T01:43:52.205716 | 2020-06-12T14:15:38 | 2020-06-12T14:15:38 | 280,499,094 | 0 | 0 | MIT | 2020-07-17T18:35:48 | 2020-07-17T18:35:47 | null | UTF-8 | Python | false | false | 1,870 | py | # -*- coding: utf-8 -*-
"""Command line interface for Axonius API Client."""
import click
from ...api.entry import Entry
from ...tools import json_dump
from ..options import URL, add_options
EXPORT = click.option(
"--export-format",
"-xf",
"export_format",
type=click.Choice(["json", "str"]),
help=... | [
"jimbosan@gmail.com"
] | jimbosan@gmail.com |
628f30ffe75a06c4baceaaac598d49f3f4f6a13b | 650ed42e30e2fd2794f034601b41c19d198a323c | /venv/bin/django-admin.py | 868a6c33d20d2f7221d5c6e241ad3b78e03577c7 | [] | no_license | Jaanger123/TaskDjango | a4b2ee6e8feef97c74512948aefa1a43fbfcb5da | 5ab1a7aef3fcde04a5d718fc4c0b0ac7bd79fe84 | refs/heads/master | 2023-06-23T16:10:54.970106 | 2021-07-24T02:58:31 | 2021-07-24T02:58:31 | 388,983,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/home/hello/PycharmProjects/TaskDjango/venv/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was de... | [
"jbarakanov@inbox.ru"
] | jbarakanov@inbox.ru |
8cbda765bda1b28cea26eaa2510f79462cfd1360 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/web_tests/external/wpt/webdriver/tests/execute_script/promise.py | 1eab7822c5c2f3c8d3fa51ac0713ebdc2c19269c | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 2,965 | py | import pytest
from tests.support.asserts import assert_dialog_handled, assert_error, assert_success
def execute_script(session, script, args=None):
if args is None:
args = []
body = {"script": script, "args": args}
return session.transport.send(
"POST", "/session/{session_id}/execute/syn... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
27f8d38ef71fc17960dd91b21b536958713450a9 | 06038042424c83fcf1c5f8626e6cc3597b8a3696 | /load.py | 1921d562d03c4e2907962ba8dc03f2f8c3d51ce5 | [] | no_license | cellinlab/Shot_Detection | f6141969220aa7c056a40d598453fe9631a52dd1 | 1e8b6430504182f766d3613074ad53818bdfb93d | refs/heads/master | 2022-02-20T22:57:41.306612 | 2018-12-07T07:16:53 | 2018-12-07T07:16:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,625 | py | # coding: utf-8
"""
データをロードするクラス
データ整形を行うクラス
"""
import numpy as np
import os, sys, csv
from keras.preprocessing.image import load_img, img_to_array
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from keras.utils imp... | [
"famichiki.yuuki@gmail.com"
] | famichiki.yuuki@gmail.com |
af013237e41c052d47cb81786e488a2d266b59e6 | 7c18960ab331885a9011a371f25a75842267e874 | /mi-collectors/event_collectors/linkedin.py | 0c7f36d6b507b175623e91bbc00b6b78df1a4eaf | [] | no_license | hburrows/thisis.me-MVP | 3ffa1d31d16cbcfb1a25d0bbbafff9fcba082a82 | 1ca86e418cb9fdd6971005291e306c0bc85907b2 | refs/heads/master | 2020-05-08T22:04:42.141604 | 2012-04-26T18:37:37 | 2012-04-26T18:37:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | '''
Created on Feb 8, 2012
@author: howard
'''
import json, urllib
import oauth2 as oauth
from datetime import timedelta
from time import mktime
from mi_utils.oauth import make_request
from mi_schema.models import Author
from full_collector import FullCollector
from mi_model.Event import LinkedInEvent
DATETIME_STRI... | [
"howard@mobileidentity.me"
] | howard@mobileidentity.me |
c09a4f65adcc93679812ddebbc0009b229c0a622 | 31cbced08ee989dd5832cbd65cd182fc8b12ac32 | /Drills/Drill05/Drill05.py | 5822fbd3e18b59a12b095c04286a7231fc4888b3 | [] | no_license | yessol9096/2DGP | c274679d0b6949621b59a4a25411dbf47778c21f | b599cdaf6faa356b368ef44d7597b170ed07d70e | refs/heads/master | 2020-03-28T12:25:32.899391 | 2018-11-22T09:32:49 | 2018-11-22T09:32:49 | 148,296,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | from pico2d import *
open_canvas()
grass = load_image('grass.png')
character = load_image('animation_sheet.png')
def go_to(sx, sy, ex, ey):
if (sx < ex and sy < ey):
move_right_up(sx, sy, ex, ey)
if (sx < ex and sy > ey):
move_right_down(sx, sy, ex, ey)
if (sx > ex and sy < ey):
m... | [
"yessol9096@naver.com"
] | yessol9096@naver.com |
99a308971b21faefc0432f1b6dce573594d67ded | 8e364aff5c70a165ba4f3f78e466a26a871400e4 | /questao_15.py | b6fff181a2d84352b689b735a149ec8ce23f391f | [] | no_license | ifpb-cz-ads/pw1-2020-2-ac04-team-sergiolucas | 90a637a17a9fbaa5fa2e347cb346c11e181e76f9 | a15deeb7b97827b0c2c63602d7e6ba89438e793d | refs/heads/main | 2023-03-14T00:48:57.395205 | 2021-03-03T18:27:02 | 2021-03-03T18:27:02 | 343,500,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # Escreva um programa que exiba uma lista de opções (menu): adição, subtração,
# divisão, multiplicação e sair. Imprima a tabuada da operação escolhida. Repita até que a
# opção "saída" seja escolhida.
print('1- Adição')
print('2- Subtração')
print('3- Multiplicação')
print('4- Divisão')
print('5- Sair')
opcao = input... | [
"sergiotutorshd@gmail.com"
] | sergiotutorshd@gmail.com |
8c9b89e76f032bfe58bb45cc453d944a7e5a9f3a | 9b50a71960b610df9d3b6ac9394c92881be7e85e | /web_scraping/main.py | 1475549e72b95c8a997f0482942bf07fbaa70c3c | [] | no_license | mayures/web-scraping | 67e4e7f6d2b7abc446aa07fb177c84f3724c67a6 | 2264b65eff1412fbf78566ce680c4f369a848956 | refs/heads/main | 2023-06-29T02:36:23.337249 | 2021-07-22T13:59:59 | 2021-07-22T13:59:59 | 388,481,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #from an alredy present html file
from bs4 import BeautifulSoup
with open ('home.html', 'r') as html_file:
content=html_file.read()
soup= BeautifulSoup(content,'lxml')
course_html_tags=soup.findAll('h1')
for course in course_html_tags:
print(course.text)
| [
"kumarmayuresh906@gmail.com"
] | kumarmayuresh906@gmail.com |
619d0815b20fa7056c05a7995a8e02504ee79582 | a2b1e3de2b5730c9c9174b583d84a6a17ca4c81d | /linear_classification/linear_classification.py | 3e90626fdede0c9924bb18b490f0adc6c1397f8c | [] | no_license | suryanshkumar/pyTorchPractice | bcbf7a4144865e21d0caae127d14eeaa451cf7df | dc6fbc06643d4de2b7e27c3e019bdaa58dabf6b2 | refs/heads/master | 2020-03-16T20:36:57.205796 | 2018-05-19T22:30:44 | 2018-05-19T22:30:44 | 132,965,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | #Author: Suryansh Kumar
#Step0: import the essential library
import torch
import numpy as np
from torch.autograd import Variable
from torch.utils.data import Dataset, DataLoader
#Step1: Load data using dataloader
class Diabetes_Dataset(Dataset):
def __init__(self):
data = np.loadtxt('diabetes.csv.gz', del... | [
"k.sur46@gmail.com"
] | k.sur46@gmail.com |
0dfef170f1ed689a3af6295f05acabf4d8348904 | 79ad961f3c7a171bbff98fafc443f881e02bd8e3 | /blog_project/celery.py | 8936c3009f24009107b2d18ff2a468f2fd073886 | [] | no_license | St-D/Django_Blog | c06447f3db73699bea6f45f40f8a1efadb8ae287 | 5540e4b0994d38511f49a4e128c9a5423a381788 | refs/heads/master | 2020-03-26T15:21:56.178125 | 2018-08-27T20:56:31 | 2018-08-27T20:58:57 | 145,038,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blog_project.settings')
app = Celery('blog_project')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
| [
"stastastas@mail.ru"
] | stastastas@mail.ru |
c7bb8147a12a9f7442ea75ff49519f5296a6368b | 0b480b28455d4ea133eaeec5625e2ce62660dbb1 | /rango/migrations/0003_auto_20160718_1304.py | 0020a44fea459a28b21e409be01887e4bd7732f7 | [] | no_license | jtr109/tango_with_django_exercise | 8ff6c05321be8ca614a550abc6c66aef55886136 | ce2aa7c5a12eae0352b435dc726bef4e378ef3c5 | refs/heads/master | 2020-09-22T09:28:34.217081 | 2016-08-30T02:49:35 | 2016-08-30T02:49:35 | 66,900,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rango', '0002_auto_20160718_1300'),
]
operations = [
migrations.AddField(
model_name='category',
nam... | [
"lyp_login@outlook.com"
] | lyp_login@outlook.com |
990d8e4ed4a0ad60d18e3facf7da99334b0f7bb9 | 287b2ad6d654331bc04a83ad34a84ef718a34d99 | /src/pbmgx/nucmer/snp.py | b8e047638fa50a6ee6b4d057068ce94b2e53cdae | [] | no_license | bnbowman/MetagenomicTools | 05fb90b05b47ab9e1b78a676ca3506d2e1015d5c | b140bfd79e189bb4b6a57be36ca753ab94f03348 | refs/heads/master | 2016-08-05T16:45:56.470452 | 2014-01-14T23:23:59 | 2014-01-14T23:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | #! /usr/bin/env python
__author__ = 'bbowman@pacificbiosciences.com'
from pbcore.io.base import ReaderBase
class NucmerSnp( object ):
"""
A Class for representing a Nucmer SNP
"""
def __init__(self, line):
parts = line.strip().split()
parts = [p for p in parts if p != '|']
if ... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.