blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74b4d5ca9ebb3d0cd459690448d060ca8e81b9b5 | 22178b74fa7715f94f702b8e62bff881b72f9a79 | /we.py | ec6fdc308795a9bbacc0d96a556a624ffb651030 | [] | no_license | dominion-ubah/firstgitfile | 3fb6727756dc218fa930ead7f915cb3e65982b3d | 8b31ff21c256f742bcb0b927fc8d4c5e4cfbb26b | refs/heads/master | 2022-11-06T09:28:53.081996 | 2020-06-13T18:00:11 | 2020-06-13T18:00:11 | 272,060,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # T = ['test1', 'test2a', 'test2b', 'test3a', 'test3b']
# R = ['Ok', 'No', 'No', 'Ok', 'No']
# # def solution(T, R):
# T_new= []
# T_v= []
# for i in range(len(T)):
# test = filter(lambda x: x.isdigit(), T[i])
# # if R[i].lower() == 'ok':
# if test in T_v:
# for i in range(len(T_new)):
# ... | [
"domee.ubah@gmail.com"
] | domee.ubah@gmail.com |
272ba43a0b22e419b2d7635c267bfdbe10e79df4 | 7ad70705a5b2b853a1e51c5e7c7bc1a8a576f22b | /lib/app.py | cf89a82823ee8179986efef267058759f74c93a3 | [] | no_license | kwansupp/solid-pancovid-19 | 1e76c21a13fcb32293f04acef3f0153000c97270 | 50c3b76bab01c76cd3b639e1f4a6ae5b755db286 | refs/heads/master | 2021-05-17T02:40:42.408239 | 2020-04-15T15:51:59 | 2020-04-15T15:51:59 | 250,580,345 | 0 | 0 | null | 2020-03-27T16:06:56 | 2020-03-27T16:06:56 | null | UTF-8 | Python | false | false | 3,536 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import pandas as pd
from datahandler import dummyDataHandler
import plotly.express as px
import numpy as np
from datetime import datetime
import traceback
'''
This is a prototype webapp for th... | [
"levivdheijden@hotmail.nl"
] | levivdheijden@hotmail.nl |
739ca7dea2b81c1a4463926742729e375c715cbd | 58fa3041a188f457332d1f83d16ceb7e492e3e17 | /uniGrades.py | 81000d2530e8e5fc6f542be768c6e07247c94b46 | [] | no_license | osama-aboukoura/My-Uni-Grades-Calculator | c2f292541fd1faca7f6d3a3e6887c930e2563e02 | 90a372c8085b3d6fa3a54f67f3e6270f8f951411 | refs/heads/master | 2020-03-20T21:42:47.334614 | 2018-09-24T17:40:24 | 2018-09-24T17:40:24 | 137,756,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,250 | py | from tkinter import *
from tkinter import messagebox
from Database import *
def get_year_average(array_of_entries):
total = 0
try:
for number in array_of_entries:
if int(number.get()) < 40:
info_label_text.set("Scoring less than 40 in any of the modules "
... | [
"osama.aboukoura@kcl.ac.uk"
] | osama.aboukoura@kcl.ac.uk |
424765d18851d58e16c21419b2da37af0fadb2c1 | 18d7dc6d87ec867d22d1f2d78e45b947ba39ae75 | /backend/cwc/migrations/0009_auto_20170122_1230.py | ec6bb11a494b8215c3e25befc2e9d4e4d754e3c1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | gmacciocca/coffee-with-congress | ac712f954c41d99d1b409670434f650694b1cb30 | dd6554615d51b9972c24a75c0c3f0adcc04b9949 | refs/heads/master | 2021-03-27T17:03:39.947221 | 2017-12-17T01:58:46 | 2017-12-17T01:58:46 | 73,728,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-22 12:30
from __future__ import unicode_literals
from django.db import migrations, models
template_states = {}
def pull_template_states(apps, schema_editor):
# We can't import the Template model directly as it may be a newer
# version than this ... | [
"senad.uka@gmail.com"
] | senad.uka@gmail.com |
e055ffb448a0c217d7a2d9c1dee3cbb124ee1579 | 2f2113154f78443433f5ac5429ef70e3de33339b | /dataset/dataset.py | edd6fd471ed52841d525b43a6177ffd13575ebc2 | [] | no_license | jjRen-xd/Remote-Sensing-Image-Classification | fe4317e7b5cb7a0397463b11b6f74451cda53f2e | a6269cfc799747031f0e52a4277bc05dbf6fec90 | refs/heads/master | 2022-05-07T23:21:04.768404 | 2019-04-09T00:50:03 | 2019-04-09T00:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | # -*- coding:utf-8 -*-
import sys
sys.path.append('/home/gfx/Projects/remote_sensing_image_classification')
import os
import cv2
import pandas as pd
import numpy as np
from PIL import Image, ImageFilter
import torch
from torch.utils.data.dataset import Dataset
from torch.utils.data import DataLoader
from torchvision i... | [
"fuxungao@163.com"
] | fuxungao@163.com |
dd63d8ff2276e64b1806676cac723baf74f0ecb7 | 306afd5282d9c24d58297478a1728a006c29e57e | /lintcode/lintcode_0547_Intersection_of_Two_Arrays.py | ddcecd3100ee335a8a14d3b209fb6a19895c1786 | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from typing import (
List,
)
class Solution:
"""
@param nums1: an integer array
@param nums2: an integer array
@return: an integer array
we will sort your return value in output
"""
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
# write your co... | [
"noreply@github.com"
] | ytatus94.noreply@github.com |
16a5eb29d0899f0a366ee71b2a0b3b5f51f1a41d | 029c35c8057fb3d836c929a9d13c8ed68e25a076 | /app/main/forms.py | 55bea2a21b526c7f9287d077f53b9ed1f320f7c0 | [
"BSD-3-Clause"
] | permissive | alexstennet/presidents | 5df663a177e9598ab80d7fc41f79f334c84a73d0 | 224265a8db9cd7a51f8ac40b8519dfa30ffbab61 | refs/heads/master | 2020-03-20T17:14:02.190101 | 2018-06-04T02:24:41 | 2018-06-04T02:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from flask_wtf import FlaskForm
from wtforms.fields import StringField, SubmitField
from wtforms.validators import Required
class LoginForm(FlaskForm):
"""Accepts a nickname and a room."""
name = StringField('Name', validators=[Required()])
room = StringField('Room', validators=[Required()])
... | [
"senavi@berkeley.edu"
] | senavi@berkeley.edu |
e12977316ee1cd441006009c3cc4ba67dd14fc76 | d0a3a04657af45bfa159819e593445e7a82a22e2 | /frames_to_video.py | 9d171f1dae7d493ec3cdb1d3c7f9aaffbd9a8349 | [] | no_license | grant81/ParticleFilterMultipleObjectTracking | cc9b5a2df7a50150635d07a5ca3cb42e697b23b5 | e7830892d7d078b98ff7a83555863ebfab5a6ccb | refs/heads/master | 2020-05-03T19:46:31.549365 | 2019-04-17T18:07:29 | 2019-04-17T18:07:29 | 178,790,132 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import cv2
import hyperparameters
image_folder = hyperparameters.bounded_image_out
video_name = 'traking_result_100_particles_high_performance_tracker.avi'
images = [image_folder+ 'frame_{0:04}.jpg'.format(i) for i in range(hyperparameters.number_of_frames) ]
frame = cv2.imread(images[0])
height, width, layers = fram... | [
"grantzhao75@gmail.com"
] | grantzhao75@gmail.com |
0da00b03f57e23e33671671f5fe8c1b3f063c51d | 7a914f1d1e7a4b4d9757145cac8376bf1f7099d4 | /jsk_recognition/jsk_perception/node_scripts/fisheye_ray.py | e54f0bc80e9af02b5d47f0dcf8377129aa1caeba | [
"Apache-2.0"
] | permissive | usdot-fhwa-stol/autoware.ai | eed15471180f92900413b1a20213263b40acdb3f | 35c2be547269f2843de2ad907cec85abcf598577 | refs/heads/carma-develop | 2023-08-14T07:59:11.546253 | 2023-08-01T20:51:01 | 2023-08-01T20:51:01 | 186,024,768 | 2 | 12 | Apache-2.0 | 2023-08-01T20:51:02 | 2019-05-10T17:03:33 | C++ | UTF-8 | Python | false | false | 2,670 | py | #!/usr/bin/env python
import cv2
import rospy
import cv_bridge
from sensor_msgs.msg import Image, CameraInfo
from geometry_msgs.msg import Vector3, PoseStamped, PointStamped
import math
import tf
import numpy as np
def camera_info_cb(msg):
global latest_camera_info
latest_camera_info = msg;
def image_cb(ms... | [
"Michael.McConnell-2@leidos.com"
] | Michael.McConnell-2@leidos.com |
35e895394f6115b675e968c03a9dbcbbecb43f50 | 14c0b8a6fb44fcd6a2bedf0395c436ab3f8657e2 | /heedpoint/heedpoint/settings.py | 0e56641638ff8c79c278c7fb259545028b262478 | [] | no_license | UncleKhab/heedpointone | ebe3743c98bc59dd53005b7637d91f7cdcc39b3f | 9c659ee545455cce3cbb44ee12e999dbf999f6d3 | refs/heads/main | 2023-02-17T13:17:52.055169 | 2021-01-12T20:59:27 | 2021-01-12T20:59:27 | 327,727,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | """
Django settings for heedpoint project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"cobrosoffice@gmail.com"
] | cobrosoffice@gmail.com |
4b8ca9506c9d6487556e760845de5e745d2d87de | 5b1dd935ccebea61fcb5ee2c28a59c2943784123 | /layout/layout_body.py | bb1e6f9600e95888789071f94fd5aafe9281e8ee | [] | no_license | pmecchia/covid19-dashboard-france | 0715b1674e57ec86d5d6c3c723984dbd51bde6a7 | 15d3a8ade688f09ae2b0c5c8ba9f57044ecda092 | refs/heads/master | 2023-01-20T02:56:32.435024 | 2020-11-17T11:17:19 | 2020-11-17T11:17:19 | 309,733,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,564 | py | import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from static import DEP_LABELS,TIMESTAMP_LABELS
#Confirm/Death Table
departments_tabs = dbc.Card(
[
dbc.CardBody(
html.Div(
id="departments-table",className="results... | [
"mecchia.pierre@gmail.com"
] | mecchia.pierre@gmail.com |
293b6a144a299f957a5b76a6c6d6d8346289148a | 77b3ccdd47989c7090a16b971fde977ebc698661 | /proxyAndUrl.py | 4df1aa2dccd7b8a1e69ac4e56132a9844b416fcb | [] | no_license | ben-jones/cookie-injection | 2f50ae37daaacbf337596d5cce0b3f950bf95659 | 248fc7c5c76b45128898439dedb9ba5b6723b703 | refs/heads/master | 2016-09-08T01:14:39.265885 | 2013-11-19T03:25:18 | 2013-11-19T03:25:18 | 14,512,954 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | #proxyAndUrl.py
# Ben Jones
# ECE 649 Fall 2012
# proxyAndUrl.py: sets up a proxy server and parses out the tracking cookies,
# inserts a new ones, then send the requests to the proxy server. After the
# requests have been returned, tracking cookies are inserted again, then
# the page is returned to the user
#get... | [
"benjonesece@gmail.com"
] | benjonesece@gmail.com |
042d0eb712afa10e91d7c10c75dd79dcb1625148 | 67e316dd2de39dfc3df6b5c106f4a3ea956337e5 | /utils/priority_queue_test.py | e8d57651a05d676a79869c2b545fc0de0fdc5e00 | [] | no_license | pasmargo/t2t-qa | cd1f0e0703819bbf38a88c9c440eaecd066f112d | 3e75bca99aa6cafffb0dafaaca6592aefd4aafdb | refs/heads/master | 2020-04-15T14:42:52.385470 | 2016-11-04T23:37:49 | 2016-11-04T23:37:49 | 68,193,360 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,871 | py | import unittest
# from pudb import set_trace; set_trace()
from extraction.extractor_beam import Transformation
from linguistics.similarity import Similarity
from utils.priority_queue import PriorityQueue
class PriorityQueueTestCase(unittest.TestCase):
def setUp(self):
self.similarity = Similarity(1.0, 'dummy',... | [
"pasmargo@users.noreply.github.com"
] | pasmargo@users.noreply.github.com |
f24f3df3ccad16e8d375931cc68915706b7789d7 | 4e264176ebbd27996275d80b9a07e0957960546d | /apps/zones/migrations/0013_alter_profile_role.py | 01ccbc927122427a6cb206e232fb9b798c83d165 | [
"MIT"
] | permissive | Naz758/GITS-zones | 53458899ae2f8313363bd1d85000aeec5ddfc2fa | d4bf07ba72464c79c0130814ac764c5af50b7739 | refs/heads/main | 2023-03-31T01:57:44.011669 | 2021-04-06T23:45:57 | 2021-04-06T23:45:57 | 355,206,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Generated by Django 3.2 on 2021-04-06 22:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('zones', '0012_alter_profile_ext'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"swelanauguste@gmail.com"
] | swelanauguste@gmail.com |
1a770f79fd81c17269f4ed63636862fb554d30ca | 0f205fa73d927a15e27f065c6a198935f90d3ada | /src/pycones/proposals/migrations/0001_initial.py | 50994be6deb17fc6ba0539338afcce03c1f8e433 | [] | no_license | python-spain/web-pycones | b27bfb630cb6eafb8e1a5aadfa7b35368f81325a | 942516169738689f542b0856842372088f34fc2f | refs/heads/2020 | 2023-03-30T06:01:30.809205 | 2020-03-23T22:08:27 | 2020-03-23T22:08:27 | 80,434,627 | 3 | 4 | null | 2021-04-08T20:55:32 | 2017-01-30T15:36:49 | CSS | UTF-8 | Python | false | false | 4,690 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-31 12:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import markupfield.fields
import model_utils.fields
import taggit_autosuggest.managers
class Migratio... | [
"marcosgabarda@gmail.com"
] | marcosgabarda@gmail.com |
da1b0bc7a7be8eda1f40832ad6927fe1e2952394 | b566710c45a83b9ec86b8617b8816b16871bc3e7 | /convertAllCSVsToGs.py | 1dcd1cc32b39eca3058f2b64ef73398b435ba434 | [
"Apache-2.0",
"MIT"
] | permissive | okfde/2030-watch-dataprocessing | 76221d849220a210b3219f588ee6c22188fb4a4a | 40b1950e324fa23850515e2bec33eee90e46a201 | refs/heads/master | 2021-07-09T17:06:26.369133 | 2020-11-03T20:25:33 | 2020-11-03T20:25:33 | 64,477,170 | 1 | 2 | NOASSERTION | 2021-04-30T20:36:55 | 2016-07-29T11:57:39 | Python | UTF-8 | Python | false | false | 3,754 | py | import httplib2
import os
import unicodecsv as csv
import json
import StringIO
from apiclient import discovery, errors
import oauth2client
from oauth2client import client
from oauth2client import tools
from time import sleep
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse... | [
"matt.fullerton@gmail.com"
] | matt.fullerton@gmail.com |
bad7021cc9cd22822dc285a2e2ac2f3fd1bcccf0 | 6861a04db56dd89b774aa933e9604b741da092b3 | /NeighbourhoodOverlap/NeighbourhoodOverlap/NeighbourhoodOverlap.py | 4ae2775d1acb2e1af5a9547f15aa376de64e4d3f | [] | no_license | nayangondaliya/NetworkTheory | 48ed9a5977d231c5fbb8fedd674dbf1d683628f1 | 0edcb703abe834dbe21b2498a2bc7164511e3dd1 | refs/heads/main | 2023-06-19T06:52:26.992021 | 2021-07-21T15:22:42 | 2021-07-21T15:22:42 | 387,580,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | #get matrix
def getMatrix(row, column, initialiser):
matrix = []
for i in range(row):
row = []
for j in range(column):
row.append(initialiser)
matrix.append(row)
return matrix
#generate adjacency matrix
def generateMatrix(fileName, vertices, totalVertic... | [
"noreply@github.com"
] | nayangondaliya.noreply@github.com |
3601271129a1c739e30ecb04126dea97e0c24895 | 4d9b2420ca30795c328df58ec87ae346f873e059 | /EqSolver/eqsolver.py | a858e6b1dc872947fca926aa4ddb7d77d3babda8 | [] | no_license | CCALITA/CNNthings | 1f196d304daed9e819ee55cbe099ff665b7278ca | c75ce0844219004bcfe307b4cfd17df04a657df5 | refs/heads/master | 2021-02-18T16:33:36.260238 | 2020-06-30T12:56:39 | 2020-06-30T12:56:39 | 245,213,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # import numpy as np
# x=np.roots(input().split(' '))
# if np.iscomplex(x[0]):print("no real solution")
# else:print(x)
import tensorflow as tf
import os
import threading
os.environ['TF_CPP_LOG_LEVEL']='2'
# 这个op,作为一个node,添加到graph中
hello = tf.constant('122!')
# 启动TF进程(session)
sess = tf.compat.v1.Session()
# 运行op,并输... | [
"32668177+kirakura@users.noreply.github.com"
] | 32668177+kirakura@users.noreply.github.com |
81d476ae8ca741ee79612982b6649f6987bd6dd6 | 8339f8990c366f76043c420f0da269661e588229 | /hub_template.py | b076f178cbdebd102e11aa1a115cb3a49d69fe50 | [] | no_license | davepkennedy/service-templates | 293ead21df70819f3e2891207da0ce6e60ed39f5 | 64c65442373cdb8e1431af3e74ae6f3367e4fd86 | refs/heads/master | 2020-03-30T10:56:30.977075 | 2018-10-04T21:03:44 | 2018-10-04T21:03:44 | 151,144,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | from github import Github
import json
class GitTemplates(object):
__slots__ = ['client', 'user']
def __init__(self, user):
self.client = Github()
self.user = user
def find_templates(self, repo='service-templates'):
user_data = self.client.get_user(self.user)
repos = user_d... | [
"noreply@github.com"
] | davepkennedy.noreply@github.com |
a8c0c33925a46eaf12503d5bc1b49d8df02e7c13 | 0f79df41295eca76c63acab672f21610beaf33cc | /main/queries.py | 0034e2c167049612c661c891042cb379c97e6234 | [] | no_license | kusalkumar/cli-app | 8504dbe876787325e3acf910ecb04458bea00db0 | 3d1448c012cb191f2db38e57a97185dd2ed2110b | refs/heads/main | 2023-04-15T05:13:37.570202 | 2021-04-24T06:08:21 | 2021-04-24T06:08:21 | 360,888,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | """
module where all the project specific functions available
"""
import json
import requests
import params
def get_token():
"""
To get latest token to make different api requests
Parameters
----------
None
Returns
-------
True, token / False, error
"""
try:
url = p... | [
"kusal@criterionnetworks.com"
] | kusal@criterionnetworks.com |
94aa51e0ae62adb24339c6fea1a38ccd7b23a9e5 | 6500ebe0bf75ce2b639b3545b64647a19e948491 | /Answers/admin.py | f0cf58af87aa885d1ff7fd78ac3ce606ffdd680b | [] | no_license | IreneSaenko/PIFAGOR | 619d1a971632c75e03bfdc7d13eb94e0e0de17b1 | ac67d5daf132ec1c476919031649d3796085623c | refs/heads/master | 2020-06-11T03:54:59.383701 | 2019-06-26T07:08:27 | 2019-06-26T07:08:27 | 193,839,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.contrib import admin
from Answers.models import Answers
admin.site.register(Answers) | [
"taka.ir@yandex.ru"
] | taka.ir@yandex.ru |
84f88719bf89642be3764e8047d815444457cb74 | 8a1944e7b8ff2bb02476003af5aaf06533ce7a57 | /五一策略.py | e35436e087d91d17b3fccf6e7bfb39824c7ab8f8 | [] | no_license | wzt9332/-jqData- | ad86220d4b67620eece10e0c63bc457d81031ccb | 3808b8e9e6f16156d6ffd7e05a148e49d5910f4e | refs/heads/master | 2022-11-20T09:36:47.732176 | 2020-07-26T05:16:27 | 2020-07-26T05:16:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,643 | py | # 克隆自聚宽文章:https://www.joinquant.com/post/25496
# 标题:收益狂飙,年化收益100%,11年1700倍,绝无未来函数
# 作者:jqz1226
# 导入函数库
from jqdata import *
# 初始化函数,设定基准等等
def initialize(context):
# 设定沪深300作为基准
set_benchmark('000300.XSHG')
# 开启动态复权模式(真实价格)
set_option('use_real_price', True)
# 输出内容到日志 log.info()002825002825002825002825
log.inf... | [
"910933955@qq.com"
] | 910933955@qq.com |
643ff60586427861267b2eb9c8e880763094d83e | 4609ee89172d6f5f0b0bb59faf13f67f8a4bad28 | /gclient/mark_as_read.py | 21fb6040a8bf72d2e955bbfe3a497187132b5985 | [] | no_license | QuentinDuval/GmailClient | 82cf53f4d412280af608b9d90d50eded75b393e1 | c0a69fe75d22d1ddd932de16107d799473c68e6b | refs/heads/master | 2020-06-10T21:17:02.591884 | 2019-06-25T17:09:40 | 2019-06-25T17:09:40 | 193,750,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from __future__ import print_function
from gclient.authentication import *
from googleapiclient.discovery import build
from typing import List
class Classification:
def __init__(self):
self.creds = get_credentials()
self.service = build('gmail', 'v1', credentials=self.creds)
def get_all_labe... | [
"senmenty@gmail.com"
] | senmenty@gmail.com |
2f204f0ae40f767e8123b70b8bde66c2de447642 | 59a27d1244c372d72e2124e634330a62a40d504b | /aoc_21/05.py | a05bbe7afbea6b204f9021473b59745d3fa5ef85 | [] | no_license | rliffredo/advent-of-code | 2037813d6765a2c650c240190267c944e4d5148d | 3dccb51e252d0e0cc2f627476db69a38be7686de | refs/heads/master | 2022-12-22T05:02:14.708180 | 2022-12-15T08:44:58 | 2022-12-15T08:44:58 | 160,335,685 | 0 | 0 | null | 2021-05-13T21:07:08 | 2018-12-04T09:53:42 | Python | UTF-8 | Python | false | false | 1,953 | py | import re
from collections import defaultdict
from common import read_data, print_map
def parse_data():
raw_line_defs = read_data("05", True)
def_pattern = re.compile(r"(\d+),(\d+) -> (\d+),(\d+)")
line_defs = [def_pattern.match(raw_def).groups() for raw_def in raw_line_defs]
int_line_defs = [[int(n)... | [
"rliffredo@outlook.com"
] | rliffredo@outlook.com |
d4c912b0c3a10a426fe1bfd18cdb628d0d4b164b | 5e3c74f9b4e8a689a0d558d3958eec54d96eda6a | /auto_ml/utils_ensembling.py | 35ce35936f3eb5c72e4e1139f7b467b4f54af142 | [
"MIT"
] | permissive | Asdil/auto_ml | cff33d953aad8bec7e980d805587c8332782202a | 1097e4f6417806b1251c61f63c7d9a330e0ddca9 | refs/heads/master | 2021-03-22T05:08:02.308109 | 2018-01-21T23:29:17 | 2018-01-21T23:29:17 | 119,356,650 | 1 | 0 | null | 2018-01-29T08:49:45 | 2018-01-29T08:49:45 | null | UTF-8 | Python | false | false | 6,913 | py | import os
import numpy as np
import pandas as pd
import pathos
from sklearn.base import BaseEstimator, TransformerMixin
class Ensembler(BaseEstimator, TransformerMixin):
def __init__(self, ensemble_predictors, type_of_estimator, ensemble_method='average', num_classes=None):
self.ensemble_predictors =... | [
"ClimbsBytes@gmail.com"
] | ClimbsBytes@gmail.com |
bde188897443859c283a0e04d1e9bf1a77dd0ec7 | a2ea43c06bce621ff0ebe1f6c01784667cf66150 | /notes/migrations/0008_auto__add_field_category_description.py | 484f83f8556022245d712006cae1a9e34ff53bc2 | [] | no_license | abhishekkarnani/my-blog | c62682bce7c0a0be079658aa68d4284519990365 | ce0024e5c98f8e68564f37d6b42c8bedcf702c4d | refs/heads/master | 2020-12-31T07:20:00.194492 | 2016-04-11T21:20:35 | 2016-04-11T21:20:35 | 56,007,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,476 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Category.description'
db.add_column(u'notes_category', 'd... | [
"abhishek.karnani224@gmail.com"
] | abhishek.karnani224@gmail.com |
a57fa2b7364d63958571fb4e0853f4351b795d94 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_QMIX_TensorFlow/xt/benchmark/configs/default_xt.py | 3f596108539b438663d6aaf4a5988cd8513e8366 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 428 | py | """
default configure for benchmark function
"""
class XtBenchmarkConf(object):
"""benchmark conf, user also can re-set it"""
default_db_root = "/tmp/.xt_data/sqlite" # could set path by yourself
default_id = "xt_default_benchmark"
defalut_log_path = "/tmp/.xt_data/logs"
default_tb_path = "/tmp/.... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
751d4ae0e181ca9676e4f39d66901bcf49adcfce | a4d8fcfa8084c5d36a862aeb0978327ff4cfe50f | /tools/romutil.py | 21a81fa99d4558f851102beaa543b3581ea8997d | [
"Artistic-2.0"
] | permissive | cahirwpz/demoscene | a0b548527d89a354b5b8dfd922f39d8b14d61643 | cd4517ba69e26c96a69e505e305a6d0152972982 | refs/heads/master | 2023-03-17T13:06:43.731158 | 2023-03-13T19:48:47 | 2023-03-13T19:48:47 | 3,242,770 | 105 | 21 | Artistic-2.0 | 2022-10-18T09:43:25 | 2012-01-22T23:03:06 | C | UTF-8 | Python | false | false | 2,256 | py | #!/usr/bin/env python3
import argparse
import os
from array import array
from struct import pack
from io import BytesIO
from fsutil import SECTOR, write_pad, Filesystem
#
# In memory format description:
#
# sector 0..1: startup code
# [LONG] initial stack pointer
# [LONG] initial program counter
# [LONG] ROM addr... | [
"noreply@github.com"
] | cahirwpz.noreply@github.com |
b12492e8c5ab34be86a7628f831744f414fe7c0a | c8645c4b185097c369070ebc6a476a1a336c0eaa | /mpce/src/crawler.py | 546b50c5d7e29c7d7a828e2d67b3f522f8219292 | [
"MIT"
] | permissive | dadosjusbr/coletores | efc7407da3fdaa562c6c0359e5e2556f68bddbf2 | 3ea228db357b57344d7d742f96c7ca4667e968c2 | refs/heads/master | 2022-05-28T15:50:36.572772 | 2022-05-21T13:05:33 | 2022-05-21T13:05:33 | 218,156,279 | 18 | 10 | MIT | 2022-05-21T13:05:34 | 2019-10-28T22:23:26 | Python | UTF-8 | Python | false | false | 3,326 | py | import requests
import sys
import os
import pathlib
from bs4 import BeautifulSoup
from urllib.request import urlopen
base_url = 'http://wapp.mpce.mp.br/PortalTransparenciaConsultas/Visao/extratos.aspx{}'
url_formats = {
'remu':'?opt=1',
'vi':'?opt=9'
}
url_params = {
'remu': (('opt','1'),),
'vi':... | [
"thyago.pereira.silva@ccc.ufcg.edu.br"
] | thyago.pereira.silva@ccc.ufcg.edu.br |
0b6a29f79ee9f85fa2b2f650ea17ed3798adbcb2 | 6716eb8116dc5a0d9947e759289c434effabe909 | /module1/lesson6_step8.py | d1ee1429149d55aecaa70de70aa1a36ceecfa2b6 | [] | no_license | L1verp00ler/stepik-auto-tests-course | 085e05b0780122f3c2ebadb2e8934ab93875c62a | 0b89f41b3f809f55d854c9bd43aa477ec6ae4645 | refs/heads/master | 2022-12-30T01:55:08.083944 | 2020-10-16T13:44:39 | 2020-10-16T13:44:39 | 287,219,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | from selenium import webdriver
import time
link = "http://suninjuly.github.io/find_xpath_form"
try:
browser = webdriver.Chrome()
browser.get(link)
input1 = browser.find_element_by_tag_name("input")
input1.send_keys("Ivan")
input2 = browser.find_element_by_name("last_name")
input2.send_keys("P... | [
"andrey.golubev.1991@mail.ru"
] | andrey.golubev.1991@mail.ru |
67ffa6937e05e7704b90376cbd3bb100ea85a51e | 901944f407f4a06a4c4027d6139ce21165976857 | /neural_net/Neural_Net_CC/main.py | 41bce1152dcd33c242b3bd32556f6a2f50ee5a48 | [] | no_license | chriscremer/Other_Code | a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05 | 7b394fa87523803b3f4536b316df76cc44f8846e | refs/heads/master | 2021-01-17T02:34:56.215047 | 2020-05-26T13:59:05 | 2020-05-26T13:59:05 | 34,680,279 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py |
import numpy as np
import csv
import random
import pickle
from NN_cc import Network
from costs import *
from activations import *
from sklearn import preprocessing
if __name__ == "__main__":
####################################
#Load data
####################################
MY_DATASET = '/data1/morrislab/c... | [
"chris.a.cremer@gmail.com"
] | chris.a.cremer@gmail.com |
a924f6b20b628e2b9ea28c0fc417daa6d15e58f1 | dadefab2deac66c1d242af3468e81c4d53ac223b | /steps/step21.py | d6987ce866bb3a84638b0215ea9759be52075883 | [] | no_license | SooDevv/DeZero3 | 500df02bdcd6ba50045fc4490053e6419769c656 | dbda633c4403151b1f6feb59a5e1c970268bcc0d | refs/heads/main | 2023-04-21T23:28:50.528753 | 2021-05-09T15:09:14 | 2021-05-09T15:09:14 | 324,681,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | import numpy as np
import weakref
class Variable:
def __init__(self, data, name=None):
__array_priority__ = 200
if not isinstance(data, np.ndarray):
raise TypeError
self.data = data
self.grad = None
self.generation = 0
self.creator = None
self.na... | [
"soojung.dev@gmail.com"
] | soojung.dev@gmail.com |
8413449ea7eca7950d1df03ee831671e6f6b836c | f157ecb6b5f5dc59504babd1ba87f0e46a5c0667 | /Week_07/G20200343030585/LeetCode_773_585.py | 47e4a41b048237379318c87e1f1b310047b3fe9e | [] | no_license | algorithm006-class01/algorithm006-class01 | 891da256a54640cf1820db93380f4253f6aacecd | 7ad9b948f8deecf35dced38a62913e462e699b1c | refs/heads/master | 2020-12-27T14:43:13.449713 | 2020-04-20T06:56:33 | 2020-04-20T06:56:33 | 237,936,958 | 19 | 140 | null | 2020-04-20T06:56:34 | 2020-02-03T10:13:53 | Java | UTF-8 | Python | false | false | 6,653 | py | # -*- coding:utf-8 -*-
# @lc app=leetcode.cn id=773 lang=python
#
# [773] 滑动谜题
#
# 解题思路
# 1.BFS
# 1.生成0元素移动的映射关系。整个board生成字符串形式方便处理
# 2.每次移动上下左右4个方向,找到对应的结果添加到新的list再进行一层循环
# 2.A*
# 1.与BFS的变化就是使用priorityqueue和估价函数
# @lc code=start
# A* manhattan distance
# import heapq
# class Solution(object):
# def slidi... | [
"zhaoyong-lc@gmail.com"
] | zhaoyong-lc@gmail.com |
3bbf9d9b115044f96a486fc02b991a3a7d9d8876 | 0a6f9be53c8f809fe34b8a53bf38b5c5445f60ca | /python/pangram/pangram.py | 0267e25e702b7c4696c42811bb403d6c5a610ce1 | [] | no_license | JanPretzel/exercism | 1802b1257cab6add78e557f391457d9be3fd2a4d | b53bb402e50514a21bfb4891742df16c38440a4e | refs/heads/master | 2020-05-21T07:05:23.134163 | 2017-03-11T17:05:56 | 2017-03-11T17:05:56 | 84,591,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import re
ALPHA_COUNT = 26
def is_pangram(text):
clean = re.sub('[^a-z]+', '', text, flags=re.IGNORECASE)
return len(list(set(clean.lower()))) == 26
| [
"jan.pretzel@gmail.com"
] | jan.pretzel@gmail.com |
bd61c651a5dcd9583cb47782169dbcf572a79d33 | 2b0e87920a4db074ea10520becc60c3afce2a48e | /Python_term/aes_script/crypto_demo/des3_cbc.py | 45012801f4fca99750dcc606d7f967efae1cb1bd | [] | no_license | zhajg/zhajg_term | 1a90d6eb4a4e1acf1afacb46673c38dca2efaa5e | 2727d5137c9fa8e19c3e7d883b50ba2f1c33029e | refs/heads/master | 2021-01-13T18:08:46.160882 | 2020-02-23T04:13:06 | 2020-02-23T04:13:06 | 242,451,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | import sys
from Crypto.Cipher import DES3
import math
import binascii
# DES3 CBC
key=("\x01\x23\x45\x67\x89\xab\xcd\xef"
"\x23\x45\x67\x89\xab\xcd\xef\x01"
"\x45\x67\x89\xab\xcd\xef\x01\x23")
iv="\x12\x34\x56\x78\x90\xab\xcd\xef"
raw_buf=("\x4e\x6f\x77\x20\x69\x73\x20\x74"
"\x43\xe9\x34\x00\x8c\x38\... | [
"nuaaJulian@163.com"
] | nuaaJulian@163.com |
0fe492315d95c78217ef6568b723e832915624b0 | aa46eecc3f501435338fa37210d2749b3132b1e4 | /XL216G7/pyscript/G7_packit.py | 4fd523d192d81b01c72cabde07581e99043428bc | [] | no_license | fallingelf/1DSpect | fcfe40947733e3c475e75e3145d9e9a2f165d23a | 3d8bbb614a7995907493c9f54e999d4d013dd292 | refs/heads/master | 2020-04-26T11:41:40.263968 | 2019-11-22T12:54:55 | 2019-11-22T12:54:55 | 173,525,392 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | from pyraf import iraf
import os,shutil
import numpy as np
def expand_name(Files):
if '-' in Files:
part_Files=Files.replace('-',' ').split()
N=1-int(part_Files[0][-3:])+int(part_Files[1])
name_expand=[]
for i in range(N):
name_expand.append([])
name_expand[-... | [
"noreply@github.com"
] | fallingelf.noreply@github.com |
90abd98297a2ec0223dd17d5387e6b4e56471e66 | 10b4ebc101ac9f829b62ed21aadaa5f80f245114 | /Lokapróf/1 Basics/Population estimation.py | 3b88f8512498fcf6d58e128484e886c523676347 | [] | no_license | nonnikb/verkefni | c80537ff904026a6cb508c29f84f3ff0ab16a226 | 0a1654e0c22bb16990da0fdcecae008c69be4c12 | refs/heads/master | 2020-03-27T23:31:11.820242 | 2019-01-05T21:54:49 | 2019-01-05T21:54:49 | 147,324,316 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | """Assume that the current US population is 307,357,870
- a birth every 7 seconds
- a death every 13 seconds
- a new immigrant every 35 seconds
Write a program that takes years as input (as an integer) and prints
out estimated population (as integer).
Assume that there are exactly 365 days in a year."""
years = input(... | [
"jonb18@ru.is"
] | jonb18@ru.is |
3b9fe333e7d4065f42d1f796e206238245df2998 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/database/orms/api.py | e8c05566f0edc99644329043e8244fbdd6556648 | [] | no_license | softtrainee/arlab | 125c5943f83b37bc7431ae985ac7b936e08a8fe4 | b691b6be8214dcb56921c55daed4d009b0b62027 | refs/heads/master | 2020-12-31T07:54:48.447800 | 2013-05-06T02:49:12 | 2013-05-06T02:49:12 | 53,566,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #===============================================================================
# Copyright 2011 Jake Ross
#
# 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/license... | [
"jirhiker@localhost"
] | jirhiker@localhost |
47f754df0fc9ba8f12d44c0b23da5e69d42e1e61 | 44b43d39b31b3eba1cf65cab7c47f72ff68134d1 | /chapter8/ex38.py | e2ffdbc116eb750caa4acffc0e06ee55c032e948 | [] | no_license | BenoitStef/LearnPython3 | 5ab722b36d01b026ce4bb7ef92240f8ee87fcd50 | 243ebc15985009657b0d1f4e168553f4d9302607 | refs/heads/master | 2020-04-24T08:01:14.905149 | 2019-02-26T12:39:08 | 2019-02-26T12:39:08 | 171,817,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #-------------------------------------------------------------------------------
# Doing Things to Lists - Learn Python 3 the hard way - page 168
# Author : Benoit Stef
# Date : 25.02.2019
#-------------------------------------------------------------------------------
tenThings = "Apples Oranges Crows Telephon... | [
"benoit.stef@gmx.ch"
] | benoit.stef@gmx.ch |
0d625289c5ac0ab9c7e787207ace977e54c123fa | 38e2dd851bf4e2d846d87859293036f02ddbaef4 | /pyap/pyap/gunicorn.conf.py | e679e9f3a1dd430890b98c245ef1371d9e651e3d | [] | no_license | marychev/pyap_v100 | c154207b7e86d221f50955c9b4872430a7ebbdd5 | 44deb588e07a047f23c21430d149a14b729f9a88 | refs/heads/master | 2020-03-14T04:09:14.615123 | 2018-07-15T04:48:43 | 2018-07-15T04:48:43 | 131,435,669 | 5 | 1 | null | 2019-12-03T15:25:51 | 2018-04-28T18:49:29 | HTML | UTF-8 | Python | false | false | 53 | py | bind = '127.0.0.1:3100'
workers = 3
user = "nobody"
| [
"pyapmail@gmail.com"
] | pyapmail@gmail.com |
481c19172d01ff3c0f182687e3fb6e049cc46d47 | 0fb169cc1518c63b1e69ff87b8b518beff471361 | /src/c4/cmany/build_item.py | 21430c37524eee7f70fc5c0f47641a23dd7f8316 | [
"MIT"
] | permissive | AvdN/cmany | c2befcf8f1b4c9cf53a158f069bf4cf8fb6afea2 | 9369c22e17cfdfc00d8184b7cfce0d9f91980c75 | refs/heads/master | 2021-01-24T06:42:36.832093 | 2017-05-12T00:27:50 | 2017-05-12T00:27:50 | 93,314,174 | 0 | 0 | null | 2017-06-04T13:09:19 | 2017-06-04T13:09:19 | null | UTF-8 | Python | false | false | 9,119 | py | from collections import OrderedDict as odict
import re
from . import util
from .named_item import NamedItem
from .build_flags import BuildFlags
from .combination_rules import CombinationRules
# -----------------------------------------------------------------------------
class BuildItem(NamedItem):
"""A base cla... | [
"dev@jpmag.me"
] | dev@jpmag.me |
e84d438951700c2db6d33da9d697f4a43a7a4aab | 1329b07939a984c252ab81dd30cebc62968db575 | /code/traffic--day-vision.py | 40a7cc934c34051b1e4c19112db88abbbe52b50a | [] | no_license | avaish1409/traffic-count | a228a051a0d581de287e37daf709465cd9a1098c | 06ea34fcd607e33e2d961091d8443ffc50715a68 | refs/heads/main | 2023-04-04T02:00:11.078145 | 2021-04-02T14:57:57 | 2021-04-02T14:57:57 | 354,013,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,633 | py | import numpy as np
import cv2
import pandas as pd
from google.colab import drive
drive.mount('/content/gdrive')
def check(x, y, eq):
res = eq[0]*x + eq[1]*y + eq[2]
org = eq[2]
if (org>0) ^ (res>0):
return False
return True
def getEq(p1, p2):
m = (p1[1]-p2[1])/(p1[0]-p2[0])
c = (m*p2[0])-p1[1]
retu... | [
"noreply@github.com"
] | avaish1409.noreply@github.com |
f6a887de38c1172a802ca0e3bb9ff6761cc07b06 | 01372a9d6545747b5f526022e7bf91396bb103bc | /RepeatAnalysisTools/sampleReads.py | 78cee05a631527a668fe7ba0fadea5fd250c1d15 | [] | no_license | PacificBiosciences/apps-scripts | 9ebe137bc54e822717b64ac38a9e30cadfa80a22 | 3ab389677ffd6a050bd050586322854691d8592f | refs/heads/master | 2022-05-04T12:52:52.714477 | 2022-04-19T19:02:46 | 2022-04-19T19:02:46 | 81,975,047 | 21 | 12 | null | 2018-07-26T18:01:12 | 2017-02-14T18:15:33 | Python | UTF-8 | Python | false | false | 5,217 | py | import pysam,sys
import numpy as np
from collections import Counter
from resources.extract import extractRegion,fqRec,rc
MINCLUSTERSIZE=5
def main(parser):
args = parser.parse_args()
if args.inBAM and args.inFastq:
raise SampleReads_Exception('Only one input, either -b or -q')
if args.inBAM:
... | [
"jharting@pacificbiosciences.com"
] | jharting@pacificbiosciences.com |
e6d3baf43e45a157c9b75111930070bf6b6888f5 | e99e6398bbcdc5ee7ecb10ab085d8bd9642be1b9 | /matlab/python_data_parsing/txt_mention_matlab_singleFile_crawler.py | dc705cefe23d8855f39551bd85b0e02bd57fc8cb | [
"Apache-2.0"
] | permissive | researchoor/community-evolution-analysis | 091a2a2010cd5a3375254fe473a60e7586a0d5ff | afc25ced825f130c1ffa8817691b12a851f784ab | refs/heads/master | 2023-03-18T15:35:50.563865 | 2016-04-08T17:23:05 | 2016-04-08T17:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | #-------------------------------------------------------------------------------
# Purpose: parsing data straight from the crawler's txt files to a form:
# author1 mentioned1 unixTimestamp\n
# author1 mentioned2,... unixTimestamp\n
# creating a single file without the ... | [
"dinos66@yahoo.com"
] | dinos66@yahoo.com |
7c8a65f96ec1a7cc32f5f3e36173da0d9484771c | 86510b47b768d80127adcbd53b06fdff58fd95a4 | /python/problem_007.py | e76b196ef403cf9e93d791f86684f7016143f1c5 | [] | no_license | Kimbsy/project-euler | d018ad759ae599147e11431f818c9bfd3fc82f73 | e1eda2779b6499a6d33a848eacc5e1c15405bf70 | refs/heads/master | 2021-08-27T16:22:19.167892 | 2021-08-16T17:09:08 | 2021-08-16T17:09:08 | 50,948,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import math
"""By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see
that the 6th prime is 13.
What is the 10 001st prime number?
"""
def is_prime(num):
for i in range(2, int(math.sqrt(num)) + 1):
if num % i is 0:
return False
return True
num = 2
count = 1
max_count... | [
"lordkimber@gmail.com"
] | lordkimber@gmail.com |
b5f3d7ecb4bf3d04b8fa9c694304947ef979480b | b7e726b03ed9607380185c5ecf476f725a70beae | /廖雪峰教程代码笔记/网络编程/tcpHttpClient.py | b68e771f90e393852c35a95f37a2f612456cb6f7 | [] | no_license | 3101010/mycode | 7c322463e92577a22a90973a18eed0cb114781ad | 1b9451b5d1147c37908606a25771188742284b4f | refs/heads/master | 2021-06-18T16:50:11.071725 | 2021-01-27T09:04:36 | 2021-01-27T09:04:36 | 147,353,514 | 0 | 0 | null | 2018-09-04T13:48:50 | 2018-09-04T13:48:50 | null | UTF-8 | Python | false | false | 509 | py | import socket
target_host = "wiki.viewcn.cn"
target_port = 80
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target_host, target_port))
s.send(b'GET / HTTP/1.1\r\nHost: wiki.viewcn.cn\r\nConnection: Close\r\n\r\n')
#res = s.recv(4096)
buffer = []
while True:
d = s.recv(1024)
if d:
... | [
"463266963@qq.com"
] | 463266963@qq.com |
7db42526f129711e2a485c24693f03700306dda0 | 643bd1f87e132ac0327b74cbcc1f3c44c0949c5b | /source/profiles/migrations/0001_initial.py | b646cd056ade0e8d30769178a086436baf21477b | [] | no_license | nsu-loop/nsu-loop-application | 5f6320c273635c495b0d616e7dd71616aeb3d444 | 6739b25634d6558098c16e7cb65ab92f19091786 | refs/heads/master | 2023-05-01T20:43:48.124817 | 2021-05-09T09:10:10 | 2021-05-09T09:10:10 | 348,506,380 | 0 | 0 | null | 2021-05-08T19:18:13 | 2021-03-16T22:12:01 | Python | UTF-8 | Python | false | false | 1,863 | py | # Generated by Django 3.2.1 on 2021-05-05 07:06
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),
]
ope... | [
"fatemarai.05@gmail.com"
] | fatemarai.05@gmail.com |
3c02a6977dc9c8e271efadbdfcd51e8293c8eb3f | 9ea4a493abc954220b57e291a589cc42fbec92a4 | /dolittle-apps/blocks/sources/timestamp_seconds_source.py | b8925b3bdbe22d0dea18f9b207258de1fe40ae17 | [] | no_license | lab11/dolittle | 7327151dc9ed98b587de06a6087333859f64e795 | f88efb1e2f9c4f50a0b09e1056be92304a6a3513 | refs/heads/master | 2021-03-12T23:54:39.439343 | 2015-07-15T05:50:01 | 2015-07-15T05:50:01 | 31,397,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from pyblocks.source import PollingSource
import time
class TimestampSecondsSource(PollingSource):
def __init__(self):
super(TimestampSecondsSource, self).__init__()
self.start_polling()
def poll(self):
one_second = 1
timestamp = int(time.time())
msg = {"type": "timesta... | [
"meghan.leah.clark@gmail.com"
] | meghan.leah.clark@gmail.com |
149aed53ef04fe6d76ede1ef8340dd96c015d78c | e9cdf644f02c5f90e5af4ebcdfbd49e5739b379e | /lists/urls.py | fe220099563a5549be4bb60720a1f07720c68cff | [] | no_license | jaeyholic/airbnb-clone | 14e661012f3650a7c1486e43bbcb314eb0ac1ba1 | 68c1815e2b62bbf70dfe5a4a580d970015eaccc2 | refs/heads/master | 2022-12-13T08:11:04.759907 | 2020-02-12T02:22:28 | 2020-02-12T02:22:28 | 236,361,148 | 0 | 0 | null | 2022-12-10T17:29:25 | 2020-01-26T19:04:10 | Python | UTF-8 | Python | false | false | 143 | py | from django.urls import path
from . import views
app_name = "trips"
urlpatterns = [
path("", views.ListView.as_view(), name="trips"),
]
| [
"gabsco208309@hotmail.com"
] | gabsco208309@hotmail.com |
af339e6e8cfe428ea337e68bf6d8e1158b929ef8 | 907133d5859dad3c8e0ab40d127f225f8b126625 | /WebscrapingUsingJson.py | 77a7f9ef5ae413745caac1b8ec815c268334087c | [] | no_license | jatinverma12/web-scraping | 8cde778892f4c5693df6f91313373d105bd62571 | 9804f898e6d6b1750120fa99e1781d4a3446df55 | refs/heads/master | 2020-07-05T15:06:32.508737 | 2019-10-19T03:25:09 | 2019-10-19T03:25:09 | 202,680,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py |
a=dict()
a={
'images':[],
'News':[],
'Important Points':'',
'Blog':[]
}
import requests
import json
from bs4 import BeautifulSoup as bs
url='https://iiitd.ac.in/'
data=requests.get(url)
soup=bs(data.text,'html.parser')
for i in soup.find_all('img'):
if i.get('src')[0:5]!='https':
a['image... | [
"noreply@github.com"
] | jatinverma12.noreply@github.com |
941e87b25810cb421d89087a72ae996e2536e894 | e03c6b1f7b7bf895a24774d92d172ba487df1043 | /Coco/Otros/python advance/clustering-jararquico.py | f1b93c982a7e7cb0f95c3387a2aec6e8425a8278 | [] | no_license | CocoUrbina/Python | a3cec6b7d5f3387c5c9d72bf6ddafd7eb5994eb3 | f5ad88715eb06cc56911aafb42a00e609699b88f | refs/heads/main | 2023-03-05T22:19:52.446674 | 2021-02-18T02:36:44 | 2021-02-18T02:36:44 | 329,175,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 15 14:08:02 2018
@author: oldemarrodriguez
"""
# Se debe instalar el paquete "mglearn" con -> pip install mglearn
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from math import pi
# Import the dendrogram functi... | [
"Pmontenegro@coopenae.fi.cr"
] | Pmontenegro@coopenae.fi.cr |
baf65b2761f55fdc4212eb85a9a1eed2b72cbecc | 1e4203cd6a1d015300d447553c4bcddf40adfcdd | /bin/pilfile.py | 705b41c2cc9c50c78989351a392b36ccf6a1d0ff | [] | no_license | timpandrews/test3 | 65ac973cccc223052fec5b4c5bf835eefbb128f2 | 6073f0e728b53520309864431581523a3cc39746 | refs/heads/master | 2020-07-03T16:42:10.522550 | 2016-11-20T01:23:16 | 2016-11-20T01:23:16 | 74,245,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | #!/Users/timandrews/Desktop/apps/trydjango19/bin/python
#
# The Python Imaging Library.
# $Id$
#
# a utility to identify image files
#
# this script identifies image files, extracting size and
# pixel mode information for known file formats. Note that
# you don't need the PIL C extension to use this module.
#
# Histor... | [
"tim.andrews@imagineifinc.com"
] | tim.andrews@imagineifinc.com |
abdaed23fc7fefa47495aa05bbadf19e44d67629 | 4c53a637c2559cae808bcba8e97c51e8717e527f | /replay_memory.py | fcc2bd74e02283c3b5b932847805c61ca5e31b3d | [] | no_license | jswon/envRobot | bf07dceec5f820a122ca18ad6768a07311147f17 | a156c24ac056770b32cd67ca185cf922b94c1200 | refs/heads/master | 2020-12-03T09:29:56.981880 | 2017-10-26T08:32:27 | 2017-10-26T08:32:27 | 95,625,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,079 | py | import collections
import event_log
import numpy as np
import sys
import tensorflow as tf
import time
import util
#Batch = collections.namedtuple("Batch", "state_1 action reward terminal_mask state_2 internal_state target_obj_hot")
Batch = collections.namedtuple("Batch", "state_1 action reward terminal_mask state_2")
... | [
"mn2888@naver.com"
] | mn2888@naver.com |
06556d487799ba9f6f307e576a5be1076b0b4ca9 | b9dee9aa256cf2e01dc4e82d2b7e7a9e47ded535 | /Scrapy/查询参数.py | ad00fba30eedde8d2e3180d570c43234fc624004 | [] | no_license | dragon7577/pachong | a18bf5c91defe7389afd64640982c86bac1133b8 | 21b861a1ab7a966d1f558057522efe85bbcf547e | refs/heads/master | 2020-04-24T01:22:15.433938 | 2019-02-20T04:36:11 | 2019-02-20T04:36:11 | 171,596,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | import requests
baseurl = 'https://sz.lianjia.com/ershoufang/s?'
headers = {'User-Agent':"Mozilla/5.0"}
key = input("搜索内容:")
pn = input("输入页数:")
pn = (int(pn) - 1)*10
#wd = key&pn=10
params = {
'wd':key,
'pn':pn,
}
#无需拼接URL,也不用URL编码
res = requests.get(baseurl,params=params,headers=headers)
res... | [
"sz_huangdong@163.com"
] | sz_huangdong@163.com |
5627439b650a6e9da7032486158133713462bcc0 | d4ac6dd00ee5d46f6bc3cc3c48b88059cbfd5a91 | /situs/jualtiket/urls.py | a0514fa0ae4b54ad65a67fb103fc36fa60680b86 | [
"MIT"
] | permissive | torikwer/django-penj-tiket | 26b3e0fdd91ac8ef00dc0d44c9641e9750b7ac9f | 846ef20d74700f798922f2364df7736b5e41bb82 | refs/heads/master | 2020-03-18T04:08:25.788282 | 2018-05-21T13:25:09 | 2018-05-21T13:25:09 | 134,271,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.urls import path
from . import views
app_name = 'jualtiket'
urlpatterns = [
path('', views.index, name='index'),
]
| [
"39488116+torikwer@users.noreply.github.com"
] | 39488116+torikwer@users.noreply.github.com |
c128385b1deff90bf9d4409fc051233c3c3d3a6b | 51690aef9866cad3d2f8272d44778e29d8dfe101 | /ingreso.py | 50477829a0327421ec94c044ca00500487e8407c | [] | no_license | mramosv/test-repositorio | f1eceaadcf8b787e4195a12295e28dfc99bebc95 | 585792f13ca4ac207e71c2bc78be1a1a28dac358 | refs/heads/master | 2023-03-19T14:34:14.772058 | 2021-03-16T19:21:45 | 2021-03-16T19:21:45 | 348,466,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | a='hola'
print(a)
print(type(a)) | [
"transistorbipe@gmail.com"
] | transistorbipe@gmail.com |
39f9e0d4ddc8672e42e0ab21ce311784b8c69f04 | 3337b552cea857aa49540fd7e2118cf82c3f4ac8 | /kerckhoff/userprofiles/serializers.py | 3184c4c0b2971d3ccd40d7d2e2f1ded3131ffa3b | [] | no_license | dailybruin/kerckhoff-server | 176864117067b4ff1c9bbf0239d06572b6dbf5fe | 21f30e4e0d79843bb67ec244e00e9c27b46f7a7a | refs/heads/master | 2023-04-05T13:56:26.488757 | 2022-11-02T03:58:59 | 2022-11-02T03:58:59 | 168,264,207 | 3 | 0 | null | 2022-11-02T03:59:00 | 2019-01-30T02:17:32 | Python | UTF-8 | Python | false | false | 390 | py | from rest_framework import serializers
from .models import UserProfile
class UserProfileSerializer(serializers.ModelSerializer):
class Meta:
model = UserProfile
fields = (
"user",
"title",
"profile_img",
"description",
"linkedin_url",
... | [
"rkhajuria99@gmail.com"
] | rkhajuria99@gmail.com |
a227644154cecd4b3a8035f581856edb34d41638 | 7e002be6a1ba145984fe3f827c7a4cda8a1f11eb | /swea/d1/2071.py | 3998fc327eb62f99c3a5121853e262d7a7a15a1d | [] | no_license | ok2qw66/TIL | ed17712de266291e93b37c5bc700b0fe222656c3 | f0e623f0ff231edec1088a96d87d26644c7cfb0b | refs/heads/master | 2023-06-22T20:23:21.311599 | 2021-07-22T07:08:24 | 2021-07-22T07:08:24 | 290,894,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | T = int(input())
# 여러개의 테스트 케이스가 주어지므로, 각각을 처리합니다.
for test_case in range(1, T + 1):
total = sum(list(map(int,input().split())))
print(f'#{test_case} {round(total/10)}') | [
"ok2qw66@gmail.com"
] | ok2qw66@gmail.com |
3b2c8a39c47fb25067878ad79635a6e28b0ae266 | f6e03bc2747e8d1ca686b25e7f34a429886ba3f3 | /machinelearning/cbct/build_cbct_learner.py | 073853c6c8166f3e77a0a6c519c82cc5d099f2dc | [
"MIT"
] | permissive | randlet/pylinac | 2b3913d7d549b985a074ddcf291d018cfb1dd5d2 | df5dd913f429536180d998012b4f5cef8d443f88 | refs/heads/master | 2021-06-11T08:50:36.472577 | 2019-06-03T14:23:17 | 2019-06-03T14:23:17 | 151,657,740 | 1 | 0 | MIT | 2018-10-05T01:40:17 | 2018-10-05T01:40:16 | null | UTF-8 | Python | false | false | 276 | py | import os.path as osp
from machinelearning.tools import train
path = osp.join(osp.dirname(__file__), 'data', 'CatPhan 600')
parameters = {
'kernel': ['linear'],
'C': [1, 0.1, 5, 10, 50],
}
train(path, train_size=0.95, parameters=parameters, clf_name='catphan600')
| [
"jkerns100@gmail.com"
] | jkerns100@gmail.com |
3a5949afe7182ebdf3349ed8afc3b0e5c4ad6a12 | 5a6c9636af5d0cb93f31bdaff1e77da91d3cf84e | /src/youtube.py | 3051d2cb11bb0e95d4886ff1d089a523e9986b9b | [] | no_license | wanggonging/carrot | da75ace12696b29f588a57182c7da8f4886c3cf4 | 984821322006c2c3c7a5b7918fa3e0cc40839de8 | refs/heads/master | 2020-04-04T22:05:16.591796 | 2018-11-17T05:12:20 | 2018-11-17T05:12:20 | 156,309,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | from bs4 import BeautifulSoup
import json
import os
import pprint
import time
import urllib2
import unittest
def refresh_channel_index_with_html(index, html, channel_max):
soup = BeautifulSoup(html, "lxml")
now = int(time.time())
i = 0
for h3 in soup.find_all("h3", class_="yt-lockup-title"):
h... | [
"wanggonging@gmail.com"
] | wanggonging@gmail.com |
a05d271bf8219c189d34db4e5ed42131762c5c7b | 29585537e2e96c169ae83cd660070ba3af0a43a9 | /tests/market/migrations/0007_generalmanager_headshot.py | 574c287c3d589885c5abeb61a95e9675418a9419 | [
"Apache-2.0"
] | permissive | ballke-dev/django-admin-confirm | 4c400e0d6cb3799e7d9901731db99b4a579ec06e | 21f5a37c5ecf1fee30f95d8a2ce01207916a22f8 | refs/heads/main | 2023-06-23T03:54:50.326670 | 2021-07-22T17:04:13 | 2021-07-22T17:04:13 | 386,659,834 | 0 | 0 | NOASSERTION | 2021-07-16T14:11:48 | 2021-07-16T14:11:47 | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 3.1.6 on 2021-02-24 01:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("market", "0006_auto_20210222_0312"),
]
operations = [
migrations.AddField(
model_name="generalmanager",
name="headsh... | [
"noreply@github.com"
] | ballke-dev.noreply@github.com |
81406ddda68974435969e35b5983d1e811dcc6d2 | 27f070b80170c6bf42c609300091c75f5c55dccf | /EE183DB/DataGathering/Gather.py | 99f9a9fc738152ad70ee0399413e5c62890d6b36 | [] | no_license | MishkaMN/Cornhuskers | 11344d4a30038ab16057e8e6612971ba94b70597 | 9c3b6d1d311add53fb6fd43e8f74d72f701db913 | refs/heads/master | 2020-06-16T04:46:58.140678 | 2019-05-28T22:36:05 | 2019-05-28T22:36:05 | 195,482,990 | 0 | 0 | null | 2019-07-06T01:05:19 | 2019-07-06T01:05:19 | null | UTF-8 | Python | false | false | 9,048 | py | from ws4py.client.threadedclient import WebSocketClient
import time, requests
import numpy as np
import math
import numpy as np
import cv2
import cv2.aruco as aruco
import time
import datetime
import csv
current_milli_time = lambda: int(round(time.time() * 1000))
#esp8266host = "ws://192.168.0.104:81/"
esp8266host = ... | [
"brendantanaka@gmail.com"
] | brendantanaka@gmail.com |
559f11931879d3e33276860e06f2a57030381949 | 313ada5e6b8474c6d4ded075c88cbea782847974 | /Network Data/termcharsendrecv.py | c427cda04880be47c7c79b02292cbc09d24dc450 | [] | no_license | rizalbayyu/Pemjar | 4aa2398138ff69979ec839c2c2aac917b33f7751 | 625822e21900251231a8840f6e7e8704dc58af75 | refs/heads/master | 2021-05-22T14:17:35.635596 | 2020-04-08T14:31:45 | 2020-04-08T14:31:45 | 252,959,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py |
def sendalldata (conn, message):
# Tambahkan termination character di akhir message
message = message+"\r\n"
# Kirimkan message
conn.send(message.encode('ascii'))
def recvalldata(conn):
data = ""
# Iterasi untuk membaca data
while True:
# Tampung data
buffer = conn.recv(20)... | [
"noreply@github.com"
] | rizalbayyu.noreply@github.com |
6a2be014eb9649c77461f9d7117a20e1f10fb3d6 | 0502750293383c6dae2aaf4013717d9c83f52c62 | /exercism/python/archive/circular-buffer/circular_buffer.py | c143a3cdcdf9880436d13286be272c674f6461d5 | [] | no_license | sebito91/challenges | fcfb680e7fc1abfa9fea9cd5f108c42795da4679 | b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284 | refs/heads/master | 2023-07-08T15:43:42.850679 | 2023-06-26T19:38:51 | 2023-06-26T19:38:51 | 117,160,720 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | """ Mdolue to implement a circular-buffer """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
class BufferFullException(Exception):
""" define execption when buffer is full """
def __init__(self, message=None):
if not message:
message = "buffer is full"
super(Buffer... | [
"sebito91@gmail.com"
] | sebito91@gmail.com |
4342c672a5e50d7cdadb37ed1b7ea31de4fee43a | 39e8196888f370b1921a9047231b4bf0a387d382 | /sqlite.py | 4986c621f2f6bf2a3b4be1b1a3a9d6d21eb232c2 | [] | no_license | sumoonx/apollo_server | f5f4fb1fae3ea19f5036329bc52f1dbb889ed8ef | 447bb386b3f330d178b8ca9511fa27bc044d3ea8 | refs/heads/master | 2021-01-12T15:09:00.970858 | 2017-03-04T06:38:50 | 2017-03-04T06:38:50 | 69,352,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/env python3
# coding=utf-8
import sqlite3
import os
DB_FILE_NAME = os.path.abspath('./.data.db')
LED_TABLE = 'led_info'
def get_conn(path):
conn = sqlite3.connect(path)
if os.path.exists(path) and os.path.isfile(path):
return conn
else:
conn = None
return sqlite3.conne... | [
"694726071@qq.com"
] | 694726071@qq.com |
faa3797b36e9de4a619f95888e624d958787486c | b2862c8f21a4c7ce033fc801c003e3d7295cbedb | /cnn1/images_test.py | 1eff5cace8ccd6d3a071205e5e637cd4f9546395 | [] | no_license | kasprowski/tutorial2019 | 1e160704293165413d10f5208532acec1ecc844b | df365fefcc5826c4546bdb3b7c6d8eec51970c80 | refs/heads/master | 2020-05-27T15:17:58.391912 | 2019-06-13T13:48:04 | 2019-06-13T13:48:04 | 188,676,973 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | '''
Deep Learning in the Eye Tracking World tutorial source file
https://www.github.com/kasprowski/tutorial2019
Test of classification models using two types of generated images
Uses: data.py to prepare data, models.py to retrieve models
@author: pawel@kasprowski.pl
'''
import cv2
from sklearn.metrics import classi... | [
"C:\\mail"
] | C:\mail |
903e84bf3d1e5cb2b9700e079cd27e3eac2458d0 | aeb8f81143a939cdb036be5ba58f417a4695d203 | /mysite/settings.py | e6eea19ffd3aa6a653336f466bc6c275439704b2 | [] | no_license | lenar95/blog2 | 8380ae06c26ac0ccf007a3919474725f9f6ebb7c | 2c4c1bb499b612b0cb675eb49c0af266f325980a | refs/heads/master | 2021-05-15T19:06:02.333496 | 2017-10-21T09:47:40 | 2017-10-21T09:47:40 | 107,756,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"lenar95@mail.ru"
] | lenar95@mail.ru |
7d75049d861bf39599fc288e9b7ed4aaa10e238e | 074d2ccd687def4623e051762cc3a37c939b8b08 | /smtp_by_user/models/mail_mail.py | 244c1a8731cfba4a8e8178497f6bf5194340fa9d | [] | no_license | infotodoo/tempTGS | efc069311f9a18e41c1a440e52db865b06054510 | 5d9abb74f708271767fe312ed19338cdcc3c825c | refs/heads/master | 2022-12-05T10:27:08.699620 | 2020-08-21T23:32:23 | 2020-08-21T23:32:23 | 286,842,332 | 0 | 1 | null | 2020-08-24T22:08:33 | 2020-08-11T20:32:35 | Python | UTF-8 | Python | false | false | 2,980 | py |
import base64
import datetime
import logging
import psycopg2
import smtplib
import threading
import re
from collections import defaultdict
from odoo import _, api, fields, models
from odoo import tools
from odoo.addons.base.models.ir_mail_server import MailDeliveryException
from odoo.tools.safe_eval import safe_eval... | [
"ob@todoo.co"
] | ob@todoo.co |
774c3bbb0f01ff4b1e8b1a61f09146a3638a2ccd | 748d0c5a45ff74cb916fb0c859b4e71111f5cc5a | /kk.py | 2ed6cc1c30f20151fff1a3ea6b41df51690ee8d7 | [] | no_license | Xavier-Xiaoru-Liu/CrldrPrune | c808c6e86aea3f2726b1c4c5198ff505ae705bc3 | 914672327cc8ddba328c8e8f822a1450524bbdf3 | refs/heads/master | 2023-04-12T12:51:35.136620 | 2020-01-03T06:04:24 | 2020-01-03T06:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py |
import tensorflow as tf
import numpy as np
def low_precision(tensor):
low = tf.cast(tensor, tf.bfloat16)
return low
a = tf.Variable(-0.2, tf.float32)
a = low_precision(a)
sess = tf.Session()
sess.run(tf.global_variables_initializer())
print(sess.run(a))
| [
"lxr_orz@126.com"
] | lxr_orz@126.com |
d6c6f07c20d59e2954fa76d05a86559f3dc82759 | a31c54cb9b27e315567ed865e07cb720fc1e5c8e | /revenge/techniques/native_timeless_tracer/timeless_trace_item.py | f94c99a65e749528e119e21889e9b5142e3c5bcd | [] | no_license | bannsec/revenge | 212bc15e09f7d864c837a1829b3dc96410e369d3 | 2073b8fad76ff2ba21a5114be54e959297aa0cf9 | refs/heads/master | 2021-06-25T12:26:02.609076 | 2020-05-29T15:46:45 | 2020-05-29T15:46:45 | 188,461,358 | 51 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py |
import logging
logger = logging.getLogger(__name__)
from ... import common
class NativeTimelessTraceItem(object):
def __init__(self, process, context=None, depth=None, previous=None):
"""Class describing a single step of NativeTimelessTracing
Args:
process (revenge.Process): Pro... | [
"whootandahalf@gmail.com"
] | whootandahalf@gmail.com |
c66f07924ab319cc89659afb9e82d85e9c9500f8 | 03f4056ffaa745a2bd0742050494cbdab97858de | /ImportaObjMat.py | 2a5e898476bdb7e0dc5615b89d41f4c7bbc22430 | [] | no_license | biomedicalengineering/OrtogOnBlender | d1dd44852fc39328982720a3d957ac2f6393dc2a | fa15e053bfe3c8ef3ab5cdaf50680ecf72a3a1db | refs/heads/master | 2020-12-19T09:04:55.840967 | 2018-07-30T13:39:30 | 2018-07-30T13:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,433 | py | import bpy
import platform
def ImportaMaterial(impMaterial, SelObj):
context = bpy.context
obj = context.active_object
scn = context.scene
if platform.system() == "Linux" or platform.system() == "Darwin":
dirScript = bpy.utils.user_resource('SCRIPTS')
blendfile = dirScript+"a... | [
"cogitas3d@gmail.com"
] | cogitas3d@gmail.com |
c26be84c6627469cad7ae4c3c66e773878b9f22d | 21fa19fbc7e32b1af7f913114a084a5eced5b2a3 | /tests/integration/mycode/mypkg/__init__.py | c783ff5fc17fcd5ab7ed61667bf60de592c08f32 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | humilis/humilis-stream-gtw | 2b574cb483463a74328eded280c176fa906ff23b | f763d30369297173a0917373f906e1fb0051426a | refs/heads/master | 2021-12-03T13:07:28.010779 | 2021-11-13T19:20:39 | 2021-11-13T19:20:39 | 135,179,379 | 0 | 0 | MIT | 2021-11-13T19:20:39 | 2018-05-28T15:32:22 | Jinja | UTF-8 | Python | false | false | 630 | py | """A dummy module for testing purposes."""
import base64
import json
import os
import time
def transform(event, context):
"""Sample Firehose transform."""
output = []
print(json.dumps(event, indent=4))
if "body" in event:
# We are calling this from the REST API
event = event["body"]
... | [
"german@innovativetravel.eu"
] | german@innovativetravel.eu |
d9aa217c167416aa77add1ba68dc8f3405a49870 | 84fcf87bc93f33ea615ec95ab0dfcba27d47b054 | /facedancer/USBVendor.py | c3ab52b8a577ae5fb7d2bb44ffac87fff177d32f | [
"BSD-3-Clause"
] | permissive | xairy/Facedancer | 871d9dcdca42e52b94e6fa0fdeec74d55f94da99 | 2aca8e6aa5e7a8a71d51c550f4ed3b6fe75cb092 | refs/heads/master | 2023-05-11T12:13:20.250843 | 2023-04-03T08:41:15 | 2023-04-03T08:41:15 | 243,107,193 | 1 | 0 | BSD-3-Clause | 2020-02-25T21:34:08 | 2020-02-25T21:34:07 | null | UTF-8 | Python | false | false | 591 | py | # USBVendor.py
#
# Contains class definition for USBVendor, intended as a base class (in the OO
# sense) for implementing device vendors.
class USBVendor:
name = "generic USB device vendor"
# maps bRequest to handler function
request_handlers = { }
def __init__(self, verbose=0):
self.device =... | [
"temkink@ainfosec.com"
] | temkink@ainfosec.com |
fee4d2124eac9fad1e5d0bc58e3c6649164ab65c | e245035c7bff120d5f7a8a26412f14d11a77a46f | /huggingface_transformer_src/src/transformers/commands/convert.py | 2ca5a57ca36d0a5c150959f2f1b7daaec455c17a | [
"Apache-2.0"
] | permissive | fuxuelinwudi/R-Drop | 82f27e623f319065b75b9e2b7ebe285c2aa0582b | 88bba6386f2edf7aa45ae6795103dbf4be085e99 | refs/heads/main | 2023-06-06T14:28:55.773778 | 2021-06-27T05:39:27 | 2021-06-27T05:39:27 | 381,313,887 | 2 | 0 | MIT | 2021-06-29T09:43:58 | 2021-06-29T09:43:58 | null | UTF-8 | Python | false | false | 7,555 | py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | [
"dropreg@163.com"
] | dropreg@163.com |
fa87a0d787feef651f7e11abd4c4b98770306065 | 50952e470423e334115ff36d1c3041298fc254a7 | /doppelganger/gan/util.py | 3d38581652c0cdbceae079511e716dfd01099e6b | [] | no_license | elf11/synthetic-data-service | a3ee78e83ac5e7be2d6aadf805594001be43d989 | e55559eb2c5fd321bc112082fb7e4690c140614a | refs/heads/master | 2023-01-29T12:15:26.477250 | 2020-09-30T16:44:36 | 2020-09-30T16:44:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,281 | py | from output import OutputType, Output, Normalization
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
def renormalize_per_sample(data_feature, data_attribute, data_feature_outputs,
data_attribute_outputs, gen_flags,
num_rea... | [
"epcl2@cam.ac.uk"
] | epcl2@cam.ac.uk |
d9bbf890f6da0c78331c9d95119381dfc53eec1b | a56105311f5fd29ccb064f54bfc024402a3c71e4 | /active_minimum_margin_degr.py | 08ce34e85ce8f80821581c33e1e2d5cef966f4cf | [] | no_license | tsvvladimir/article_test | f4bc310b58e029d0472d2f5ef34fbfe3259c53d4 | 9629dc5b2d3a9d6d12765f7847c22f859f1a841e | refs/heads/master | 2021-05-31T12:37:35.787925 | 2016-04-04T13:57:32 | 2016-04-04T13:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,248 | py |
#clusterize in 20 clusters and choose cluster center for init learning
from diploma_lib import *
from prepare_data import *
import prepare_data
from sklearn.cluster import AgglomerativeClustering
from collections import OrderedDict
from collections import defaultdict
from sklearn.metrics import pairwise_distances_arg... | [
"tsvvladimir95@gmail.com"
] | tsvvladimir95@gmail.com |
48bf76c7aaa37bdc18b3be06c5d1885484e52765 | 3f729f51e0ffd84926b545e91cc2cda17501406f | /plots.py | be18a258e2bafc9819f8252192c24ca2b7ee7dba | [] | no_license | ummigachi/Machine-Learning | d23a0b08043fc8a79dc1ca2f8a146264a17feb45 | 8098d703ae21c026fa027df17adb4df407176a53 | refs/heads/master | 2020-08-20T16:48:50.680096 | 2019-10-18T21:47:37 | 2019-10-18T21:47:37 | 216,045,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 4 15:16:36 2019
@author: user1
"""
#import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
dataset= pd.read_csv('hour.csv')
#dataset.plot() # plots all columns against index
dataset.plot(kind='scatter', y = 'cnt',x='te... | [
"noreply@github.com"
] | ummigachi.noreply@github.com |
4cfbed53820b59e3787cf17000e182a46eb8f405 | 3d11335f92c0b62563b5601cdc8a91bf8235a877 | /Scientific_Expedition/open_labyrinth.py | 61df7c4b8c680fe1062755117bab79f0ed4e8e08 | [] | no_license | matyh/Checkio | 46b993530045a572bf67ca123c014dab7d8ff018 | 9a138eb0b5a259fcebe25ef6141c712100b22f39 | refs/heads/master | 2020-11-30T21:27:53.818469 | 2020-07-27T12:41:18 | 2020-07-27T12:41:18 | 230,484,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,973 | py | #!/usr/bin/env checkio --domain=py run open-labyrinth
# "So, the Labyrinth is a piece of cake, is it? Well, let's see how you deal with this little slice..."
#
# Sarah: "You don't by any chance know the way through this labyrinth, do you?"
# The Worm: "Who, me? No, I'm just a worm. Say, come inside, and meet t... | [
"martin.hora11gmail.com"
] | martin.hora11gmail.com |
e5c0e18570d6495874c69743b5770989a9bd61d0 | 878cb6c2b435522bd7f0f2d48bd3f8657efccf53 | /elimination.py | f9ebd4954ce7b4c3585fee0426166a54bb4d8d75 | [
"MIT"
] | permissive | joshr17/markov-aggregation | 7f5f89daf30d50822b9cca9a29f2981a3f594f14 | 9e0b3182c0f6f9f340b70adca13374548e50f512 | refs/heads/master | 2020-03-06T17:32:26.161816 | 2018-03-28T19:39:53 | 2018-03-28T19:39:53 | 126,991,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,227 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 23 14:36:17 2018
@author: joshua
This file contains the functions required to perform elimination and to use
it to calculate the stationary distribution of a Markov process or the mean
first passage times from every node in a set A to its ... | [
"noreply@github.com"
] | joshr17.noreply@github.com |
ee5f8ba3eaf4192de32aab293b57156dedae8772 | b037e1c315c9b4e93ae082e6765fa3872a5e4fee | /p_12/social/migrations/0001_initial.py | 046abbc64c917203f9d04614670b8c33904a7de2 | [] | no_license | cbaldwin20/project_12 | 7976bec11afefb5330a405232945f7bd6bdb39bf | 4e268e99e7ce9e7ba88d37b3b37e6addcbdd3114 | refs/heads/master | 2020-03-17T10:36:56.190411 | 2018-06-12T09:03:33 | 2018-06-12T09:03:33 | 133,518,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,868 | py | # Generated by Django 2.0.5 on 2018-06-11 04:15
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"cbaldwin20@yandex.com"
] | cbaldwin20@yandex.com |
aa5c4a98512495974fb7608726a4f591fddd94e6 | 8e39a4f4ae1e8e88d3b2d731059689ad5b201a56 | /dev-util/itstool/itstool-2.0.2.py | 98413b632277dc442d4cbfa589f28591e237e38c | [] | no_license | wdysln/new | d5f5193f81a1827769085932ab7327bb10ef648e | b643824b26148e71859a1afe4518fe05a79d333c | refs/heads/master | 2020-05-31T00:12:05.114056 | 2016-01-04T11:38:40 | 2016-01-04T11:38:40 | 37,287,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | metadata = """
summary @ XML to PO and back again
homepage @ http://itstool.org/
license @ GPL3
src_url @ http://files.itstool.org/$name/$fullname.tar.bz2
arch @ ~x86_64
"""
depends = """
build @ dev-libs/libxml2
"""
| [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
90631f42779c41c73a822a47c4134829fd8877c7 | 46c8a1028d85f3da4101aec17f62af3f8811a580 | /Ally_Financial.py | 1fc5112994f0c081d93de4c9ae1c7bfac4daa906 | [] | no_license | trssssrt/Interview_Assignments | 632e426e0dd4d83cf7f13afc06bd6d986b422425 | dec95f5d73c802d1f5cacd6b6bcf11b7db4df98b | refs/heads/master | 2020-06-23T22:32:42.596627 | 2020-06-15T21:39:55 | 2020-06-15T21:39:55 | 198,773,203 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,660 | py | """
Run file in command line involving the following arguments:
Below is a sample command:
python3 Ally_Financial.py -g loc
python3 Ally_Financial.py -g pass -n
python3 Ally_Financial.py -g people
________
Here is an article about Ally’s new CIO (https://www.wsj.com/articles/new-ally-financ... | [
"trss@byu.edu"
] | trss@byu.edu |
9bb91005f84d4d67416db899318bf4ddb657920e | 463febc26f9f6e09d51206c87c7450476b1dfa7c | /0x0C-nqueens/0-nqueens.py | b48a68afd83f68b7c5b517b2fcb380f754708017 | [] | no_license | Nahi-Terefe/holbertonschool-interview | 77a5fd0e668cabaa2f986ded265996061fcbc9f8 | e4842430f346d5b18e407ac468ba225aaeaae9d8 | refs/heads/master | 2023-02-17T13:31:31.389980 | 2021-01-12T00:24:42 | 2021-01-12T00:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #!/usr/bin/python3
""" Solving n queens """
import sys
# error handling for argv[1]
if __name__ == "__main__":
if len(sys.argv) == 1 or len(sys.argv) > 2:
print("Usage: nqueens N")
sys.exit(1)
N = sys.argv[1]
try:
N_int = int(N)
except ValueError:
print("N must be a ... | [
"977@holbertonschool.com"
] | 977@holbertonschool.com |
1c21ccd9a3a24e6884b6bb3a62c4d4c2e83cc4e7 | e84cbd06421127f08046b393d9eaa87293745629 | /predictor.py | 04bbf4cf9a10af9ec729aa7138bb0105cb331210 | [] | no_license | royaljava/dsrn | b8bbfe2335b896b50613a43f81d5320b40325ae4 | db21d57dfab57de3608f0372e749c6488b6b305d | refs/heads/master | 2020-04-18T11:53:12.813682 | 2018-11-09T12:56:27 | 2018-11-09T13:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from google3.protobuf import text_format
from lingvo.core import inference_graph_pb2
from lingvo.core import py_utils
import os
import skimage
import skimage.io
FLAGS = tf.app.flags.F... | [
"weihan@uiuc.edu"
] | weihan@uiuc.edu |
dc623bf3d465a281c0a8beddbec8d2e3465b048d | 974086c201747e1fa43022065f20268876deb38c | /backend/src/settings.py | 9048599cd1665ed35bbf1b1bb771aa22870f5d2b | [
"Apache-2.0"
] | permissive | davidnyberg/Healthify-Project | f6a1ab01e46b21278d160974877652230cc2ef47 | 4bdb4e7586b9b896826af45f981c77d73eca74c0 | refs/heads/master | 2023-03-28T18:41:57.905101 | 2020-12-13T14:20:59 | 2020-12-13T14:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | # -*- coding: utf-8 -*-
"""Application configuration."""
import os
from datetime import timedelta
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
class Config(object):
"""Base configuration."""
SECRET_KEY = os.environ.get('SRC_SECRET', 'secret-key')
APP_DIR = os.path.absp... | [
"davfo018@student.liu.se"
] | davfo018@student.liu.se |
e5864a2b83c01f7034aa3be5885b5d669876f36d | 2536dc92dff2eea7ebe7dcd3d10a6bc89ac78178 | /venv/Lib/site-packages/crypto/SelfTest/Cipher/test_DES.py | 62fcc20ffbee6a7ab5b8dad8638d507e6f5d20a8 | [] | no_license | AlamParihar/Cryptography-Challenges | 1eb2028b942d5a04a9aa27286e8d61b875d96021 | 05631e31285549b8c65c54c9397e09fb9bd22561 | refs/heads/master | 2020-03-27T23:22:01.674910 | 2018-09-24T04:50:26 | 2018-09-24T04:50:26 | 147,312,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,904 | py | # -*- coding: utf-8 -*-
#
# SelfTest/Cipher/DES.py: Self-test for the (Single) DES cipher
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedicat... | [
"alamjyot1@gmail.com"
] | alamjyot1@gmail.com |
b7bfcbd8582ad1efbfb7e5ce9ad844ace6fcf2cf | 2cdb3871d73b4294b779c81f09e3273d0728e390 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/waf_policy/custom_rule/_list.py | fcf113fd8845b31b348d69defabcbf94b62b429f | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | jiasli/azure-cli | 5a834f799478ec1aa577b1cbcb1f85c8e0075859 | 314f72a847cead06adf6f4589ace0ac8c701732a | refs/heads/dev | 2023-08-16T16:46:49.031504 | 2023-05-30T06:24:42 | 2023-05-30T06:24:42 | 199,984,491 | 2 | 1 | MIT | 2022-08-01T06:28:45 | 2019-08-01T05:41:34 | Python | UTF-8 | Python | false | false | 174,786 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | jiasli.noreply@github.com |
c99cf3261ef3264d9556a7b23a4752ba3d1719ea | 95c9cfb57346a4ff45b05847c2fd740cdd60fb79 | /examples/2-hydrotrend/run_hydrotrend.py | fcff63ddf946fbbaae6da021a5b914505fc530ec | [
"MIT"
] | permissive | mdpiper/dakota-tutorial | 1234812eaf00e97999abcdccc0a3027ed2bb1d92 | de5177bc741a0475266011de8363ff1ad4ce5ff0 | refs/heads/master | 2021-01-17T22:07:44.576114 | 2015-05-25T18:54:24 | 2015-05-25T18:54:24 | 35,640,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | #! /usr/bin/env python
# Brokers communication between HydroTrend and Dakota through files.
# Mark Piper (mark.piper@colorado.edu)
import sys
import os
import re
import shutil
from subprocess import call
import numpy as np
def read(output_file):
"""Reads a column of text containing HydroTrend output."""
retu... | [
"mark.piper@colorado.edu"
] | mark.piper@colorado.edu |
79d7f65e8bca3455499b1630da53457cc99be1fd | 4f213937edc0682ae56fbca353e1aab2a994f7ef | /python_built_in_functions/list_data.py | 1add2cfee223b4fc43b0c0e4dd39340680635cec | [] | no_license | adoniramj/general_training_python | 45779550bbb66af80ce2ce23b4581945afcdad7a | 36aa5237bb7d060d5cee186a10e02227a5013c88 | refs/heads/master | 2020-12-31T22:14:49.359839 | 2020-02-18T02:07:53 | 2020-02-18T02:07:53 | 239,049,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | cities = ['Miami', 'Orlando', 'Atlanta', 'New York', 'Seattle'] | [
"adoniramjvargas@gmail.com"
] | adoniramjvargas@gmail.com |
190c5d6a103dad55c0f5c9786005190abd77b2d5 | 4c0bdc8e94bddf8406e4bfbf9620d87f72347976 | /lunar_lander/A2C/train.py | 4227a629bb67abc251dcbee776b3771d43b147ec | [] | no_license | joaobose/rl-sandbox | ec6d2101089326e67b504d95b3d2c82192eb6d82 | b6092e1bb8242461af16bc7f0ce78ba03487b8ea | refs/heads/master | 2023-07-19T11:13:18.898407 | 2023-07-18T04:45:28 | 2023-07-18T04:45:28 | 209,424,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,646 | py | import gymnasium as gym
import torch
from argparse import ArgumentParser
import os
import numpy as np
from parameters import *
from agent import Agent
from neural_network import Actor, Critic
resume_episode = 0
savedir = ''
resumedir = ''
def initialize(args):
global savedir, resumedir, resume_epi... | [
"joaobose@gmail.com"
] | joaobose@gmail.com |
77285dffac7681028249c88d391e260358668299 | 39415394532266a48473a4e716bffcdaea5b3335 | /graphs/rtgraph.py | efc79e34752e7d22f0bf6925672338283a9a832b | [] | no_license | gcdeshpande/Modeling-and-Mitigation-of-XPath-Injection-Attacks-using-Neural-Networks | 9fe2209cf10b7b8ad0233de207ad448af636e286 | 81b0517c97ade44cf9d18cb5c64cb9bfa3571b1a | refs/heads/master | 2021-01-05T13:33:50.794401 | 2020-02-17T08:43:19 | 2020-02-17T08:43:19 | 241,036,602 | 1 | 0 | null | 2020-02-17T06:47:50 | 2020-02-17T06:36:03 | null | UTF-8 | Python | false | false | 1,198 | py | #!/usr/bin/env python
# a bar plot with errorbars
import numpy as np
import matplotlib.pyplot as plt
N = 10
modData = (10.23,20.27,30.98,40.74,51.31,62.05,70.54,81.47,92.27,101.75)
#menStd = (2, 3, 4, 1, 2)
ind = np.arange(N) # the x locations for the groups
width = 0.35 # the width of the bars
fig = plt.fi... | [
"noreply@github.com"
] | gcdeshpande.noreply@github.com |
2afb87b876777eba3345babac92efef1ee1fa736 | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/exata_personalizacao/wizard/projeto_relatorio.py | 4618ff3fdae885ab494f0eb9f31e24029bb9adc2 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # -*- encoding: utf-8 -*-
import os
from osv import orm, fields, osv
import base64
from finan.wizard.finan_relatorio import Report
from pybrasil.data import parse_datetime, mes_passado, primeiro_dia_mes, ultimo_dia_mes, hoje, agora, formata_data
from finan.wizard.relatorio import *
from datetime import date
import csv... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
dc0a52f88186ea5bcc3affdb647775145018ea75 | bceb104758d1ab3054ee2a21139cf9746a089622 | /predict.py | 010eb1543fcf2b7c129c0ce21331232dd950f85c | [] | no_license | fuzzball5000/bloop | 73dfecca18fbe62f92cf5efb7828a0dfc0e74ac7 | 5abb3cd01953c755c0ecef4988b579a4e70adb25 | refs/heads/master | 2021-01-20T18:01:15.280926 | 2016-11-28T09:27:23 | 2016-11-28T09:27:23 | 60,776,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import os
import MySQLdb
import time
import sys
from sklearn import linear_model
import csv
db_pass = os.environ['sql_pass']
epoch = int(time.time())
oneDay = epoch - 86400
try:
db = MySQLdb.connect('localhost','bloop_write',db_pass,'bloop' )
cursor = db.cursor()
except MySQLdb.Error as e:
print("DB conne... | [
"gazbo83@gmail.com"
] | gazbo83@gmail.com |
8adbcc1ad500e6bf245502b352e00b7817bc4858 | 0130c1bcb43f9218a10ce952b431a4fe817de4a4 | /HW3/code/mle_sim.py | c192ff220c4773174900b14053b7d6656c335268 | [
"MIT"
] | permissive | okuchap/SML | 8e97937f750bd372a5d9e1faaa868030193b0b5a | 4a301293524e21d31c8cc65cdd21cf72f89ecdc5 | refs/heads/master | 2020-03-19T16:08:36.031475 | 2018-06-11T04:36:46 | 2018-06-11T04:36:46 | 136,702,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import numpy as np
import scipy as sp
from numpy.random import binomial
import matplotlib.pyplot as plt
import seaborn as sns
def mle_sim(N_MLE=100, N_BER=100, theta_true=0.3):
mle_list = binomial(n=N_BER, p=theta_true, size = N_MLE)/N_BER
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.set_title('N... | [
"kyohei.okumura@gmail.com"
] | kyohei.okumura@gmail.com |
7bb315717af2f9fcc108ddf906448bd50a7cee06 | fe507a348e205c5e6af9aaf2c2894e5bb5450d8e | /server/node_modules/serialport/build/config.gypi | 213fa38fb88542700d00cae19c55deaa08fcb2aa | [
"MIT"
] | permissive | stedyyulius/Tracker | 7468c07b7beb55bad97066324e1573eae75a4792 | 1f505d28f8e950604c302756785e24e55f0db5e9 | refs/heads/master | 2021-07-08T14:54:22.366541 | 2017-10-06T11:04:40 | 2017-10-06T11:04:40 | 105,789,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,340 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"stedyyulius@gmail.com"
] | stedyyulius@gmail.com |
cda69e8ca6bb2ecb06be574f2a1f9320516d5976 | ae74563d6ee2a0c8c8eef7b066756ed1e8abc236 | /MyApp/Controls/HandlerFunc.py | 8b403bb732b444132b1abc5ae5286b42ffdfafee | [] | no_license | sunnyLbh/circus | b9aa9291b6c7d069284e659fb06abbcf4b79d523 | a689c1a14c147bdbfdb55c57483d745704ef922c | refs/heads/master | 2020-09-19T19:50:56.472900 | 2016-09-09T02:29:03 | 2016-09-09T02:29:03 | 67,757,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # -*- coding: utf-8 -*-
"""
__author__ = 'Sunny'
__mtime__ = '9/6/2016'
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ┗━━━┓
┃ 神兽保佑 ┣┓
┃ 永无BUG! ┏┛
┗┓┓... | [
"13631310872@163.com"
] | 13631310872@163.com |
e4a2ec77f4dd5e2af78977cca3a41199eaaa8af2 | 6fab83cd3036861badec08a1406a84bb93e0f016 | /robo1proj3/pr2_robot/scripts/project_template.py | 904b5b9870f6d7aa5df7ff181f4515e8fd4b78f3 | [] | no_license | sdwlig/udacityrobo1sdw | 420ba5ca5b6244ec46076f19c9423e9b1178f99c | a34529ae57368b17ed719308dfee105c919cb284 | refs/heads/master | 2020-05-18T10:40:22.193388 | 2019-05-01T13:29:36 | 2019-05-01T13:29:36 | 184,358,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,012 | py | #!/usr/bin/env python
# Import modules
import numpy as np
import sklearn
from sklearn.preprocessing import LabelEncoder
import pickle
from sensor_stick.srv import GetNormals
from sensor_stick.features import compute_color_histograms
from sensor_stick.features import compute_normal_histograms
from visualization_msgs.ms... | [
"sdw@lig.net"
] | sdw@lig.net |
07e7569c8db903217b70a5cd79e4b4672e203cf9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03636/s795119653.py | d8a4b73447a786ef0435aa2faeea73c314446486 | [] | 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 | 114 | py | S = str(input())
l = int(len(S))
#print(l)
#print(S[0])
s1 = S[0]
s2 = S[-1]
L = int(l-2)
print(s1 + str(L) + s2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5126300142b53af725535d97c532dcd641cf43bc | 6051370a68d5e1afee9c82f306bc1fb078a8bf62 | /0x03-python-data_structures/1-element_at.py | 929ff039e33d785afcd9876171a2a821305f945b | [] | no_license | leobyeon/holbertonschool-higher_level_programming | be38c699ac7d53770d0524b620f8696bf4eaa7bc | 8d69af503d522bb709b17096a514eaab3f0bba35 | refs/heads/master | 2020-03-28T11:15:11.913060 | 2019-02-22T01:21:51 | 2019-02-22T01:21:51 | 148,193,071 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | #!/usr/bin/python3
def element_at(my_list, idx):
if (0 <= idx < len(my_list)):
return my_list[idx]
else:
return None
| [
"386@holbertonschool.com"
] | 386@holbertonschool.com |
7bc6251a10857ddde0e8bfd5af1c863c52d2d276 | b95d271f9ecb494185d9e58d6b7009c010c934b2 | /flaskr/__init__.py | 3ba68cafceca3503df991da63acc089802cb018b | [] | no_license | Nihalian/flask-tutorial | 67db0fbd16b5b4ff3c37b5ba35812c0ed2b12cfc | 0180247a9af1506fb7d135639eecf0cf15205fed | refs/heads/master | 2023-04-29T09:10:18.732085 | 2021-05-14T09:12:16 | 2021-05-14T09:12:16 | 366,514,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import os
from flask import Flask
def create_app(test_config=None):
# create and configure the app
app = Flask(__name__,instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
DATABASE=os.path.join(app.instance_path,'flaskr.sqlite'),
)
if test_config is None:
... | [
"Abdulmanaf@Abduls-iMac.local"
] | Abdulmanaf@Abduls-iMac.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.