hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
739e63f76381e9036adb9f1fcd959575cdf76ae1
275
ex
Elixir
lib/rostrum2_web/views/layout_view.ex
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
null
null
null
lib/rostrum2_web/views/layout_view.ex
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
3
2021-11-25T05:44:03.000Z
2021-11-26T06:33:53.000Z
lib/rostrum2_web/views/layout_view.ex
ashton314/rostrum2
e392190b27f7dae4cc2de3668c1f4fea5cca63c1
[ "MIT" ]
null
null
null
defmodule RostrumWeb.LayoutView do use RostrumWeb, :view # Phoenix LiveDashboard is available only in development by default, # so we instruct Elixir to not warn if the dashboard route is missing. @compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}} end
34.375
72
0.774545
739e6b389c8d2da69f1133fc589eb688477e7c92
1,278
ex
Elixir
lib/vaulter/vaulter.ex
harmon25/vaulter
f36a40e0ff6d610d5ed96251cd9fdef2a8ab899b
[ "MIT" ]
null
null
null
lib/vaulter/vaulter.ex
harmon25/vaulter
f36a40e0ff6d610d5ed96251cd9fdef2a8ab899b
[ "MIT" ]
null
null
null
lib/vaulter/vaulter.ex
harmon25/vaulter
f36a40e0ff6d610d5ed96251cd9fdef2a8ab899b
[ "MIT" ]
null
null
null
defmodule Vaulter do alias Vaulter.Util alias Vaulter.Client def auth(username, password) do Util.genAuthRequest(:post,"auth/userpass/login/" <> username, %{password: password}) |> Client.sendRequest |> saveToken end defp saveToken({:ok, respBody}) do if Map.has_key?(respBody, "auth") do authInfo = M...
19.363636
86
0.683099
739e8474ff9b4c9e7a5c18218af47fba3f8a9251
12,107
exs
Elixir
test/groupher_server/cms/article_community/job_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
test/groupher_server/cms/article_community/job_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
test/groupher_server/cms/article_community/job_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Test.CMS.ArticleCommunity.Job do use GroupherServer.TestTools alias Helper.ORM alias GroupherServer.CMS alias CMS.Model.Job setup do {:ok, user} = db_insert(:user) {:ok, user2} = db_insert(:user) {:ok, job} = db_insert(:job) {:ok, community} = db_insert(:community) ...
40.356667
98
0.675312
739ea361e7906e5371cba913f7da20e5c396215f
3,436
exs
Elixir
mix.exs
harmon25/webengine_kiosk
89325351f035ecd15933f93785a061182734c602
[ "Apache-2.0" ]
null
null
null
mix.exs
harmon25/webengine_kiosk
89325351f035ecd15933f93785a061182734c602
[ "Apache-2.0" ]
null
null
null
mix.exs
harmon25/webengine_kiosk
89325351f035ecd15933f93785a061182734c602
[ "Apache-2.0" ]
null
null
null
defmodule WebengineKiosk.MixProject do use Mix.Project @version "0.2.5" @source_url "https://github.com/fhunleth/webengine_kiosk" def project do [ app: :webengine_kiosk, version: @version, elixir: "~> 1.6", description: description(), package: package(), source_url: @so...
25.641791
83
0.620489
739ec874eb643afa613b9027e1a85f702d81eb95
372
exs
Elixir
priv/repo/migrations/20210719050501_add_schedule_to_campaign.exs
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
28
2021-10-11T01:53:53.000Z
2022-03-24T17:45:55.000Z
priv/repo/migrations/20210719050501_add_schedule_to_campaign.exs
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
20
2021-10-21T08:12:31.000Z
2022-03-31T13:35:53.000Z
priv/repo/migrations/20210719050501_add_schedule_to_campaign.exs
bikebrigade/dispatch
eb622fe4f6dab7c917d678d3d7a322a01f97da44
[ "Apache-2.0" ]
null
null
null
defmodule BikeBrigade.Repo.Migrations.AddScheduleToCampaign do use Ecto.Migration def change do create table(:scheduled_messages) do add :campaign_id, references(:campaigns) add :send_at, :utc_datetime timestamps() end create unique_index(:scheduled_messages, [:campaign_id]) crea...
24.8
62
0.731183
739ecd8b4850b11cda21ce33529299c82dbe0ebe
1,135
exs
Elixir
mix.exs
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
null
null
null
mix.exs
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
13
2021-12-24T23:44:10.000Z
2022-03-04T20:56:28.000Z
mix.exs
grrrisu/meeple
428762a58a94306a6643b09c08d72fb2883a0309
[ "MIT" ]
null
null
null
defmodule Meeple.Umbrella.MixProject do use Mix.Project def project do [ apps_path: "apps", version: "0.1.0", start_permanent: Mix.env() == :prod, deps: deps(), aliases: aliases() ] end # Dependencies can be Hex packages: # # {:mydep, "~> 0.3.0"} # # Or git/path...
24.673913
84
0.64141
739ed95a495545b7b2601b4f1e4865f7a540345c
12,153
ex
Elixir
lib/nsq/consumer.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
lib/nsq/consumer.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
9
2020-04-05T15:39:46.000Z
2020-04-06T17:29:00.000Z
lib/nsq/consumer.ex
wingyplus/elixir_nsq
a3d6af736efb508c2e3dfbc8d1cab3c624f57c53
[ "MIT" ]
null
null
null
defmodule NSQ.Consumer do @moduledoc """ A consumer is a process that creates connections to NSQD to receive messages for a specific topic and channel. It has three primary functions: 1. Provide a simple interface for a user to setup and configure message handlers. 2. Balance RDY across all available co...
34.233803
97
0.647741
739efeb861b0b6ab2408c60b21b22d17f1eddb92
221
exs
Elixir
test/grizzly/zwave/commands/date_get_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
76
2019-09-04T16:56:58.000Z
2022-03-29T06:54:36.000Z
test/grizzly/zwave/commands/date_get_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
124
2019-09-05T14:01:24.000Z
2022-02-28T22:58:14.000Z
test/grizzly/zwave/commands/date_get_test.exs
jellybob/grizzly
290bee04cb16acbb9dc996925f5c501697b7ac94
[ "Apache-2.0" ]
10
2019-10-23T19:25:45.000Z
2021-11-17T13:21:20.000Z
defmodule Grizzly.ZWave.Commands.DateGetTest do use ExUnit.Case, async: true alias Grizzly.ZWave.Commands.DateGet test "creates the command and validates params" do {:ok, _command} = DateGet.new([]) end end
22.1
52
0.737557
739f1f4a9178b01d233106ab27dbddc9d28c9af5
15,091
ex
Elixir
lib/phoenix_live_component.ex
dbi1/phoenix_live_view
1fff01e0234a75b369ac9085b3b4ec096ef0b52b
[ "MIT" ]
null
null
null
lib/phoenix_live_component.ex
dbi1/phoenix_live_view
1fff01e0234a75b369ac9085b3b4ec096ef0b52b
[ "MIT" ]
null
null
null
lib/phoenix_live_component.ex
dbi1/phoenix_live_view
1fff01e0234a75b369ac9085b3b4ec096ef0b52b
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveComponent do @moduledoc """ Components are a mechanism to compartmentalize state, markup, and events in LiveView. Components are defined by using `Phoenix.LiveComponent` and are used by calling `Phoenix.LiveView.Helpers.live_component/3` in a parent LiveView. Components run inside the...
37.633416
85
0.689086
739f3cefb292784fb3212aac36ade4c8b93f76e5
58
ex
Elixir
lib/gaga_web/views/session_view.ex
madvoidhq/gaga
1a539edc327135c7910a51bffd6824bddcba5f7d
[ "MIT" ]
13
2020-11-22T18:43:21.000Z
2022-02-12T00:57:45.000Z
lib/gaga_web/views/session_view.ex
madvoidhq/gaga
1a539edc327135c7910a51bffd6824bddcba5f7d
[ "MIT" ]
2
2020-11-25T16:58:15.000Z
2021-06-21T12:02:41.000Z
lib/gaga_web/views/session_view.ex
madvoidhq/gaga
1a539edc327135c7910a51bffd6824bddcba5f7d
[ "MIT" ]
4
2020-11-23T08:14:03.000Z
2022-01-25T08:18:41.000Z
defmodule GagaWeb.SessionView do use GagaWeb, :view end
14.5
32
0.793103
739f5933bb6934c3c39b92e68cda5fddf53e6850
113
ex
Elixir
web/views/admin_view.ex
devonestes/ex_admin
e135ae7c28de78fc87baf519ff8a32da12e8bf66
[ "MIT" ]
1,347
2015-10-05T18:23:49.000Z
2022-01-09T18:38:36.000Z
web/views/admin_view.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
402
2015-10-03T13:53:32.000Z
2021-07-08T09:52:22.000Z
web/views/admin_view.ex
leonardzhou/ex_admin
c241e956503c548a472e3ee89751e64a16477638
[ "MIT" ]
333
2015-10-12T22:56:57.000Z
2021-05-26T18:40:24.000Z
Code.ensure_compiled(ExAdmin.Web) defmodule ExAdmin.AdminView do @moduledoc false use ExAdmin.Web, :view end
18.833333
33
0.79646
739f7812e7266d5575f9f9c2dcd8374c0fed180c
1,151
ex
Elixir
src/inmana.ex
salespaulo/inmana
26c0c1c1b61f37e4b108800eb8ed29fca986b9b7
[ "MIT" ]
null
null
null
src/inmana.ex
salespaulo/inmana
26c0c1c1b61f37e4b108800eb8ed29fca986b9b7
[ "MIT" ]
null
null
null
src/inmana.ex
salespaulo/inmana
26c0c1c1b61f37e4b108800eb8ed29fca986b9b7
[ "MIT" ]
null
null
null
defmodule Inmana do @moduledoc """ Inmana keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ alias Inmana.Restaurant alias Inmana.Supply # Restaurant defdeleg...
38.366667
88
0.768897
739f8e787fb66c1872b5ad6d2ba595064ff1ef17
902
ex
Elixir
test/support/conn_case.ex
c18t/supreme-tsugu-chan
9d1d4cffcd917f2454a8a2918389ea239f2a6cdc
[ "MIT" ]
null
null
null
test/support/conn_case.ex
c18t/supreme-tsugu-chan
9d1d4cffcd917f2454a8a2918389ea239f2a6cdc
[ "MIT" ]
null
null
null
test/support/conn_case.ex
c18t/supreme-tsugu-chan
9d1d4cffcd917f2454a8a2918389ea239f2a6cdc
[ "MIT" ]
null
null
null
defmodule SupremeTsuguChanWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finall...
25.771429
58
0.737251
739f911e9b7668cb404286ef948a235afa4f9383
1,265
ex
Elixir
lib/tanegashima/device.ex
massn/Tanegashima
d7a473500dfccf6e15f89848f22e4194b87108cb
[ "MIT" ]
4
2016-02-17T13:15:51.000Z
2017-04-29T16:12:55.000Z
lib/tanegashima/device.ex
massn/Tanegashima
d7a473500dfccf6e15f89848f22e4194b87108cb
[ "MIT" ]
1
2017-05-25T06:55:18.000Z
2021-02-27T21:03:15.000Z
lib/tanegashima/device.ex
massn/Tanegashima
d7a473500dfccf6e15f89848f22e4194b87108cb
[ "MIT" ]
1
2017-04-29T16:12:56.000Z
2017-04-29T16:12:56.000Z
defmodule Tanegashima.Device do @moduledoc""" Elixir wrapper for Pushbullet-Device-API. """ defstruct [:active, :app_version, :created, :fingerprint, :generated_nickname, :has_mms, :has_sms, :icon, :iden, :key_fingerprint, :kind, :manufacturer, :model, :modified, :nickname, :pushable,...
34.189189
90
0.599209
73a0141854189b95771d0a29aef232d8619fef45
2,055
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/target_https_proxies_scoped_list_warning_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/target_https_proxies_scoped_list_warning_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/target_https_proxies_scoped_list_warning_data.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
41.1
527
0.745499
73a01d3ab606e8b59926d73d742ad000665f2591
1,628
ex
Elixir
test/support/data_case.ex
cogini/phoenix_container_example
2c4d66ad7186ec165b9d260bc232d6c6ee9b2abe
[ "Apache-2.0" ]
19
2020-07-21T06:03:36.000Z
2022-03-21T22:35:22.000Z
test/support/data_case.ex
cogini/phoenix_container_example
2c4d66ad7186ec165b9d260bc232d6c6ee9b2abe
[ "Apache-2.0" ]
1
2022-03-08T10:26:55.000Z
2022-03-08T10:26:55.000Z
test/support/data_case.ex
cogini/phoenix_container_example
2c4d66ad7186ec165b9d260bc232d6c6ee9b2abe
[ "Apache-2.0" ]
1
2022-02-09T01:25:09.000Z
2022-02-09T01:25:09.000Z
defmodule PhoenixContainerExample.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so c...
29.071429
85
0.707002
73a02970ec46c018e4f3ff216e544754bc308e01
1,997
exs
Elixir
test/examples/regexp_matcher_test.exs
lincolnf/pact_elixir
21e5f473e3c30173881e577ffda8df1e1419d47d
[ "MIT" ]
27
2018-02-28T22:42:14.000Z
2022-03-20T00:30:08.000Z
test/examples/regexp_matcher_test.exs
lincolnf/pact_elixir
21e5f473e3c30173881e577ffda8df1e1419d47d
[ "MIT" ]
180
2017-12-04T09:42:53.000Z
2022-03-28T09:33:23.000Z
test/examples/regexp_matcher_test.exs
lincolnf/pact_elixir
21e5f473e3c30173881e577ffda8df1e1419d47d
[ "MIT" ]
8
2018-08-01T17:14:52.000Z
2022-01-26T12:46:46.000Z
defmodule PactElixir.Examples.RegexpMatcherTest do @moduledoc false # https://docs.pact.io/getting_started/matching#regular-expressions # https://github.com/pact-foundation/pact-specification/tree/version-2#matching-rules use ExUnit.Case alias PactElixir.PactMockServer import PactElixir.Dsl setup do ...
28.942029
99
0.688032
73a04f2bbe84b93935766b94627172cc7d086309
1,159
exs
Elixir
clients/video_intelligence/config/config.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/video_intelligence/config/config.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/config/config.exs
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
37.387097
73
0.760138
73a058b9783a2d39a0a9fa7d948774dfed74fd34
3,418
ex
Elixir
lib/ex_integrate/core/pipeline.ex
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
3
2022-01-14T20:04:07.000Z
2022-01-26T03:47:49.000Z
lib/ex_integrate/core/pipeline.ex
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
30
2021-11-01T23:29:32.000Z
2022-02-28T21:35:03.000Z
lib/ex_integrate/core/pipeline.ex
samrose/ExIntegrate
5effbfe7e00ee06410218ed01fea2e3b7d4ebe62
[ "Apache-2.0" ]
null
null
null
defmodule ExIntegrate.Core.Pipeline do @moduledoc """ A collection of Steps to be run sequentially. """ alias ExIntegrate.Core.Step @behaviour Access @enforce_keys [:name, :steps] defstruct @enforce_keys ++ [failed?: false] @type key :: String.t() @type t :: %__MODULE__{ failed?: boolea...
27.344
98
0.619953
73a05a63fd27e633667781f277b03e36d62af7f7
138
exs
Elixir
test/ueber_wecounsel_test.exs
wecounsel/ueberauth_wecounsel
4a4ce349a969664c0a5ef26e30bf893da61c1d4e
[ "MIT" ]
1
2019-10-13T16:39:02.000Z
2019-10-13T16:39:02.000Z
test/ueber_wecounsel_test.exs
wecounsel/ueberauth_wecounsel
4a4ce349a969664c0a5ef26e30bf893da61c1d4e
[ "MIT" ]
null
null
null
test/ueber_wecounsel_test.exs
wecounsel/ueberauth_wecounsel
4a4ce349a969664c0a5ef26e30bf893da61c1d4e
[ "MIT" ]
null
null
null
defmodule UeberauthWecounselTest do use ExUnit.Case doctest UeberauthWecounsel test "the truth" do assert 1 + 1 == 2 end end
15.333333
35
0.724638
73a074681a0ec0d341c86d8b5b978dc63ad878e7
904
ex
Elixir
day05/lib/day05.ex
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day05/lib/day05.ex
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
day05/lib/day05.ex
bjorng/advent-of-code-2015
d59ac2fc4a93c86ebfe3917d89ebaad3b571bdb6
[ "Apache-2.0" ]
null
null
null
defmodule Day05 do def part1(input) do Enum.count(input, &is_nice_part1?/1) end def part2(input) do Enum.count(input, &is_nice_part2?/1) end defp is_nice_part1?(string) do not String.contains?(string, ~w(ab cd pq xy)) and String.length(String.replace(string, ~r/[^aeiou]/, "")) >= 3 and S...
21.52381
68
0.567478
73a0776b98de84820abe45598f01dc3c63a4b062
860
ex
Elixir
lib/protocol.ex
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
lib/protocol.ex
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
lib/protocol.ex
vpsinc/modbus
e1b04916dc12c104e032122738815a1e3910394b
[ "Apache-2.0" ]
null
null
null
defmodule Modbus.Protocol do @moduledoc false @callback next(tid :: any()) :: any() @callback pack_req(cmd :: tuple(), tid :: any) :: req :: binary() @callback res_len(cmd :: tuple()) :: len :: integer() @callback parse_res(cmd :: tuple(), res :: binary(), tid :: any) :: list(integer()) @callback parse_req(...
25.294118
94
0.613953
73a09d2622c3f56cbdb6d1a4a3cd52d4234f9cb1
5,774
exs
Elixir
test/ex_oauth2_provider/oauth2/token/strategy/password_test.exs
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/oauth2/token/strategy/password_test.exs
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
test/ex_oauth2_provider/oauth2/token/strategy/password_test.exs
loopsocial/ex_oauth2_provider
59d177f1c7581e1d794823279067022b1598f5f2
[ "MIT" ]
null
null
null
defmodule ExOauth2Provider.Token.Strategy.PasswordTest do use ExOauth2Provider.TestCase alias ExOauth2Provider.{Config, Token, Token.Password} alias ExOauth2Provider.Test.{Fixtures, QueryHelpers} alias Dummy.OauthAccessTokens.OauthAccessToken @client_id "Jf5rM8hQBc" @client_secret "secret" @username "te...
36.314465
132
0.715795
73a0b854686d4514558b6e7d1d5d18d5dba0daa0
177
exs
Elixir
apps/fares/test/test_helper.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
42
2019-05-29T16:05:30.000Z
2021-08-09T16:03:37.000Z
apps/fares/test/test_helper.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
872
2019-05-29T17:55:50.000Z
2022-03-30T09:28:43.000Z
apps/fares/test/test_helper.exs
noisecapella/dotcom
d5ef869412102d2230fac3dcc216f01a29726227
[ "MIT" ]
12
2019-07-01T18:33:21.000Z
2022-03-10T02:13:57.000Z
# Ensure the deps are all started Application.ensure_all_started(:fares) # Report warnings as errors Code.compiler_options(warnings_as_errors: true) ExUnit.start(max_cases: 1)
25.285714
47
0.819209
73a0e6eebf67ce20c375cd9790cf8e64513ad875
2,244
exs
Elixir
test/endpoint/dynamic_test.exs
OpenMatchmaking/spotter
d4680b14074991811623147cc4c4bf73c95b3090
[ "BSD-3-Clause" ]
null
null
null
test/endpoint/dynamic_test.exs
OpenMatchmaking/spotter
d4680b14074991811623147cc4c4bf73c95b3090
[ "BSD-3-Clause" ]
1
2018-09-03T15:50:45.000Z
2018-11-29T07:37:19.000Z
test/endpoint/dynamic_test.exs
OpenMatchmaking/spotter
d4680b14074991811623147cc4c4bf73c95b3090
[ "BSD-3-Clause" ]
null
null
null
defmodule SpotterEndpointDynamicTest do use ExUnit.Case test "Spotter.Endpoint.Dynamic contructor set permissions to empty list" do endpoint = Spotter.Endpoint.Dynamic.new("api.leaderboard.get.{user_id}", []) assert endpoint.regex == ~r/^api.leaderboard.get.(?P<user_id>[^{}\/.]+)$/ assert endpoint.bas...
38.033898
101
0.711676
73a0f04992cdc0ed670f74fbfbd2646899ec7b62
4,062
ex
Elixir
lib/mongoose_push/application.ex
Switch168/MongoosePush
d997bd9cd0e63e16684bec9495cd12790bcaa8f1
[ "Apache-2.0" ]
null
null
null
lib/mongoose_push/application.ex
Switch168/MongoosePush
d997bd9cd0e63e16684bec9495cd12790bcaa8f1
[ "Apache-2.0" ]
null
null
null
lib/mongoose_push/application.ex
Switch168/MongoosePush
d997bd9cd0e63e16684bec9495cd12790bcaa8f1
[ "Apache-2.0" ]
null
null
null
defmodule MongoosePush.Application do # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application require Logger @typedoc "Possible keys in FCM config" @type fcm_key :: :key | :pool_size | :mode | :endpoint @typedoc "Poss...
25.872611
99
0.632201
73a0f8d82d4eb0c996caf8851aef0e6f8e058e0d
1,636
ex
Elixir
lib/igwet/scheduler_helper.ex
TheSwanFactory/igwet
0a450686d1d222eb8e39e23ba5d2ea83657862d1
[ "MIT" ]
null
null
null
lib/igwet/scheduler_helper.ex
TheSwanFactory/igwet
0a450686d1d222eb8e39e23ba5d2ea83657862d1
[ "MIT" ]
18
2018-02-25T11:13:46.000Z
2022-03-28T03:43:38.000Z
lib/igwet/scheduler_helper.ex
TheSwanFactory/igwet
0a450686d1d222eb8e39e23ba5d2ea83657862d1
[ "MIT" ]
1
2019-01-04T12:16:47.000Z
2019-01-04T12:16:47.000Z
# Sample email: http://bin.mailgun.net/b1748eea#7jmd defmodule Igwet.Scheduler.Helper do require Logger alias Igwet.Network alias Igwet.Network.SMS alias Igwet.Network.Sendmail alias Igwet.Admin.Mailer @server "https://www.igwet.com" def email_member(message, member, url) do try do Sendmail.to...
29.745455
105
0.654034
73a0fccc1ff1ac37bcf087320e2b2453e5a7c3dd
8,309
exs
Elixir
test/gorpo_test/consul_test.exs
dgvncsz0f/exul
ce989851d8237f38a422c16122ca0affa17f9a3b
[ "BSD-2-Clause" ]
3
2017-01-06T03:28:00.000Z
2022-01-04T01:10:13.000Z
test/gorpo_test/consul_test.exs
dgvncsz0f/exul
ce989851d8237f38a422c16122ca0affa17f9a3b
[ "BSD-2-Clause" ]
2
2017-11-28T17:13:33.000Z
2017-11-28T19:54:28.000Z
test/gorpo_test/consul_test.exs
dgvncsz0f/exul
ce989851d8237f38a422c16122ca0affa17f9a3b
[ "BSD-2-Clause" ]
1
2017-11-28T14:20:33.000Z
2017-11-28T14:20:33.000Z
defmodule Gorpo.ConsulTest do use ExUnit.Case, async: true test "service_register" do driver = Gorpo.Drivers.Echo.success([status: 200]) agent = %Gorpo.Consul{endpoint: "endpoint", token: "token", driver: driver} service = %Gorpo.Service{id: "foobar", name: "foobar", check: %Gorpo.Check{}} {:ok...
45.404372
153
0.607414
73a105dd5f85e5436c633a47b235c113f1468d77
282
ex
Elixir
lib/types.ex
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
null
null
null
lib/types.ex
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
null
null
null
lib/types.ex
alexdeleon/focus
9212e552b725053d0763cee80baf4882c1f80b99
[ "BSD-2-Clause" ]
null
null
null
defmodule Focus.Types do @moduledoc """ Shared elements for the Focus modules. """ @type product :: map | struct | tuple @type sum :: list @type traversable :: product | sum @type maybe :: {:ok, any} | {:error, any} @type optic :: Lens.t end
25.636364
49
0.574468
73a10a35baa547a35e7bcb0965e5060286ea4b3d
1,105
exs
Elixir
mix.exs
optoro/worker_tracker
0a9381cbb596edd5948bbad82dcde409d5f6ab5b
[ "MIT" ]
1
2020-02-06T17:15:44.000Z
2020-02-06T17:15:44.000Z
mix.exs
optoro/worker_tracker
0a9381cbb596edd5948bbad82dcde409d5f6ab5b
[ "MIT" ]
null
null
null
mix.exs
optoro/worker_tracker
0a9381cbb596edd5948bbad82dcde409d5f6ab5b
[ "MIT" ]
1
2021-04-01T13:29:18.000Z
2021-04-01T13:29:18.000Z
defmodule WorkerTracker.MixProject do use Mix.Project def project do [ app: :worker_tracker, version: "0.4.1", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps() ] end # Run "mix help compile.app...
24.021739
95
0.59457
73a14f6ddd77e9fd93ec5a2b7ecf404904d74f3f
5,488
ex
Elixir
lib/livebook/application.ex
oo6/livebook
0e059f4f840a56c122266a62cc8fdb3b97920efc
[ "Apache-2.0" ]
null
null
null
lib/livebook/application.ex
oo6/livebook
0e059f4f840a56c122266a62cc8fdb3b97920efc
[ "Apache-2.0" ]
null
null
null
lib/livebook/application.ex
oo6/livebook
0e059f4f840a56c122266a62cc8fdb3b97920efc
[ "Apache-2.0" ]
null
null
null
defmodule Livebook.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do ensure_local_filesystem!() ensure_distribution!() validate_hostname_resolution!() set_cookie() childr...
29.664865
143
0.649235
73a172897b7b0206cfcdeb1d272ccfe84abb3f79
1,993
exs
Elixir
test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
1
2021-06-25T10:36:01.000Z
2021-06-25T10:36:01.000Z
test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
test/mix/tasks/phoenix/pow.phoenix.gen.templates_test.exs
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
1
2020-07-13T01:11:17.000Z
2020-07-13T01:11:17.000Z
defmodule Mix.Tasks.Pow.Phoenix.Gen.TemplatesTest do use Pow.Test.Mix.TestCase alias Mix.Tasks.Pow.Phoenix.Gen.Templates @tmp_path Path.join(["tmp", inspect(Templates)]) @expected_msg "Pow Phoenix templates and views has been generated." @expected_template_files %{ "registration" => ["edit.html.eex", "...
28.884058
86
0.636729
73a178934e75eddd4d27fc82a4c4e88f6156db89
1,901
exs
Elixir
test/plausible_web/controllers/api/stats_controller/pages_test.exs
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
null
null
null
test/plausible_web/controllers/api/stats_controller/pages_test.exs
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
null
null
null
test/plausible_web/controllers/api/stats_controller/pages_test.exs
samuel-p/analytics
5d35bab9c6c2aafc556659f64e4213848a37ed8a
[ "MIT" ]
null
null
null
defmodule PlausibleWeb.Api.StatsController.PagesTest do use PlausibleWeb.ConnCase import Plausible.TestUtils describe "GET /api/stats/:domain/pages" do setup [:create_user, :log_in, :create_site] test "returns top pages sources by pageviews", %{conn: conn, site: site} do conn = get(conn, "/api/sta...
32.775862
106
0.46344
73a18be7d573a51b02b1275362ac9050116cf4a5
3,214
ex
Elixir
clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/street_view_publish/lib/google_api/street_view_publish/v1/model/operation.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
54.474576
543
0.724953
73a19ce7290e7186019a3e983dd1b260cee3647a
283
ex
Elixir
lib/phoenix_container_example.ex
wwaldner-amtelco/phoenix_container_example
aeee424b40f444fe6bbfeab4d57b78d201397701
[ "Apache-2.0" ]
19
2020-07-21T06:03:36.000Z
2022-03-21T22:35:22.000Z
lib/phoenix_container_example.ex
wwaldner-amtelco/phoenix_container_example
aeee424b40f444fe6bbfeab4d57b78d201397701
[ "Apache-2.0" ]
1
2022-03-08T10:26:55.000Z
2022-03-08T10:26:55.000Z
lib/phoenix_container_example.ex
wwaldner-amtelco/phoenix_container_example
aeee424b40f444fe6bbfeab4d57b78d201397701
[ "Apache-2.0" ]
1
2022-02-09T01:25:09.000Z
2022-02-09T01:25:09.000Z
defmodule PhoenixContainerExample do @moduledoc """ PhoenixContainerExample keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
28.3
68
0.780919
73a1ad3c20af6ffb2fd6faa25030e1e350bc4bde
5,314
exs
Elixir
backend/test/edgehog_web/schema/mutation/update_hardware_type_test.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/test/edgehog_web/schema/mutation/update_hardware_type_test.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/test/edgehog_web/schema/mutation/update_hardware_type_test.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
# # This file is part of Edgehog. # # Copyright 2021 SECO Mind Srl # # 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 app...
27.968421
96
0.542153
73a1c9e0ab4eb2068d12f3476596befdc6536831
1,364
exs
Elixir
test/event_queues_test.exs
cenurv/event_stream
cbe8f5702551435dc94eee6833df8cf9ac3084ce
[ "Apache-2.0" ]
5
2017-01-15T13:31:15.000Z
2020-09-23T19:40:27.000Z
test/event_queues_test.exs
cenurv/event_stream
cbe8f5702551435dc94eee6833df8cf9ac3084ce
[ "Apache-2.0" ]
null
null
null
test/event_queues_test.exs
cenurv/event_stream
cbe8f5702551435dc94eee6833df8cf9ac3084ce
[ "Apache-2.0" ]
1
2021-03-04T21:49:14.000Z
2021-03-04T21:49:14.000Z
defmodule EventQueuesTest do use ExUnit.Case test "Test Sync Notify" do SampleQueue.announce_sync(category: :ticket, name: :update, data: %{id: 15, pid: self()}) receive do event -> assert event.category == :ticket assert event.name == :update assert event.data.id == 15 ...
23.929825
93
0.618035
73a1e6f71509d26541f5fe6c3d432ab86937c718
1,535
ex
Elixir
lib/demo_web/views/error_helpers.ex
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
lib/demo_web/views/error_helpers.ex
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
lib/demo_web/views/error_helpers.ex
jefk/phoenix_live_view
5ef754b4246d3ba5aeeceb3875eda116bddfa834
[ "MIT" ]
null
null
null
defmodule DemoWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> content_tag(:sp...
31.979167
73
0.661238
73a1f799b243e9f65c212f1e294a1b632c46e67a
267
ex
Elixir
lib/quickstart/friend/friend.ex
LosEagle/elixir-graphql-sqlite-quickstart
63e0c15e8adf8e527ac232ac4966b758cede141e
[ "MIT" ]
null
null
null
lib/quickstart/friend/friend.ex
LosEagle/elixir-graphql-sqlite-quickstart
63e0c15e8adf8e527ac232ac4966b758cede141e
[ "MIT" ]
null
null
null
lib/quickstart/friend/friend.ex
LosEagle/elixir-graphql-sqlite-quickstart
63e0c15e8adf8e527ac232ac4966b758cede141e
[ "MIT" ]
null
null
null
defmodule Quickstart.Friend do use Ecto.Schema schema "friends" do field(:first_name, :string) field(:last_name, :string) end def changeset(friend, params \\ %{}) do friend |> Ecto.Changeset.cast(params, [:first_name, :last_name]) end end
19.071429
61
0.670412
73a249dac0dd652443b9ff715d633dafacedb169
315
exs
Elixir
maze/mix.exs
ChrisWilding/Advent-of-Code-2017
62284eec7a0e924230d82765d9ae17e52bc52ca8
[ "Apache-2.0" ]
1
2019-05-14T05:10:34.000Z
2019-05-14T05:10:34.000Z
maze/mix.exs
ChrisWilding/Advent-of-Code-2017
62284eec7a0e924230d82765d9ae17e52bc52ca8
[ "Apache-2.0" ]
null
null
null
maze/mix.exs
ChrisWilding/Advent-of-Code-2017
62284eec7a0e924230d82765d9ae17e52bc52ca8
[ "Apache-2.0" ]
null
null
null
defmodule Maze.Mixfile do use Mix.Project def project do [ app: :maze, version: "0.1.0", elixir: "~> 1.5", start_permanent: Mix.env == :prod, deps: deps() ] end def application do [ extra_applications: [:logger] ] end defp deps do [] end end
13.125
40
0.530159
73a24a845bf878887359de9b2e12d608bdc1bbf1
499
ex
Elixir
test/support/live_views/host.ex
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
test/support/live_views/host.ex
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
test/support/live_views/host.ex
gaslight/live_element
78d4ab0a2daab470f2ffd25d446fbabb0d746afe
[ "MIT" ]
null
null
null
defmodule LiveElementTest.HostLive do use LiveElement alias LiveElementTest.Router.Helpers, as: Routes def handle_params(_params, uri, socket) do {:noreply, assign(socket, :uri, uri)} end def render(assigns) do ~H""" URI: <%= @uri %> LiveAction: <%= @live_action %> <%= live_patch "Path",...
27.722222
107
0.631263
73a2597348d33929fc2330e18135d673c75dda08
7,590
ex
Elixir
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_entry.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_entry.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/data_catalog/lib/google_api/data_catalog/v1beta1/model/google_cloud_datacatalog_v1beta1_entry.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
73.68932
666
0.760474
73a27a0aa92afd5e8d18f69626194d9d607270fe
1,076
exs
Elixir
mix.exs
swelham/social_parser
fd8b6f9376474632c01fd2d6c7cabb17d3b3b1d1
[ "MIT" ]
13
2016-11-03T11:03:14.000Z
2021-03-13T00:24:36.000Z
mix.exs
swelham/social_parser
fd8b6f9376474632c01fd2d6c7cabb17d3b3b1d1
[ "MIT" ]
4
2016-11-09T09:38:03.000Z
2019-03-21T12:54:49.000Z
mix.exs
swelham/social_parser
fd8b6f9376474632c01fd2d6c7cabb17d3b3b1d1
[ "MIT" ]
4
2016-11-08T22:25:03.000Z
2019-06-07T18:16:46.000Z
defmodule SocialParser.Mixfile do use Mix.Project def project do [app: :social_parser, version: "2.0.0", elixir: "~> 1.3", description: description(), package: package(), build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps()] end # Configuratio...
23.391304
97
0.624535
73a27e4afef79683bc99b6b7bf8b57949a3ccc56
1,177
ex
Elixir
lib/errol/monitoring/rabbitmq.ex
ceritium/errol
cf2d50795dc7278cca7a6d158aaaa39713cbe493
[ "MIT" ]
23
2018-04-16T20:03:54.000Z
2018-09-03T20:08:19.000Z
lib/errol/monitoring/rabbitmq.ex
ceritium/errol
cf2d50795dc7278cca7a6d158aaaa39713cbe493
[ "MIT" ]
null
null
null
lib/errol/monitoring/rabbitmq.ex
ceritium/errol
cf2d50795dc7278cca7a6d158aaaa39713cbe493
[ "MIT" ]
1
2018-09-21T09:56:13.000Z
2018-09-21T09:56:13.000Z
defmodule Errol.Monitoring.RabbitMQ do @moduledoc false use GenServer def start_link() do GenServer.start_link(__MODULE__, [], name: __MODULE__) end def init(_args) do {:ok, %{}} end def handle_call({:monitor, {connection_pid, process_name}}, _from, state) do Process.monitor(connection_pid...
23.54
79
0.676296
73a28178bcafa455f8e4f3f60d8201666748f6fc
1,719
ex
Elixir
lib/elixir/lib/atom.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
19,291
2015-01-01T02:42:49.000Z
2022-03-31T21:01:40.000Z
lib/elixir/lib/atom.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
8,082
2015-01-01T04:16:23.000Z
2022-03-31T22:08:02.000Z
lib/elixir/lib/atom.ex
doughsay/elixir
7356a47047d0b54517bd6886603f09b1121dde2b
[ "Apache-2.0" ]
3,472
2015-01-03T04:11:56.000Z
2022-03-29T02:07:30.000Z
defmodule Atom do @moduledoc """ Atoms are constants whose values are their own name. They are often useful to enumerate over distinct values, such as: iex> :apple :apple iex> :orange :orange iex> :watermelon :watermelon Atoms are equal if their names are equal. iex...
20.710843
74
0.636998
73a2a6c6554ac720311273ffa4131c4fc1e29d5c
2,087
exs
Elixir
mix.exs
ream88/ecto_sqlite3
7c384f4bd09560ad6166ba01b4e398af330bf215
[ "MIT" ]
null
null
null
mix.exs
ream88/ecto_sqlite3
7c384f4bd09560ad6166ba01b4e398af330bf215
[ "MIT" ]
null
null
null
mix.exs
ream88/ecto_sqlite3
7c384f4bd09560ad6166ba01b4e398af330bf215
[ "MIT" ]
null
null
null
defmodule EctoSQLite3.MixProject do use Mix.Project @version "0.5.4" def project do [ app: :ecto_sqlite3, version: @version, elixir: "~> 1.8", start_permanent: Mix.env() == :prod, source_url: "https://github.com/elixir-sqlite/ecto_sqlite3", homepage_url: "https://github.c...
23.715909
68
0.551509
73a2b57f0cc182296031aaf4791dec6faa3fec2a
1,800
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/clear_values_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/clear_values_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/sheets/lib/google_api/sheets/v4/model/clear_values_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36
278
0.732778
73a33a520aeadc36f84ae5236b14bf7997f1d7b2
6,702
ex
Elixir
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/policy.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/policy.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
clients/data_fusion/lib/google_api/data_fusion/v1beta1/model/policy.ex
kolorahl/elixir-google-api
46bec1e092eb84c6a79d06c72016cb1a13777fa6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.417722
169
0.680543
73a36c6a32d8b6881b5ba67cabf9d62e0b324e73
168
ex
Elixir
lib/parsers/command.ex
aeturnum/blur
e59bb4a7451cea60d92166e495a3029645a1ffaf
[ "MIT" ]
19
2015-07-21T04:58:12.000Z
2022-01-20T23:25:18.000Z
lib/parsers/command.ex
aeturnum/blur
e59bb4a7451cea60d92166e495a3029645a1ffaf
[ "MIT" ]
3
2020-07-17T22:29:17.000Z
2020-07-20T00:31:41.000Z
lib/parsers/command.ex
aeturnum/blur
e59bb4a7451cea60d92166e495a3029645a1ffaf
[ "MIT" ]
3
2015-08-26T14:59:37.000Z
2021-05-05T04:00:06.000Z
defmodule Blur.Parser.Command do @moduledoc """ Parses messages for commands """ def command("!" <> command), do: command def command(_message), do: nil end
18.666667
42
0.678571
73a37a70fb7807c2debb3292c627b312a4a25521
1,136
ex
Elixir
lib/csv2json.ex
santif/csv2json
e25fe9fb1adfa2396b2a20a17ff1c5b8b0a76266
[ "MIT" ]
null
null
null
lib/csv2json.ex
santif/csv2json
e25fe9fb1adfa2396b2a20a17ff1c5b8b0a76266
[ "MIT" ]
null
null
null
lib/csv2json.ex
santif/csv2json
e25fe9fb1adfa2396b2a20a17ff1c5b8b0a76266
[ "MIT" ]
1
2017-08-08T14:03:06.000Z
2017-08-08T14:03:06.000Z
defmodule Csv2Json do @moduledoc false def main(args \\ []) do case OptionParser.parse!(args, strict: [output: :string], aliases: [o: :output]) do {[output: output_path], [input_path]} -> output_file = File.open! output_path, [:write] try do process_file(input_path, output_file)...
23.666667
87
0.580986
73a384fec139ee87b6373c759a013cb0cff44e8e
2,030
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/configuration_variables.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/configuration_variables.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/configuration_variables.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.6
268
0.753202
73a3a9926334b2a182201c2d64dfd3f23c7f2408
1,271
ex
Elixir
lib/types/parsed/invite.ex
mirtyl-wacdec/urbit_ex
82db4e96c2f3dc2a28e65c442350d7f8b228901f
[ "MIT" ]
7
2021-05-22T12:05:41.000Z
2021-08-11T20:05:59.000Z
lib/types/parsed/invite.ex
mirtyl-wacdec/urbit_ex
82db4e96c2f3dc2a28e65c442350d7f8b228901f
[ "MIT" ]
null
null
null
lib/types/parsed/invite.ex
mirtyl-wacdec/urbit_ex
82db4e96c2f3dc2a28e65c442350d7f8b228901f
[ "MIT" ]
2
2021-05-29T10:10:52.000Z
2021-08-11T20:06:07.000Z
defmodule UrbitEx.Invite do alias UrbitEx.{Resource, Utils} defstruct hash: "0v6.2a08h.q8qp2.45o52.qdsdu.2qibn", term: "graph or group", recipient: "~mirtyl-wacdec", ship: "~havsem-mirtyl-wacdec", text: "please come", resource: %Resource{} def to_list(...
25.938776
80
0.575138
73a3ae389a294d6eecad2632acbf76a7e89894ac
443
exs
Elixir
test/birdbeak_web/views/error_view_test.exs
qtheninja/birdbeak
f3af66ee84a201a373ab0b9b5c245c861b7e88ab
[ "MIT" ]
null
null
null
test/birdbeak_web/views/error_view_test.exs
qtheninja/birdbeak
f3af66ee84a201a373ab0b9b5c245c861b7e88ab
[ "MIT" ]
null
null
null
test/birdbeak_web/views/error_view_test.exs
qtheninja/birdbeak
f3af66ee84a201a373ab0b9b5c245c861b7e88ab
[ "MIT" ]
null
null
null
defmodule BirdbeakWeb.ErrorViewTest do use BirdbeakWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(BirdbeakWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.h...
26.058824
69
0.699774
73a40d87fb4927ffebdb42436ebf52fdb9d7c08a
2,301
ex
Elixir
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/new_disk_initialize_params.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/new_disk_initialize_params.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/replica_pool/lib/google_api/replica_pool/v1beta1/model/new_disk_initialize_params.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.611111
381
0.734463
73a429faaadf0154430bf4598b140d36573ef4b5
4,749
ex
Elixir
lib/ecto/erd/document.ex
patatoid/ecto_erd
526a97001bcdeb4c956eb8bc04c30480e762d0b3
[ "Apache-2.0" ]
null
null
null
lib/ecto/erd/document.ex
patatoid/ecto_erd
526a97001bcdeb4c956eb8bc04c30480e762d0b3
[ "Apache-2.0" ]
null
null
null
lib/ecto/erd/document.ex
patatoid/ecto_erd
526a97001bcdeb4c956eb8bc04c30480e762d0b3
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.ERD.Document do @moduledoc false alias Ecto.ERD.{Node, Field, Edge} defstruct [:edges, :nodes, :clusters] def map_nodes(%__MODULE__{nodes: nodes, edges: edges, clusters: []}, map_node_callback) when is_function(map_node_callback, 1) do {nodes, removed_nodes} = Enum.flat_map_reduc...
29.134969
111
0.601811
73a4499081656de65afbd5d8437f33fdcdb5d03c
5,453
ex
Elixir
lib/wasmex/module.ex
phaleth/wasmex
6fdb790c5dbbe229e12db71629b3a58ea9bbbf9f
[ "MIT" ]
243
2020-01-15T11:36:36.000Z
2022-03-30T09:38:04.000Z
lib/wasmex/module.ex
phaleth/wasmex
6fdb790c5dbbe229e12db71629b3a58ea9bbbf9f
[ "MIT" ]
255
2020-01-16T00:00:16.000Z
2022-03-29T10:05:52.000Z
lib/wasmex/module.ex
phaleth/wasmex
6fdb790c5dbbe229e12db71629b3a58ea9bbbf9f
[ "MIT" ]
11
2020-04-24T14:57:33.000Z
2022-03-25T12:04:40.000Z
defmodule Wasmex.Module do @moduledoc """ A compiled WebAssembly module. A WebAssembly Module contains stateless WebAssembly code that has already been compiled and can be instantiated multiple times. # Read a WASM file and compile it into a WASM module {:ok, bytes } = File.read("wasmex_test.wasm") ...
33.660494
130
0.689529
73a458701f15366ee21d82dd48f0ba13c2a0f046
948
ex
Elixir
example/lib/example/users/user_aggregate.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
17
2021-05-04T09:27:48.000Z
2022-02-02T00:53:28.000Z
example/lib/example/users/user_aggregate.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
18
2021-05-05T21:17:54.000Z
2021-12-08T19:25:21.000Z
example/lib/example/users/user_aggregate.ex
sebaughman/elixir_cqrs_tools
3f226e23af568d0422765e8bb526d966d83d34da
[ "MIT" ]
2
2021-05-04T13:35:00.000Z
2021-07-08T22:28:32.000Z
defmodule Example.Users.UserAggregate do defstruct [:id, :status] alias Example.Users.Protocol.{CreateUser, UserCreated} alias Example.Users.Protocol.{SuspendUser, UserSuspended} alias Example.Users.Protocol.{ReinstateUser, UserReinstated} def execute(%{id: nil}, %CreateUser{} = cmd), do: UserCreated.new(cm...
41.217391
89
0.697257
73a4755502f1785f58b499f0425521ed1557a776
1,814
ex
Elixir
lib/diode_client/transport.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/transport.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
lib/diode_client/transport.ex
diodechain/diode_client_ex
0aec3aa7a2e3448cccfc255b4d4e8d2cbf475c7f
[ "Apache-2.0" ]
null
null
null
defmodule DiodeClient.Transport do @moduledoc """ DiodeClient Transport interface for use with Cowboy2 Adapter and :hackeny. Potentially more depending on interface compatibility # Example using hackney to make http requests via Diode: {:ok, ref} = :hackney.connect(DiodeClient.Transport, address, po...
31.824561
79
0.686329
73a4952c2502b62e01447c34f4c04572d8181f1f
1,918
ex
Elixir
priv/templates/ja_serializer.gen.phoenix_api/controller.ex
strzibny/ja_serializer
9823ada739ec1f0db9f14bd29f62a701dbd3b094
[ "Apache-2.0" ]
null
null
null
priv/templates/ja_serializer.gen.phoenix_api/controller.ex
strzibny/ja_serializer
9823ada739ec1f0db9f14bd29f62a701dbd3b094
[ "Apache-2.0" ]
1
2021-06-25T13:28:34.000Z
2021-06-25T13:28:34.000Z
priv/templates/ja_serializer.gen.phoenix_api/controller.ex
strzibny/ja_serializer
9823ada739ec1f0db9f14bd29f62a701dbd3b094
[ "Apache-2.0" ]
null
null
null
defmodule <%= module %>Controller do use <%= base %>.Web, :controller alias <%= module %> alias JaSerializer.Params plug :scrub_params, "data" when action in [:create, :update] def index(conn, _params) do <%= plural %> = Repo.all(<%= alias %>) render(conn, "index.json-api", data: <%= plural %>) e...
31.966667
132
0.557873
73a4955a05c9aac331968a09b1de224c27cf96a8
1,360
ex
Elixir
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/list_group_stats_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/list_group_stats_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/cloud_error_reporting/lib/google_api/cloud_error_reporting/v1beta1/model/list_group_stats_response.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.170732
115
0.763971
73a49abdb81a5d80c52cc54377349cf59c1295e6
1,112
exs
Elixir
test/support/case.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
4
2020-09-17T15:55:21.000Z
2022-02-11T22:11:55.000Z
test/support/case.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
null
null
null
test/support/case.exs
brentjanderson/current
8c974e202c980cbf8fd28630d794574ec10f94ed
[ "Unlicense" ]
1
2022-03-07T20:22:23.000Z
2022-03-07T20:22:23.000Z
defmodule Current.Test.Case do use ExUnit.CaseTemplate using do quote do alias Current.Test.{Repo, Actor, Movie, Credit} import Ecto.Query import Current.Test.Case.Helpers end end setup context do if context[:db] do :ok = Ecto.Adapters.SQL.Sandbox.checkout(Current.Test.Re...
25.272727
81
0.598921
73a4a49da54f13698d724bca1297c3c8fd1b4505
1,083
ex
Elixir
web/views/artwork_view.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
web/views/artwork_view.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
web/views/artwork_view.ex
ImpossibilityLabs/artheon
2fd1284c8bd087107e56432ebefc3345db10e60e
[ "Apache-2.0" ]
null
null
null
defmodule Artheon.ArtworkView do use Artheon.Web, :view def render("index.json", %{artworks: artworks}) do %{data: render_many(artworks, Artheon.ArtworkView, "artwork.json")} end def render("show.json", %{artwork: artwork}) do %{data: render_one(artwork, Artheon.ArtworkView, "artwork.json")} end ...
30.942857
90
0.680517
73a51f204079b85227ca844c5b712942f5ca578a
3,012
exs
Elixir
test/pdf_generator_test.exs
egze/elixir-pdf-generator
7fdf48105d7b51fe19ab6e2d73320973e42aa37e
[ "MIT" ]
null
null
null
test/pdf_generator_test.exs
egze/elixir-pdf-generator
7fdf48105d7b51fe19ab6e2d73320973e42aa37e
[ "MIT" ]
null
null
null
test/pdf_generator_test.exs
egze/elixir-pdf-generator
7fdf48105d7b51fe19ab6e2d73320973e42aa37e
[ "MIT" ]
1
2019-02-05T20:52:13.000Z
2019-02-05T20:52:13.000Z
defmodule PdfGeneratorTest do use ExUnit.Case @html "<html><body><h1>Hi</h1><p>Yikes!</p></body></html>" test "agent startup" do {:ok, _ } = File.stat PdfGenerator.PathAgent.get.wkhtml_path end test "basic PDF generation" do {:ok, temp_filename } = PdfGenerator.generate @html # File should exi...
30.424242
98
0.663679
73a525ee019387a96ecd642c9be482cd330fd15f
750
ex
Elixir
lib/nacha/records/batch_control.ex
tokkenops/nacha.ex
0232ed5578d01b89cb554cd8cd0e574504aa5137
[ "Apache-2.0" ]
8
2020-02-06T17:38:02.000Z
2022-01-01T01:41:07.000Z
lib/nacha/records/batch_control.ex
tokkenops/nacha.ex
0232ed5578d01b89cb554cd8cd0e574504aa5137
[ "Apache-2.0" ]
2
2019-06-28T03:40:09.000Z
2019-06-28T04:10:34.000Z
lib/nacha/records/batch_control.ex
tokkenops/nacha.ex
0232ed5578d01b89cb554cd8cd0e574504aa5137
[ "Apache-2.0" ]
2
2020-01-18T22:27:17.000Z
2021-12-29T17:21:57.000Z
defmodule Nacha.Records.BatchControl do @moduledoc """ A struct containing data for a batch control record. """ @required [ :record_type_code, :service_class_code, :entry_count, :entry_hash, :total_debits, :total_credits, :company_id, :odfi_id, :batch_number ] use Nacha...
22.727273
54
0.593333
73a56154c4a15a417fc6c7e414d2d073b62b9ee1
3,755
ex
Elixir
clients/chat/lib/google_api/chat/v1/model/deprecated_event.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/chat/lib/google_api/chat/v1/model/deprecated_event.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/chat/lib/google_api/chat/v1/model/deprecated_event.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
45.240964
158
0.694008
73a57451b8d869d488f89d61d1ee3f94e635c997
196
ex
Elixir
lib/test_processor.ex
dkataskin/honeydew_nodelru
8b7e8e62a42d0efbd3d158a3f572f3d12011d92e
[ "MIT" ]
null
null
null
lib/test_processor.ex
dkataskin/honeydew_nodelru
8b7e8e62a42d0efbd3d158a3f572f3d12011d92e
[ "MIT" ]
null
null
null
lib/test_processor.ex
dkataskin/honeydew_nodelru
8b7e8e62a42d0efbd3d158a3f572f3d12011d92e
[ "MIT" ]
null
null
null
defmodule HoneydewNodeLRU.TestProcessor do require Logger def init(args) do {:ok, args} end def process(id, _state) do Logger.debug "#{node()}: processed job id=#{id}" end end
16.333333
52
0.668367
73a5867c5fda64b7c46af76b82e7e86baff23c31
134
ex
Elixir
web/controllers/page_controller.ex
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
web/controllers/page_controller.ex
tahmidsadik112/bloom
edf9995535cdb189b47addb7aee7311f590c5a87
[ "MIT" ]
null
null
null
defmodule Bloom.PageController do use Bloom.Web, :controller def index(conn, _params) do render conn, "index.html" end end
16.75
33
0.723881
73a58ec5dc28ba06c88f07012331150765e3f4a6
6,581
ex
Elixir
clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/big_query/lib/google_api/big_query/v2/model/external_data_configuration.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
82.2625
681
0.746543
73a59885b05f8d3bcba9cb9686cbaf2e70d192b1
1,902
ex
Elixir
clients/vault/lib/google_api/vault/v1/model/held_groups_query.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/held_groups_query.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
null
null
null
clients/vault/lib/google_api/vault/v1/model/held_groups_query.ex
leandrocp/elixir-google-api
a86e46907f396d40aeff8668c3bd81662f44c71e
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.222222
168
0.727655
73a59a5b8022b2fa959c4dbd773d95c4a7566b26
5,428
ex
Elixir
lib/weather_api/external_api/dark_sky_api.ex
vegashat/weather-api
d06ce0bf809bd98710367c459920bc5cef384f94
[ "MIT" ]
null
null
null
lib/weather_api/external_api/dark_sky_api.ex
vegashat/weather-api
d06ce0bf809bd98710367c459920bc5cef384f94
[ "MIT" ]
null
null
null
lib/weather_api/external_api/dark_sky_api.ex
vegashat/weather-api
d06ce0bf809bd98710367c459920bc5cef384f94
[ "MIT" ]
null
null
null
defmodule WeatherApi.ExternalApi.DarkSky do alias WeatherApi.Models.{Location, Weather, Forecast, Alert, Current} @dark_sky_api_key Application.get_env(:weather_api, :dark_sky_api_key) @dark_sky_url Application.get_env(:weather_api, :dark_sky_api_url) @test_data_file_path "data/weather.json"...
32.698795
91
0.523766
73a5cc9cd706269375acf7c5836785fff9b404b2
1,137
ex
Elixir
lib/console/commands/command.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
6
2021-11-17T21:10:49.000Z
2022-02-16T19:45:28.000Z
lib/console/commands/command.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
18
2021-11-25T04:31:06.000Z
2022-03-27T04:54:00.000Z
lib/console/commands/command.ex
pluralsh/console
38a446ce1bc2f7bc3e904fcacb102d3d57835ada
[ "Apache-2.0" ]
null
null
null
defmodule Console.Commands.Command do import Console alias Console.Services.Builds alias Console.Commands.Tee alias Console.Schema.{Build, Command} @build_key :console_build def set_build(build), do: Process.put(@build_key, build) def cmd(exec, args, dir \\ conf(:workspace_root)) do with {:ok, coll...
30.72973
137
0.632366
73a5da74a0978126bbe6c63c90ae5918b84308e2
718
ex
Elixir
lib/myApi_web/controllers/fallback_controller.ex
alex2chan/Phoenix-JWT-Auth-API
5313b41bb590db4c12bdc16f624c11a035d4d692
[ "MIT" ]
null
null
null
lib/myApi_web/controllers/fallback_controller.ex
alex2chan/Phoenix-JWT-Auth-API
5313b41bb590db4c12bdc16f624c11a035d4d692
[ "MIT" ]
null
null
null
lib/myApi_web/controllers/fallback_controller.ex
alex2chan/Phoenix-JWT-Auth-API
5313b41bb590db4c12bdc16f624c11a035d4d692
[ "MIT" ]
null
null
null
defmodule MyApiWeb.FallbackController do @moduledoc """ Translates controller action results into valid `Plug.Conn` responses. See `Phoenix.Controller.action_fallback/1` for more details. """ use MyApiWeb, :controller def call(conn, {:error, %Ecto.Changeset{} = changeset}) do conn |> put_status(:u...
24.758621
72
0.672702
73a5e12c8c691e9af9f1b6d41cbd8cd185b4b27e
452
exs
Elixir
test/advent_of_code/day_19_test.exs
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
1
2018-12-03T11:24:19.000Z
2018-12-03T11:24:19.000Z
test/advent_of_code/day_19_test.exs
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
null
null
null
test/advent_of_code/day_19_test.exs
mugimaru73/adventofcode2018
24ff5b2b8327b17b3242d3167bf7cc691199da86
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day19Test do use ExUnit.Case, async: true import AdventOfCode.Day19 @input Enum.join( [ "#ip 0", "seti 5 0 1", "seti 6 0 2", "addi 0 1 0", "addr 1 2 3", "setr 1 0 0", "seti 8 0 4", ...
19.652174
35
0.40708
73a5fb5e7a797e5c230f964f829b3574232ce8e0
1,579
ex
Elixir
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_disable_consumer_response.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_disable_consumer_response.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/service_consumer_management/lib/google_api/service_consumer_management/v1/model/v1_disable_consumer_response.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.088889
185
0.777074
73a60698d87170fb313fa635d03f27230fdd8508
734
exs
Elixir
apps/artemis/config/test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
10
2019-07-05T19:59:20.000Z
2021-05-23T07:36:11.000Z
apps/artemis/config/test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
3
2019-03-05T23:55:09.000Z
2019-05-29T13:46:34.000Z
apps/artemis/config/test.exs
chrislaskey/atlas_platform
969aea95814f62d3471f93000ee5ad77edb9d1bf
[ "MIT" ]
4
2019-07-05T20:04:08.000Z
2021-05-13T16:28:33.000Z
use Mix.Config # Set the log level # # The order from most information to least: # # :debug # :info # :warn # config :logger, level: :info config :artemis, :actions, repo_delete_all: [enabled: "false"], repo_generate_filler_data: [enabled: "false"], repo_reset_on_interval: [enabled: "false"] config :arte...
28.230769
90
0.726158
73a60b4fd667b6e65ecfec4433624ccd71f42d4d
444
ex
Elixir
web/helpers/session.ex
lexa62/hb
c6b2169ad3e5af546da3f7ad0d499f5d5d29d044
[ "MIT" ]
null
null
null
web/helpers/session.ex
lexa62/hb
c6b2169ad3e5af546da3f7ad0d499f5d5d29d044
[ "MIT" ]
null
null
null
web/helpers/session.ex
lexa62/hb
c6b2169ad3e5af546da3f7ad0d499f5d5d29d044
[ "MIT" ]
null
null
null
defmodule Hb.Session do alias Hb.{Repo, User} def authenticate(%{"email" => email, "password" => password}) do user = Repo.get_by(User, email: String.downcase(email)) case check_password(user, password) do true -> {:ok, user} _ -> :error end end defp check_password(user, password) do ...
22.2
69
0.641892
73a6219d50f12562a419ca7ca9e40f851f698c7d
4,448
exs
Elixir
test/messages.exs
sdrew/protox
c28d02f1626b5cd39bad7de2b415d20ebbdf76ee
[ "MIT" ]
18
2017-03-02T16:46:10.000Z
2019-12-07T03:31:16.000Z
test/messages.exs
sdrew/protox
c28d02f1626b5cd39bad7de2b415d20ebbdf76ee
[ "MIT" ]
8
2017-09-21T21:45:33.000Z
2020-05-13T18:54:01.000Z
test/messages.exs
sdrew/protox
c28d02f1626b5cd39bad7de2b415d20ebbdf76ee
[ "MIT" ]
2
2018-02-26T13:13:08.000Z
2020-05-12T07:01:36.000Z
defmodule Defs do use Protox.Define, enums: [ { E, [ {0, :FOO}, {1, :BAZ}, {1, :BAR}, {-1, :NEG} ] }, { F, [ {1, :ONE}, {2, :TWO} ] } ], messages: [ { Protobuf2...
31.323944
96
0.41884
73a66d238675547fbdd21f1cb7f35e803a4bc5b2
2,756
ex
Elixir
lib/squadster/accounts/tasks/notify.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/accounts/tasks/notify.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/accounts/tasks/notify.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
defmodule Squadster.Accounts.Tasks.Notify do use Task import Mockery.Macro alias Squadster.Formations.Squad alias Squadster.Formations.SquadMember alias Squadster.Accounts.User alias Squadster.Mailer alias Squadster.Mailer.Emails.NotifyEmail alias Squadster.Repo @bot_endpoint Application.fetch_env!...
35.792208
109
0.680334
73a6b37c07d5e7ade07fe2cae7f104d7e647850f
2,957
exs
Elixir
test/ex_doc_test.exs
kdawgwilk/ex_doc
fcfd2b9256fec710ce96d3b4a713a36cf57f34ad
[ "Apache-2.0", "CC-BY-4.0" ]
1,206
2015-01-02T02:05:12.000Z
2022-03-29T17:18:10.000Z
test/ex_doc_test.exs
kdawgwilk/ex_doc
fcfd2b9256fec710ce96d3b4a713a36cf57f34ad
[ "Apache-2.0", "CC-BY-4.0" ]
1,266
2015-01-03T03:26:04.000Z
2022-03-31T09:43:53.000Z
test/ex_doc_test.exs
elixir-lang/ex_doc
a075ba2faa48dae3d4b2cf7fcf398a6155ee0fc8
[ "Apache-2.0", "CC-BY-4.0" ]
300
2015-01-03T04:07:24.000Z
2022-03-29T08:10:56.000Z
defmodule ExDocTest do use ExUnit.Case # Simple retriever that returns whatever is passed into it defmodule IdentityRetriever do def docs_from_dir(source, config) do {source, config} end end # Simple formatter that returns whatever is passed into it defmodule IdentityFormatter do def run...
26.63964
95
0.654041
73a6b55d0c7cc927c41ac3ae92f19414bcc1edee
1,539
exs
Elixir
api/knot/mix.exs
lukasz-madon/knot
4c56af2d9d73b088af9e66b87d1ce85df752ad8d
[ "MIT" ]
null
null
null
api/knot/mix.exs
lukasz-madon/knot
4c56af2d9d73b088af9e66b87d1ce85df752ad8d
[ "MIT" ]
null
null
null
api/knot/mix.exs
lukasz-madon/knot
4c56af2d9d73b088af9e66b87d1ce85df752ad8d
[ "MIT" ]
null
null
null
defmodule Knot.Mixfile do use Mix.Project def project do [app: :knot, version: "0.0.1", elixir: "~> 1.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, aliases: ali...
29.037736
78
0.602989
73a6c3b7b85e5a9369849aa59955b8c90882529b
1,589
ex
Elixir
lib/elenchos_ex_web.ex
maxneuvians/elenchos_ex
03b31e848dafe12614a01104f89d9477c7b21025
[ "MIT" ]
null
null
null
lib/elenchos_ex_web.ex
maxneuvians/elenchos_ex
03b31e848dafe12614a01104f89d9477c7b21025
[ "MIT" ]
null
null
null
lib/elenchos_ex_web.ex
maxneuvians/elenchos_ex
03b31e848dafe12614a01104f89d9477c7b21025
[ "MIT" ]
null
null
null
defmodule ElenchosExWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use ElenchosExWeb, :controller use ElenchosExWeb, :view The definitions below will be executed for every view, con...
23.716418
83
0.699182
73a6dd67408d650f4b976c8ec868c3f7001649b1
2,241
ex
Elixir
lib/pow/store/base.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/pow/store/base.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
null
null
null
lib/pow/store/base.ex
randaalex/pow
2a8c8db4652f7cb2c58d3a897e02b1d47e76f27b
[ "MIT" ]
1
2020-07-13T01:11:17.000Z
2020-07-13T01:11:17.000Z
defmodule Pow.Store.Base do @moduledoc """ Used to set up API for key-value cache store. ## Usage defmodule MyApp.CredentialsStore do use Pow.Store.Base, ttl: :timer.minutes(30), namespace: "credentials" end """ alias Pow.{Config, Store.Backend.EtsCache} @callback ...
28.0125
82
0.624721
73a722950128c7dab98372a475bcb7af52193abf
1,626
exs
Elixir
test/deejay/tuple_value_test.exs
ngzax/deejay
ce32449c3ba58675796ccad92be347029de280f7
[ "BSD-3-Clause" ]
null
null
null
test/deejay/tuple_value_test.exs
ngzax/deejay
ce32449c3ba58675796ccad92be347029de280f7
[ "BSD-3-Clause" ]
null
null
null
test/deejay/tuple_value_test.exs
ngzax/deejay
ce32449c3ba58675796ccad92be347029de280f7
[ "BSD-3-Clause" ]
null
null
null
defmodule DeeJayTupleValueTest do use ExSpec, async: true doctest DeeJay.TupleValue import DeeJay.TupleValue test "Is represented as a 3-valued normal Elixir tuple" do assert tuple_value(:s_id, 1) == {:s_id, :integer, 1} end describe "The first element is called the attribute" do test "attr...
27.559322
77
0.641451
73a73673b10586096b5a6892d52b8d9fe098839e
314
ex
Elixir
lib/openflow/barrier/reply.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2019-05-25T02:25:13.000Z
2020-10-06T17:00:03.000Z
lib/openflow/barrier/reply.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
5
2018-03-29T14:42:10.000Z
2019-11-19T07:03:09.000Z
lib/openflow/barrier/reply.ex
shun159/tres
1e3e7f78ba1aa4f184d4be70300e5f4703d50a2f
[ "Beerware" ]
1
2019-03-30T20:48:27.000Z
2019-03-30T20:48:27.000Z
defmodule Openflow.Barrier.Reply do defstruct( version: 4, xid: 0, # virtual field datapath_id: nil, # virtual field aux_id: 0 ) alias __MODULE__ def ofp_type, do: 21 def new(xid \\ 0), do: %Reply{xid: xid} def read(_), do: %Reply{} def to_binary(%Reply{}), do: <<>> end
14.952381
41
0.595541
73a767b8f4e32b3095cc5668f5bcf6cff523d29d
413
ex
Elixir
survey/lib/survey/video_cam.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
survey/lib/survey/video_cam.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
survey/lib/survey/video_cam.ex
RamanBut-Husaim/pragstudio-elixir
21c723c933966798ae944ca2fd72697e9d0f2fa2
[ "MIT" ]
null
null
null
defmodule Survey.VideoCam do @doc """ Simulates sending a request to an external API to get a snapshot image from a video camera. """ def get_snapshot(camera_name) do # CODE GOES HERE TO SEND A REQUEST TO THE EXTERNAL API # Sleep for 1 second to simulate that the API can be slow: :timer.sleep(100...
27.533333
62
0.7046
73a78b6e184156bd13bdf8a2dcbf6bc75621ca83
488
exs
Elixir
spec/lib/errors/substitution_spec.exs
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
3
2019-11-04T21:40:10.000Z
2021-12-22T11:25:37.000Z
spec/lib/errors/substitution_spec.exs
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
null
null
null
spec/lib/errors/substitution_spec.exs
gmartsenkov/gate
67a1d9a3b0c0515312b49e9a110cb00ebc46d402
[ "MIT" ]
null
null
null
defmodule Gate.Errors.SubstitutionSpec do use ESpec describe "substitute" do subject do: described_module().substitute(text(), args()) let :text, do: "this {} proves that substitutions {}" let :args, do: ["test", "work"] it do: is_expected() |> to(eq "this test proves that substitutions work") ...
27.111111
77
0.651639
73a790867b6c62e92162be8e02704e154eca5e13
1,315
ex
Elixir
apps/tai/lib/tai/symbol.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
276
2018-01-16T06:36:06.000Z
2021-03-20T21:48:01.000Z
apps/tai/lib/tai/symbol.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
78
2020-10-12T06:21:43.000Z
2022-03-28T09:02:00.000Z
apps/tai/lib/tai/symbol.ex
ihorkatkov/tai
09f9f15d2c385efe762ae138a8570f1e3fd41f26
[ "MIT" ]
43
2018-06-09T09:54:51.000Z
2021-03-07T07:35:17.000Z
defmodule Tai.Symbol do @moduledoc """ Transform symbols between tai and exchange formats """ def downcase(symbol) when is_atom(symbol) do symbol |> Atom.to_string() |> String.downcase() end def downcase(symbol) do symbol |> String.downcase() end def downcase_all(symbols) do s...
21.557377
72
0.659316
73a79d1d1809286d203c8344f78aea9933485cdf
163
ex
Elixir
test/support/repo.ex
zumatande/kerosene
d509ab8a96aa67fe47920e2dbbcd268a7ad14786
[ "MIT" ]
238
2016-03-10T05:22:45.000Z
2022-02-05T11:55:00.000Z
test/support/repo.ex
zumatande/kerosene
d509ab8a96aa67fe47920e2dbbcd268a7ad14786
[ "MIT" ]
53
2016-06-26T16:20:47.000Z
2021-12-23T12:41:30.000Z
test/support/repo.ex
zumatande/kerosene
d509ab8a96aa67fe47920e2dbbcd268a7ad14786
[ "MIT" ]
47
2016-03-23T09:13:25.000Z
2021-12-10T05:55:26.000Z
defmodule Kerosene.Repo do use Ecto.Repo, otp_app: :kerosene, adapter: Ecto.Adapters.Postgres use Kerosene, otp_app: :kerosene, per_page: 10 end
23.285714
49
0.705521
73a7a8b523b05327d22a7c945dccf2facbe870ea
1,279
ex
Elixir
apps/neoscan/lib/neoscan/blocks/block_gas_generation.ex
decentralisedkev/neo-scan
c8a35a0952e8c46d40365e0ac76bce361ac5e558
[ "MIT" ]
null
null
null
apps/neoscan/lib/neoscan/blocks/block_gas_generation.ex
decentralisedkev/neo-scan
c8a35a0952e8c46d40365e0ac76bce361ac5e558
[ "MIT" ]
null
null
null
apps/neoscan/lib/neoscan/blocks/block_gas_generation.ex
decentralisedkev/neo-scan
c8a35a0952e8c46d40365e0ac76bce361ac5e558
[ "MIT" ]
null
null
null
defmodule Neoscan.BlockGasGeneration do @moduledoc false @generation_amount [8, 7, 6, 5, 4, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] @generation_length 22 @decrement_interval 2_000_000 @doc """ Calculate the amount of gas generated by a block """ def get_amount_generate_in_block(nil), do: ni...
30.452381
90
0.633307
73a7b0f7d7d3dd40b701557bcc1a40c5af6cf411
997
exs
Elixir
apps/game_of_life/mix.exs
grrrisu/thundermoon-mvp
17939d51c7b07216dfd63ba1b2ba53d56f94a48d
[ "MIT" ]
null
null
null
apps/game_of_life/mix.exs
grrrisu/thundermoon-mvp
17939d51c7b07216dfd63ba1b2ba53d56f94a48d
[ "MIT" ]
null
null
null
apps/game_of_life/mix.exs
grrrisu/thundermoon-mvp
17939d51c7b07216dfd63ba1b2ba53d56f94a48d
[ "MIT" ]
null
null
null
defmodule GameOfLife.MixProject do use Mix.Project def project do [ app: :game_of_life, version: "0.6.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.12", elixirc_paths: el...
24.925
88
0.583751
73a7b59abde69fbd79a9bae4f4777b8f72582399
1,120
exs
Elixir
test/index_test.exs
kjg/geef
9e9aa23af7614cb398e99fb06019884af2cbcd79
[ "MIT" ]
107
2015-01-08T12:05:20.000Z
2022-03-21T20:36:43.000Z
test/index_test.exs
kjg/geef
9e9aa23af7614cb398e99fb06019884af2cbcd79
[ "MIT" ]
9
2015-03-11T18:32:24.000Z
2020-03-29T21:08:55.000Z
test/index_test.exs
kjg/geef
9e9aa23af7614cb398e99fb06019884af2cbcd79
[ "MIT" ]
28
2015-03-03T16:01:26.000Z
2022-02-20T19:18:03.000Z
defmodule IndexTest do use ExUnit.Case use Geef alias Geef.Index import RepoHelpers setup do {repo, path} = tmp_bare() Process.link(repo) on_exit(fn -> File.rm_rf!(path) end) {:ok, [repo: repo, path: path]} end test "add an entry to the index", meta do repo = meta[:repo] conten...
25.454545
108
0.644643
73a7d1b2f72e16238c966d73a64a7a834e3cb9bf
1,206
ex
Elixir
apps/financial_system_web/lib/financial_system_web/controllers/transfer_controller.ex
juniornelson123/tech-challenge-stone
e27b767514bf42a5ade5228de56c3c7ea38459d7
[ "MIT" ]
null
null
null
apps/financial_system_web/lib/financial_system_web/controllers/transfer_controller.ex
juniornelson123/tech-challenge-stone
e27b767514bf42a5ade5228de56c3c7ea38459d7
[ "MIT" ]
2
2021-03-10T03:19:32.000Z
2021-09-02T04:33:17.000Z
apps/financial_system_web/lib/financial_system_web/controllers/transfer_controller.ex
juniornelson123/tech-challenge-stone
e27b767514bf42a5ade5228de56c3c7ea38459d7
[ "MIT" ]
null
null
null
defmodule FinancialSystemWeb.TransferController do use FinancialSystemWeb, :controller alias FinancialSystem.Transaction.Transfer alias FinancialSystem.Money alias FinancialSystem.Transaction alias FinancialSystem.Repo def index(conn, %{"account_id" => account_id}) do account = Transaction.get_account!...
37.6875
126
0.696517
73a7e83f9255b180a1da3c2f8267f37adb551f4a
1,083
ex
Elixir
lib/xeroxero/core_api/manual_journals.ex
scottmessinger/elixero
4e62c4d80d221639ba2347a563002511e8d4a6c6
[ "MIT" ]
1
2021-12-01T18:21:31.000Z
2021-12-01T18:21:31.000Z
lib/xeroxero/core_api/manual_journals.ex
scottmessinger/elixero
4e62c4d80d221639ba2347a563002511e8d4a6c6
[ "MIT" ]
null
null
null
lib/xeroxero/core_api/manual_journals.ex
scottmessinger/elixero
4e62c4d80d221639ba2347a563002511e8d4a6c6
[ "MIT" ]
1
2021-10-01T12:09:46.000Z
2021-10-01T12:09:46.000Z
defmodule XeroXero.CoreApi.ManualJournals do @resource "manualjournals" @model_module XeroXero.CoreApi.Models.ManualJournals def find(client) do XeroXero.CoreApi.Common.find(client, @resource) |> XeroXero.CoreApi.Utils.ResponseHandler.handle_response(@model_module) end def find(client, identifier) d...
36.1
86
0.782087
73a7f380fa2caa248a3eb25b9cd9877679749034
25,059
ex
Elixir
lib/elixir/lib/macro.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/elixir/lib/macro.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/macro.ex
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [to_string: 1] defmodule Macro do @moduledoc """ Conveniences for working with macros. """ @typedoc "Abstract Syntax Tree (AST)" @type t :: expr | { t, t } | atom | number | binary | pid | fun | [t] @typedoc "Expr node (remaining ones are literals)" @type expr :: { expr | atom, K...
31.32375
122
0.593559
73a7fcc9a41967c56cfa8d6388873c12bb373a2a
8,724
exs
Elixir
test/web/controllers/division_controller_test.exs
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
1
2017-07-27T16:03:28.000Z
2017-07-27T16:03:28.000Z
test/web/controllers/division_controller_test.exs
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
test/web/controllers/division_controller_test.exs
EDENLABLLC/prm.api
86743f26874f47ce3d48010ccf5d2cd596a3474b
[ "Apache-2.0" ]
null
null
null
defmodule PRM.Web.DivisionControllerTest do use PRM.Web.ConnCase import PRM.SimpleFactory alias PRM.Divisions.Division alias Ecto.UUID @update_attrs %{ addresses: [%{}], email: "some updated email", external_id: "some updated external_id", mountain_group: true, name: "some updated name"...
33.683398
119
0.618065
73a803f749228d478c6aaaf15d13b792ca8f3488
3,258
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/path_to_conversion_report_compatible_fields.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/path_to_conversion_report_compatible_fields.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v33/model/path_to_conversion_report_compatible_fields.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
52.548387
238
0.751074
73a8055f35e087fc2aa6d518abae295352bc0c3f
32,245
ex
Elixir
clients/speech/lib/google_api/speech/v1/api/projects.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/speech/lib/google_api/speech/v1/api/projects.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
clients/speech/lib/google_api/speech/v1/api/projects.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.108289
272
0.604528
73a805651150a50f845ef5c9663e566b1a7ad339
1,895
exs
Elixir
test/levenshtein_test.exs
preciz/levenshtein
adb43b9126559c5159655623d66548c66e4ea5ad
[ "MIT" ]
2
2020-02-05T00:07:17.000Z
2020-04-15T13:35:43.000Z
test/levenshtein_test.exs
preciz/levenshtein
adb43b9126559c5159655623d66548c66e4ea5ad
[ "MIT" ]
8
2019-10-08T01:13:13.000Z
2022-02-24T04:12:51.000Z
test/levenshtein_test.exs
preciz/levenshtein
adb43b9126559c5159655623d66548c66e4ea5ad
[ "MIT" ]
null
null
null
defmodule LevenshteinTest do use ExUnit.Case doctest Levenshtein test "distance" do assert Levenshtein.distance("", "") == 0 assert Levenshtein.distance("a", "a") == 0 assert Levenshtein.distance("a", "b") == 1 assert Levenshtein.distance("alma", "korte") == 5 # With empty strings assert...
41.195652
74
0.645383
73a80af6bd21ae7c1cb3b93043145d1e517f4043
593
exs
Elixir
mix.exs
adriandelisle/programming-elixir
19ad6f4504cba589e64e0ff652c41ec35e2ca5fb
[ "MIT" ]
null
null
null
mix.exs
adriandelisle/programming-elixir
19ad6f4504cba589e64e0ff652c41ec35e2ca5fb
[ "MIT" ]
null
null
null
mix.exs
adriandelisle/programming-elixir
19ad6f4504cba589e64e0ff652c41ec35e2ca5fb
[ "MIT" ]
null
null
null
defmodule ProgrammingElixir.MixProject do use Mix.Project def project do [ app: :programming_elixir, version: "0.1.0", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do...
20.448276
87
0.591906
73a852774beea86cf640294e68e2639267ba355d
2,363
ex
Elixir
apps/astarte_housekeeping_api/lib/astarte_housekeeping_api_web/controllers/fallback_controller.ex
szakhlypa/astarte
4e0152191999cf4834d57ec71bad4d4d0856971f
[ "Apache-2.0" ]
null
null
null
apps/astarte_housekeeping_api/lib/astarte_housekeeping_api_web/controllers/fallback_controller.ex
szakhlypa/astarte
4e0152191999cf4834d57ec71bad4d4d0856971f
[ "Apache-2.0" ]
null
null
null
apps/astarte_housekeeping_api/lib/astarte_housekeeping_api_web/controllers/fallback_controller.ex
szakhlypa/astarte
4e0152191999cf4834d57ec71bad4d4d0856971f
[ "Apache-2.0" ]
null
null
null
# # This file is part of Astarte. # # Copyright 2017 Ispirata Srl # # 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 appl...
26.852273
74
0.697419